RTEMS 4.11
Annotated Report
Sun Dec 23 00:28:18 2012

ffc068d4 <IMFS_dump_directory>: */ static void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) {
ffc068d4:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc068d8:	7c 08 02 a6 	mflr    r0                                     
ffc068dc:	90 01 00 3c 	stw     r0,60(r1)                              
ffc068e0:	be a1 00 0c 	stmw    r21,12(r1)                             
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
      fprintf(stdout, "...." );                                       
ffc068e4:	3f 20 ff c2 	lis     r25,-62                                
ffc068e8:	3f c0 00 00 	lis     r30,0                                  
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", IMFS_type( the_jnode ) );     
ffc068ec:	3f 00 ff c2 	lis     r24,-62                                
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc068f0:	83 e3 00 50 	lwz     r31,80(r3)                             
      return;                                                         
  }                                                                   
  puts("");                                                           
ffc068f4:	3e c0 ff c2 	lis     r22,-62                                
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
ffc068f8:	3e a0 ff c2 	lis     r21,-62                                
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
ffc068fc:	3f 40 ff c2 	lis     r26,-62                                
 */                                                                   
static void IMFS_dump_directory(                                      
  IMFS_jnode_t  *the_directory,                                       
  int            level                                                
)                                                                     
{                                                                     
ffc06900:	7c 7c 1b 78 	mr      r28,r3                                 
ffc06904:	7c 9b 23 78 	mr      r27,r4                                 
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
      fprintf(stdout, "...." );                                       
ffc06908:	3b 39 33 28 	addi    r25,r25,13096                          
ffc0690c:	3b de 27 f0 	addi    r30,r30,10224                          
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", IMFS_type( the_jnode ) );     
ffc06910:	3b 18 33 82 	addi    r24,r24,13186                          
)                                                                     
{                                                                     
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
  switch( IMFS_type( the_jnode ) ) {                                  
ffc06914:	3e e0 ff c2 	lis     r23,-62                                
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", IMFS_type( the_jnode ) );     
      return;                                                         
  }                                                                   
  puts("");                                                           
ffc06918:	3a d6 3a 53 	addi    r22,r22,14931                          
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
ffc0691c:	3a b5 33 6f 	addi    r21,r21,13167                          
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
ffc06920:	3b 5a 33 5b 	addi    r26,r26,13147                          
  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 );                    
ffc06924:	48 00 01 1c 	b       ffc06a40 <IMFS_dump_directory+0x16c>   
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
      fprintf(stdout, "...." );                                       
ffc06928:	80 89 00 08 	lwz     r4,8(r9)                               
ffc0692c:	7f 23 cb 78 	mr      r3,r25                                 
        !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++ )                                      
ffc06930:	3b bd 00 01 	addi    r29,r29,1                              
      fprintf(stdout, "...." );                                       
ffc06934:	48 00 db 31 	bl      ffc14464 <fputs>                       
ffc06938:	48 00 00 08 	b       ffc06940 <IMFS_dump_directory+0x6c>    
  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 );                    
ffc0693c:	3b a0 00 00 	li      r29,0                                  
        !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++ )                                      
ffc06940:	7f 9d d8 00 	cmpw    cr7,r29,r27                            
      fprintf(stdout, "...." );                                       
ffc06944:	81 3e 00 00 	lwz     r9,0(r30)                              
        !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++ )                                      
ffc06948:	40 9d ff e0 	ble+    cr7,ffc06928 <IMFS_dump_directory+0x54>
  IMFS_jnode_t *the_jnode                                             
)                                                                     
{                                                                     
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
ffc0694c:	80 89 00 08 	lwz     r4,8(r9)                               
ffc06950:	38 7f 00 0c 	addi    r3,r31,12                              
ffc06954:	48 00 db 11 	bl      ffc14464 <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;                                    
ffc06958:	81 3f 00 4c 	lwz     r9,76(r31)                             
ffc0695c:	80 a9 00 00 	lwz     r5,0(r9)                               
  switch( IMFS_type( the_jnode ) ) {                                  
ffc06960:	2b 85 00 06 	cmplwi  cr7,r5,6                               
ffc06964:	41 9d 00 9c 	bgt-    cr7,ffc06a00 <IMFS_dump_directory+0x12c><== NEVER TAKEN
ffc06968:	39 37 33 0c 	addi    r9,r23,13068                           
ffc0696c:	54 a5 10 3a 	rlwinm  r5,r5,2,0,29                           
ffc06970:	7d 49 28 2e 	lwzx    r10,r9,r5                              
ffc06974:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc06978:	7d 29 03 a6 	mtctr   r9                                     
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
ffc0697c:	81 3e 00 00 	lwz     r9,0(r30)                              
)                                                                     
{                                                                     
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
  switch( IMFS_type( the_jnode ) ) {                                  
ffc06980:	4e 80 04 20 	bctr                                           
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
ffc06984:	80 89 00 08 	lwz     r4,8(r9)                               
ffc06988:	38 60 00 2f 	li      r3,47                                  
ffc0698c:	48 00 d9 c1 	bl      ffc1434c <fputc>                       
ffc06990:	48 00 00 88 	b       ffc06a18 <IMFS_dump_directory+0x144>   
      break;                                                          
                                                                      
    case IMFS_DEVICE:                                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
ffc06994:	3c 80 ff c2 	lis     r4,-62                                 
ffc06998:	80 69 00 08 	lwz     r3,8(r9)                               
ffc0699c:	38 84 33 2d 	addi    r4,r4,13101                            
ffc069a0:	80 bf 00 50 	lwz     r5,80(r31)                             
ffc069a4:	80 df 00 54 	lwz     r6,84(r31)                             
ffc069a8:	48 00 00 18 	b       ffc069c0 <IMFS_dump_directory+0xec>    
        the_jnode->info.device.major, the_jnode->info.device.minor ); 
      break;                                                          
                                                                      
    case IMFS_LINEAR_FILE:                                            
      fprintf(stdout, " (file %" PRId32 " %p)",                       
ffc069ac:	3c 80 ff c2 	lis     r4,-62                                 
ffc069b0:	80 69 00 08 	lwz     r3,8(r9)                               
ffc069b4:	80 bf 00 54 	lwz     r5,84(r31)                             
ffc069b8:	38 84 33 40 	addi    r4,r4,13120                            
ffc069bc:	80 df 00 58 	lwz     r6,88(r31)                             
ffc069c0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc069c4:	48 00 d8 a5 	bl      ffc14268 <fprintf>                     
ffc069c8:	48 00 00 50 	b       ffc06a18 <IMFS_dump_directory+0x144>   
        the_jnode->info.file.indirect,                                
        the_jnode->info.file.doubly_indirect,                         
        the_jnode->info.file.triply_indirect                          
      );                                                              
#else                                                                 
      fprintf(stdout, " (file %" PRId32 ")",                          
ffc069cc:	80 69 00 08 	lwz     r3,8(r9)                               
ffc069d0:	3c 80 ff c2 	lis     r4,-62                                 
ffc069d4:	80 bf 00 54 	lwz     r5,84(r31)                             
ffc069d8:	38 84 33 4f 	addi    r4,r4,13135                            
ffc069dc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc069e0:	48 00 d8 89 	bl      ffc14268 <fprintf>                     
ffc069e4:	48 00 00 34 	b       ffc06a18 <IMFS_dump_directory+0x144>   
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
ffc069e8:	7f 43 d3 78 	mr      r3,r26                                 
ffc069ec:	48 00 00 08 	b       ffc069f4 <IMFS_dump_directory+0x120>   
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
ffc069f0:	7e a3 ab 78 	mr      r3,r21                                 
ffc069f4:	80 89 00 08 	lwz     r4,8(r9)                               
ffc069f8:	48 00 da 6d 	bl      ffc14464 <fputs>                       
ffc069fc:	48 00 00 24 	b       ffc06a20 <IMFS_dump_directory+0x14c>   
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", IMFS_type( the_jnode ) );     
ffc06a00:	81 3e 00 00 	lwz     r9,0(r30)                              <== NOT EXECUTED
ffc06a04:	7f 04 c3 78 	mr      r4,r24                                 <== NOT EXECUTED
ffc06a08:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc06a0c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06a10:	48 00 d8 59 	bl      ffc14268 <fprintf>                     <== NOT EXECUTED
ffc06a14:	48 00 00 0c 	b       ffc06a20 <IMFS_dump_directory+0x14c>   <== NOT EXECUTED
      return;                                                         
  }                                                                   
  puts("");                                                           
ffc06a18:	7e c3 b3 78 	mr      r3,r22                                 
ffc06a1c:	48 00 fa 21 	bl      ffc1643c <puts>                        
}                                                                     
                                                                      
static inline bool IMFS_is_directory( const IMFS_jnode_t *node )      
{                                                                     
  return node->control->imfs_type == IMFS_DIRECTORY;                  
ffc06a20:	81 3f 00 4c 	lwz     r9,76(r31)                             
    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 ) )                             
ffc06a24:	81 29 00 00 	lwz     r9,0(r9)                               
ffc06a28:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06a2c:	40 be 00 10 	bne+    cr7,ffc06a3c <IMFS_dump_directory+0x168>
      IMFS_dump_directory( the_jnode, level + 1 );                    
ffc06a30:	7f e3 fb 78 	mr      r3,r31                                 
ffc06a34:	38 9b 00 01 	addi    r4,r27,1                               
ffc06a38:	4b ff fe 9d 	bl      ffc068d4 <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 ) {                                 
ffc06a3c:	83 ff 00 00 	lwz     r31,0(r31)                             
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 ));            
ffc06a40:	39 3c 00 54 	addi    r9,r28,84                              
  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 );                    
ffc06a44:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc06a48:	40 9e fe f4 	bne+    cr7,ffc0693c <IMFS_dump_directory+0x68>
      fprintf(stdout, "...." );                                       
    IMFS_print_jnode( the_jnode );                                    
    if ( IMFS_is_directory( the_jnode ) )                             
      IMFS_dump_directory( the_jnode, level + 1 );                    
  }                                                                   
}                                                                     
ffc06a4c:	39 61 00 38 	addi    r11,r1,56                              
ffc06a50:	4b ff c9 f0 	b       ffc03440 <_restgpr_21_x>               
                                                                      

ffc0c648 <IMFS_eval_token>: rtems_filesystem_eval_path_context_t *ctx, void *arg, const char *token, size_t tokenlen ) {
ffc0c648:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0c64c:	7c 08 02 a6 	mflr    r0                                     
  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(           
ffc0c650:	38 80 00 01 	li      r4,1                                   
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
ffc0c654:	90 01 00 24 	stw     r0,36(r1)                              
ffc0c658:	bf 41 00 08 	stmw    r26,8(r1)                              
ffc0c65c:	7c bc 2b 78 	mr      r28,r5                                 
ffc0c660:	7c db 33 78 	mr      r27,r6                                 
  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;                        
ffc0c664:	83 a3 00 20 	lwz     r29,32(r3)                             
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
ffc0c668:	7c 7e 1b 78 	mr      r30,r3                                 
  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(           
ffc0c66c:	80 bd 00 30 	lwz     r5,48(r29)                             
ffc0c670:	a0 dd 00 3c 	lhz     r6,60(r29)                             
ffc0c674:	a0 fd 00 3e 	lhz     r7,62(r29)                             
ffc0c678:	48 00 0c 3d 	bl      ffc0d2b4 <rtems_filesystem_eval_path_check_access>
    dir->st_mode,                                                     
    dir->st_uid,                                                      
    dir->st_gid                                                       
  );                                                                  
                                                                      
  if ( access_ok ) {                                                  
ffc0c67c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0c680:	40 9e 00 08 	bne-    cr7,ffc0c688 <IMFS_eval_token+0x40>    
ffc0c684:	48 00 01 78 	b       ffc0c7fc <IMFS_eval_token+0x1b4>       
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
ffc0c688:	2f 9b 00 01 	cmpwi   cr7,r27,1                              
ffc0c68c:	39 20 00 00 	li      r9,0                                   
ffc0c690:	40 be 00 14 	bne+    cr7,ffc0c6a4 <IMFS_eval_token+0x5c>    
ffc0c694:	89 3c 00 00 	lbz     r9,0(r28)                              
ffc0c698:	69 29 00 2e 	xori    r9,r9,46                               
ffc0c69c:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0c6a0:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
  IMFS_jnode_t *dir,                                                  
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  if ( rtems_filesystem_is_current_directory( token, tokenlen ) ) {   
ffc0c6a4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c6a8:	40 9e 00 94 	bne-    cr7,ffc0c73c <IMFS_eval_token+0xf4>    
static inline bool rtems_filesystem_is_parent_directory(              
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 2 && token [0] == '.' && token [1] == '.';       
ffc0c6ac:	2f 9b 00 02 	cmpwi   cr7,r27,2                              
ffc0c6b0:	40 be 00 20 	bne+    cr7,ffc0c6d0 <IMFS_eval_token+0x88>    
ffc0c6b4:	89 5c 00 00 	lbz     r10,0(r28)                             
ffc0c6b8:	2f 8a 00 2e 	cmpwi   cr7,r10,46                             
ffc0c6bc:	40 be 00 14 	bne+    cr7,ffc0c6d0 <IMFS_eval_token+0x88>    
ffc0c6c0:	89 3c 00 01 	lbz     r9,1(r28)                              
ffc0c6c4:	69 29 00 2e 	xori    r9,r9,46                               
ffc0c6c8:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0c6cc:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
    return dir;                                                       
  } else {                                                            
    if ( rtems_filesystem_is_parent_directory( token, tokenlen ) ) {  
ffc0c6d0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c6d4:	41 be 00 0c 	beq+    cr7,ffc0c6e0 <IMFS_eval_token+0x98>    
      return dir->Parent;                                             
ffc0c6d8:	83 fd 00 08 	lwz     r31,8(r29)                             
ffc0c6dc:	48 00 00 54 	b       ffc0c730 <IMFS_eval_token+0xe8>        
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc0c6e0:	83 fd 00 50 	lwz     r31,80(r29)                            
    } 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 );           
ffc0c6e4:	3b 5d 00 54 	addi    r26,r29,84                             
ffc0c6e8:	48 00 00 3c 	b       ffc0c724 <IMFS_eval_token+0xdc>        
                                                                      
      while ( current != tail ) {                                     
        IMFS_jnode_t *entry = (IMFS_jnode_t *) current;               
        bool match = strncmp( entry->name, token, tokenlen ) == 0     
ffc0c6ec:	38 7f 00 0c 	addi    r3,r31,12                              
ffc0c6f0:	7f 84 e3 78 	mr      r4,r28                                 
ffc0c6f4:	7f 65 db 78 	mr      r5,r27                                 
ffc0c6f8:	48 00 4a a1 	bl      ffc11198 <strncmp>                     
          && entry->name [tokenlen] == '\0';                          
ffc0c6fc:	39 20 00 00 	li      r9,0                                   
ffc0c700:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0c704:	40 9e 00 14 	bne-    cr7,ffc0c718 <IMFS_eval_token+0xd0>    
ffc0c708:	7d 3f da 14 	add     r9,r31,r27                             
ffc0c70c:	89 29 00 0c 	lbz     r9,12(r9)                              
ffc0c710:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0c714:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
                                                                      
        if ( match ) {                                                
ffc0c718:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c71c:	40 9e 00 14 	bne-    cr7,ffc0c730 <IMFS_eval_token+0xe8>    
};                                                                    
                                                                      
void IMFS_eval_path( rtems_filesystem_eval_path_context_t *ctx )      
{                                                                     
  rtems_filesystem_eval_path_generic( ctx, NULL, &IMFS_eval_config ); 
}                                                                     
ffc0c720:	83 ff 00 00 	lwz     r31,0(r31)                             
    } 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 ) {                                     
ffc0c724:	7f 9f d0 00 	cmpw    cr7,r31,r26                            
ffc0c728:	40 9e ff c4 	bne+    cr7,ffc0c6ec <IMFS_eval_token+0xa4>    
ffc0c72c:	48 00 00 d8 	b       ffc0c804 <IMFS_eval_token+0x1bc>       
  );                                                                  
                                                                      
  if ( access_ok ) {                                                  
    IMFS_jnode_t *entry = IMFS_search_in_directory( dir, token, tokenlen );
                                                                      
    if ( entry != NULL ) {                                            
ffc0c730:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0c734:	40 be 00 0c 	bne+    cr7,ffc0c740 <IMFS_eval_token+0xf8>    
ffc0c738:	48 00 00 cc 	b       ffc0c804 <IMFS_eval_token+0x1bc>       
  IMFS_jnode_t *dir,                                                  
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  if ( rtems_filesystem_is_current_directory( token, tokenlen ) ) {   
ffc0c73c:	7f bf eb 78 	mr      r31,r29                                
  rtems_chain_extract_unprotected( &node->Node );                     
}                                                                     
                                                                      
static inline IMFS_jnode_types_t IMFS_type( const IMFS_jnode_t *node )
{                                                                     
  return node->control->imfs_type;                                    
ffc0c740:	81 3f 00 4c 	lwz     r9,76(r31)                             
                                                                      
static inline void rtems_filesystem_eval_path_clear_token(            
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  ctx->tokenlen = 0;                                                  
ffc0c744:	39 00 00 00 	li      r8,0                                   
                                                                      
  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 );    
ffc0c748:	80 7e 00 04 	lwz     r3,4(r30)                              
ffc0c74c:	81 29 00 00 	lwz     r9,0(r9)                               
ffc0c750:	7c 63 00 34 	cntlzw  r3,r3                                  
};                                                                    
                                                                      
void IMFS_eval_path( rtems_filesystem_eval_path_context_t *ctx )      
{                                                                     
  rtems_filesystem_eval_path_generic( ctx, NULL, &IMFS_eval_config ); 
}                                                                     
ffc0c754:	81 5e 00 10 	lwz     r10,16(r30)                            
      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)) {
ffc0c758:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc0c75c:	91 1e 00 0c 	stw     r8,12(r30)                             
                                                                      
  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 );    
ffc0c760:	54 63 d9 7e 	rlwinm  r3,r3,27,5,31                          
      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)) {
ffc0c764:	40 be 00 1c 	bne+    cr7,ffc0c780 <IMFS_eval_token+0x138>   
ffc0c768:	71 49 00 08 	andi.   r9,r10,8                               
ffc0c76c:	40 82 00 0c 	bne-    ffc0c778 <IMFS_eval_token+0x130>       
ffc0c770:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0c774:	40 9e 00 98 	bne-    cr7,ffc0c80c <IMFS_eval_token+0x1c4>   <== ALWAYS TAKEN
        entry = entry->info.hard_link.link_node;                      
ffc0c778:	83 ff 00 50 	lwz     r31,80(r31)                            
ffc0c77c:	48 00 00 90 	b       ffc0c80c <IMFS_eval_token+0x1c4>       
      }                                                               
                                                                      
      if ( type == IMFS_SYM_LINK && (follow_sym_link || !terminal)) { 
ffc0c780:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc0c784:	40 be 00 34 	bne+    cr7,ffc0c7b8 <IMFS_eval_token+0x170>   
ffc0c788:	71 49 00 10 	andi.   r9,r10,16                              
ffc0c78c:	40 82 00 0c 	bne-    ffc0c798 <IMFS_eval_token+0x150>       
ffc0c790:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0c794:	40 be 00 78 	bne+    cr7,ffc0c80c <IMFS_eval_token+0x1c4>   
        const char *target = entry->info.sym_link.name;               
ffc0c798:	83 ff 00 50 	lwz     r31,80(r31)                            
                                                                      
        rtems_filesystem_eval_path_recursive( ctx, target, strlen( target ) );
ffc0c79c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c7a0:	48 00 49 5d 	bl      ffc110fc <strlen>                      
ffc0c7a4:	7f e4 fb 78 	mr      r4,r31                                 
ffc0c7a8:	7c 65 1b 78 	mr      r5,r3                                  
ffc0c7ac:	7f c3 f3 78 	mr      r3,r30                                 
ffc0c7b0:	4b ff 93 29 	bl      ffc05ad8 <rtems_filesystem_eval_path_recursive>
ffc0c7b4:	48 00 00 48 	b       ffc0c7fc <IMFS_eval_token+0x1b4>       
  IMFS_jnode_types_t type                                             
)                                                                     
{                                                                     
  rtems_filesystem_global_location_t **fs_root_ptr = NULL;            
                                                                      
  if ( type == IMFS_DIRECTORY ) {                                     
ffc0c7b8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c7bc:	40 9e 00 50 	bne-    cr7,ffc0c80c <IMFS_eval_token+0x1c4>   
    if ( node->info.directory.mt_fs != NULL ) {                       
ffc0c7c0:	80 9f 00 5c 	lwz     r4,92(r31)                             
ffc0c7c4:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0c7c8:	41 9e 00 44 	beq-    cr7,ffc0c80c <IMFS_eval_token+0x1c4>   
                                                                      
          if ( !terminal ) {                                          
            status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;     
          }                                                           
        } else {                                                      
          access_ok = rtems_filesystem_eval_path_check_access(        
ffc0c7cc:	80 bf 00 30 	lwz     r5,48(r31)                             
{                                                                     
  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;          
ffc0c7d0:	3b a4 00 24 	addi    r29,r4,36                              
                                                                      
          if ( !terminal ) {                                          
            status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;     
          }                                                           
        } else {                                                      
          access_ok = rtems_filesystem_eval_path_check_access(        
ffc0c7d4:	a0 df 00 3c 	lhz     r6,60(r31)                             
ffc0c7d8:	7f c3 f3 78 	mr      r3,r30                                 
ffc0c7dc:	a0 ff 00 3e 	lhz     r7,62(r31)                             
ffc0c7e0:	38 80 00 01 	li      r4,1                                   
ffc0c7e4:	48 00 0a d1 	bl      ffc0d2b4 <rtems_filesystem_eval_path_check_access>
            RTEMS_FS_PERMS_EXEC,                                      
            entry->st_mode,                                           
            entry->st_uid,                                            
            entry->st_gid                                             
          );                                                          
          if ( access_ok ) {                                          
ffc0c7e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0c7ec:	41 be 00 10 	beq+    cr7,ffc0c7fc <IMFS_eval_token+0x1b4>   <== NEVER TAKEN
            rtems_filesystem_eval_path_restart( ctx, fs_root_ptr );   
ffc0c7f0:	7f c3 f3 78 	mr      r3,r30                                 
ffc0c7f4:	7f a4 eb 78 	mr      r4,r29                                 
ffc0c7f8:	4b ff 92 59 	bl      ffc05a50 <rtems_filesystem_eval_path_restart>
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
ffc0c7fc:	38 60 00 01 	li      r3,1                                   
ffc0c800:	48 00 00 34 	b       ffc0c834 <IMFS_eval_token+0x1ec>       
            rtems_filesystem_eval_path_restart( ctx, fs_root_ptr );   
          }                                                           
        }                                                             
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
ffc0c804:	38 60 00 02 	li      r3,2                                   
ffc0c808:	48 00 00 2c 	b       ffc0c834 <IMFS_eval_token+0x1ec>       
      } else {                                                        
        rtems_filesystem_global_location_t **fs_root_ptr =            
          IMFS_is_mount_point( entry, type );                         
                                                                      
        if ( fs_root_ptr == NULL ) {                                  
          --dir->reference_count;                                     
ffc0c80c:	a1 3d 00 34 	lhz     r9,52(r29)                             
ffc0c810:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0c814:	b1 3d 00 34 	sth     r9,52(r29)                             
          ++entry->reference_count;                                   
ffc0c818:	a1 3f 00 34 	lhz     r9,52(r31)                             
ffc0c81c:	39 29 00 01 	addi    r9,r9,1                                
ffc0c820:	b1 3f 00 34 	sth     r9,52(r31)                             
                                                                      
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;                            
ffc0c824:	81 3f 00 4c 	lwz     r9,76(r31)                             
          currentloc->node_access = entry;                            
ffc0c828:	93 fe 00 20 	stw     r31,32(r30)                            
ffc0c82c:	81 29 00 04 	lwz     r9,4(r9)                               
ffc0c830:	91 3e 00 28 	stw     r9,40(r30)                             
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc0c834:	39 61 00 20 	addi    r11,r1,32                              
ffc0c838:	4b ff 3d 78 	b       ffc005b0 <_restgpr_26_x>               
                                                                      

ffc045d8 <IMFS_fifo_write>: static ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
ffc045d8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc045dc:	7c 08 02 a6 	mflr    r0                                     
ffc045e0:	7c 66 1b 78 	mr      r6,r3                                  
ffc045e4:	90 01 00 24 	stw     r0,36(r1)                              
ffc045e8:	bf c1 00 18 	stmw    r30,24(r1)                             
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
ffc045ec:	83 e3 00 1c 	lwz     r31,28(r3)                             
                                                                      
  int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);        
ffc045f0:	80 7f 00 50 	lwz     r3,80(r31)                             
ffc045f4:	48 00 a8 69 	bl      ffc0ee5c <pipe_write>                  
  if (err > 0) {                                                      
ffc045f8:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc045fc:	40 81 00 20 	ble-    ffc0461c <IMFS_fifo_write+0x44>        
    IMFS_mtime_ctime_update(jnode);                                   
ffc04600:	38 61 00 08 	addi    r3,r1,8                                
ffc04604:	38 80 00 00 	li      r4,0                                   
ffc04608:	48 00 0f 71 	bl      ffc05578 <gettimeofday>                
ffc0460c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc04610:	91 3f 00 44 	stw     r9,68(r31)                             
ffc04614:	91 3f 00 48 	stw     r9,72(r31)                             
ffc04618:	48 00 00 18 	b       ffc04630 <IMFS_fifo_write+0x58>        
  }                                                                   
                                                                      
  IMFS_FIFO_RETURN(err);                                              
ffc0461c:	41 a2 00 14 	beq+    ffc04630 <IMFS_fifo_write+0x58>        <== NEVER TAKEN
ffc04620:	7f de 00 d0 	neg     r30,r30                                
ffc04624:	48 00 c8 81 	bl      ffc10ea4 <__errno>                     
ffc04628:	93 c3 00 00 	stw     r30,0(r3)                              
ffc0462c:	3b c0 ff ff 	li      r30,-1                                 
}                                                                     
ffc04630:	39 61 00 20 	addi    r11,r1,32                              
ffc04634:	7f c3 f3 78 	mr      r3,r30                                 
ffc04638:	48 01 b1 54 	b       ffc1f78c <_restgpr_30_x>               
                                                                      

ffc0c898 <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 ) {
ffc0c898:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc0c89c:	7c 08 02 a6 	mflr    r0                                     
ffc0c8a0:	90 01 00 3c 	stw     r0,60(r1)                              
   /*                                                                 
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   loc = temp_mt_entry->mt_fs_root->location;                         
ffc0c8a4:	38 81 00 08 	addi    r4,r1,8                                
ffc0c8a8:	80 63 00 24 	lwz     r3,36(r3)                              
    ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next))
                                                                      
void IMFS_fsunmount(                                                  
  rtems_filesystem_mount_table_entry_t *temp_mt_entry                 
)                                                                     
{                                                                     
ffc0c8ac:	bf a1 00 2c 	stmw    r29,44(r1)                             
     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 );                            
ffc0c8b0:	7c 9d 23 78 	mr      r29,r4                                 
   /*                                                                 
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   loc = temp_mt_entry->mt_fs_root->location;                         
ffc0c8b4:	7c a3 c4 aa 	lswi    r5,r3,24                               
ffc0c8b8:	7c a4 c5 aa 	stswi   r5,r4,24                               
                                                                      
   /*                                                                 
    *  Set this to null to indicate that it is being unmounted.       
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root->location.node_access = NULL;            
ffc0c8bc:	39 20 00 00 	li      r9,0                                   
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   loc = temp_mt_entry->mt_fs_root->location;                         
   jnode = (IMFS_jnode_t *)loc.node_access;                           
ffc0c8c0:	83 e1 00 10 	lwz     r31,16(r1)                             
                                                                      
   /*                                                                 
    *  Set this to null to indicate that it is being unmounted.       
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root->location.node_access = NULL;            
ffc0c8c4:	91 23 00 08 	stw     r9,8(r3)                               
ffc0c8c8:	48 00 00 08 	b       ffc0c8d0 <IMFS_fsunmount+0x38>         
       if ( IMFS_is_directory( jnode ) ) {                            
         if ( jnode_has_children( jnode ) )                           
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
ffc0c8cc:	7d 3f 4b 78 	mr      r31,r9                                 
ffc0c8d0:	81 3f 00 4c 	lwz     r9,76(r31)                             
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root->location.node_access = NULL;            
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
ffc0c8d4:	83 df 00 08 	lwz     r30,8(r31)                             
ffc0c8d8:	81 49 00 04 	lwz     r10,4(r9)                              
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
                                                                      
     if ( !IMFS_is_directory( jnode ) || jnode_has_no_children( jnode ) ) {
ffc0c8dc:	81 29 00 00 	lwz     r9,0(r9)                               
                                                                      
   temp_mt_entry->mt_fs_root->location.node_access = NULL;            
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
     loc.node_access = (void *)jnode;                                 
ffc0c8e0:	93 e1 00 10 	stw     r31,16(r1)                             
     IMFS_Set_handlers( &loc );                                       
                                                                      
     if ( !IMFS_is_directory( jnode ) || jnode_has_no_children( jnode ) ) {
ffc0c8e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c8e8:	91 41 00 18 	stw     r10,24(r1)                             
ffc0c8ec:	40 9e 00 14 	bne-    cr7,ffc0c900 <IMFS_fsunmount+0x68>     
ffc0c8f0:	81 3f 00 50 	lwz     r9,80(r31)                             
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0c8f4:	39 5f 00 54 	addi    r10,r31,84                             
ffc0c8f8:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0c8fc:	40 be 00 38 	bne+    cr7,ffc0c934 <IMFS_fsunmount+0x9c>     
        result = IMFS_rmnod( NULL, &loc );                            
ffc0c900:	38 60 00 00 	li      r3,0                                   
ffc0c904:	7f a4 eb 78 	mr      r4,r29                                 
ffc0c908:	4b ff 75 c5 	bl      ffc03ecc <IMFS_rmnod>                  
        if ( result != 0 )                                            
ffc0c90c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0c910:	41 be 00 10 	beq+    cr7,ffc0c920 <IMFS_fsunmount+0x88>     <== ALWAYS TAKEN
	  rtems_fatal_error_occurred( 0xdeadbeef );                          
ffc0c914:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc0c918:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc0c91c:	4b ff c7 55 	bl      ffc09070 <rtems_fatal_error_occurred>  <== NOT EXECUTED
        IMFS_node_destroy( jnode );                                   
ffc0c920:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c924:	4b ff 72 39 	bl      ffc03b5c <IMFS_node_destroy>           
        jnode = next;                                                 
     }                                                                
     if ( jnode != NULL ) {                                           
ffc0c928:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0c92c:	41 9e 00 30 	beq-    cr7,ffc0c95c <IMFS_fsunmount+0xc4>     
ffc0c930:	7f df f3 78 	mr      r31,r30                                
  return node->control->imfs_type;                                    
}                                                                     
                                                                      
static inline bool IMFS_is_directory( const IMFS_jnode_t *node )      
{                                                                     
  return node->control->imfs_type == IMFS_DIRECTORY;                  
ffc0c934:	81 3f 00 4c 	lwz     r9,76(r31)                             
       if ( IMFS_is_directory( jnode ) ) {                            
ffc0c938:	81 29 00 00 	lwz     r9,0(r9)                               
ffc0c93c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c940:	40 be ff 90 	bne-    cr7,ffc0c8d0 <IMFS_fsunmount+0x38>     <== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0c944:	81 3f 00 50 	lwz     r9,80(r31)                             
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0c948:	39 5f 00 54 	addi    r10,r31,84                             
         if ( jnode_has_children( jnode ) )                           
ffc0c94c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0c950:	41 be ff 80 	beq-    cr7,ffc0c8d0 <IMFS_fsunmount+0x38>     
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
ffc0c954:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c958:	40 9e ff 74 	bne+    cr7,ffc0c8cc <IMFS_fsunmount+0x34>     <== ALWAYS TAKEN
}                                                                     
ffc0c95c:	39 61 00 38 	addi    r11,r1,56                              
ffc0c960:	4b ff 3c 5c 	b       ffc005bc <_restgpr_29_x>               
                                                                      

ffc03a4c <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] ) {
ffc03a4c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc03a50:	7c 08 02 a6 	mflr    r0                                     
ffc03a54:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc03a58:	7c 7f 1b 78 	mr      r31,r3                                 
ffc03a5c:	7c 9d 23 78 	mr      r29,r4                                 
  static int imfs_instance;                                           
                                                                      
  int rv = 0;                                                         
  IMFS_fs_info_t *fs_info = calloc( 1, sizeof( *fs_info ) );          
ffc03a60:	38 60 00 01 	li      r3,1                                   
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]      
)                                                                     
{                                                                     
ffc03a64:	90 01 00 1c 	stw     r0,28(r1)                              
  static int imfs_instance;                                           
                                                                      
  int rv = 0;                                                         
  IMFS_fs_info_t *fs_info = calloc( 1, sizeof( *fs_info ) );          
ffc03a68:	38 80 00 24 	li      r4,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]      
)                                                                     
{                                                                     
ffc03a6c:	7c bc 2b 78 	mr      r28,r5                                 
  static int imfs_instance;                                           
                                                                      
  int rv = 0;                                                         
  IMFS_fs_info_t *fs_info = calloc( 1, sizeof( *fs_info ) );          
ffc03a70:	48 00 07 91 	bl      ffc04200 <calloc>                      
                                                                      
  if ( fs_info != NULL ) {                                            
ffc03a74:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc03a78:	41 82 00 88 	beq-    ffc03b00 <IMFS_initialize_support+0xb4>
    IMFS_jnode_t *root_node;                                          
                                                                      
    fs_info->instance = imfs_instance++;                              
ffc03a7c:	3d 40 00 00 	lis     r10,0                                  
ffc03a80:	81 2a 28 b4 	lwz     r9,10420(r10)                          
    memcpy(                                                           
      fs_info->node_controls,                                         
ffc03a84:	38 9e 00 08 	addi    r4,r30,8                               
  IMFS_fs_info_t *fs_info = calloc( 1, sizeof( *fs_info ) );          
                                                                      
  if ( fs_info != NULL ) {                                            
    IMFS_jnode_t *root_node;                                          
                                                                      
    fs_info->instance = imfs_instance++;                              
ffc03a88:	91 3e 00 00 	stw     r9,0(r30)                              
ffc03a8c:	39 29 00 01 	addi    r9,r9,1                                
ffc03a90:	91 2a 28 b4 	stw     r9,10420(r10)                          
    memcpy(                                                           
ffc03a94:	7c bc e4 aa 	lswi    r5,r28,28                              
ffc03a98:	7c a4 e5 aa 	stswi   r5,r4,28                               
      fs_info->node_controls,                                         
      node_controls,                                                  
      sizeof( fs_info->node_controls )                                
    );                                                                
                                                                      
    root_node = IMFS_allocate_node(                                   
ffc03a9c:	3c a0 ff c2 	lis     r5,-62                                 
ffc03aa0:	38 a5 be c1 	addi    r5,r5,-16703                           
ffc03aa4:	80 9e 00 08 	lwz     r4,8(r30)                              
ffc03aa8:	38 c0 00 00 	li      r6,0                                   
ffc03aac:	38 e0 41 ed 	li      r7,16877                               
ffc03ab0:	39 00 00 00 	li      r8,0                                   
ffc03ab4:	48 00 8a 41 	bl      ffc0c4f4 <IMFS_allocate_node>          
      "",                                                             
      0,                                                              
      (S_IFDIR | 0755),                                               
      NULL                                                            
    );                                                                
    if ( root_node != NULL ) {                                        
ffc03ab8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc03abc:	41 82 00 44 	beq-    ffc03b00 <IMFS_initialize_support+0xb4><== NEVER TAKEN
                                                                      
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;                            
ffc03ac0:	81 43 00 4c 	lwz     r10,76(r3)                             
      mt_entry->fs_info = fs_info;                                    
      mt_entry->ops = op_table;                                       
      mt_entry->pathconf_limits_and_options = &IMFS_LIMITS_AND_OPTIONS;
ffc03ac4:	3d 20 ff c2 	lis     r9,-62                                 
ffc03ac8:	39 29 bf fc 	addi    r9,r9,-16388                           
      0,                                                              
      (S_IFDIR | 0755),                                               
      NULL                                                            
    );                                                                
    if ( root_node != NULL ) {                                        
      mt_entry->fs_info = fs_info;                                    
ffc03acc:	93 df 00 08 	stw     r30,8(r31)                             
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
ffc03ad0:	39 00 00 06 	li      r8,6                                   
      NULL                                                            
    );                                                                
    if ( root_node != NULL ) {                                        
      mt_entry->fs_info = fs_info;                                    
      mt_entry->ops = op_table;                                       
      mt_entry->pathconf_limits_and_options = &IMFS_LIMITS_AND_OPTIONS;
ffc03ad4:	91 3f 00 2c 	stw     r9,44(r31)                             
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
ffc03ad8:	7d 09 03 a6 	mtctr   r8                                     
    );                                                                
    if ( root_node != NULL ) {                                        
      mt_entry->fs_info = fs_info;                                    
      mt_entry->ops = op_table;                                       
      mt_entry->pathconf_limits_and_options = &IMFS_LIMITS_AND_OPTIONS;
      mt_entry->mt_fs_root->location.node_access = root_node;         
ffc03adc:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc03ae0:	81 4a 00 04 	lwz     r10,4(r10)                             
      (S_IFDIR | 0755),                                               
      NULL                                                            
    );                                                                
    if ( root_node != NULL ) {                                        
      mt_entry->fs_info = fs_info;                                    
      mt_entry->ops = op_table;                                       
ffc03ae4:	93 bf 00 0c 	stw     r29,12(r31)                            
ffc03ae8:	91 49 00 10 	stw     r10,16(r9)                             
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
ffc03aec:	39 40 00 10 	li      r10,16                                 
    );                                                                
    if ( root_node != NULL ) {                                        
      mt_entry->fs_info = fs_info;                                    
      mt_entry->ops = op_table;                                       
      mt_entry->pathconf_limits_and_options = &IMFS_LIMITS_AND_OPTIONS;
      mt_entry->mt_fs_root->location.node_access = root_node;         
ffc03af0:	90 69 00 08 	stw     r3,8(r9)                               
    errno = ENOMEM;                                                   
    rv = -1;                                                          
  }                                                                   
                                                                      
  if ( rv == 0 ) {                                                    
    IMFS_determine_bytes_per_block(                                   
ffc03af4:	3d 20 00 00 	lis     r9,0                                   
ffc03af8:	81 29 27 54 	lwz     r9,10068(r9)                           
ffc03afc:	48 00 00 14 	b       ffc03b10 <IMFS_initialize_support+0xc4>
    } else {                                                          
      errno = ENOMEM;                                                 
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    errno = ENOMEM;                                                   
ffc03b00:	48 00 bd 39 	bl      ffc0f838 <__errno>                     
ffc03b04:	39 20 00 0c 	li      r9,12                                  
ffc03b08:	91 23 00 00 	stw     r9,0(r3)                               
ffc03b0c:	48 00 00 2c 	b       ffc03b38 <IMFS_initialize_support+0xec>
                                                                      
  /*                                                                  
   * 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) {                      
ffc03b10:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc03b14:	41 9e 00 14 	beq-    cr7,ffc03b28 <IMFS_initialize_support+0xdc>
      is_valid = true;                                                
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
ffc03b18:	41 9d 00 0c 	bgt-    cr7,ffc03b24 <IMFS_initialize_support+0xd8>
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
ffc03b1c:	55 4a 08 3c 	rlwinm  r10,r10,1,0,30                         
ffc03b20:	42 00 ff f0 	bdnz+   ffc03b10 <IMFS_initialize_support+0xc4>
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
			   ? requested_bytes_per_block                                     
			   : default_bytes_per_block);                                     
ffc03b24:	39 20 00 80 	li      r9,128                                 
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
ffc03b28:	3d 40 00 00 	lis     r10,0                                  
ffc03b2c:	91 2a 28 00 	stw     r9,10240(r10)                          
  const IMFS_node_control *const node_controls [IMFS_TYPE_COUNT]      
)                                                                     
{                                                                     
  static int imfs_instance;                                           
                                                                      
  int rv = 0;                                                         
ffc03b30:	38 60 00 00 	li      r3,0                                   
ffc03b34:	48 00 00 08 	b       ffc03b3c <IMFS_initialize_support+0xf0>
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
			   ? requested_bytes_per_block                                     
			   : default_bytes_per_block);                                     
ffc03b38:	38 60 ff ff 	li      r3,-1                                  
      IMFS_MEMFILE_DEFAULT_BYTES_PER_BLOCK                            
    );                                                                
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc03b3c:	39 61 00 18 	addi    r11,r1,24                              
ffc03b40:	4b ff ca 78 	b       ffc005b8 <_restgpr_28_x>               
                                                                      

ffc05718 <IMFS_make_generic_node>: const char *path, mode_t mode, const IMFS_node_control *node_control, void *context ) {
ffc05718:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc0571c:	7c 08 02 a6 	mflr    r0                                     
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
ffc05720:	3d 20 00 00 	lis     r9,0                                   
ffc05724:	81 29 27 50 	lwz     r9,10064(r9)                           
  const char *path,                                                   
  mode_t mode,                                                        
  const IMFS_node_control *node_control,                              
  void *context                                                       
)                                                                     
{                                                                     
ffc05728:	7c 6a 1b 78 	mr      r10,r3                                 
ffc0572c:	90 01 00 7c 	stw     r0,124(r1)                             
ffc05730:	bf 81 00 68 	stmw    r28,104(r1)                            
ffc05734:	7c bf 2b 78 	mr      r31,r5                                 
ffc05738:	7c dc 33 78 	mr      r28,r6                                 
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
ffc0573c:	83 a9 00 08 	lwz     r29,8(r9)                              
ffc05740:	7c 9d e8 78 	andc    r29,r4,r29                             
                                                                      
  switch (mode & S_IFMT) {                                            
ffc05744:	57 a9 04 26 	rlwinm  r9,r29,0,16,19                         
ffc05748:	2f 89 20 00 	cmpwi   cr7,r9,8192                            
ffc0574c:	41 9e 00 e0 	beq-    cr7,ffc0582c <IMFS_make_generic_node+0x114>
ffc05750:	2b 89 20 00 	cmplwi  cr7,r9,8192                            
ffc05754:	41 9d 00 0c 	bgt-    cr7,ffc05760 <IMFS_make_generic_node+0x48><== ALWAYS TAKEN
ffc05758:	2f 89 10 00 	cmpwi   cr7,r9,4096                            <== NOT EXECUTED
ffc0575c:	48 00 00 18 	b       ffc05774 <IMFS_make_generic_node+0x5c> <== NOT EXECUTED
ffc05760:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc05764:	41 9e 00 c8 	beq-    cr7,ffc0582c <IMFS_make_generic_node+0x114>
ffc05768:	39 00 00 00 	li      r8,0                                   
ffc0576c:	61 08 80 00 	ori     r8,r8,32768                            
ffc05770:	7f 89 40 00 	cmpw    cr7,r9,r8                              
ffc05774:	41 9e 00 b8 	beq-    cr7,ffc0582c <IMFS_make_generic_node+0x114><== NEVER TAKEN
ffc05778:	48 00 00 a0 	b       ffc05818 <IMFS_make_generic_node+0x100>
    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 =            
ffc0577c:	7d 44 53 78 	mr      r4,r10                                 
ffc05780:	38 a0 00 78 	li      r5,120                                 
ffc05784:	38 61 00 08 	addi    r3,r1,8                                
ffc05788:	48 00 20 21 	bl      ffc077a8 <rtems_filesystem_eval_path_start>
ffc0578c:	7c 7e 1b 78 	mr      r30,r3                                 
        rtems_filesystem_eval_path_start( &ctx, path, eval_flags );   
                                                                      
      if ( IMFS_is_imfs_instance( currentloc ) ) {                    
ffc05790:	4b ff ff 2d 	bl      ffc056bc <IMFS_is_imfs_instance>       
ffc05794:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05798:	41 9e 00 64 	beq-    cr7,ffc057fc <IMFS_make_generic_node+0xe4>
        IMFS_types_union info;                                        
        IMFS_jnode_t *new_node;                                       
                                                                      
        info.generic.context = context;                               
        new_node = IMFS_create_node_with_control(                     
ffc0579c:	80 a1 00 10 	lwz     r5,16(r1)                              
ffc057a0:	7f e4 fb 78 	mr      r4,r31                                 
ffc057a4:	80 c1 00 14 	lwz     r6,20(r1)                              
ffc057a8:	7f c3 f3 78 	mr      r3,r30                                 
ffc057ac:	7f a7 eb 78 	mr      r7,r29                                 
                                                                      
      if ( IMFS_is_imfs_instance( currentloc ) ) {                    
        IMFS_types_union info;                                        
        IMFS_jnode_t *new_node;                                       
                                                                      
        info.generic.context = context;                               
ffc057b0:	93 81 00 40 	stw     r28,64(r1)                             
        new_node = IMFS_create_node_with_control(                     
ffc057b4:	39 01 00 40 	addi    r8,r1,64                               
ffc057b8:	48 00 b7 7d 	bl      ffc10f34 <IMFS_create_node_with_control>
          IMFS_jnode_t *parent = currentloc->node_access;             
                                                                      
          IMFS_update_ctime( parent );                                
          IMFS_update_mtime( parent );                                
        } else {                                                      
          rv = -1;                                                    
ffc057bc:	3b e0 ff ff 	li      r31,-1                                 
          rtems_filesystem_eval_path_get_tokenlen( &ctx ),            
          mode,                                                       
          &info                                                       
        );                                                            
                                                                      
        if ( new_node != NULL ) {                                     
ffc057c0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc057c4:	41 9e 00 48 	beq-    cr7,ffc0580c <IMFS_make_generic_node+0xf4>
          IMFS_jnode_t *parent = currentloc->node_access;             
                                                                      
          IMFS_update_ctime( parent );                                
ffc057c8:	38 80 00 00 	li      r4,0                                   
          mode,                                                       
          &info                                                       
        );                                                            
                                                                      
        if ( new_node != NULL ) {                                     
          IMFS_jnode_t *parent = currentloc->node_access;             
ffc057cc:	83 fe 00 08 	lwz     r31,8(r30)                             
                                                                      
          IMFS_update_ctime( parent );                                
ffc057d0:	38 61 00 58 	addi    r3,r1,88                               
ffc057d4:	48 00 08 f5 	bl      ffc060c8 <gettimeofday>                
ffc057d8:	81 21 00 58 	lwz     r9,88(r1)                              
          IMFS_update_mtime( parent );                                
ffc057dc:	38 61 00 58 	addi    r3,r1,88                               
        );                                                            
                                                                      
        if ( new_node != NULL ) {                                     
          IMFS_jnode_t *parent = currentloc->node_access;             
                                                                      
          IMFS_update_ctime( parent );                                
ffc057e0:	91 3f 00 48 	stw     r9,72(r31)                             
          IMFS_update_mtime( parent );                                
ffc057e4:	38 80 00 00 	li      r4,0                                   
ffc057e8:	48 00 08 e1 	bl      ffc060c8 <gettimeofday>                
ffc057ec:	81 21 00 58 	lwz     r9,88(r1)                              
ffc057f0:	91 3f 00 44 	stw     r9,68(r31)                             
ffc057f4:	3b e0 00 00 	li      r31,0                                  
ffc057f8:	48 00 00 14 	b       ffc0580c <IMFS_make_generic_node+0xf4> 
        } else {                                                      
          rv = -1;                                                    
        }                                                             
      } else {                                                        
        rtems_filesystem_eval_path_error( &ctx, ENOTSUP );            
ffc057fc:	38 61 00 08 	addi    r3,r1,8                                
ffc05800:	38 80 00 86 	li      r4,134                                 
ffc05804:	48 00 1c 85 	bl      ffc07488 <rtems_filesystem_eval_path_error>
        rv = -1;                                                      
ffc05808:	3b e0 ff ff 	li      r31,-1                                 
      }                                                               
                                                                      
      rtems_filesystem_eval_path_cleanup( &ctx );                     
ffc0580c:	38 61 00 08 	addi    r3,r1,8                                
ffc05810:	48 00 20 c1 	bl      ffc078d0 <rtems_filesystem_eval_path_cleanup>
ffc05814:	48 00 00 28 	b       ffc0583c <IMFS_make_generic_node+0x124>
    } else {                                                          
      errno = EINVAL;                                                 
ffc05818:	48 00 ea cd 	bl      ffc142e4 <__errno>                     
ffc0581c:	39 20 00 16 	li      r9,22                                  
ffc05820:	91 23 00 00 	stw     r9,0(r3)                               
      rv = -1;                                                        
ffc05824:	3b e0 ff ff 	li      r31,-1                                 
ffc05828:	48 00 00 14 	b       ffc0583c <IMFS_make_generic_node+0x124>
      rv = -1;                                                        
      break;                                                          
  }                                                                   
                                                                      
  if ( rv == 0 ) {                                                    
    if ( node_control->imfs_type == IMFS_GENERIC ) {                  
ffc0582c:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc05830:	2f 89 00 07 	cmpwi   cr7,r9,7                               
ffc05834:	41 9e ff 48 	beq+    cr7,ffc0577c <IMFS_make_generic_node+0x64>
ffc05838:	4b ff ff e0 	b       ffc05818 <IMFS_make_generic_node+0x100>
      rv = -1;                                                        
    }                                                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0583c:	39 61 00 78 	addi    r11,r1,120                             
ffc05840:	7f e3 fb 78 	mr      r3,r31                                 
ffc05844:	4b ff b8 e4 	b       ffc01128 <_restgpr_28_x>               
                                                                      

ffc0e7a0 <IMFS_memfile_addblock>: */ MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) {
ffc0e7a0:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0e7a4:	7c 08 02 a6 	mflr    r0                                     
ffc0e7a8:	94 21 ff f0 	stwu    r1,-16(r1)                             
  IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );          
                                                                      
  /*                                                                  
   * Obtain the pointer for the specified block number                
   */                                                                 
  block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 );
ffc0e7ac:	38 a0 00 01 	li      r5,1                                   
 */                                                                   
MEMFILE_STATIC int IMFS_memfile_addblock(                             
   IMFS_jnode_t  *the_jnode,                                          
   unsigned int   block                                               
)                                                                     
{                                                                     
ffc0e7b0:	48 00 b8 99 	bl      ffc1a048 <_savegpr_31>                 
ffc0e7b4:	90 01 00 14 	stw     r0,20(r1)                              
  IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );          
                                                                      
  /*                                                                  
   * Obtain the pointer for the specified block number                
   */                                                                 
  block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 );
ffc0e7b8:	4b ff fb 91 	bl      ffc0e348 <IMFS_memfile_get_block_pointer>
  if ( *block_entry_ptr )                                             
ffc0e7bc:	81 23 00 00 	lwz     r9,0(r3)                               
  IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );          
                                                                      
  /*                                                                  
   * Obtain the pointer for the specified block number                
   */                                                                 
  block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 );
ffc0e7c0:	7c 7f 1b 78 	mr      r31,r3                                 
  if ( *block_entry_ptr )                                             
ffc0e7c4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e7c8:	40 be 00 14 	bne+    cr7,ffc0e7dc <IMFS_memfile_addblock+0x3c>
    return 0;                                                         
                                                                      
  /*                                                                  
   *  There is no memory for this block number so allocate it.        
   */                                                                 
  memory = memfile_alloc_block();                                     
ffc0e7cc:	4b ff fb 39 	bl      ffc0e304 <memfile_alloc_block>         
  if ( !memory )                                                      
ffc0e7d0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0e7d4:	41 82 00 10 	beq-    ffc0e7e4 <IMFS_memfile_addblock+0x44>  <== NEVER TAKEN
    return 1;                                                         
                                                                      
  *block_entry_ptr = memory;                                          
ffc0e7d8:	90 7f 00 00 	stw     r3,0(r31)                              
  /*                                                                  
   * Obtain the pointer for the specified block number                
   */                                                                 
  block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 );
  if ( *block_entry_ptr )                                             
    return 0;                                                         
ffc0e7dc:	38 60 00 00 	li      r3,0                                   
ffc0e7e0:	48 00 00 08 	b       ffc0e7e8 <IMFS_memfile_addblock+0x48>  
  /*                                                                  
   *  There is no memory for this block number so allocate it.        
   */                                                                 
  memory = memfile_alloc_block();                                     
  if ( !memory )                                                      
    return 1;                                                         
ffc0e7e4:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
                                                                      
  *block_entry_ptr = memory;                                          
  return 0;                                                           
}                                                                     
ffc0e7e8:	39 61 00 10 	addi    r11,r1,16                              
ffc0e7ec:	4b ff 1d d8 	b       ffc005c4 <_restgpr_31_x>               
                                                                      

ffc0e9f0 <IMFS_memfile_extend>: MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, bool zero_fill, off_t new_length ) {
ffc0e9f0:	94 21 ff c0 	stwu    r1,-64(r1)                             
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc0e9f4:	3d 20 00 00 	lis     r9,0                                   
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   bool           zero_fill,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
ffc0e9f8:	7d 80 00 26 	mfcr    r12                                    
ffc0e9fc:	be e1 00 1c 	stmw    r23,28(r1)                             
ffc0ea00:	7c 08 02 a6 	mflr    r0                                     
ffc0ea04:	7c 7f 1b 78 	mr      r31,r3                                 
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc0ea08:	83 c9 28 00 	lwz     r30,10240(r9)                          
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   bool           zero_fill,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
ffc0ea0c:	7c 97 23 78 	mr      r23,r4                                 
ffc0ea10:	90 01 00 44 	stw     r0,68(r1)                              
ffc0ea14:	7c bc 2b 78 	mr      r28,r5                                 
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc0ea18:	57 c9 f0 be 	rlwinm  r9,r30,30,2,31                         
ffc0ea1c:	39 49 00 01 	addi    r10,r9,1                               
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   bool           zero_fill,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
ffc0ea20:	91 81 00 18 	stw     r12,24(r1)                             
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc0ea24:	7d 4a 49 d6 	mullw   r10,r10,r9                             
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   bool           zero_fill,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
ffc0ea28:	7c dd 33 78 	mr      r29,r6                                 
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc0ea2c:	39 4a 00 01 	addi    r10,r10,1                              
ffc0ea30:	7d 2a 49 d6 	mullw   r9,r10,r9                              
ffc0ea34:	39 40 00 00 	li      r10,0                                  
ffc0ea38:	7f 8a 28 00 	cmpw    cr7,r10,r5                             
ffc0ea3c:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0ea40:	7d 29 f1 d6 	mullw   r9,r9,r30                              
ffc0ea44:	41 bd 00 1c 	bgt+    cr7,ffc0ea60 <IMFS_memfile_extend+0x70><== NEVER TAKEN
ffc0ea48:	40 9e 00 0c 	bne-    cr7,ffc0ea54 <IMFS_memfile_extend+0x64><== NEVER TAKEN
ffc0ea4c:	7f 89 30 40 	cmplw   cr7,r9,r6                              
ffc0ea50:	41 bd 00 10 	bgt+    cr7,ffc0ea60 <IMFS_memfile_extend+0x70>
    rtems_set_errno_and_return_minus_one( EFBIG );                    
ffc0ea54:	48 00 0d e5 	bl      ffc0f838 <__errno>                     
ffc0ea58:	39 20 00 1b 	li      r9,27                                  
ffc0ea5c:	48 00 00 d8 	b       ffc0eb34 <IMFS_memfile_extend+0x144>   
                                                                      
  /*                                                                  
   *  Verify new file size is actually larger than current size       
   */                                                                 
  if ( new_length <= the_jnode->info.file.size )                      
ffc0ea60:	83 3f 00 50 	lwz     r25,80(r31)                            
ffc0ea64:	83 5f 00 54 	lwz     r26,84(r31)                            
ffc0ea68:	7f 9c c8 00 	cmpw    cr7,r28,r25                            
ffc0ea6c:	41 bd 00 10 	bgt+    cr7,ffc0ea7c <IMFS_memfile_extend+0x8c><== NEVER TAKEN
ffc0ea70:	40 9e 01 0c 	bne-    cr7,ffc0eb7c <IMFS_memfile_extend+0x18c><== NEVER TAKEN
ffc0ea74:	7f 9d d0 40 	cmplw   cr7,r29,r26                            
ffc0ea78:	40 9d 01 04 	ble-    cr7,ffc0eb7c <IMFS_memfile_extend+0x18c><== NEVER TAKEN
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
ffc0ea7c:	7f db fe 70 	srawi   r27,r30,31                             
ffc0ea80:	7f 65 db 78 	mr      r5,r27                                 
ffc0ea84:	7f c6 f3 78 	mr      r6,r30                                 
ffc0ea88:	7f 83 e3 78 	mr      r3,r28                                 
ffc0ea8c:	7f a4 eb 78 	mr      r4,r29                                 
ffc0ea90:	48 00 a6 31 	bl      ffc190c0 <__divdi3>                    
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc0ea94:	7f 23 cb 78 	mr      r3,r25                                 
ffc0ea98:	7f 65 db 78 	mr      r5,r27                                 
ffc0ea9c:	7f c6 f3 78 	mr      r6,r30                                 
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
ffc0eaa0:	7c 98 23 78 	mr      r24,r4                                 
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc0eaa4:	7f 44 d3 78 	mr      r4,r26                                 
ffc0eaa8:	48 00 a6 19 	bl      ffc190c0 <__divdi3>                    
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
    if ( !IMFS_memfile_addblock( the_jnode, block ) ) {               
       if ( zero_fill ) {                                             
ffc0eaac:	2e 17 00 00 	cmpwi   cr4,r23,0                              
  /*                                                                  
   *  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;
  offset = the_jnode->info.file.size - old_blocks * IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc0eab0:	7f c4 f1 d6 	mullw   r30,r4,r30                             
                                                                      
  /*                                                                  
   *  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;
ffc0eab4:	7c 9b 23 78 	mr      r27,r4                                 
  offset = the_jnode->info.file.size - old_blocks * IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc0eab8:	7f 5e d0 50 	subf    r26,r30,r26                            
   *  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;       
ffc0eabc:	3f 20 00 00 	lis     r25,0                                  
  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++ ) {            
ffc0eac0:	7c 9e 23 78 	mr      r30,r4                                 
ffc0eac4:	48 00 00 80 	b       ffc0eb44 <IMFS_memfile_extend+0x154>   
    if ( !IMFS_memfile_addblock( the_jnode, block ) ) {               
ffc0eac8:	7f e3 fb 78 	mr      r3,r31                                 
ffc0eacc:	7f c4 f3 78 	mr      r4,r30                                 
ffc0ead0:	4b ff fc d1 	bl      ffc0e7a0 <IMFS_memfile_addblock>       
ffc0ead4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ead8:	40 9e 00 4c 	bne-    cr7,ffc0eb24 <IMFS_memfile_extend+0x134><== NEVER TAKEN
       if ( zero_fill ) {                                             
ffc0eadc:	41 b2 00 64 	beq+    cr4,ffc0eb40 <IMFS_memfile_extend+0x150>
          size_t count = IMFS_MEMFILE_BYTES_PER_BLOCK - offset;       
          block_p *block_ptr =                                        
ffc0eae0:	7f c4 f3 78 	mr      r4,r30                                 
   *  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;       
ffc0eae4:	82 f9 28 00 	lwz     r23,10240(r25)                         
          block_p *block_ptr =                                        
ffc0eae8:	38 a0 00 00 	li      r5,0                                   
ffc0eaec:	7f e3 fb 78 	mr      r3,r31                                 
ffc0eaf0:	4b ff f8 59 	bl      ffc0e348 <IMFS_memfile_get_block_pointer>
   *  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;       
ffc0eaf4:	7e fa b8 50 	subf    r23,r26,r23                            
          block_p *block_ptr =                                        
            IMFS_memfile_get_block_pointer( the_jnode, block, 0 );    
                                                                      
          memset( &(*block_ptr) [offset], 0, count);                  
ffc0eaf8:	80 63 00 00 	lwz     r3,0(r3)                               
ffc0eafc:	38 80 00 00 	li      r4,0                                   
ffc0eb00:	7e e5 bb 78 	mr      r5,r23                                 
ffc0eb04:	7c 63 d2 14 	add     r3,r3,r26                              
ffc0eb08:	48 00 1b 29 	bl      ffc10630 <memset>                      
          offset = 0;                                                 
ffc0eb0c:	3b 40 00 00 	li      r26,0                                  
ffc0eb10:	48 00 00 30 	b       ffc0eb40 <IMFS_memfile_extend+0x150>   
       }                                                              
    } else {                                                          
       for ( ; block>=old_blocks ; block-- ) {                        
         IMFS_memfile_remove_block( the_jnode, block );               
ffc0eb14:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc0eb18:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0eb1c:	4b ff fe 99 	bl      ffc0e9b4 <IMFS_memfile_remove_block>   <== NOT EXECUTED
                                                                      
          memset( &(*block_ptr) [offset], 0, count);                  
          offset = 0;                                                 
       }                                                              
    } else {                                                          
       for ( ; block>=old_blocks ; block-- ) {                        
ffc0eb20:	3b de ff ff 	addi    r30,r30,-1                             <== NOT EXECUTED
ffc0eb24:	7f 9e d8 40 	cmplw   cr7,r30,r27                            <== NOT EXECUTED
ffc0eb28:	40 9c ff ec 	bge+    cr7,ffc0eb14 <IMFS_memfile_extend+0x124><== NOT EXECUTED
         IMFS_memfile_remove_block( the_jnode, block );               
       }                                                              
       rtems_set_errno_and_return_minus_one( ENOSPC );                
ffc0eb2c:	48 00 0d 0d 	bl      ffc0f838 <__errno>                     <== NOT EXECUTED
ffc0eb30:	39 20 00 1c 	li      r9,28                                  <== NOT EXECUTED
ffc0eb34:	91 23 00 00 	stw     r9,0(r3)                               
ffc0eb38:	38 60 ff ff 	li      r3,-1                                  
ffc0eb3c:	48 00 00 44 	b       ffc0eb80 <IMFS_memfile_extend+0x190>   
  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++ ) {            
ffc0eb40:	3b de 00 01 	addi    r30,r30,1                              
ffc0eb44:	7f 9e c0 40 	cmplw   cr7,r30,r24                            
ffc0eb48:	40 9d ff 80 	ble+    cr7,ffc0eac8 <IMFS_memfile_extend+0xd8>
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
ffc0eb4c:	93 9f 00 50 	stw     r28,80(r31)                            
                                                                      
  IMFS_update_ctime(the_jnode);                                       
ffc0eb50:	38 80 00 00 	li      r4,0                                   
ffc0eb54:	38 61 00 08 	addi    r3,r1,8                                
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
ffc0eb58:	93 bf 00 54 	stw     r29,84(r31)                            
                                                                      
  IMFS_update_ctime(the_jnode);                                       
ffc0eb5c:	4b ff 5a d1 	bl      ffc0462c <gettimeofday>                
ffc0eb60:	81 21 00 08 	lwz     r9,8(r1)                               
  IMFS_update_mtime(the_jnode);                                       
ffc0eb64:	38 61 00 08 	addi    r3,r1,8                                
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
                                                                      
  IMFS_update_ctime(the_jnode);                                       
ffc0eb68:	91 3f 00 48 	stw     r9,72(r31)                             
  IMFS_update_mtime(the_jnode);                                       
ffc0eb6c:	38 80 00 00 	li      r4,0                                   
ffc0eb70:	4b ff 5a bd 	bl      ffc0462c <gettimeofday>                
ffc0eb74:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0eb78:	91 3f 00 44 	stw     r9,68(r31)                             
                                                                      
  /*                                                                  
   *  Verify new file size is actually larger than current size       
   */                                                                 
  if ( new_length <= the_jnode->info.file.size )                      
    return 0;                                                         
ffc0eb7c:	38 60 00 00 	li      r3,0                                   
  the_jnode->info.file.size = new_length;                             
                                                                      
  IMFS_update_ctime(the_jnode);                                       
  IMFS_update_mtime(the_jnode);                                       
  return 0;                                                           
}                                                                     
ffc0eb80:	81 81 00 18 	lwz     r12,24(r1)                             
ffc0eb84:	39 61 00 40 	addi    r11,r1,64                              
ffc0eb88:	7d 80 81 20 	mtcrf   8,r12                                  
ffc0eb8c:	4b ff 1a 18 	b       ffc005a4 <_restgpr_23_x>               
                                                                      

ffc0e348 <IMFS_memfile_get_block_pointer>: my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) {
ffc0e348:	3d 20 00 00 	lis     r9,0                                   
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
ffc0e34c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0e350:	7c 08 02 a6 	mflr    r0                                     
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
ffc0e354:	81 29 28 00 	lwz     r9,10240(r9)                           
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
ffc0e358:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc0e35c:	7c 7f 1b 78 	mr      r31,r3                                 
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
ffc0e360:	55 29 f0 be 	rlwinm  r9,r9,30,2,31                          
ffc0e364:	39 49 ff ff 	addi    r10,r9,-1                              
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
ffc0e368:	90 01 00 1c 	stw     r0,28(r1)                              
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
ffc0e36c:	7f 84 50 40 	cmplw   cr7,r4,r10                             
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
ffc0e370:	7c 9e 23 78 	mr      r30,r4                                 
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
ffc0e374:	41 9d 00 4c 	bgt-    cr7,ffc0e3c0 <IMFS_memfile_get_block_pointer+0x78>
    p = info->indirect;                                               
                                                                      
    if ( malloc_it ) {                                                
ffc0e378:	2f 05 00 00 	cmpwi   cr6,r5,0                               
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
    p = info->indirect;                                               
ffc0e37c:	81 23 00 58 	lwz     r9,88(r3)                              
ffc0e380:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
    if ( malloc_it ) {                                                
ffc0e384:	41 9a 00 2c 	beq-    cr6,ffc0e3b0 <IMFS_memfile_get_block_pointer+0x68>
                                                                      
      if ( !p ) {                                                     
ffc0e388:	40 be 00 1c 	bne+    cr7,ffc0e3a4 <IMFS_memfile_get_block_pointer+0x5c>
        p = memfile_alloc_block();                                    
ffc0e38c:	4b ff ff 79 	bl      ffc0e304 <memfile_alloc_block>         
        if ( !p )                                                     
ffc0e390:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0e394:	40 a2 00 0c 	bne+    ffc0e3a0 <IMFS_memfile_get_block_pointer+0x58><== ALWAYS TAKEN
           return 0;                                                  
ffc0e398:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc0e39c:	48 00 01 88 	b       ffc0e524 <IMFS_memfile_get_block_pointer+0x1dc><== NOT EXECUTED
        info->indirect = p;                                           
ffc0e3a0:	90 7f 00 58 	stw     r3,88(r31)                             
      }                                                               
      return &info->indirect[ my_block ];                             
ffc0e3a4:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         
ffc0e3a8:	80 7f 00 58 	lwz     r3,88(r31)                             
ffc0e3ac:	48 00 00 84 	b       ffc0e430 <IMFS_memfile_get_block_pointer+0xe8>
    }                                                                 
                                                                      
    if ( !p )                                                         
ffc0e3b0:	41 be ff e8 	beq-    cr7,ffc0e398 <IMFS_memfile_get_block_pointer+0x50><== NEVER TAKEN
      return 0;                                                       
                                                                      
    return &info->indirect[ my_block ];                               
ffc0e3b4:	54 9e 10 3a 	rlwinm  r30,r4,2,0,29                          
ffc0e3b8:	7c 69 f2 14 	add     r3,r9,r30                              
ffc0e3bc:	48 00 01 68 	b       ffc0e524 <IMFS_memfile_get_block_pointer+0x1dc>
                                                                      
  /*                                                                  
   *  Is the block number in the doubly indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
ffc0e3c0:	38 69 00 01 	addi    r3,r9,1                                
ffc0e3c4:	7c 63 49 d6 	mullw   r3,r3,r9                               
ffc0e3c8:	39 43 ff ff 	addi    r10,r3,-1                              
ffc0e3cc:	7f 84 50 40 	cmplw   cr7,r4,r10                             
ffc0e3d0:	41 9d 00 88 	bgt-    cr7,ffc0e458 <IMFS_memfile_get_block_pointer+0x110>
    my_block -= FIRST_DOUBLY_INDIRECT;                                
ffc0e3d4:	7f c9 20 50 	subf    r30,r9,r4                              
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
                                                                      
    p = info->doubly_indirect;                                        
ffc0e3d8:	80 7f 00 5c 	lwz     r3,92(r31)                             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
    my_block -= FIRST_DOUBLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
ffc0e3dc:	7f be 4b 96 	divwu   r29,r30,r9                             
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
ffc0e3e0:	2f 05 00 00 	cmpwi   cr6,r5,0                               
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
    my_block -= FIRST_DOUBLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
ffc0e3e4:	7d 3d 49 d6 	mullw   r9,r29,r9                              
ffc0e3e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e3ec:	7f c9 f0 50 	subf    r30,r9,r30                             
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
ffc0e3f0:	41 9a 00 48 	beq-    cr6,ffc0e438 <IMFS_memfile_get_block_pointer+0xf0>
                                                                      
      if ( !p ) {                                                     
ffc0e3f4:	40 be 00 14 	bne+    cr7,ffc0e408 <IMFS_memfile_get_block_pointer+0xc0>
        p = memfile_alloc_block();                                    
ffc0e3f8:	4b ff ff 0d 	bl      ffc0e304 <memfile_alloc_block>         
        if ( !p )                                                     
ffc0e3fc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0e400:	41 a2 ff 98 	beq-    ffc0e398 <IMFS_memfile_get_block_pointer+0x50><== NEVER TAKEN
           return 0;                                                  
        info->doubly_indirect = p;                                    
ffc0e404:	90 7f 00 5c 	stw     r3,92(r31)                             
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
ffc0e408:	57 bd 10 3a 	rlwinm  r29,r29,2,0,29                         
ffc0e40c:	7f e3 ea 14 	add     r31,r3,r29                             
ffc0e410:	7c 63 e8 2e 	lwzx    r3,r3,r29                              
      if ( !p1 ) {                                                    
ffc0e414:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e418:	40 be 00 14 	bne+    cr7,ffc0e42c <IMFS_memfile_get_block_pointer+0xe4>
        p1 = memfile_alloc_block();                                   
ffc0e41c:	4b ff fe e9 	bl      ffc0e304 <memfile_alloc_block>         
        if ( !p1 )                                                    
ffc0e420:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0e424:	41 a2 ff 74 	beq-    ffc0e398 <IMFS_memfile_get_block_pointer+0x50><== NEVER TAKEN
           return 0;                                                  
        p[ doubly ] = (block_p) p1;                                   
ffc0e428:	90 7f 00 00 	stw     r3,0(r31)                              
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
ffc0e42c:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         
ffc0e430:	7c 63 f2 14 	add     r3,r3,r30                              
ffc0e434:	48 00 00 f0 	b       ffc0e524 <IMFS_memfile_get_block_pointer+0x1dc>
    }                                                                 
                                                                      
    if ( !p )                                                         
ffc0e438:	41 be ff 60 	beq-    cr7,ffc0e398 <IMFS_memfile_get_block_pointer+0x50><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
ffc0e43c:	57 bd 10 3a 	rlwinm  r29,r29,2,0,29                         
ffc0e440:	7d 43 e8 2e 	lwzx    r10,r3,r29                             
    if ( !p )                                                         
ffc0e444:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0e448:	41 be ff 50 	beq-    cr7,ffc0e398 <IMFS_memfile_get_block_pointer+0x50><== NEVER TAKEN
      return 0;                                                       
                                                                      
    return (block_p *)&p[ singly ];                                   
ffc0e44c:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         
ffc0e450:	7c 6a f2 14 	add     r3,r10,r30                             
ffc0e454:	48 00 00 d0 	b       ffc0e524 <IMFS_memfile_get_block_pointer+0x1dc>
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
ffc0e458:	39 43 00 01 	addi    r10,r3,1                               
ffc0e45c:	7d 4a 49 d6 	mullw   r10,r10,r9                             
ffc0e460:	39 4a ff ff 	addi    r10,r10,-1                             
ffc0e464:	7f 84 50 40 	cmplw   cr7,r4,r10                             
ffc0e468:	41 bd ff 30 	bgt-    cr7,ffc0e398 <IMFS_memfile_get_block_pointer+0x50><== NEVER TAKEN
    my_block -= FIRST_TRIPLY_INDIRECT;                                
ffc0e46c:	7f c3 20 50 	subf    r30,r3,r4                              
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
ffc0e470:	7d 5e 4b 96 	divwu   r10,r30,r9                             
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
ffc0e474:	7f aa 4b 96 	divwu   r29,r10,r9                             
   *  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;                     
ffc0e478:	7c 6a 49 d6 	mullw   r3,r10,r9                              
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
ffc0e47c:	2f 05 00 00 	cmpwi   cr6,r5,0                               
    my_block -= FIRST_TRIPLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
ffc0e480:	7d 3d 49 d6 	mullw   r9,r29,r9                              
   *  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;                     
ffc0e484:	7f c3 f0 50 	subf    r30,r3,r30                             
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
                                                                      
    p = info->triply_indirect;                                        
ffc0e488:	80 7f 00 60 	lwz     r3,96(r31)                             
    my_block -= FIRST_TRIPLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
ffc0e48c:	7f 89 50 50 	subf    r28,r9,r10                             
ffc0e490:	2f 83 00 00 	cmpwi   cr7,r3,0                               
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
ffc0e494:	41 9a 00 64 	beq-    cr6,ffc0e4f8 <IMFS_memfile_get_block_pointer+0x1b0>
      if ( !p ) {                                                     
ffc0e498:	40 be 00 14 	bne+    cr7,ffc0e4ac <IMFS_memfile_get_block_pointer+0x164>
        p = memfile_alloc_block();                                    
ffc0e49c:	4b ff fe 69 	bl      ffc0e304 <memfile_alloc_block>         
        if ( !p )                                                     
ffc0e4a0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0e4a4:	41 a2 fe f4 	beq-    ffc0e398 <IMFS_memfile_get_block_pointer+0x50><== NEVER TAKEN
           return 0;                                                  
        info->triply_indirect = p;                                    
ffc0e4a8:	90 7f 00 60 	stw     r3,96(r31)                             
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
ffc0e4ac:	57 bd 10 3a 	rlwinm  r29,r29,2,0,29                         
ffc0e4b0:	7f e3 ea 14 	add     r31,r3,r29                             
ffc0e4b4:	7c 63 e8 2e 	lwzx    r3,r3,r29                              
      if ( !p1 ) {                                                    
ffc0e4b8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e4bc:	40 be 00 14 	bne+    cr7,ffc0e4d0 <IMFS_memfile_get_block_pointer+0x188>
        p1 = memfile_alloc_block();                                   
ffc0e4c0:	4b ff fe 45 	bl      ffc0e304 <memfile_alloc_block>         
        if ( !p1 )                                                    
ffc0e4c4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0e4c8:	41 a2 fe d0 	beq-    ffc0e398 <IMFS_memfile_get_block_pointer+0x50><== NEVER TAKEN
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
ffc0e4cc:	90 7f 00 00 	stw     r3,0(r31)                              
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
ffc0e4d0:	57 9c 10 3a 	rlwinm  r28,r28,2,0,29                         
ffc0e4d4:	7d 23 e0 2e 	lwzx    r9,r3,r28                              
ffc0e4d8:	7f e3 e2 14 	add     r31,r3,r28                             
      if ( !p2 ) {                                                    
ffc0e4dc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e4e0:	40 be 00 3c 	bne+    cr7,ffc0e51c <IMFS_memfile_get_block_pointer+0x1d4>
        p2 = memfile_alloc_block();                                   
ffc0e4e4:	4b ff fe 21 	bl      ffc0e304 <memfile_alloc_block>         
        if ( !p2 )                                                    
ffc0e4e8:	7c 69 1b 79 	mr.     r9,r3                                  
ffc0e4ec:	41 a2 fe ac 	beq-    ffc0e398 <IMFS_memfile_get_block_pointer+0x50><== NEVER TAKEN
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
ffc0e4f0:	91 3f 00 00 	stw     r9,0(r31)                              
ffc0e4f4:	48 00 00 28 	b       ffc0e51c <IMFS_memfile_get_block_pointer+0x1d4>
      }                                                               
      return (block_p *)&p2[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
ffc0e4f8:	41 be fe a0 	beq-    cr7,ffc0e398 <IMFS_memfile_get_block_pointer+0x50><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p1 = (block_p *) p[ triply ];                                     
ffc0e4fc:	57 bd 10 3a 	rlwinm  r29,r29,2,0,29                         
ffc0e500:	7d 03 e8 2e 	lwzx    r8,r3,r29                              
    if ( !p1 )                                                        
ffc0e504:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0e508:	41 be fe 90 	beq-    cr7,ffc0e398 <IMFS_memfile_get_block_pointer+0x50><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
ffc0e50c:	57 9c 10 3a 	rlwinm  r28,r28,2,0,29                         
ffc0e510:	7d 28 e0 2e 	lwzx    r9,r8,r28                              
    if ( !p2 )                                                        
ffc0e514:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e518:	41 be fe 80 	beq-    cr7,ffc0e398 <IMFS_memfile_get_block_pointer+0x50><== NEVER TAKEN
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
ffc0e51c:	57 c3 10 3a 	rlwinm  r3,r30,2,0,29                          
ffc0e520:	7c 69 1a 14 	add     r3,r9,r3                               
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc0e524:	39 61 00 18 	addi    r11,r1,24                              
ffc0e528:	4b ff 20 90 	b       ffc005b8 <_restgpr_28_x>               
                                                                      

ffc0e52c <IMFS_memfile_read>: IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) {
ffc0e52c:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc0e530:	7c 08 02 a6 	mflr    r0                                     
ffc0e534:	bf 01 00 18 	stmw    r24,24(r1)                             
ffc0e538:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0e53c:	7c df 33 78 	mr      r31,r6                                 
ffc0e540:	90 01 00 3c 	stw     r0,60(r1)                              
ffc0e544:	7c be 2b 78 	mr      r30,r5                                 
ffc0e548:	7c fa 3b 78 	mr      r26,r7                                 
  rtems_chain_extract_unprotected( &node->Node );                     
}                                                                     
                                                                      
static inline IMFS_jnode_types_t IMFS_type( const IMFS_jnode_t *node )
{                                                                     
  return node->control->imfs_type;                                    
ffc0e54c:	81 23 00 4c 	lwz     r9,76(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 ) {                 
ffc0e550:	81 29 00 00 	lwz     r9,0(r9)                               
ffc0e554:	2f 89 00 05 	cmpwi   cr7,r9,5                               
ffc0e558:	40 be 00 68 	bne+    cr7,ffc0e5c0 <IMFS_memfile_read+0x94>  
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
ffc0e55c:	81 43 00 50 	lwz     r10,80(r3)                             
ffc0e560:	39 20 00 00 	li      r9,0                                   
ffc0e564:	81 63 00 54 	lwz     r11,84(r3)                             
  my_length = length;                                                 
                                                                      
  if ( IMFS_type( the_jnode ) == IMFS_LINEAR_FILE ) {                 
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
ffc0e568:	80 83 00 58 	lwz     r4,88(r3)                              
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
ffc0e56c:	7c ff 58 10 	subfc   r7,r31,r11                             
ffc0e570:	7c de 51 10 	subfe   r6,r30,r10                             
ffc0e574:	7f 89 30 00 	cmpw    cr7,r9,r6                              
ffc0e578:	41 bd 00 10 	bgt+    cr7,ffc0e588 <IMFS_memfile_read+0x5c>  <== NEVER TAKEN
ffc0e57c:	40 9e 00 14 	bne-    cr7,ffc0e590 <IMFS_memfile_read+0x64>  <== NEVER TAKEN
ffc0e580:	7f 88 38 40 	cmplw   cr7,r8,r7                              
ffc0e584:	40 9d 00 0c 	ble-    cr7,ffc0e590 <IMFS_memfile_read+0x64>  <== NEVER TAKEN
      my_length = the_jnode->info.linearfile.size - start;            
ffc0e588:	7f bf 58 50 	subf    r29,r31,r11                            
ffc0e58c:	48 00 00 08 	b       ffc0e594 <IMFS_memfile_read+0x68>      
                                                                      
  /*                                                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
ffc0e590:	7d 1d 43 78 	mr      r29,r8                                 <== 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);                        
ffc0e594:	7c 84 fa 14 	add     r4,r4,r31                              
ffc0e598:	7f a5 eb 78 	mr      r5,r29                                 
ffc0e59c:	7f 43 d3 78 	mr      r3,r26                                 
ffc0e5a0:	48 00 1f 9d 	bl      ffc1053c <memcpy>                      
                                                                      
    IMFS_update_atime( the_jnode );                                   
ffc0e5a4:	38 61 00 08 	addi    r3,r1,8                                
ffc0e5a8:	38 80 00 00 	li      r4,0                                   
ffc0e5ac:	4b ff 60 81 	bl      ffc0462c <gettimeofday>                
ffc0e5b0:	81 21 00 08 	lwz     r9,8(r1)                               
                                                                      
    return my_length;                                                 
ffc0e5b4:	7f bf eb 78 	mr      r31,r29                                
    if (my_length > (the_jnode->info.linearfile.size - start))        
      my_length = the_jnode->info.linearfile.size - start;            
                                                                      
    memcpy(dest, &file_ptr[start], my_length);                        
                                                                      
    IMFS_update_atime( the_jnode );                                   
ffc0e5b8:	91 3c 00 40 	stw     r9,64(r28)                             
                                                                      
    return my_length;                                                 
ffc0e5bc:	48 00 01 78 	b       ffc0e734 <IMFS_memfile_read+0x208>     
  /*                                                                  
   *  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 )                        
ffc0e5c0:	81 43 00 50 	lwz     r10,80(r3)                             
                                                                      
  /*                                                                  
   *  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;                                         
ffc0e5c4:	7c c9 33 78 	mr      r9,r6                                  
ffc0e5c8:	7c e8 32 14 	add     r7,r8,r6                               
  if ( last_byte > the_jnode->info.file.size )                        
ffc0e5cc:	83 a3 00 54 	lwz     r29,84(r3)                             
ffc0e5d0:	38 c0 00 00 	li      r6,0                                   
ffc0e5d4:	7f 86 50 00 	cmpw    cr7,r6,r10                             
ffc0e5d8:	41 9d 00 10 	bgt-    cr7,ffc0e5e8 <IMFS_memfile_read+0xbc>  <== NEVER TAKEN
ffc0e5dc:	40 9e 00 14 	bne-    cr7,ffc0e5f0 <IMFS_memfile_read+0xc4>  <== NEVER TAKEN
ffc0e5e0:	7f 87 e8 40 	cmplw   cr7,r7,r29                             
ffc0e5e4:	40 9d 00 0c 	ble-    cr7,ffc0e5f0 <IMFS_memfile_read+0xc4>  
    my_length = the_jnode->info.file.size - start;                    
ffc0e5e8:	7f a9 e8 50 	subf    r29,r9,r29                             
ffc0e5ec:	48 00 00 08 	b       ffc0e5f4 <IMFS_memfile_read+0xc8>      
                                                                      
  /*                                                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
ffc0e5f0:	7d 1d 43 78 	mr      r29,r8                                 
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
ffc0e5f4:	3d 20 00 00 	lis     r9,0                                   
ffc0e5f8:	83 69 28 00 	lwz     r27,10240(r9)                          
ffc0e5fc:	7f c3 f3 78 	mr      r3,r30                                 
ffc0e600:	7f e4 fb 78 	mr      r4,r31                                 
ffc0e604:	7f 78 fe 70 	srawi   r24,r27,31                             
ffc0e608:	7f 05 c3 78 	mr      r5,r24                                 
ffc0e60c:	7f 66 db 78 	mr      r6,r27                                 
ffc0e610:	48 00 ae d5 	bl      ffc194e4 <__moddi3>                    
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
ffc0e614:	7f c3 f3 78 	mr      r3,r30                                 
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
ffc0e618:	7c 99 23 78 	mr      r25,r4                                 
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
ffc0e61c:	7f 05 c3 78 	mr      r5,r24                                 
ffc0e620:	7f e4 fb 78 	mr      r4,r31                                 
ffc0e624:	7f 66 db 78 	mr      r6,r27                                 
ffc0e628:	48 00 aa 99 	bl      ffc190c0 <__divdi3>                    
  if ( start_offset )  {                                              
ffc0e62c:	2f 99 00 00 	cmpwi   cr7,r25,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;                       
ffc0e630:	7c 9e 23 78 	mr      r30,r4                                 
  if ( start_offset )  {                                              
ffc0e634:	41 9e 00 5c 	beq-    cr7,ffc0e690 <IMFS_memfile_read+0x164> 
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
ffc0e638:	7d 39 d8 50 	subf    r9,r25,r27                             
ffc0e63c:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc0e640:	7f bb eb 78 	mr      r27,r29                                
ffc0e644:	40 9d 00 08 	ble-    cr7,ffc0e64c <IMFS_memfile_read+0x120> 
ffc0e648:	7d 3b 4b 78 	mr      r27,r9                                 
    if ( to_copy > my_length )                                        
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc0e64c:	7f 83 e3 78 	mr      r3,r28                                 
ffc0e650:	7f c4 f3 78 	mr      r4,r30                                 
ffc0e654:	38 a0 00 00 	li      r5,0                                   
ffc0e658:	4b ff fc f1 	bl      ffc0e348 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
      return copied;                                                  
ffc0e65c:	3b e0 00 00 	li      r31,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 )                                                 
ffc0e660:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0e664:	41 82 00 d0 	beq-    ffc0e734 <IMFS_memfile_read+0x208>     <== NEVER TAKEN
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );           
ffc0e668:	80 83 00 00 	lwz     r4,0(r3)                               
ffc0e66c:	7f 65 db 78 	mr      r5,r27                                 
ffc0e670:	7f 43 d3 78 	mr      r3,r26                                 
ffc0e674:	7c 84 ca 14 	add     r4,r4,r25                              
ffc0e678:	48 00 1e c5 	bl      ffc1053c <memcpy>                      
    dest += to_copy;                                                  
ffc0e67c:	7f 5a da 14 	add     r26,r26,r27                            
    block++;                                                          
ffc0e680:	3b de 00 01 	addi    r30,r30,1                              
    my_length -= to_copy;                                             
ffc0e684:	7f bb e8 50 	subf    r29,r27,r29                            
    copied += to_copy;                                                
ffc0e688:	7f 7f db 78 	mr      r31,r27                                
ffc0e68c:	48 00 00 08 	b       ffc0e694 <IMFS_memfile_read+0x168>     
   */                                                                 
  last_byte = start + length;                                         
  if ( last_byte > the_jnode->info.file.size )                        
    my_length = the_jnode->info.file.size - start;                    
                                                                      
  copied = 0;                                                         
ffc0e690:	3b e0 00 00 	li      r31,0                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
ffc0e694:	3d 20 00 00 	lis     r9,0                                   
ffc0e698:	83 29 28 00 	lwz     r25,10240(r9)                          
 *  is considered an error.  Read from an offset for more bytes than  
 *  are between the offset and the end of the file will result in     
 *  reading the data between offset and the end of the file (truncated
 *  read).                                                            
 */                                                                   
MEMFILE_STATIC ssize_t IMFS_memfile_read(                             
ffc0e69c:	7f 5f d0 50 	subf    r26,r31,r26                            
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
ffc0e6a0:	7d 38 4b 78 	mr      r24,r9                                 
ffc0e6a4:	48 00 00 38 	b       ffc0e6dc <IMFS_memfile_read+0x1b0>     
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc0e6a8:	7f 83 e3 78 	mr      r3,r28                                 
ffc0e6ac:	7f c4 f3 78 	mr      r4,r30                                 
ffc0e6b0:	38 a0 00 00 	li      r5,0                                   
ffc0e6b4:	4b ff fc 95 	bl      ffc0e348 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
ffc0e6b8:	7c 69 1b 79 	mr.     r9,r3                                  
ffc0e6bc:	41 82 00 78 	beq-    ffc0e734 <IMFS_memfile_read+0x208>     <== NEVER TAKEN
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
ffc0e6c0:	80 89 00 00 	lwz     r4,0(r9)                               
ffc0e6c4:	7f 63 db 78 	mr      r3,r27                                 
ffc0e6c8:	7f 25 cb 78 	mr      r5,r25                                 
ffc0e6cc:	48 00 1e 71 	bl      ffc1053c <memcpy>                      
    dest += to_copy;                                                  
    block++;                                                          
ffc0e6d0:	3b de 00 01 	addi    r30,r30,1                              
    my_length -= to_copy;                                             
ffc0e6d4:	7f b9 e8 50 	subf    r29,r25,r29                            
    copied += to_copy;                                                
ffc0e6d8:	7f ff ca 14 	add     r31,r31,r25                            
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
ffc0e6dc:	81 38 28 00 	lwz     r9,10240(r24)                          
 *  is considered an error.  Read from an offset for more bytes than  
 *  are between the offset and the end of the file will result in     
 *  reading the data between offset and the end of the file (truncated
 *  read).                                                            
 */                                                                   
MEMFILE_STATIC ssize_t IMFS_memfile_read(                             
ffc0e6e0:	7f 7a fa 14 	add     r27,r26,r31                            
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
ffc0e6e4:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc0e6e8:	40 9c ff c0 	bge+    cr7,ffc0e6a8 <IMFS_memfile_read+0x17c> 
  /*                                                                  
   *  Phase 3: possibly the first part of one block                   
   */                                                                 
  IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );            
                                                                      
  if ( my_length ) {                                                  
ffc0e6ec:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0e6f0:	41 9e 00 30 	beq-    cr7,ffc0e720 <IMFS_memfile_read+0x1f4> 
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc0e6f4:	7f 83 e3 78 	mr      r3,r28                                 
ffc0e6f8:	7f c4 f3 78 	mr      r4,r30                                 
ffc0e6fc:	38 a0 00 00 	li      r5,0                                   
ffc0e700:	4b ff fc 49 	bl      ffc0e348 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
ffc0e704:	7c 69 1b 79 	mr.     r9,r3                                  
ffc0e708:	41 82 00 2c 	beq-    ffc0e734 <IMFS_memfile_read+0x208>     <== NEVER TAKEN
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
ffc0e70c:	80 89 00 00 	lwz     r4,0(r9)                               
ffc0e710:	7f 63 db 78 	mr      r3,r27                                 
ffc0e714:	7f a5 eb 78 	mr      r5,r29                                 
ffc0e718:	48 00 1e 25 	bl      ffc1053c <memcpy>                      
    copied += my_length;                                              
ffc0e71c:	7f fd fa 14 	add     r31,r29,r31                            
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
ffc0e720:	38 61 00 08 	addi    r3,r1,8                                
ffc0e724:	38 80 00 00 	li      r4,0                                   
ffc0e728:	4b ff 5f 05 	bl      ffc0462c <gettimeofday>                
ffc0e72c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0e730:	91 3c 00 40 	stw     r9,64(r28)                             
                                                                      
  return copied;                                                      
}                                                                     
ffc0e734:	39 61 00 38 	addi    r11,r1,56                              
ffc0e738:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e73c:	4b ff 1e 6c 	b       ffc005a8 <_restgpr_24_x>               
                                                                      

ffc0e884 <IMFS_memfile_remove>: * is better to stick to simple, easy to understand algorithms. */ IMFS_jnode_t *IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) {
ffc0e884:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0e888:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  /*                                                                  
   *  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;                                 
ffc0e88c:	3d 20 00 00 	lis     r9,0                                   
 *         is better to stick to simple, easy to understand algorithms.
 */                                                                   
IMFS_jnode_t *IMFS_memfile_remove(                                    
 IMFS_jnode_t  *the_jnode                                             
)                                                                     
{                                                                     
ffc0e890:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0e894:	bf 21 00 0c 	stmw    r25,12(r1)                             
ffc0e898:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  /*                                                                  
   *  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;                                 
ffc0e89c:	83 c9 28 00 	lwz     r30,10240(r9)                          
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
ffc0e8a0:	81 23 00 58 	lwz     r9,88(r3)                              
                                                                      
  /*                                                                  
   *  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;                                 
ffc0e8a4:	57 de f0 be 	rlwinm  r30,r30,30,2,31                        
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
ffc0e8a8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e8ac:	41 9e 00 10 	beq-    cr7,ffc0e8bc <IMFS_memfile_remove+0x38>
    memfile_free_blocks_in_table( &info->indirect, to_free );         
ffc0e8b0:	38 63 00 58 	addi    r3,r3,88                               
ffc0e8b4:	7f c4 f3 78 	mr      r4,r30                                 
ffc0e8b8:	4b ff ff 69 	bl      ffc0e820 <memfile_free_blocks_in_table>
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
ffc0e8bc:	81 3f 00 5c 	lwz     r9,92(r31)                             
ffc0e8c0:	3b a0 00 00 	li      r29,0                                  
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
ffc0e8c4:	3f 80 00 00 	lis     r28,0                                  
                                                                      
  if ( info->indirect ) {                                             
    memfile_free_blocks_in_table( &info->indirect, to_free );         
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
ffc0e8c8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e8cc:	40 be 00 2c 	bne+    cr7,ffc0e8f8 <IMFS_memfile_remove+0x74>
ffc0e8d0:	48 00 00 44 	b       ffc0e914 <IMFS_memfile_remove+0x90>    
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      if ( info->doubly_indirect[i] ) {                               
ffc0e8d4:	81 3f 00 5c 	lwz     r9,92(r31)                             
 *         a significant difference in the performance of this routine.
 *                                                                    
 *         Regardless until the IMFS implementation is proven, it     
 *         is better to stick to simple, easy to understand algorithms.
 */                                                                   
IMFS_jnode_t *IMFS_memfile_remove(                                    
ffc0e8d8:	57 aa 10 3a 	rlwinm  r10,r29,2,0,29                         
    memfile_free_blocks_in_table( &info->indirect, to_free );         
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      if ( info->doubly_indirect[i] ) {                               
ffc0e8dc:	7c 69 52 14 	add     r3,r9,r10                              
ffc0e8e0:	7d 29 50 2e 	lwzx    r9,r9,r10                              
ffc0e8e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e8e8:	41 9e 00 0c 	beq-    cr7,ffc0e8f4 <IMFS_memfile_remove+0x70><== NEVER TAKEN
        memfile_free_blocks_in_table(                                 
ffc0e8ec:	7f c4 f3 78 	mr      r4,r30                                 
ffc0e8f0:	4b ff ff 31 	bl      ffc0e820 <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++ ) {                  
ffc0e8f4:	3b bd 00 01 	addi    r29,r29,1                              
ffc0e8f8:	81 3c 28 00 	lwz     r9,10240(r28)                          
ffc0e8fc:	55 29 f0 be 	rlwinm  r9,r9,30,2,31                          
ffc0e900:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc0e904:	41 9c ff d0 	blt+    cr7,ffc0e8d4 <IMFS_memfile_remove+0x50>
      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 );  
ffc0e908:	38 7f 00 5c 	addi    r3,r31,92                              
ffc0e90c:	7f c4 f3 78 	mr      r4,r30                                 
ffc0e910:	4b ff ff 11 	bl      ffc0e820 <memfile_free_blocks_in_table>
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
ffc0e914:	81 3f 00 60 	lwz     r9,96(r31)                             
ffc0e918:	3b a0 00 00 	li      r29,0                                  
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
ffc0e91c:	3f 40 00 00 	lis     r26,0                                  
    }                                                                 
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
ffc0e920:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e924:	40 be 00 68 	bne+    cr7,ffc0e98c <IMFS_memfile_remove+0x108>
ffc0e928:	48 00 00 80 	b       ffc0e9a8 <IMFS_memfile_remove+0x124>   
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
ffc0e92c:	81 3f 00 60 	lwz     r9,96(r31)                             
 *         a significant difference in the performance of this routine.
 *                                                                    
 *         Regardless until the IMFS implementation is proven, it     
 *         is better to stick to simple, easy to understand algorithms.
 */                                                                   
IMFS_jnode_t *IMFS_memfile_remove(                                    
ffc0e930:	57 b9 10 3a 	rlwinm  r25,r29,2,0,29                         
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
ffc0e934:	7f 89 c8 2e 	lwzx    r28,r9,r25                             
      if ( !p )  /* ensure we have a valid pointer */                 
ffc0e938:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0e93c:	41 9e 00 60 	beq-    cr7,ffc0e99c <IMFS_memfile_remove+0x118><== NEVER TAKEN
ffc0e940:	3b 60 00 00 	li      r27,0                                  
ffc0e944:	48 00 00 24 	b       ffc0e968 <IMFS_memfile_remove+0xe4>    
         break;                                                       
      for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {                
        if ( p[j] ) {                                                 
ffc0e948:	81 3c 00 00 	lwz     r9,0(r28)                              
ffc0e94c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e950:	41 9e 00 10 	beq-    cr7,ffc0e960 <IMFS_memfile_remove+0xdc><== NEVER TAKEN
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
ffc0e954:	7f 83 e3 78 	mr      r3,r28                                 
ffc0e958:	7f c4 f3 78 	mr      r4,r30                                 
ffc0e95c:	4b ff fe c5 	bl      ffc0e820 <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++ ) {                
ffc0e960:	3b 7b 00 01 	addi    r27,r27,1                              
ffc0e964:	3b 9c 00 04 	addi    r28,r28,4                              
ffc0e968:	81 3a 28 00 	lwz     r9,10240(r26)                          
ffc0e96c:	55 29 f0 be 	rlwinm  r9,r9,30,2,31                          
ffc0e970:	7f 9b 48 40 	cmplw   cr7,r27,r9                             
ffc0e974:	41 9c ff d4 	blt+    cr7,ffc0e948 <IMFS_memfile_remove+0xc4>
        if ( p[j] ) {                                                 
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
ffc0e978:	80 7f 00 60 	lwz     r3,96(r31)                             
ffc0e97c:	7f c4 f3 78 	mr      r4,r30                                 
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
ffc0e980:	3b bd 00 01 	addi    r29,r29,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(                                   
ffc0e984:	7c 63 ca 14 	add     r3,r3,r25                              
ffc0e988:	4b ff fe 99 	bl      ffc0e820 <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++ ) {                  
ffc0e98c:	81 3a 28 00 	lwz     r9,10240(r26)                          
ffc0e990:	55 29 f0 be 	rlwinm  r9,r9,30,2,31                          
ffc0e994:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc0e998:	41 9c ff 94 	blt+    cr7,ffc0e92c <IMFS_memfile_remove+0xa8>
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
        (block_p **)&info->triply_indirect[i], to_free );             
    }                                                                 
    memfile_free_blocks_in_table(                                     
ffc0e99c:	38 7f 00 60 	addi    r3,r31,96                              
ffc0e9a0:	7f c4 f3 78 	mr      r4,r30                                 
ffc0e9a4:	4b ff fe 7d 	bl      ffc0e820 <memfile_free_blocks_in_table>
        (block_p **)&info->triply_indirect, to_free );                
  }                                                                   
                                                                      
  return the_jnode;                                                   
}                                                                     
ffc0e9a8:	39 61 00 28 	addi    r11,r1,40                              
ffc0e9ac:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e9b0:	4b ff 1b fc 	b       ffc005ac <_restgpr_25_x>               
                                                                      

ffc0e9b4 <IMFS_memfile_remove_block>: */ MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) {
ffc0e9b4:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc0e9b8:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
  block_p *block_ptr;                                                 
  block_p  ptr;                                                       
                                                                      
  block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );  
ffc0e9bc:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
 */                                                                   
MEMFILE_STATIC int IMFS_memfile_remove_block(                         
   IMFS_jnode_t  *the_jnode,                                          
   unsigned int   block                                               
)                                                                     
{                                                                     
ffc0e9c0:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
  block_p *block_ptr;                                                 
  block_p  ptr;                                                       
                                                                      
  block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );  
ffc0e9c4:	4b ff f9 85 	bl      ffc0e348 <IMFS_memfile_get_block_pointer><== NOT EXECUTED
ffc0e9c8:	7c 69 1b 78 	mr      r9,r3                                  <== NOT EXECUTED
  IMFS_assert( block_ptr );                                           
                                                                      
  ptr = *block_ptr;                                                   
  *block_ptr = 0;                                                     
ffc0e9cc:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  block_p  ptr;                                                       
                                                                      
  block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );  
  IMFS_assert( block_ptr );                                           
                                                                      
  ptr = *block_ptr;                                                   
ffc0e9d0:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
  *block_ptr = 0;                                                     
ffc0e9d4:	91 49 00 00 	stw     r10,0(r9)                              <== NOT EXECUTED
  memfile_free_block( ptr );                                          
ffc0e9d8:	4b ff fe 19 	bl      ffc0e7f0 <memfile_free_block>          <== NOT EXECUTED
                                                                      
  return 1;                                                           
}                                                                     
ffc0e9dc:	80 01 00 0c 	lwz     r0,12(r1)                              <== NOT EXECUTED
ffc0e9e0:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc0e9e4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0e9e8:	38 21 00 08 	addi    r1,r1,8                                <== NOT EXECUTED
ffc0e9ec:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc0eb90 <IMFS_memfile_write>: IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) {
ffc0eb90:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc0eb94:	7c 08 02 a6 	mflr    r0                                     
ffc0eb98:	bf 01 00 18 	stmw    r24,24(r1)                             
ffc0eb9c:	7c dd 33 78 	mr      r29,r6                                 
ffc0eba0:	7d 1c 43 78 	mr      r28,r8                                 
ffc0eba4:	90 01 00 3c 	stw     r0,60(r1)                              
  /*                                                                  
   *  If the last byte we are supposed to write is past the end of this
   *  in memory file, then extend the length.                         
   */                                                                 
                                                                      
  last_byte = start + my_length;                                      
ffc0eba8:	7c c8 32 14 	add     r6,r8,r6                               
  if ( last_byte > the_jnode->info.file.size ) {                      
ffc0ebac:	39 00 00 00 	li      r8,0                                   
ffc0ebb0:	81 43 00 50 	lwz     r10,80(r3)                             
   IMFS_jnode_t          *the_jnode,                                  
   off_t                  start,                                      
   const unsigned char   *source,                                     
   unsigned int           length                                      
)                                                                     
{                                                                     
ffc0ebb4:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0ebb8:	7c ba 2b 78 	mr      r26,r5                                 
   *  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 ) {                      
ffc0ebbc:	81 23 00 54 	lwz     r9,84(r3)                              
ffc0ebc0:	7f 88 50 00 	cmpw    cr7,r8,r10                             
   IMFS_jnode_t          *the_jnode,                                  
   off_t                  start,                                      
   const unsigned char   *source,                                     
   unsigned int           length                                      
)                                                                     
{                                                                     
ffc0ebc4:	7c fb 3b 78 	mr      r27,r7                                 
   *  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 ) {                      
ffc0ebc8:	41 9d 00 5c 	bgt-    cr7,ffc0ec24 <IMFS_memfile_write+0x94> <== NEVER TAKEN
ffc0ebcc:	40 be 00 0c 	bne+    cr7,ffc0ebd8 <IMFS_memfile_write+0x48> <== NEVER TAKEN
ffc0ebd0:	7f 86 48 40 	cmplw   cr7,r6,r9                              
ffc0ebd4:	41 9d 00 50 	bgt-    cr7,ffc0ec24 <IMFS_memfile_write+0x94> 
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
ffc0ebd8:	3d 20 00 00 	lis     r9,0                                   
ffc0ebdc:	83 e9 28 00 	lwz     r31,10240(r9)                          
ffc0ebe0:	7f a4 eb 78 	mr      r4,r29                                 
ffc0ebe4:	7f 43 d3 78 	mr      r3,r26                                 
ffc0ebe8:	7f f8 fe 70 	srawi   r24,r31,31                             
ffc0ebec:	7f 05 c3 78 	mr      r5,r24                                 
ffc0ebf0:	7f e6 fb 78 	mr      r6,r31                                 
ffc0ebf4:	48 00 a8 f1 	bl      ffc194e4 <__moddi3>                    
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
ffc0ebf8:	7f 43 d3 78 	mr      r3,r26                                 
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
ffc0ebfc:	7c 99 23 78 	mr      r25,r4                                 
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
ffc0ec00:	7f 05 c3 78 	mr      r5,r24                                 
ffc0ec04:	7f a4 eb 78 	mr      r4,r29                                 
ffc0ec08:	7f e6 fb 78 	mr      r6,r31                                 
ffc0ec0c:	48 00 a4 b5 	bl      ffc190c0 <__divdi3>                    
  if ( start_offset )  {                                              
ffc0ec10:	2f 99 00 00 	cmpwi   cr7,r25,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;                       
ffc0ec14:	7c 9d 23 78 	mr      r29,r4                                 
  if ( start_offset )  {                                              
ffc0ec18:	40 9e 00 44 	bne-    cr7,ffc0ec5c <IMFS_memfile_write+0xcc> 
    status = IMFS_memfile_extend( the_jnode, zero_fill, last_byte );  
    if ( status )                                                     
      return status;                                                  
  }                                                                   
                                                                      
  copied = 0;                                                         
ffc0ec1c:	3b e0 00 00 	li      r31,0                                  
ffc0ec20:	48 00 00 88 	b       ffc0eca8 <IMFS_memfile_write+0x118>    
   *  in memory file, then extend the length.                         
   */                                                                 
                                                                      
  last_byte = start + my_length;                                      
  if ( last_byte > the_jnode->info.file.size ) {                      
    bool zero_fill = start > the_jnode->info.file.size;               
ffc0ec24:	7f 9a 50 00 	cmpw    cr7,r26,r10                            
ffc0ec28:	38 80 00 01 	li      r4,1                                   
ffc0ec2c:	41 9d 00 14 	bgt-    cr7,ffc0ec40 <IMFS_memfile_write+0xb0> <== NEVER TAKEN
ffc0ec30:	40 be 00 0c 	bne+    cr7,ffc0ec3c <IMFS_memfile_write+0xac> <== NEVER TAKEN
ffc0ec34:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc0ec38:	41 9d 00 08 	bgt-    cr7,ffc0ec40 <IMFS_memfile_write+0xb0> 
ffc0ec3c:	38 80 00 00 	li      r4,0                                   
                                                                      
    status = IMFS_memfile_extend( the_jnode, zero_fill, last_byte );  
ffc0ec40:	7f c3 f3 78 	mr      r3,r30                                 
ffc0ec44:	54 84 07 fe 	clrlwi  r4,r4,31                               
ffc0ec48:	38 a0 00 00 	li      r5,0                                   
ffc0ec4c:	4b ff fd a5 	bl      ffc0e9f0 <IMFS_memfile_extend>         
    if ( status )                                                     
ffc0ec50:	7c 69 1b 79 	mr.     r9,r3                                  
ffc0ec54:	41 82 ff 84 	beq+    ffc0ebd8 <IMFS_memfile_write+0x48>     
ffc0ec58:	48 00 00 fc 	b       ffc0ed54 <IMFS_memfile_write+0x1c4>    
   *  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;            
ffc0ec5c:	7f f9 f8 50 	subf    r31,r25,r31                            
ffc0ec60:	7f 9f e0 40 	cmplw   cr7,r31,r28                            
ffc0ec64:	40 9d 00 08 	ble-    cr7,ffc0ec6c <IMFS_memfile_write+0xdc> 
ffc0ec68:	7f 9f e3 78 	mr      r31,r28                                
    if ( to_copy > my_length )                                        
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc0ec6c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0ec70:	7f a4 eb 78 	mr      r4,r29                                 
ffc0ec74:	38 a0 00 00 	li      r5,0                                   
ffc0ec78:	4b ff f6 d1 	bl      ffc0e348 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
      return copied;                                                  
ffc0ec7c:	39 20 00 00 	li      r9,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 )                                                 
ffc0ec80:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0ec84:	41 82 00 d0 	beq-    ffc0ed54 <IMFS_memfile_write+0x1c4>    <== NEVER TAKEN
        block,                                                        
        to_copy,                                                      
        src                                                           
      );                                                              
    #endif                                                            
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
ffc0ec88:	80 63 00 00 	lwz     r3,0(r3)                               
ffc0ec8c:	7f 64 db 78 	mr      r4,r27                                 
ffc0ec90:	7f e5 fb 78 	mr      r5,r31                                 
ffc0ec94:	7c 63 ca 14 	add     r3,r3,r25                              
ffc0ec98:	48 00 18 a5 	bl      ffc1053c <memcpy>                      
    src += to_copy;                                                   
ffc0ec9c:	7f 7b fa 14 	add     r27,r27,r31                            
    block++;                                                          
ffc0eca0:	3b bd 00 01 	addi    r29,r29,1                              
    my_length -= to_copy;                                             
ffc0eca4:	7f 9f e0 50 	subf    r28,r31,r28                            
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
ffc0eca8:	3d 20 00 00 	lis     r9,0                                   
ffc0ecac:	83 49 28 00 	lwz     r26,10240(r9)                          
 *  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(                            
ffc0ecb0:	7f 7f d8 50 	subf    r27,r31,r27                            
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
ffc0ecb4:	7d 38 4b 78 	mr      r24,r9                                 
ffc0ecb8:	48 00 00 38 	b       ffc0ecf0 <IMFS_memfile_write+0x160>    
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc0ecbc:	7f c3 f3 78 	mr      r3,r30                                 
ffc0ecc0:	7f a4 eb 78 	mr      r4,r29                                 
ffc0ecc4:	38 a0 00 00 	li      r5,0                                   
ffc0ecc8:	4b ff f6 81 	bl      ffc0e348 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
ffc0eccc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0ecd0:	41 82 00 80 	beq-    ffc0ed50 <IMFS_memfile_write+0x1c0>    <== 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 );                       
ffc0ecd4:	80 63 00 00 	lwz     r3,0(r3)                               
ffc0ecd8:	7f 24 cb 78 	mr      r4,r25                                 
ffc0ecdc:	7f 45 d3 78 	mr      r5,r26                                 
ffc0ece0:	48 00 18 5d 	bl      ffc1053c <memcpy>                      
    src += to_copy;                                                   
    block++;                                                          
ffc0ece4:	3b bd 00 01 	addi    r29,r29,1                              
    my_length -= to_copy;                                             
ffc0ece8:	7f 9a e0 50 	subf    r28,r26,r28                            
 *  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(                            
ffc0ecec:	7f ff d2 14 	add     r31,r31,r26                            
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
ffc0ecf0:	81 38 28 00 	lwz     r9,10240(r24)                          
 *  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(                            
ffc0ecf4:	7f 3b fa 14 	add     r25,r27,r31                            
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
ffc0ecf8:	7f 9c 48 40 	cmplw   cr7,r28,r9                             
ffc0ecfc:	40 9c ff c0 	bge+    cr7,ffc0ecbc <IMFS_memfile_write+0x12c>
   *  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 ) {                                                  
ffc0ed00:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0ed04:	41 9e 00 34 	beq-    cr7,ffc0ed38 <IMFS_memfile_write+0x1a8>
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc0ed08:	7f c3 f3 78 	mr      r3,r30                                 
ffc0ed0c:	7f a4 eb 78 	mr      r4,r29                                 
ffc0ed10:	38 a0 00 00 	li      r5,0                                   
ffc0ed14:	4b ff f6 35 	bl      ffc0e348 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
ffc0ed18:	7f e9 fb 78 	mr      r9,r31                                 
ffc0ed1c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0ed20:	41 82 00 34 	beq-    ffc0ed54 <IMFS_memfile_write+0x1c4>    <== 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 );                     
ffc0ed24:	80 63 00 00 	lwz     r3,0(r3)                               
ffc0ed28:	7f 24 cb 78 	mr      r4,r25                                 
ffc0ed2c:	7f 85 e3 78 	mr      r5,r28                                 
ffc0ed30:	48 00 18 0d 	bl      ffc1053c <memcpy>                      
    my_length = 0;                                                    
    copied += to_copy;                                                
ffc0ed34:	7f ff e2 14 	add     r31,r31,r28                            
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
ffc0ed38:	38 61 00 08 	addi    r3,r1,8                                
ffc0ed3c:	38 80 00 00 	li      r4,0                                   
ffc0ed40:	4b ff 58 ed 	bl      ffc0462c <gettimeofday>                
ffc0ed44:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0ed48:	91 3e 00 44 	stw     r9,68(r30)                             
ffc0ed4c:	91 3e 00 48 	stw     r9,72(r30)                             
   */                                                                 
                                                                      
  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 )                                                 
ffc0ed50:	7f e9 fb 78 	mr      r9,r31                                 
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
                                                                      
  return copied;                                                      
}                                                                     
ffc0ed54:	39 61 00 38 	addi    r11,r1,56                              
ffc0ed58:	7d 23 4b 78 	mr      r3,r9                                  
ffc0ed5c:	4b ff 18 4c 	b       ffc005a8 <_restgpr_24_x>               
                                                                      

ffc03c4c <IMFS_mknod>: dev_t dev, IMFS_jnode_types_t *type, IMFS_types_union *info ) { if ( S_ISDIR( mode ) ) {
ffc03c4c:	54 c9 04 26 	rlwinm  r9,r6,0,16,19                          
  const char *name,                                                   
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
ffc03c50:	7c 08 02 a6 	mflr    r0                                     
  dev_t dev,                                                          
  IMFS_jnode_types_t *type,                                           
  IMFS_types_union *info                                              
)                                                                     
{                                                                     
  if ( S_ISDIR( mode ) ) {                                            
ffc03c54:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
  const char *name,                                                   
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
ffc03c58:	7c 2b 0b 78 	mr      r11,r1                                 
ffc03c5c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc03c60:	7c 8c 23 78 	mr      r12,r4                                 
ffc03c64:	48 01 63 e5 	bl      ffc1a048 <_savegpr_31>                 
ffc03c68:	90 01 00 34 	stw     r0,52(r1)                              
ffc03c6c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc03c70:	7c a0 2b 78 	mr      r0,r5                                  
ffc03c74:	7c cb 33 78 	mr      r11,r6                                 
  dev_t dev,                                                          
  IMFS_jnode_types_t *type,                                           
  IMFS_types_union *info                                              
)                                                                     
{                                                                     
  if ( S_ISDIR( mode ) ) {                                            
ffc03c78:	41 9e 00 3c 	beq-    cr7,ffc03cb4 <IMFS_mknod+0x68>         
    *type = IMFS_DIRECTORY;                                           
  } else if ( S_ISREG( mode ) ) {                                     
ffc03c7c:	6d 26 ff ff 	xoris   r6,r9,65535                            
ffc03c80:	2f 86 80 00 	cmpwi   cr7,r6,-32768                          
ffc03c84:	41 9e 00 38 	beq-    cr7,ffc03cbc <IMFS_mknod+0x70>         
    *type = IMFS_MEMORY_FILE;                                         
  } else if ( S_ISBLK( mode ) || S_ISCHR( mode ) ) {                  
ffc03c88:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc03c8c:	41 9e 00 0c 	beq-    cr7,ffc03c98 <IMFS_mknod+0x4c>         
ffc03c90:	2f 89 20 00 	cmpwi   cr7,r9,8192                            
ffc03c94:	40 be 00 14 	bne+    cr7,ffc03ca8 <IMFS_mknod+0x5c>         
    *type = IMFS_DEVICE;                                              
    rtems_filesystem_split_dev_t(                                     
ffc03c98:	90 e1 00 08 	stw     r7,8(r1)                               
  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;                                              
ffc03c9c:	39 40 00 01 	li      r10,1                                  
    rtems_filesystem_split_dev_t(                                     
ffc03ca0:	91 01 00 0c 	stw     r8,12(r1)                              
ffc03ca4:	48 00 00 24 	b       ffc03cc8 <IMFS_mknod+0x7c>             
      dev,                                                            
      info->device.major,                                             
      info->device.minor                                              
    );                                                                
  } else if (S_ISFIFO( mode )) {                                      
ffc03ca8:	2f 89 10 00 	cmpwi   cr7,r9,4096                            
ffc03cac:	40 be 00 1c 	bne+    cr7,ffc03cc8 <IMFS_mknod+0x7c>         <== NEVER TAKEN
ffc03cb0:	48 00 00 14 	b       ffc03cc4 <IMFS_mknod+0x78>             
  IMFS_jnode_types_t *type,                                           
  IMFS_types_union *info                                              
)                                                                     
{                                                                     
  if ( S_ISDIR( mode ) ) {                                            
    *type = IMFS_DIRECTORY;                                           
ffc03cb4:	39 40 00 00 	li      r10,0                                  
ffc03cb8:	48 00 00 10 	b       ffc03cc8 <IMFS_mknod+0x7c>             
  } else if ( S_ISREG( mode ) ) {                                     
    *type = IMFS_MEMORY_FILE;                                         
ffc03cbc:	39 40 00 04 	li      r10,4                                  
ffc03cc0:	48 00 00 08 	b       ffc03cc8 <IMFS_mknod+0x7c>             
      dev,                                                            
      info->device.major,                                             
      info->device.minor                                              
    );                                                                
  } else if (S_ISFIFO( mode )) {                                      
    *type = IMFS_FIFO;                                                
ffc03cc4:	39 40 00 06 	li      r10,6                                  
  size_t namelen,                                                     
  mode_t mode,                                                        
  const IMFS_types_union *info                                        
)                                                                     
{                                                                     
  const IMFS_fs_info_t *fs_info =                                     
ffc03cc8:	81 3f 00 14 	lwz     r9,20(r31)                             
    (const IMFS_fs_info_t *) parentloc->mt_entry->fs_info;            
                                                                      
  return IMFS_create_node_with_control(                               
ffc03ccc:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
ffc03cd0:	7f e3 fb 78 	mr      r3,r31                                 
ffc03cd4:	81 29 00 08 	lwz     r9,8(r9)                               
ffc03cd8:	7d 85 63 78 	mr      r5,r12                                 
ffc03cdc:	7c 06 03 78 	mr      r6,r0                                  
ffc03ce0:	7d 49 52 14 	add     r10,r9,r10                             
ffc03ce4:	80 8a 00 08 	lwz     r4,8(r10)                              
ffc03ce8:	7d 67 5b 78 	mr      r7,r11                                 
ffc03cec:	39 01 00 08 	addi    r8,r1,8                                
ffc03cf0:	48 00 88 ed 	bl      ffc0c5dc <IMFS_create_node_with_control>
  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 ) {                                           
ffc03cf4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc03cf8:	41 9e 00 38 	beq-    cr7,ffc03d30 <IMFS_mknod+0xe4>         
    IMFS_jnode_t *parent = parentloc->node_access;                    
                                                                      
    IMFS_update_ctime( parent );                                      
ffc03cfc:	38 80 00 00 	li      r4,0                                   
                                                                      
  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;                    
ffc03d00:	83 ff 00 08 	lwz     r31,8(r31)                             
                                                                      
    IMFS_update_ctime( parent );                                      
ffc03d04:	38 61 00 20 	addi    r3,r1,32                               
ffc03d08:	48 00 09 25 	bl      ffc0462c <gettimeofday>                
ffc03d0c:	81 21 00 20 	lwz     r9,32(r1)                              
    IMFS_update_mtime( parent );                                      
ffc03d10:	38 61 00 20 	addi    r3,r1,32                               
                                                                      
  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 );                                      
ffc03d14:	91 3f 00 48 	stw     r9,72(r31)                             
    IMFS_update_mtime( parent );                                      
ffc03d18:	38 80 00 00 	li      r4,0                                   
ffc03d1c:	48 00 09 11 	bl      ffc0462c <gettimeofday>                
ffc03d20:	81 21 00 20 	lwz     r9,32(r1)                              
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
  int rv = 0;                                                         
ffc03d24:	38 60 00 00 	li      r3,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 );                                      
ffc03d28:	91 3f 00 44 	stw     r9,68(r31)                             
ffc03d2c:	48 00 00 08 	b       ffc03d34 <IMFS_mknod+0xe8>             
  } else {                                                            
    rv = -1;                                                          
ffc03d30:	38 60 ff ff 	li      r3,-1                                  
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc03d34:	39 61 00 30 	addi    r11,r1,48                              
ffc03d38:	4b ff c8 8c 	b       ffc005c4 <_restgpr_31_x>               
                                                                      

ffc03d3c <IMFS_mount>: #endif #include "imfs.h" int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
ffc03d3c:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc03d40:	7c 08 02 a6 	mflr    r0                                     
ffc03d44:	90 01 00 0c 	stw     r0,12(r1)                              
  int rv = 0;                                                         
  IMFS_jnode_t *node = mt_entry->mt_point_node->location.node_access; 
ffc03d48:	81 23 00 20 	lwz     r9,32(r3)                              
ffc03d4c:	81 29 00 08 	lwz     r9,8(r9)                               
  return node->control->imfs_type;                                    
}                                                                     
                                                                      
static inline bool IMFS_is_directory( const IMFS_jnode_t *node )      
{                                                                     
  return node->control->imfs_type == IMFS_DIRECTORY;                  
ffc03d50:	81 49 00 4c 	lwz     r10,76(r9)                             
                                                                      
  if ( IMFS_is_directory( node ) ) {                                  
ffc03d54:	81 4a 00 00 	lwz     r10,0(r10)                             
ffc03d58:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc03d5c:	40 9e 00 28 	bne-    cr7,ffc03d84 <IMFS_mount+0x48>         
    if ( node->info.directory.mt_fs == NULL ) {                       
ffc03d60:	81 49 00 5c 	lwz     r10,92(r9)                             
ffc03d64:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc03d68:	40 9e 00 10 	bne-    cr7,ffc03d78 <IMFS_mount+0x3c>         <== NEVER TAKEN
      node->info.directory.mt_fs = mt_entry;                          
ffc03d6c:	90 69 00 5c 	stw     r3,92(r9)                              
                                                                      
#include "imfs.h"                                                     
                                                                      
int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry )      
{                                                                     
  int rv = 0;                                                         
ffc03d70:	38 60 00 00 	li      r3,0                                   
ffc03d74:	48 00 00 20 	b       ffc03d94 <IMFS_mount+0x58>             
                                                                      
  if ( IMFS_is_directory( node ) ) {                                  
    if ( node->info.directory.mt_fs == NULL ) {                       
      node->info.directory.mt_fs = mt_entry;                          
    } else {                                                          
      errno = EBUSY;                                                  
ffc03d78:	48 00 ba c1 	bl      ffc0f838 <__errno>                     <== NOT EXECUTED
ffc03d7c:	39 20 00 10 	li      r9,16                                  <== NOT EXECUTED
ffc03d80:	48 00 00 0c 	b       ffc03d8c <IMFS_mount+0x50>             <== NOT EXECUTED
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    errno = ENOTDIR;                                                  
ffc03d84:	48 00 ba b5 	bl      ffc0f838 <__errno>                     
ffc03d88:	39 20 00 14 	li      r9,20                                  
ffc03d8c:	91 23 00 00 	stw     r9,0(r3)                               
    rv = -1;                                                          
ffc03d90:	38 60 ff ff 	li      r3,-1                                  
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc03d94:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc03d98:	38 21 00 08 	addi    r1,r1,8                                
ffc03d9c:	7c 08 03 a6 	mtlr    r0                                     
ffc03da0:	4e 80 00 20 	blr                                            
                                                                      

ffc0c9e0 <IMFS_node_remove_directory>: } static IMFS_jnode_t *IMFS_node_remove_directory( IMFS_jnode_t *node ) {
ffc0c9e0:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0c9e4:	7c 08 02 a6 	mflr    r0                                     
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0c9e8:	39 43 00 54 	addi    r10,r3,84                              
ffc0c9ec:	90 01 00 0c 	stw     r0,12(r1)                              
  if ( !rtems_chain_is_empty( &node->info.directory.Entries ) ) {     
ffc0c9f0:	81 23 00 50 	lwz     r9,80(r3)                              
ffc0c9f4:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0c9f8:	41 be 00 10 	beq+    cr7,ffc0ca08 <IMFS_node_remove_directory+0x28>
    errno = ENOTEMPTY;                                                
ffc0c9fc:	48 00 2e 3d 	bl      ffc0f838 <__errno>                     
ffc0ca00:	39 20 00 5a 	li      r9,90                                  
ffc0ca04:	48 00 00 18 	b       ffc0ca1c <IMFS_node_remove_directory+0x3c>
    node = NULL;                                                      
  } else if ( IMFS_is_mount_point( node ) ) {                         
ffc0ca08:	81 23 00 5c 	lwz     r9,92(r3)                              
ffc0ca0c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ca10:	41 be 00 14 	beq+    cr7,ffc0ca24 <IMFS_node_remove_directory+0x44><== ALWAYS TAKEN
    errno = EBUSY;                                                    
ffc0ca14:	48 00 2e 25 	bl      ffc0f838 <__errno>                     <== NOT EXECUTED
ffc0ca18:	39 20 00 10 	li      r9,16                                  <== NOT EXECUTED
ffc0ca1c:	91 23 00 00 	stw     r9,0(r3)                               
ffc0ca20:	38 60 00 00 	li      r3,0                                   
    node = NULL;                                                      
  }                                                                   
                                                                      
  return node;                                                        
}                                                                     
ffc0ca24:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0ca28:	38 21 00 08 	addi    r1,r1,8                                
ffc0ca2c:	7c 08 03 a6 	mtlr    r0                                     
ffc0ca30:	4e 80 00 20 	blr                                            
                                                                      

ffc03da4 <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;
ffc03da4:	81 43 00 08 	lwz     r10,8(r3)                              
  rtems_chain_extract_unprotected( &node->Node );                     
}                                                                     
                                                                      
static inline IMFS_jnode_types_t IMFS_type( const IMFS_jnode_t *node )
{                                                                     
  return node->control->imfs_type;                                    
ffc03da8:	81 2a 00 4c 	lwz     r9,76(r10)                             
ffc03dac:	81 29 00 00 	lwz     r9,0(r9)                               
  IMFS_jnode_types_t imfs_type = IMFS_type( node );                   
  rtems_filesystem_node_types_t type;                                 
                                                                      
  switch ( imfs_type ) {                                              
ffc03db0:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc03db4:	41 9e 00 14 	beq-    cr7,ffc03dc8 <IMFS_node_type+0x24>     
ffc03db8:	2f 89 00 05 	cmpwi   cr7,r9,5                               
    case IMFS_HARD_LINK:                                              
      type = IMFS_type( node->info.hard_link.link_node );             
      break;                                                          
    case IMFS_LINEAR_FILE:                                            
      type = RTEMS_FILESYSTEM_MEMORY_FILE;                            
ffc03dbc:	38 60 00 04 	li      r3,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 ) {                                              
ffc03dc0:	40 be 00 18 	bne+    cr7,ffc03dd8 <IMFS_node_type+0x34>     <== ALWAYS TAKEN
ffc03dc4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
      type = imfs_type;                                               
      break;                                                          
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
ffc03dc8:	81 2a 00 50 	lwz     r9,80(r10)                             
ffc03dcc:	81 29 00 4c 	lwz     r9,76(r9)                              
ffc03dd0:	80 69 00 00 	lwz     r3,0(r9)                               
  rtems_filesystem_node_types_t type;                                 
                                                                      
  switch ( imfs_type ) {                                              
    case IMFS_HARD_LINK:                                              
      type = IMFS_type( node->info.hard_link.link_node );             
      break;                                                          
ffc03dd4:	4e 80 00 20 	blr                                            
ffc03dd8:	7d 23 4b 78 	mr      r3,r9                                  
      type = imfs_type;                                               
      break;                                                          
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
ffc03ddc:	4e 80 00 20 	blr                                            
                                                                      

ffc03e14 <IMFS_rename>: const rtems_filesystem_location_info_t *oldloc, const rtems_filesystem_location_info_t *newparentloc, const char *name, size_t namelen ) {
ffc03e14:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc03e18:	7c 08 02 a6 	mflr    r0                                     
ffc03e1c:	90 01 00 2c 	stw     r0,44(r1)                              
ffc03e20:	bf a1 00 1c 	stmw    r29,28(r1)                             
  int rv = 0;                                                         
  IMFS_jnode_t *node = oldloc->node_access;                           
ffc03e24:	83 e4 00 08 	lwz     r31,8(r4)                              
  IMFS_jnode_t *new_parent = newparentloc->node_access;               
ffc03e28:	83 c5 00 08 	lwz     r30,8(r5)                              
  /*                                                                  
   * FIXME: Due to insufficient checks we can create inaccessible nodes with
   * this operation.                                                  
   */                                                                 
                                                                      
  if ( node->Parent != NULL ) {                                       
ffc03e2c:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc03e30:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc03e34:	41 9e 00 80 	beq-    cr7,ffc03eb4 <IMFS_rename+0xa0>        <== NEVER TAKEN
    if ( namelen < IMFS_NAME_MAX ) {                                  
ffc03e38:	2b 87 00 1f 	cmplwi  cr7,r7,31                              
ffc03e3c:	7c fd 3b 78 	mr      r29,r7                                 
ffc03e40:	41 9d 00 68 	bgt-    cr7,ffc03ea8 <IMFS_rename+0x94>        <== NEVER TAKEN
      memcpy( node->name, name, namelen );                            
ffc03e44:	7c c4 33 78 	mr      r4,r6                                  
ffc03e48:	7c e5 3b 78 	mr      r5,r7                                  
ffc03e4c:	38 7f 00 0c 	addi    r3,r31,12                              
ffc03e50:	48 00 c6 ed 	bl      ffc1053c <memcpy>                      
      node->name [namelen] = '\0';                                    
ffc03e54:	7f bf ea 14 	add     r29,r31,r29                            
ffc03e58:	39 20 00 00 	li      r9,0                                   
ffc03e5c:	99 3d 00 0c 	stb     r9,12(r29)                             
                                                                      
      IMFS_remove_from_directory( node );                             
      IMFS_add_to_directory( new_parent, node );                      
      IMFS_update_ctime( node );                                      
ffc03e60:	38 61 00 08 	addi    r3,r1,8                                
ffc03e64:	38 80 00 00 	li      r4,0                                   
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc03e68:	81 3f 00 00 	lwz     r9,0(r31)                              
  previous       = the_node->previous;                                
ffc03e6c:	81 5f 00 04 	lwz     r10,4(r31)                             
  next->previous = previous;                                          
ffc03e70:	91 49 00 04 	stw     r10,4(r9)                              
  previous->next = next;                                              
ffc03e74:	91 2a 00 00 	stw     r9,0(r10)                              
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(                  
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
ffc03e78:	39 5e 00 54 	addi    r10,r30,84                             
  Chain_Node *old_last = tail->previous;                              
ffc03e7c:	81 3e 00 58 	lwz     r9,88(r30)                             
static inline void IMFS_add_to_directory(                             
  IMFS_jnode_t *dir,                                                  
  IMFS_jnode_t *node                                                  
)                                                                     
{                                                                     
  node->Parent = dir;                                                 
ffc03e80:	93 df 00 08 	stw     r30,8(r31)                             
                                                                      
  the_node->next = tail;                                              
ffc03e84:	91 5f 00 00 	stw     r10,0(r31)                             
  tail->previous = the_node;                                          
ffc03e88:	93 fe 00 58 	stw     r31,88(r30)                            
  old_last->next = the_node;                                          
ffc03e8c:	93 e9 00 00 	stw     r31,0(r9)                              
  the_node->previous = old_last;                                      
ffc03e90:	91 3f 00 04 	stw     r9,4(r31)                              
ffc03e94:	48 00 07 99 	bl      ffc0462c <gettimeofday>                
ffc03e98:	81 21 00 08 	lwz     r9,8(r1)                               
  const rtems_filesystem_location_info_t *newparentloc,               
  const char *name,                                                   
  size_t namelen                                                      
)                                                                     
{                                                                     
  int rv = 0;                                                         
ffc03e9c:	38 60 00 00 	li      r3,0                                   
      memcpy( node->name, name, namelen );                            
      node->name [namelen] = '\0';                                    
                                                                      
      IMFS_remove_from_directory( node );                             
      IMFS_add_to_directory( new_parent, node );                      
      IMFS_update_ctime( node );                                      
ffc03ea0:	91 3f 00 48 	stw     r9,72(r31)                             
ffc03ea4:	48 00 00 20 	b       ffc03ec4 <IMFS_rename+0xb0>            
    } else {                                                          
      errno = ENAMETOOLONG;                                           
ffc03ea8:	48 00 b9 91 	bl      ffc0f838 <__errno>                     <== NOT EXECUTED
ffc03eac:	39 20 00 5b 	li      r9,91                                  <== NOT EXECUTED
ffc03eb0:	48 00 00 0c 	b       ffc03ebc <IMFS_rename+0xa8>            <== NOT EXECUTED
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
ffc03eb4:	48 00 b9 85 	bl      ffc0f838 <__errno>                     <== NOT EXECUTED
ffc03eb8:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc03ebc:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    rv = -1;                                                          
ffc03ec0:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc03ec4:	39 61 00 28 	addi    r11,r1,40                              
ffc03ec8:	4b ff c6 f4 	b       ffc005bc <_restgpr_29_x>               
                                                                      

ffc03fd4 <IMFS_unmount>: #endif #include "imfs.h" int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
ffc03fd4:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc03fd8:	7c 08 02 a6 	mflr    r0                                     
ffc03fdc:	90 01 00 0c 	stw     r0,12(r1)                              
  int rv = 0;                                                         
  IMFS_jnode_t *node = mt_entry->mt_point_node->location.node_access; 
ffc03fe0:	81 23 00 20 	lwz     r9,32(r3)                              
ffc03fe4:	81 29 00 08 	lwz     r9,8(r9)                               
  return node->control->imfs_type;                                    
}                                                                     
                                                                      
static inline bool IMFS_is_directory( const IMFS_jnode_t *node )      
{                                                                     
  return node->control->imfs_type == IMFS_DIRECTORY;                  
ffc03fe8:	81 49 00 4c 	lwz     r10,76(r9)                             
                                                                      
  if ( IMFS_is_directory( node ) ) {                                  
ffc03fec:	81 4a 00 00 	lwz     r10,0(r10)                             
ffc03ff0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc03ff4:	40 9e 00 28 	bne-    cr7,ffc0401c <IMFS_unmount+0x48>       <== NEVER TAKEN
    if ( node->info.directory.mt_fs == mt_entry ) {                   
ffc03ff8:	81 09 00 5c 	lwz     r8,92(r9)                              
ffc03ffc:	7f 88 18 00 	cmpw    cr7,r8,r3                              
ffc04000:	40 9e 00 10 	bne-    cr7,ffc04010 <IMFS_unmount+0x3c>       <== NEVER TAKEN
      node->info.directory.mt_fs = NULL;                              
ffc04004:	91 49 00 5c 	stw     r10,92(r9)                             
                                                                      
#include "imfs.h"                                                     
                                                                      
int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry )    
{                                                                     
  int rv = 0;                                                         
ffc04008:	38 60 00 00 	li      r3,0                                   
ffc0400c:	48 00 00 20 	b       ffc0402c <IMFS_unmount+0x58>           
                                                                      
  if ( IMFS_is_directory( node ) ) {                                  
    if ( node->info.directory.mt_fs == mt_entry ) {                   
      node->info.directory.mt_fs = NULL;                              
    } else {                                                          
      errno = EINVAL;                                                 
ffc04010:	48 00 b8 29 	bl      ffc0f838 <__errno>                     <== NOT EXECUTED
ffc04014:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc04018:	48 00 00 0c 	b       ffc04024 <IMFS_unmount+0x50>           <== NOT EXECUTED
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    errno = ENOTDIR;                                                  
ffc0401c:	48 00 b8 1d 	bl      ffc0f838 <__errno>                     <== NOT EXECUTED
ffc04020:	39 20 00 14 	li      r9,20                                  <== NOT EXECUTED
ffc04024:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    rv = -1;                                                          
ffc04028:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0402c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc04030:	38 21 00 08 	addi    r1,r1,8                                
ffc04034:	7c 08 03 a6 	mtlr    r0                                     
ffc04038:	4e 80 00 20 	blr                                            
                                                                      

ffc04824 <RTEMS_Malloc_Initialize>: void RTEMS_Malloc_Initialize( const Heap_Area *areas, size_t area_count, Heap_Initialization_or_extend_handler extend ) {
ffc04824:	94 21 ff e0 	stwu    r1,-32(r1)                             
  Heap_Control *heap = RTEMS_Malloc_Heap;                             
ffc04828:	3d 20 00 00 	lis     r9,0                                   
void RTEMS_Malloc_Initialize(                                         
  const Heap_Area *areas,                                             
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
ffc0482c:	7c 08 02 a6 	mflr    r0                                     
ffc04830:	bf 41 00 08 	stmw    r26,8(r1)                              
  Heap_Control *heap = RTEMS_Malloc_Heap;                             
ffc04834:	83 89 27 50 	lwz     r28,10064(r9)                          
                                                                      
  if ( !rtems_configuration_get_unified_work_area() ) {               
ffc04838:	3d 20 ff c2 	lis     r9,-62                                 
ffc0483c:	89 29 ad 89 	lbz     r9,-21111(r9)                          
void RTEMS_Malloc_Initialize(                                         
  const Heap_Area *areas,                                             
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
ffc04840:	90 01 00 24 	stw     r0,36(r1)                              
  Heap_Control *heap = RTEMS_Malloc_Heap;                             
                                                                      
  if ( !rtems_configuration_get_unified_work_area() ) {               
ffc04844:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04848:	40 9e 00 74 	bne-    cr7,ffc048bc <RTEMS_Malloc_Initialize+0x98>
ffc0484c:	3f c0 ff c1 	lis     r30,-63                                
ffc04850:	7c 9b 23 78 	mr      r27,r4                                 
ffc04854:	7c ba 2b 78 	mr      r26,r5                                 
ffc04858:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0485c:	3b a0 00 00 	li      r29,0                                  
ffc04860:	3b de 9a f8 	addi    r30,r30,-25864                         
ffc04864:	48 00 00 30 	b       ffc04894 <RTEMS_Malloc_Initialize+0x70>
    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)(                  
ffc04868:	7f 83 e3 78 	mr      r3,r28                                 
ffc0486c:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc04870:	80 bf 00 04 	lwz     r5,4(r31)                              
ffc04874:	38 c0 00 08 	li      r6,8                                   
ffc04878:	7f c9 03 a6 	mtctr   r30                                    
ffc0487c:	4e 80 04 21 	bctrl                                          
        area->begin,                                                  
        area->size,                                                   
        page_size                                                     
      );                                                              
                                                                      
      if ( space_available > 0 ) {                                    
ffc04880:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04884:	41 9e 00 08 	beq-    cr7,ffc0488c <RTEMS_Malloc_Initialize+0x68><== NEVER TAKEN
        init_or_extend = extend;                                      
ffc04888:	7f 5e d3 78 	mr      r30,r26                                
  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) {                                
ffc0488c:	3b bd 00 01 	addi    r29,r29,1                              
ffc04890:	3b ff 00 08 	addi    r31,r31,8                              
ffc04894:	7f 9d d8 00 	cmpw    cr7,r29,r27                            
ffc04898:	40 9e ff d0 	bne+    cr7,ffc04868 <RTEMS_Malloc_Initialize+0x44>
      if ( space_available > 0 ) {                                    
        init_or_extend = extend;                                      
      }                                                               
    }                                                                 
                                                                      
    if ( init_or_extend == _Heap_Initialize ) {                       
ffc0489c:	3d 20 ff c1 	lis     r9,-63                                 
ffc048a0:	39 29 9a f8 	addi    r9,r9,-25864                           
ffc048a4:	7f 9e 48 00 	cmpw    cr7,r30,r9                             
ffc048a8:	40 be 00 14 	bne+    cr7,ffc048bc <RTEMS_Malloc_Initialize+0x98>
      _Internal_error_Occurred(                                       
ffc048ac:	38 60 00 00 	li      r3,0                                   
ffc048b0:	38 80 00 01 	li      r4,1                                   
ffc048b4:	38 a0 00 17 	li      r5,23                                  
ffc048b8:	48 00 54 c1 	bl      ffc09d78 <_Internal_error_Occurred>    
  }                                                                   
                                                                      
  /*                                                                  
   *  If configured, initialize the statistics support                
   */                                                                 
  if ( rtems_malloc_statistics_helpers != NULL ) {                    
ffc048bc:	3d 20 00 00 	lis     r9,0                                   
ffc048c0:	81 29 27 c4 	lwz     r9,10180(r9)                           
ffc048c4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc048c8:	41 9e 00 10 	beq-    cr7,ffc048d8 <RTEMS_Malloc_Initialize+0xb4>
    (*rtems_malloc_statistics_helpers->initialize)();                 
ffc048cc:	81 29 00 00 	lwz     r9,0(r9)                               
ffc048d0:	7d 29 03 a6 	mtctr   r9                                     
ffc048d4:	4e 80 04 21 	bctrl                                          
  }                                                                   
                                                                      
  MSBUMP( space_available, _Protected_heap_Get_size( heap ) );        
ffc048d8:	3f e0 00 00 	lis     r31,0                                  
ffc048dc:	83 df 2b 20 	lwz     r30,11040(r31)                         
ffc048e0:	7f 83 e3 78 	mr      r3,r28                                 
ffc048e4:	48 00 5d 55 	bl      ffc0a638 <_Protected_heap_Get_size>    
ffc048e8:	7c 63 f2 14 	add     r3,r3,r30                              
}                                                                     
ffc048ec:	39 61 00 20 	addi    r11,r1,32                              
   */                                                                 
  if ( rtems_malloc_statistics_helpers != NULL ) {                    
    (*rtems_malloc_statistics_helpers->initialize)();                 
  }                                                                   
                                                                      
  MSBUMP( space_available, _Protected_heap_Get_size( heap ) );        
ffc048f0:	90 7f 2b 20 	stw     r3,11040(r31)                          
}                                                                     
ffc048f4:	4b ff bc bc 	b       ffc005b0 <_restgpr_26_x>               
                                                                      

ffc22a84 <Stack_check_Dump_threads_usage>: static rtems_printk_plugin_t print_handler; static void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) {
ffc22a84:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc22a88:	7c 08 02 a6 	mflr    r0                                     
      current = 0;                                                    
    } else                                                            
  #endif                                                              
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
ffc22a8c:	39 23 00 c0 	addi    r9,r3,192                              
static rtems_printk_plugin_t   print_handler;                         
                                                                      
static void Stack_check_Dump_threads_usage(                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc22a90:	90 01 00 44 	stw     r0,68(r1)                              
{                                                                     
  uintptr_t clsz = PPC_DEFAULT_CACHE_LINE_SIZE;                       
  uintptr_t mask = clsz - 1;                                          
  uintptr_t addr = (uintptr_t) context;                               
                                                                      
  return (ppc_context *) ((addr & ~mask) + clsz);                     
ffc22a94:	55 29 00 34 	rlwinm  r9,r9,0,0,26                           
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
      if (*base != U32_PATTERN)                                       
ffc22a98:	3c c0 a5 a5 	lis     r6,-23131                              
static rtems_printk_plugin_t   print_handler;                         
                                                                      
static void Stack_check_Dump_threads_usage(                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc22a9c:	be e1 00 1c 	stmw    r23,28(r1)                             
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
      if (*base != U32_PATTERN)                                       
ffc22aa0:	60 c6 a5 a5 	ori     r6,r6,42405                            
static rtems_printk_plugin_t   print_handler;                         
                                                                      
static void Stack_check_Dump_threads_usage(                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc22aa4:	7c 7f 1b 78 	mr      r31,r3                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
  size = Stack_check_usable_stack_size(stack);                        
ffc22aa8:	83 63 00 b0 	lwz     r27,176(r3)                            
      current = 0;                                                    
    } else                                                            
  #endif                                                              
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
ffc22aac:	83 29 00 20 	lwz     r25,32(r9)                             
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
ffc22ab0:	81 23 00 b4 	lwz     r9,180(r3)                             
  size = Stack_check_usable_stack_size(stack);                        
ffc22ab4:	3b 7b ff 80 	addi    r27,r27,-128                           
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
ffc22ab8:	57 67 00 3a 	rlwinm  r7,r27,0,0,29                          
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
ffc22abc:	39 09 00 80 	addi    r8,r9,128                              
    /*                                                                
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
ffc22ac0:	39 29 01 00 	addi    r9,r9,256                              
    for (ebase = base + length; base < ebase; base++)                 
ffc22ac4:	7c e9 3a 14 	add     r7,r9,r7                               
ffc22ac8:	48 00 00 14 	b       ffc22adc <Stack_check_Dump_threads_usage+0x58>
      if (*base != U32_PATTERN)                                       
ffc22acc:	81 49 00 00 	lwz     r10,0(r9)                              
ffc22ad0:	7f 8a 30 00 	cmpw    cr7,r10,r6                             
ffc22ad4:	40 9e 00 18 	bne-    cr7,ffc22aec <Stack_check_Dump_threads_usage+0x68>
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
ffc22ad8:	39 29 00 04 	addi    r9,r9,4                                
ffc22adc:	7f 89 38 40 	cmplw   cr7,r9,r7                              
ffc22ae0:	41 9c ff ec 	blt+    cr7,ffc22acc <Stack_check_Dump_threads_usage+0x48><== 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;                                                         
ffc22ae4:	3b 80 00 00 	li      r28,0                                  <== NOT EXECUTED
ffc22ae8:	48 00 00 18 	b       ffc22b00 <Stack_check_Dump_threads_usage+0x7c><== NOT EXECUTED
  low  = Stack_check_usable_stack_start(stack);                       
  size = Stack_check_usable_stack_size(stack);                        
                                                                      
  high_water_mark = Stack_check_find_high_water_mark(low, size);      
                                                                      
  if ( high_water_mark )                                              
ffc22aec:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    used = Stack_check_Calculate_used( low, size, high_water_mark );  
  else                                                                
    used = 0;                                                         
ffc22af0:	3b 80 00 00 	li      r28,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 )                                              
ffc22af4:	41 9e 00 0c 	beq-    cr7,ffc22b00 <Stack_check_Dump_threads_usage+0x7c><== NEVER TAKEN
    used = Stack_check_Calculate_used( low, size, high_water_mark );  
ffc22af8:	7f 88 da 14 	add     r28,r8,r27                             
ffc22afc:	7f 89 e0 50 	subf    r28,r9,r28                             
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if ( the_thread )                                                 
  #endif                                                              
    {                                                                 
      (*print_handler)(                                               
ffc22b00:	3f c0 00 00 	lis     r30,0                                  
ffc22b04:	83 5f 00 08 	lwz     r26,8(r31)                             
ffc22b08:	3b be 5c b0 	addi    r29,r30,23728                          
ffc22b0c:	83 1e 5c b0 	lwz     r24,23728(r30)                         
ffc22b10:	82 fd 00 04 	lwz     r23,4(r29)                             
ffc22b14:	38 80 00 05 	li      r4,5                                   
ffc22b18:	38 a1 00 08 	addi    r5,r1,8                                
ffc22b1c:	7f 43 d3 78 	mr      r3,r26                                 
ffc22b20:	4b fe cb 91 	bl      ffc0f6b0 <rtems_object_get_name>       
ffc22b24:	3c 80 ff c6 	lis     r4,-58                                 
ffc22b28:	7c 66 1b 78 	mr      r6,r3                                  
ffc22b2c:	7f 09 03 a6 	mtctr   r24                                    
ffc22b30:	38 84 99 f8 	addi    r4,r4,-26120                           
ffc22b34:	7f 45 d3 78 	mr      r5,r26                                 
ffc22b38:	7e e3 bb 78 	mr      r3,r23                                 
ffc22b3c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc22b40:	4e 80 04 21 	bctrl                                          
                                                                      
  (*print_handler)(                                                   
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
ffc22b44:	80 df 00 b0 	lwz     r6,176(r31)                            
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
ffc22b48:	81 3e 5c b0 	lwz     r9,23728(r30)                          
ffc22b4c:	3c 80 ff c6 	lis     r4,-58                                 
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
ffc22b50:	80 bf 00 b4 	lwz     r5,180(r31)                            
ffc22b54:	38 c6 ff ff 	addi    r6,r6,-1                               
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
ffc22b58:	7d 29 03 a6 	mtctr   r9                                     
ffc22b5c:	80 7d 00 04 	lwz     r3,4(r29)                              
ffc22b60:	38 84 9a 05 	addi    r4,r4,-26107                           
ffc22b64:	7c c5 32 14 	add     r6,r5,r6                               
ffc22b68:	7f 27 cb 78 	mr      r7,r25                                 
ffc22b6c:	7f 68 db 78 	mr      r8,r27                                 
ffc22b70:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc22b74:	4e 80 04 21 	bctrl                                          
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
ffc22b78:	81 3d 00 08 	lwz     r9,8(r29)                              
    (*print_handler)( print_context, "Unavailable\n" );               
ffc22b7c:	80 7d 00 04 	lwz     r3,4(r29)                              
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
ffc22b80:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    (*print_handler)( print_context, "Unavailable\n" );               
ffc22b84:	81 3e 5c b0 	lwz     r9,23728(r30)                          
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
ffc22b88:	40 be 00 1c 	bne+    cr7,ffc22ba4 <Stack_check_Dump_threads_usage+0x120><== ALWAYS TAKEN
    (*print_handler)( print_context, "Unavailable\n" );               
ffc22b8c:	3c 80 ff c6 	lis     r4,-58                                 <== NOT EXECUTED
ffc22b90:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc22b94:	38 84 9a 23 	addi    r4,r4,-26077                           <== NOT EXECUTED
ffc22b98:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22b9c:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc22ba0:	48 00 00 1c 	b       ffc22bbc <Stack_check_Dump_threads_usage+0x138><== NOT EXECUTED
  } else {                                                            
    (*print_handler)( print_context, "%8" PRId32 "\n", used );        
ffc22ba4:	3c 80 ff c6 	lis     r4,-58                                 
ffc22ba8:	7d 29 03 a6 	mtctr   r9                                     
ffc22bac:	38 84 9a 30 	addi    r4,r4,-26064                           
ffc22bb0:	7f 85 e3 78 	mr      r5,r28                                 
ffc22bb4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc22bb8:	4e 80 04 21 	bctrl                                          
  }                                                                   
                                                                      
                                                                      
}                                                                     
ffc22bbc:	39 61 00 40 	addi    r11,r1,64                              
ffc22bc0:	48 03 0c 1c 	b       ffc537dc <_restgpr_23_x>               
                                                                      

ffc22c94 <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) {
ffc22c94:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc22c98:	7c 08 02 a6 	mflr    r0                                     
ffc22c9c:	90 01 00 3c 	stw     r0,60(r1)                              
ffc22ca0:	bf a1 00 2c 	stmw    r29,44(r1)                             
ffc22ca4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc22ca8:	7c 9d 23 78 	mr      r29,r4                                 
  Stack_Control *stack = &running->Start.Initial_stack;               
  void          *pattern_area = Stack_check_Get_pattern(stack);       
ffc22cac:	83 c3 00 b4 	lwz     r30,180(r3)                            
  char           name[32];                                            
                                                                      
  printk("BLOWN STACK!!!\n");                                         
ffc22cb0:	3c 60 ff c6 	lis     r3,-58                                 
ffc22cb4:	38 63 9a 36 	addi    r3,r3,-26058                           
ffc22cb8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc22cbc:	4b fe 20 e9 	bl      ffc04da4 <printk>                      
  printk("task control block: 0x%08" PRIxPTR "\n", running);          
ffc22cc0:	3c 60 ff c6 	lis     r3,-58                                 
ffc22cc4:	38 63 9a 46 	addi    r3,r3,-26042                           
ffc22cc8:	7f e4 fb 78 	mr      r4,r31                                 
ffc22ccc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc22cd0:	4b fe 20 d5 	bl      ffc04da4 <printk>                      
  printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);   
ffc22cd4:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc22cd8:	3c 60 ff c6 	lis     r3,-58                                 
ffc22cdc:	38 63 9a 62 	addi    r3,r3,-26014                           
ffc22ce0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc22ce4:	4b fe 20 c1 	bl      ffc04da4 <printk>                      
  printk(                                                             
ffc22ce8:	80 9f 00 0c 	lwz     r4,12(r31)                             
ffc22cec:	3c 60 ff c6 	lis     r3,-58                                 
ffc22cf0:	38 63 9a 74 	addi    r3,r3,-25996                           
ffc22cf4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc22cf8:	4b fe 20 ad 	bl      ffc04da4 <printk>                      
    "task name: 0x%08" PRIx32 "\n",                                   
    running->Object.name.name_u32                                     
  );                                                                  
  printk(                                                             
ffc22cfc:	80 7f 00 08 	lwz     r3,8(r31)                              
ffc22d00:	38 a1 00 08 	addi    r5,r1,8                                
ffc22d04:	38 80 00 20 	li      r4,32                                  
ffc22d08:	4b fe c9 a9 	bl      ffc0f6b0 <rtems_object_get_name>       
ffc22d0c:	7c 64 1b 78 	mr      r4,r3                                  
ffc22d10:	3c 60 ff c6 	lis     r3,-58                                 
ffc22d14:	38 63 9a 88 	addi    r3,r3,-25976                           
ffc22d18:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc22d1c:	4b fe 20 89 	bl      ffc04da4 <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)                              
ffc22d20:	80 bf 00 b4 	lwz     r5,180(r31)                            
ffc22d24:	80 9f 00 b0 	lwz     r4,176(r31)                            
  );                                                                  
  printk(                                                             
    "task name string: %s\n",                                         
    rtems_object_get_name(running->Object.id, sizeof(name), name)     
  );                                                                  
  printk(                                                             
ffc22d28:	3c 60 ff c6 	lis     r3,-58                                 
ffc22d2c:	38 63 9a 9e 	addi    r3,r3,-25954                           
ffc22d30:	7c c5 22 14 	add     r6,r5,r4                               
ffc22d34:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc22d38:	4b fe 20 6d 	bl      ffc04da4 <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) {                                                  
ffc22d3c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc22d40:	40 be 00 20 	bne+    cr7,ffc22d60 <Stack_check_report_blown_task+0xcc><== NEVER TAKEN
    printk(                                                           
ffc22d44:	3c 60 ff c6 	lis     r3,-58                                 
ffc22d48:	38 63 9a cd 	addi    r3,r3,-25907                           
ffc22d4c:	38 80 00 80 	li      r4,128                                 
ffc22d50:	38 be 00 08 	addi    r5,r30,8                               
ffc22d54:	38 de 00 88 	addi    r6,r30,136                             
ffc22d58:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc22d5c:	4b fe 20 49 	bl      ffc04da4 <printk>                      
          rtems_configuration_get_user_multiprocessing_table()->node  
      );                                                              
    }                                                                 
  #endif                                                              
                                                                      
  rtems_fatal(                                                        
ffc22d60:	80 9f 00 0c 	lwz     r4,12(r31)                             
ffc22d64:	38 60 00 09 	li      r3,9                                   
ffc22d68:	4b fe 5b b1 	bl      ffc08918 <rtems_fatal>                 
                                                                      

ffc0eddc <TOD_MICROSECONDS_TO_TICKS>: /** * We should ensure the ticks not be truncated by integer division. We * need to have it be greater than or equal to the requested time. It * should not be shorter. */ microseconds_per_tick = rtems_configuration_get_microseconds_per_tick();
ffc0eddc:	3d 20 ff c2 	lis     r9,-62                                 
ffc0ede0:	81 49 46 34 	lwz     r10,17972(r9)                          
  ticks                 = microseconds / microseconds_per_tick;       
ffc0ede4:	7d 23 53 96 	divwu   r9,r3,r10                              
  if ( (microseconds % microseconds_per_tick) != 0 )                  
ffc0ede8:	7d 49 51 d6 	mullw   r10,r9,r10                             
ffc0edec:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc0edf0:	41 9e 00 08 	beq-    cr7,ffc0edf8 <TOD_MICROSECONDS_TO_TICKS+0x1c><== ALWAYS TAKEN
    ticks += 1;                                                       
ffc0edf4:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
                                                                      
  return ticks;                                                       
}                                                                     
ffc0edf8:	7d 23 4b 78 	mr      r3,r9                                  
ffc0edfc:	4e 80 00 20 	blr                                            
                                                                      

ffc0a124 <TOD_MILLISECONDS_TO_TICKS>: /** * We should ensure the ticks not be truncated by integer division. We * need to have it be greater than or equal to the requested time. It * should not be shorter. */ milliseconds_per_tick = rtems_configuration_get_milliseconds_per_tick();
ffc0a124:	3d 20 ff c2 	lis     r9,-62                                 
ffc0a128:	81 49 c0 04 	lwz     r10,-16380(r9)                         
ffc0a12c:	39 20 03 e8 	li      r9,1000                                
ffc0a130:	7d 4a 4b 96 	divwu   r10,r10,r9                             
  ticks                 = milliseconds / milliseconds_per_tick;       
ffc0a134:	7d 23 53 96 	divwu   r9,r3,r10                              
  if ( (milliseconds % milliseconds_per_tick) != 0 )                  
ffc0a138:	7d 49 51 d6 	mullw   r10,r9,r10                             
ffc0a13c:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc0a140:	41 9e 00 08 	beq-    cr7,ffc0a148 <TOD_MILLISECONDS_TO_TICKS+0x24><== ALWAYS TAKEN
    ticks += 1;                                                       
ffc0a144:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
                                                                      
  return ticks;                                                       
}                                                                     
ffc0a148:	7d 23 4b 78 	mr      r3,r9                                  
ffc0a14c:	4e 80 00 20 	blr                                            
                                                                      

ffc121c4 <_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 ) {
ffc121c4:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc121c8:	7c 08 02 a6 	mflr    r0                                     
  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;                  
ffc121cc:	39 20 00 00 	li      r9,0                                   
  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                 
)                                                                     
{                                                                     
ffc121d0:	bf a1 00 14 	stmw    r29,20(r1)                             
ffc121d4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc121d8:	7c 9d 23 78 	mr      r29,r4                                 
ffc121dc:	90 01 00 24 	stw     r0,36(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;                  
ffc121e0:	91 23 00 48 	stw     r9,72(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)) {             
ffc121e4:	70 c9 00 03 	andi.   r9,r6,3                                
)                                                                     
{                                                                     
  size_t message_buffering_required = 0;                              
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
ffc121e8:	90 a3 00 44 	stw     r5,68(r3)                              
  the_message_queue->number_of_pending_messages = 0;                  
  the_message_queue->maximum_message_size       = maximum_message_size;
ffc121ec:	90 c3 00 4c 	stw     r6,76(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)) {             
ffc121f0:	41 82 00 1c 	beq-    ffc1220c <_CORE_message_queue_Initialize+0x48>
    allocated_message_size += sizeof(uintptr_t);                      
ffc121f4:	39 26 00 04 	addi    r9,r6,4                                
    allocated_message_size &= ~(sizeof(uintptr_t) - 1);               
ffc121f8:	55 29 00 3a 	rlwinm  r9,r9,0,0,29                           
                                                                      
  /*                                                                  
   * 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)                  
ffc121fc:	7f 89 30 40 	cmplw   cr7,r9,r6                              
ffc12200:	40 9c 00 10 	bge-    cr7,ffc12210 <_CORE_message_queue_Initialize+0x4c>
    return false;                                                     
ffc12204:	38 60 00 00 	li      r3,0                                   
ffc12208:	48 00 00 84 	b       ffc1228c <_CORE_message_queue_Initialize+0xc8>
  /*                                                                  
   * 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)) {             
ffc1220c:	7c c9 33 78 	mr      r9,r6                                  
                                                                      
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  if ( !size_t_mult32_with_overflow(                                  
ffc12210:	3b c9 00 10 	addi    r30,r9,16                              
  size_t  a,                                                          
  size_t  b,                                                          
  size_t *c                                                           
)                                                                     
{                                                                     
  long long x = (long long)a*b;                                       
ffc12214:	7d 45 f0 16 	mulhwu  r10,r5,r30                             
ffc12218:	7d 65 f1 d6 	mullw   r11,r5,r30                             
                                                                      
  if ( x > SIZE_MAX )                                                 
ffc1221c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc12220:	41 bd ff e4 	bgt-    cr7,ffc12204 <_CORE_message_queue_Initialize+0x40>
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
     _Workspace_Allocate( message_buffering_required );               
ffc12224:	7d 63 5b 78 	mr      r3,r11                                 
ffc12228:	90 a1 00 08 	stw     r5,8(r1)                               
ffc1222c:	48 00 31 19 	bl      ffc15344 <_Workspace_Allocate>         
                                                                      
  if (the_message_queue->message_buffers == 0)                        
ffc12230:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    return false;                                                     
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
ffc12234:	90 7f 00 5c 	stw     r3,92(r31)                             
     _Workspace_Allocate( message_buffering_required );               
ffc12238:	7c 64 1b 78 	mr      r4,r3                                  
                                                                      
  if (the_message_queue->message_buffers == 0)                        
ffc1223c:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc12240:	41 be ff c4 	beq-    cr7,ffc12204 <_CORE_message_queue_Initialize+0x40><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Initialize the pool of inactive messages, pending messages,     
   *  and set of waiting threads.                                     
   */                                                                 
  _Chain_Initialize (                                                 
ffc12244:	38 7f 00 60 	addi    r3,r31,96                              
ffc12248:	7f c6 f3 78 	mr      r6,r30                                 
ffc1224c:	4b ff ff 3d 	bl      ffc12188 <_Chain_Initialize>           
 */                                                                   
RTEMS_INLINE_ROUTINE bool _CORE_message_queue_Is_priority(            
  CORE_message_queue_Attributes *the_attribute                        
)                                                                     
{                                                                     
  return                                                              
ffc12250:	80 9d 00 00 	lwz     r4,0(r29)                              
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 );                        
ffc12254:	39 5f 00 54 	addi    r10,r31,84                             
ffc12258:	39 3f 00 50 	addi    r9,r31,80                              
                                                                      
  head->next = tail;                                                  
ffc1225c:	91 5f 00 50 	stw     r10,80(r31)                            
    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
  );                                                                  
                                                                      
  _Chain_Initialize_empty( &the_message_queue->Pending_messages );    
                                                                      
  _Thread_queue_Initialize(                                           
ffc12260:	68 84 00 01 	xori    r4,r4,1                                
  head->previous = NULL;                                              
ffc12264:	39 40 00 00 	li      r10,0                                  
  tail->previous = head;                                              
ffc12268:	91 3f 00 58 	stw     r9,88(r31)                             
ffc1226c:	7c 84 00 34 	cntlzw  r4,r4                                  
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc12270:	91 5f 00 54 	stw     r10,84(r31)                            
ffc12274:	7f e3 fb 78 	mr      r3,r31                                 
ffc12278:	54 84 d9 7e 	rlwinm  r4,r4,27,5,31                          
ffc1227c:	38 a0 00 80 	li      r5,128                                 
ffc12280:	38 c0 00 06 	li      r6,6                                   
ffc12284:	48 00 27 a9 	bl      ffc14a2c <_Thread_queue_Initialize>    
       THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
ffc12288:	38 60 00 01 	li      r3,1                                   
}                                                                     
ffc1228c:	39 61 00 20 	addi    r11,r1,32                              
ffc12290:	4b ff 37 3c 	b       ffc059cc <_restgpr_29_x>               
                                                                      

ffc097fc <_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 ) {
ffc097fc:	7c 2b 0b 78 	mr      r11,r1                                 
ffc09800:	7c 08 02 a6 	mflr    r0                                     
ffc09804:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc09808:	48 01 08 41 	bl      ffc1a048 <_savegpr_31>                 
ffc0980c:	90 01 00 14 	stw     r0,20(r1)                              
ffc09810:	7c 7f 1b 78 	mr      r31,r3                                 
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
ffc09814:	48 00 1d 01 	bl      ffc0b514 <_Thread_queue_Dequeue>       
ffc09818:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0981c:	40 be 00 3c 	bne+    cr7,ffc09858 <_CORE_semaphore_Surrender+0x5c>
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc09820:	7d 00 00 a6 	mfmsr   r8                                     
ffc09824:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc09828:	7d 09 48 78 	andc    r9,r8,r9                               
ffc0982c:	7d 20 01 24 	mtmsr   r9                                     
      (*api_semaphore_mp_support) ( the_thread, id );                 
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
ffc09830:	81 3f 00 48 	lwz     r9,72(r31)                             
        the_semaphore->count += 1;                                    
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
ffc09834:	38 60 00 04 	li      r3,4                                   
      (*api_semaphore_mp_support) ( the_thread, id );                 
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
ffc09838:	81 5f 00 40 	lwz     r10,64(r31)                            
ffc0983c:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc09840:	40 9c 00 10 	bge-    cr7,ffc09850 <_CORE_semaphore_Surrender+0x54><== NEVER TAKEN
        the_semaphore->count += 1;                                    
ffc09844:	39 29 00 01 	addi    r9,r9,1                                
ffc09848:	91 3f 00 48 	stw     r9,72(r31)                             
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
ffc0984c:	38 60 00 00 	li      r3,0                                   
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc09850:	7d 00 01 24 	mtmsr   r8                                     
ffc09854:	48 00 00 08 	b       ffc0985c <_CORE_semaphore_Surrender+0x60>
ffc09858:	38 60 00 00 	li      r3,0                                   
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc0985c:	39 61 00 10 	addi    r11,r1,16                              
ffc09860:	4b ff 6d 64 	b       ffc005c4 <_restgpr_31_x>               
                                                                      

ffc08454 <_Event_Surrender>: rtems_event_set event_in, Event_Control *event, Thread_blocking_operation_States *sync_state, States_Control wait_state ) {
ffc08454:	7c 2b 0b 78 	mr      r11,r1                                 
ffc08458:	7c 08 02 a6 	mflr    r0                                     
ffc0845c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc08460:	90 01 00 14 	stw     r0,20(r1)                              
ffc08464:	48 01 1b e5 	bl      ffc1a048 <_savegpr_31>                 
ffc08468:	7c 7f 1b 78 	mr      r31,r3                                 
  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;                               
ffc0846c:	80 63 00 30 	lwz     r3,48(r3)                              
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc08470:	7d 20 00 a6 	mfmsr   r9                                     
ffc08474:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc08478:	7d 2a 50 78 	andc    r10,r9,r10                             
ffc0847c:	7d 40 01 24 	mtmsr   r10                                    
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;                                   
ffc08480:	81 45 00 00 	lwz     r10,0(r5)                              
ffc08484:	7c 84 53 78 	or      r4,r4,r10                              
ffc08488:	90 85 00 00 	stw     r4,0(r5)                               
                                                                      
  _ISR_Disable( level );                                              
  _Event_sets_Post( event_in, &event->pending_events );               
  pending_events  = event->pending_events;                            
  event_condition = the_thread->Wait.count;                           
ffc0848c:	81 1f 00 24 	lwz     r8,36(r31)                             
  seized_events = _Event_sets_Get( pending_events, event_condition ); 
                                                                      
  /*                                                                  
   *  No events were seized in this operation                         
   */                                                                 
  if ( _Event_sets_Is_empty( seized_events ) ) {                      
ffc08490:	7c 8a 40 39 	and.    r10,r4,r8                              
ffc08494:	40 a2 00 08 	bne+    ffc0849c <_Event_Surrender+0x48>       
ffc08498:	48 00 00 f0 	b       ffc08588 <_Event_Surrender+0x134>      
                                                                      
  /*                                                                  
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
ffc0849c:	3d 60 00 00 	lis     r11,0                                  
ffc084a0:	39 6b 2e 00 	addi    r11,r11,11776                          
ffc084a4:	80 0b 00 08 	lwz     r0,8(r11)                              
ffc084a8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc084ac:	41 9e 00 54 	beq-    cr7,ffc08500 <_Event_Surrender+0xac>   
ffc084b0:	81 6b 00 10 	lwz     r11,16(r11)                            
ffc084b4:	7f 9f 58 00 	cmpw    cr7,r31,r11                            
ffc084b8:	40 be 00 48 	bne+    cr7,ffc08500 <_Event_Surrender+0xac>   
       _Thread_Is_executing( the_thread ) &&                          
       ((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||         
ffc084bc:	81 66 00 00 	lwz     r11,0(r6)                              
ffc084c0:	39 6b ff ff 	addi    r11,r11,-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 ) &&                          
ffc084c4:	2b 8b 00 01 	cmplwi  cr7,r11,1                              
ffc084c8:	41 bd 00 38 	bgt+    cr7,ffc08500 <_Event_Surrender+0xac>   
       ((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||         
        (*sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
ffc084cc:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc084d0:	41 9e 00 0c 	beq-    cr7,ffc084dc <_Event_Surrender+0x88>   
ffc084d4:	70 68 00 02 	andi.   r8,r3,2                                
ffc084d8:	41 82 00 b0 	beq-    ffc08588 <_Event_Surrender+0x134>      <== 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) );                            
ffc084dc:	7c 84 50 78 	andc    r4,r4,r10                              
      event->pending_events = _Event_sets_Clear(                      
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
ffc084e0:	39 00 00 00 	li      r8,0                                   
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
       ((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||         
        (*sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
      event->pending_events = _Event_sets_Clear(                      
ffc084e4:	90 85 00 00 	stw     r4,0(r5)                               
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
ffc084e8:	91 1f 00 24 	stw     r8,36(r31)                             
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
ffc084ec:	81 1f 00 28 	lwz     r8,40(r31)                             
ffc084f0:	91 48 00 00 	stw     r10,0(r8)                              
      *sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;              
ffc084f4:	39 40 00 03 	li      r10,3                                  
ffc084f8:	91 46 00 00 	stw     r10,0(r6)                              
ffc084fc:	48 00 00 8c 	b       ffc08588 <_Event_Surrender+0x134>      
RTEMS_INLINE_ROUTINE bool _States_Are_set (                           
  States_Control the_states,                                          
  States_Control mask                                                 
)                                                                     
{                                                                     
   return ( (the_states & mask) != STATES_READY);                     
ffc08500:	80 df 00 10 	lwz     r6,16(r31)                             
  }                                                                   
                                                                      
  /*                                                                  
   *  Otherwise, this is a normal send to another thread              
   */                                                                 
  if ( _States_Are_set( the_thread->current_state, wait_state ) ) {   
ffc08504:	7c eb 30 39 	and.    r11,r7,r6                              
ffc08508:	41 82 00 80 	beq-    ffc08588 <_Event_Surrender+0x134>      
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
ffc0850c:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc08510:	41 9e 00 0c 	beq-    cr7,ffc0851c <_Event_Surrender+0xc8>   
ffc08514:	70 68 00 02 	andi.   r8,r3,2                                
ffc08518:	41 82 00 70 	beq-    ffc08588 <_Event_Surrender+0x134>      <== NEVER TAKEN
ffc0851c:	7c 84 50 78 	andc    r4,r4,r10                              
      event->pending_events = _Event_sets_Clear(                      
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
ffc08520:	39 00 00 00 	li      r8,0                                   
  /*                                                                  
   *  Otherwise, this is a normal send to another thread              
   */                                                                 
  if ( _States_Are_set( the_thread->current_state, wait_state ) ) {   
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
      event->pending_events = _Event_sets_Clear(                      
ffc08524:	90 85 00 00 	stw     r4,0(r5)                               
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
ffc08528:	91 1f 00 24 	stw     r8,36(r31)                             
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
ffc0852c:	81 1f 00 28 	lwz     r8,40(r31)                             
ffc08530:	91 48 00 00 	stw     r10,0(r8)                              
                                                                      
static inline void ppc_interrupt_flash( uint32_t level )              
{                                                                     
  uint32_t current_level;                                             
                                                                      
  __asm__ volatile (                                                  
ffc08534:	7d 40 00 a6 	mfmsr   r10                                    
ffc08538:	7d 20 01 24 	mtmsr   r9                                     
ffc0853c:	7d 40 01 24 	mtmsr   r10                                    
                                                                      
      _ISR_Flash( level );                                            
                                                                      
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
ffc08540:	81 5f 00 50 	lwz     r10,80(r31)                            
ffc08544:	2f 8a 00 02 	cmpwi   cr7,r10,2                              
ffc08548:	41 9e 00 0c 	beq-    cr7,ffc08554 <_Event_Surrender+0x100>  
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0854c:	7d 20 01 24 	mtmsr   r9                                     
ffc08550:	48 00 00 18 	b       ffc08568 <_Event_Surrender+0x114>      
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(                       
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_REMOVE_IT;                           
ffc08554:	39 40 00 03 	li      r10,3                                  
ffc08558:	91 5f 00 50 	stw     r10,80(r31)                            
ffc0855c:	7d 20 01 24 	mtmsr   r9                                     
        _ISR_Enable( level );                                         
        _Thread_Unblock( the_thread );                                
      } else {                                                        
        _Watchdog_Deactivate( &the_thread->Timer );                   
        _ISR_Enable( level );                                         
        (void) _Watchdog_Remove( &the_thread->Timer );                
ffc08560:	38 7f 00 48 	addi    r3,r31,72                              
ffc08564:	48 00 3a b5 	bl      ffc0c018 <_Watchdog_Remove>            
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
}                                                                     
ffc08568:	80 01 00 14 	lwz     r0,20(r1)                              
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
ffc0856c:	7f e3 fb 78 	mr      r3,r31                                 
ffc08570:	3c 80 10 07 	lis     r4,4103                                
ffc08574:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc08578:	7c 08 03 a6 	mtlr    r0                                     
ffc0857c:	60 84 ff f8 	ori     r4,r4,65528                            
ffc08580:	38 21 00 10 	addi    r1,r1,16                               
ffc08584:	48 00 27 f0 	b       ffc0ad74 <_Thread_Clear_state>         
ffc08588:	7d 20 01 24 	mtmsr   r9                                     
ffc0858c:	39 61 00 10 	addi    r11,r1,16                              
ffc08590:	4b ff 80 34 	b       ffc005c4 <_restgpr_31_x>               
                                                                      

ffc08594 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *arg ) {
ffc08594:	7c 2b 0b 78 	mr      r11,r1                                 
ffc08598:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0859c:	7c 08 02 a6 	mflr    r0                                     
ffc085a0:	48 01 1a a9 	bl      ffc1a048 <_savegpr_31>                 
ffc085a4:	7c 9f 23 78 	mr      r31,r4                                 
  ISR_Level                         level;                            
  Thread_blocking_operation_States *sync_state;                       
                                                                      
  sync_state = arg;                                                   
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc085a8:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
void _Event_Timeout(                                                  
  Objects_Id  id,                                                     
  void       *arg                                                     
)                                                                     
{                                                                     
ffc085ac:	90 01 00 24 	stw     r0,36(r1)                              
  ISR_Level                         level;                            
  Thread_blocking_operation_States *sync_state;                       
                                                                      
  sync_state = arg;                                                   
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc085b0:	48 00 2c 01 	bl      ffc0b1b0 <_Thread_Get>                 
  switch ( location ) {                                               
ffc085b4:	81 21 00 08 	lwz     r9,8(r1)                               
ffc085b8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc085bc:	40 9e 00 64 	bne-    cr7,ffc08620 <_Event_Timeout+0x8c>     <== NEVER TAKEN
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc085c0:	7d 40 00 a6 	mfmsr   r10                                    
ffc085c4:	7d 10 42 a6 	mfsprg  r8,0                                   
ffc085c8:	7d 48 40 78 	andc    r8,r10,r8                              
ffc085cc:	7d 00 01 24 	mtmsr   r8                                     
            _ISR_Enable( level );                                     
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
ffc085d0:	91 23 00 24 	stw     r9,36(r3)                              
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
ffc085d4:	3d 20 00 00 	lis     r9,0                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
ffc085d8:	81 29 2e 10 	lwz     r9,11792(r9)                           
ffc085dc:	7f 83 48 00 	cmpw    cr7,r3,r9                              
ffc085e0:	40 be 00 18 	bne+    cr7,ffc085f8 <_Event_Timeout+0x64>     
          if ( *sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
ffc085e4:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc085e8:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc085ec:	40 be 00 0c 	bne+    cr7,ffc085f8 <_Event_Timeout+0x64>     
            *sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;          
ffc085f0:	39 20 00 02 	li      r9,2                                   
ffc085f4:	91 3f 00 00 	stw     r9,0(r31)                              
        }                                                             
                                                                      
        the_thread->Wait.return_code = RTEMS_TIMEOUT;                 
ffc085f8:	39 20 00 06 	li      r9,6                                   
ffc085fc:	91 23 00 34 	stw     r9,52(r3)                              
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc08600:	7d 40 01 24 	mtmsr   r10                                    
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
ffc08604:	3c 80 10 07 	lis     r4,4103                                
ffc08608:	60 84 ff f8 	ori     r4,r4,65528                            
ffc0860c:	48 00 27 69 	bl      ffc0ad74 <_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;                  
ffc08610:	3d 20 00 00 	lis     r9,0                                   
ffc08614:	81 49 28 24 	lwz     r10,10276(r9)                          
                                                                      
    --level;                                                          
ffc08618:	39 4a ff ff 	addi    r10,r10,-1                             
    _Thread_Dispatch_disable_level = level;                           
ffc0861c:	91 49 28 24 	stw     r10,10276(r9)                          
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
ffc08620:	39 61 00 20 	addi    r11,r1,32                              
ffc08624:	4b ff 7f a0 	b       ffc005c4 <_restgpr_31_x>               
                                                                      

ffc0dd5c <_Heap_Free>: /* * 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 ) {
ffc0dd5c:	2c 04 00 00 	cmpwi   r4,0                                   
    return do_free;                                                   
  }                                                                   
#endif                                                                
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
{                                                                     
ffc0dd60:	7c 08 02 a6 	mflr    r0                                     
ffc0dd64:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0dd68:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0dd6c:	90 01 00 14 	stw     r0,20(r1)                              
ffc0dd70:	48 00 c2 d9 	bl      ffc1a048 <_savegpr_31>                 
  /*                                                                  
   * 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 ) {                                    
ffc0dd74:	41 82 01 e4 	beq-    ffc0df58 <_Heap_Free+0x1fc>            
ffc0dd78:	81 03 00 10 	lwz     r8,16(r3)                              
ffc0dd7c:	7c 69 1b 78 	mr      r9,r3                                  
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           
ffc0dd80:	81 63 00 20 	lwz     r11,32(r3)                             
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
ffc0dd84:	7d 44 43 96 	divwu   r10,r4,r8                              
ffc0dd88:	7d 4a 41 d6 	mullw   r10,r10,r8                             
  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;             
ffc0dd8c:	39 00 00 00 	li      r8,0                                   
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
ffc0dd90:	39 4a ff f8 	addi    r10,r10,-8                             
  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;             
ffc0dd94:	7f 8a 58 40 	cmplw   cr7,r10,r11                            
ffc0dd98:	41 9c 00 14 	blt-    cr7,ffc0ddac <_Heap_Free+0x50>         
ffc0dd9c:	81 03 00 24 	lwz     r8,36(r3)                              
ffc0dda0:	7d 0a 40 10 	subfc   r8,r10,r8                              
ffc0dda4:	39 00 00 00 	li      r8,0                                   
ffc0dda8:	7d 08 41 14 	adde    r8,r8,r8                               
  }                                                                   
                                                                      
  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 ) ) {                     
ffc0ddac:	2f 88 00 00 	cmpwi   cr7,r8,0                               
    return false;                                                     
ffc0ddb0:	38 60 00 00 	li      r3,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 ) ) {                     
ffc0ddb4:	41 9e 01 a8 	beq-    cr7,ffc0df5c <_Heap_Free+0x200>        
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
ffc0ddb8:	80 8a 00 04 	lwz     r4,4(r10)                              
ffc0ddbc:	38 c0 00 00 	li      r6,0                                   
    - 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;                
ffc0ddc0:	54 87 00 3c 	rlwinm  r7,r4,0,0,30                           
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
ffc0ddc4:	7d 07 52 14 	add     r8,r7,r10                              
  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;             
ffc0ddc8:	7f 88 58 40 	cmplw   cr7,r8,r11                             
ffc0ddcc:	41 9c 00 14 	blt-    cr7,ffc0dde0 <_Heap_Free+0x84>         <== NEVER TAKEN
ffc0ddd0:	80 c9 00 24 	lwz     r6,36(r9)                              
ffc0ddd4:	7c c8 30 10 	subfc   r6,r8,r6                               
ffc0ddd8:	38 c0 00 00 	li      r6,0                                   
ffc0dddc:	7c c6 31 14 	adde    r6,r6,r6                               
  _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 ) ) {                
ffc0dde0:	2f 86 00 00 	cmpwi   cr7,r6,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 ) ) {                     
    return false;                                                     
ffc0dde4:	38 60 00 00 	li      r3,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 ) ) {                
ffc0dde8:	41 9e 01 74 	beq-    cr7,ffc0df5c <_Heap_Free+0x200>        <== NEVER TAKEN
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
ffc0ddec:	80 a8 00 04 	lwz     r5,4(r8)                               
    return false;                                                     
  }                                                                   
                                                                      
  _Heap_Protection_block_check( heap, next_block );                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
ffc0ddf0:	70 a6 00 01 	andi.   r6,r5,1                                
ffc0ddf4:	41 82 01 68 	beq-    ffc0df5c <_Heap_Free+0x200>            
  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                       
ffc0ddf8:	80 69 00 24 	lwz     r3,36(r9)                              
    - 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;                
ffc0ddfc:	54 a5 00 3c 	rlwinm  r5,r5,0,0,30                           
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
ffc0de00:	7f 88 18 00 	cmpw    cr7,r8,r3                              
ffc0de04:	41 9e 00 18 	beq-    cr7,ffc0de1c <_Heap_Free+0xc0>         
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
ffc0de08:	7c c8 2a 14 	add     r6,r8,r5                               
    return true;                                                      
  }                                                                   
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
ffc0de0c:	80 06 00 04 	lwz     r0,4(r6)                               
ffc0de10:	68 00 00 01 	xori    r0,r0,1                                
ffc0de14:	54 00 07 fe 	clrlwi  r0,r0,31                               
ffc0de18:	48 00 00 08 	b       ffc0de20 <_Heap_Free+0xc4>             
ffc0de1c:	38 00 00 00 	li      r0,0                                   
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
ffc0de20:	70 9f 00 01 	andi.   r31,r4,1                               
ffc0de24:	40 82 00 94 	bne-    ffc0deb8 <_Heap_Free+0x15c>            
    uintptr_t const prev_size = block->prev_size;                     
ffc0de28:	80 8a 00 00 	lwz     r4,0(r10)                              
  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;             
ffc0de2c:	39 80 00 00 	li      r12,0                                  
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
ffc0de30:	7c c4 50 50 	subf    r6,r4,r10                              
  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;             
ffc0de34:	7f 86 58 40 	cmplw   cr7,r6,r11                             
ffc0de38:	41 9c 00 10 	blt-    cr7,ffc0de48 <_Heap_Free+0xec>         <== NEVER TAKEN
ffc0de3c:	7d 86 18 10 	subfc   r12,r6,r3                              
ffc0de40:	39 80 00 00 	li      r12,0                                  
ffc0de44:	7d 8c 61 14 	adde    r12,r12,r12                            
    Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {              
ffc0de48:	2f 8c 00 00 	cmpwi   cr7,r12,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 ) ) {                     
    return false;                                                     
ffc0de4c:	38 60 00 00 	li      r3,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 ) ) {              
ffc0de50:	41 9e 01 0c 	beq-    cr7,ffc0df5c <_Heap_Free+0x200>        <== 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;                 
ffc0de54:	81 66 00 04 	lwz     r11,4(r6)                              
      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) ) {                        
ffc0de58:	71 7f 00 01 	andi.   r31,r11,1                              
ffc0de5c:	41 82 01 00 	beq-    ffc0df5c <_Heap_Free+0x200>            <== NEVER TAKEN
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
ffc0de60:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0de64:	7c 87 22 14 	add     r4,r7,r4                               
ffc0de68:	41 be 00 34 	beq+    cr7,ffc0de9c <_Heap_Free+0x140>        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
  Heap_Block *prev = block->prev;                                     
ffc0de6c:	81 48 00 0c 	lwz     r10,12(r8)                             
      uintptr_t const size = block_size + prev_size + next_block_size;
ffc0de70:	7c a4 2a 14 	add     r5,r4,r5                               
  return _Heap_Free_list_tail(heap)->prev;                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
ffc0de74:	80 88 00 08 	lwz     r4,8(r8)                               
  Heap_Block *prev = block->prev;                                     
                                                                      
  prev->next = next;                                                  
ffc0de78:	90 8a 00 08 	stw     r4,8(r10)                              
  next->prev = prev;                                                  
ffc0de7c:	91 44 00 0c 	stw     r10,12(r4)                             
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
ffc0de80:	81 49 00 38 	lwz     r10,56(r9)                             
ffc0de84:	39 4a ff ff 	addi    r10,r10,-1                             
ffc0de88:	91 49 00 38 	stw     r10,56(r9)                             
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
ffc0de8c:	60 aa 00 01 	ori     r10,r5,1                               
ffc0de90:	91 46 00 04 	stw     r10,4(r6)                              
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
ffc0de94:	7c a5 31 2e 	stwx    r5,r5,r6                               
ffc0de98:	48 00 00 9c 	b       ffc0df34 <_Heap_Free+0x1d8>            
    } else {                      /* coalesce prev */                 
      uintptr_t const size = block_size + prev_size;                  
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
ffc0de9c:	60 85 00 01 	ori     r5,r4,1                                
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
      next_block->prev_size = size;                                   
ffc0dea0:	7c 87 51 2e 	stwx    r4,r7,r10                              
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
    } else {                      /* coalesce prev */                 
      uintptr_t const size = block_size + prev_size;                  
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
ffc0dea4:	90 a6 00 04 	stw     r5,4(r6)                               
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
ffc0dea8:	80 c8 00 04 	lwz     r6,4(r8)                               
ffc0deac:	54 c6 00 3c 	rlwinm  r6,r6,0,0,30                           
ffc0deb0:	90 c8 00 04 	stw     r6,4(r8)                               
ffc0deb4:	48 00 00 80 	b       ffc0df34 <_Heap_Free+0x1d8>            
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
ffc0deb8:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0debc:	41 be 00 30 	beq+    cr7,ffc0deec <_Heap_Free+0x190>        
    uintptr_t const size = block_size + next_block_size;              
ffc0dec0:	7c c5 3a 14 	add     r6,r5,r7                               
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(                    
  Heap_Block *old_block,                                              
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
ffc0dec4:	80 a8 00 08 	lwz     r5,8(r8)                               
  Heap_Block *prev = old_block->prev;                                 
ffc0dec8:	81 08 00 0c 	lwz     r8,12(r8)                              
                                                                      
  new_block->next = next;                                             
ffc0decc:	90 aa 00 08 	stw     r5,8(r10)                              
  new_block->prev = prev;                                             
ffc0ded0:	91 0a 00 0c 	stw     r8,12(r10)                             
                                                                      
  next->prev = new_block;                                             
  prev->next = new_block;                                             
ffc0ded4:	91 48 00 08 	stw     r10,8(r8)                              
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
ffc0ded8:	60 c8 00 01 	ori     r8,r6,1                                
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
  new_block->prev = prev;                                             
                                                                      
  next->prev = new_block;                                             
ffc0dedc:	91 45 00 0c 	stw     r10,12(r5)                             
ffc0dee0:	91 0a 00 04 	stw     r8,4(r10)                              
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
ffc0dee4:	7c c6 51 2e 	stwx    r6,r6,r10                              
ffc0dee8:	48 00 00 4c 	b       ffc0df34 <_Heap_Free+0x1d8>            
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(               
  Heap_Block *block_before,                                           
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
ffc0deec:	80 c9 00 08 	lwz     r6,8(r9)                               
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
ffc0def0:	91 2a 00 0c 	stw     r9,12(r10)                             
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
ffc0def4:	90 ca 00 08 	stw     r6,8(r10)                              
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
  next->prev = new_block;                                             
ffc0def8:	91 46 00 0c 	stw     r10,12(r6)                             
  } 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;         
ffc0defc:	60 e6 00 01 	ori     r6,r7,1                                
ffc0df00:	90 ca 00 04 	stw     r6,4(r10)                              
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
ffc0df04:	80 c8 00 04 	lwz     r6,4(r8)                               
    next_block->prev_size = block_size;                               
ffc0df08:	7c e7 51 2e 	stwx    r7,r7,r10                              
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
ffc0df0c:	54 c6 00 3c 	rlwinm  r6,r6,0,0,30                           
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
ffc0df10:	91 49 00 08 	stw     r10,8(r9)                              
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
ffc0df14:	81 49 00 38 	lwz     r10,56(r9)                             
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
ffc0df18:	90 c8 00 04 	stw     r6,4(r8)                               
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
ffc0df1c:	39 4a 00 01 	addi    r10,r10,1                              
    if ( stats->max_free_blocks < stats->free_blocks ) {              
ffc0df20:	81 09 00 3c 	lwz     r8,60(r9)                              
    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;                                             
ffc0df24:	91 49 00 38 	stw     r10,56(r9)                             
    if ( stats->max_free_blocks < stats->free_blocks ) {              
ffc0df28:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc0df2c:	40 9c 00 08 	bge-    cr7,ffc0df34 <_Heap_Free+0x1d8>        
      stats->max_free_blocks = stats->free_blocks;                    
ffc0df30:	91 49 00 3c 	stw     r10,60(r9)                             
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
ffc0df34:	81 49 00 40 	lwz     r10,64(r9)                             
ffc0df38:	39 4a ff ff 	addi    r10,r10,-1                             
ffc0df3c:	91 49 00 40 	stw     r10,64(r9)                             
  ++stats->frees;                                                     
ffc0df40:	81 49 00 50 	lwz     r10,80(r9)                             
ffc0df44:	39 4a 00 01 	addi    r10,r10,1                              
ffc0df48:	91 49 00 50 	stw     r10,80(r9)                             
  stats->free_size += block_size;                                     
ffc0df4c:	81 49 00 30 	lwz     r10,48(r9)                             
ffc0df50:	7c ea 3a 14 	add     r7,r10,r7                              
ffc0df54:	90 e9 00 30 	stw     r7,48(r9)                              
   * 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;                                                      
ffc0df58:	38 60 00 01 	li      r3,1                                   
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
ffc0df5c:	39 61 00 10 	addi    r11,r1,16                              
ffc0df60:	4b ff 26 64 	b       ffc005c4 <_restgpr_31_x>               
                                                                      

ffc0b814 <_Heap_Greedy_allocate>: Heap_Block *_Heap_Greedy_allocate( Heap_Control *heap, const uintptr_t *block_sizes, size_t block_count ) {
ffc0b814:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0b818:	7c 08 02 a6 	mflr    r0                                     
ffc0b81c:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc0b820:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0b824:	7c 9c 23 78 	mr      r28,r4                                 
ffc0b828:	90 01 00 24 	stw     r0,36(r1)                              
ffc0b82c:	7c bb 2b 78 	mr      r27,r5                                 
  Heap_Block *allocated_blocks = NULL;                                
  Heap_Block *blocks = NULL;                                          
  Heap_Block *current;                                                
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
ffc0b830:	3b c0 00 00 	li      r30,0                                  
  const uintptr_t *block_sizes,                                       
  size_t block_count                                                  
)                                                                     
{                                                                     
  Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );    
  Heap_Block *allocated_blocks = NULL;                                
ffc0b834:	3b a0 00 00 	li      r29,0                                  
  Heap_Block *blocks = NULL;                                          
  Heap_Block *current;                                                
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
ffc0b838:	48 00 00 40 	b       ffc0b878 <_Heap_Greedy_allocate+0x64>  
  #include "config.h"                                                 
#endif                                                                
                                                                      
#include <rtems/score/heap.h>                                         
                                                                      
Heap_Block *_Heap_Greedy_allocate(                                    
ffc0b83c:	57 c9 10 3a 	rlwinm  r9,r30,2,0,29                          
 * @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 );    
ffc0b840:	7c 9c 48 2e 	lwzx    r4,r28,r9                              
ffc0b844:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b848:	38 a0 00 00 	li      r5,0                                   
ffc0b84c:	38 c0 00 00 	li      r6,0                                   
ffc0b850:	48 00 6e 95 	bl      ffc126e4 <_Heap_Allocate_aligned_with_boundary>
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
    void *next = _Heap_Allocate( heap, block_sizes [i] );             
                                                                      
    if ( next != NULL ) {                                             
ffc0b854:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0b858:	41 82 00 1c 	beq-    ffc0b874 <_Heap_Greedy_allocate+0x60>  <== NEVER TAKEN
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
ffc0b85c:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0b860:	7c 63 4b 96 	divwu   r3,r3,r9                               
ffc0b864:	7d 23 49 d6 	mullw   r9,r3,r9                               
      Heap_Block *next_block = _Heap_Block_of_alloc_area(             
        (uintptr_t) next,                                             
        heap->page_size                                               
      );                                                              
                                                                      
      next_block->next = allocated_blocks;                            
ffc0b868:	93 a9 00 00 	stw     r29,0(r9)                              
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
ffc0b86c:	39 29 ff f8 	addi    r9,r9,-8                               
ffc0b870:	7d 3d 4b 78 	mr      r29,r9                                 
  Heap_Block *allocated_blocks = NULL;                                
  Heap_Block *blocks = NULL;                                          
  Heap_Block *current;                                                
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
ffc0b874:	3b de 00 01 	addi    r30,r30,1                              
ffc0b878:	7f 9e d8 00 	cmpw    cr7,r30,r27                            
ffc0b87c:	40 9e ff c0 	bne+    cr7,ffc0b83c <_Heap_Greedy_allocate+0x28>
ffc0b880:	3b 80 00 00 	li      r28,0                                  
ffc0b884:	48 00 00 28 	b       ffc0b8ac <_Heap_Greedy_allocate+0x98>  
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
ffc0b888:	80 de 00 04 	lwz     r6,4(r30)                              
      allocated_blocks = next_block;                                  
    }                                                                 
  }                                                                   
                                                                      
  while ( (current = _Heap_Free_list_first( heap )) != free_list_tail ) {
    _Heap_Block_allocate(                                             
ffc0b88c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b890:	7f c4 f3 78 	mr      r4,r30                                 
ffc0b894:	54 c6 00 3c 	rlwinm  r6,r6,0,0,30                           
ffc0b898:	38 be 00 08 	addi    r5,r30,8                               
ffc0b89c:	38 c6 ff f8 	addi    r6,r6,-8                               
ffc0b8a0:	48 00 03 0d 	bl      ffc0bbac <_Heap_Block_allocate>        
      current,                                                        
      _Heap_Alloc_area_of_block( current ),                           
      _Heap_Block_size( current ) - HEAP_BLOCK_HEADER_SIZE            
    );                                                                
                                                                      
    current->next = blocks;                                           
ffc0b8a4:	93 9e 00 08 	stw     r28,8(r30)                             
ffc0b8a8:	7f dc f3 78 	mr      r28,r30                                
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
ffc0b8ac:	83 df 00 08 	lwz     r30,8(r31)                             
      next_block->next = allocated_blocks;                            
      allocated_blocks = next_block;                                  
    }                                                                 
  }                                                                   
                                                                      
  while ( (current = _Heap_Free_list_first( heap )) != free_list_tail ) {
ffc0b8b0:	7f 9e f8 00 	cmpw    cr7,r30,r31                            
ffc0b8b4:	40 9e ff d4 	bne+    cr7,ffc0b888 <_Heap_Greedy_allocate+0x74>
ffc0b8b8:	48 00 00 14 	b       ffc0b8cc <_Heap_Greedy_allocate+0xb8>  
    blocks = current;                                                 
  }                                                                   
                                                                      
  while ( allocated_blocks != NULL ) {                                
    current = allocated_blocks;                                       
    allocated_blocks = allocated_blocks->next;                        
ffc0b8bc:	7f a4 eb 78 	mr      r4,r29                                 
ffc0b8c0:	87 a4 00 08 	lwzu    r29,8(r4)                              
    _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( current ) );
ffc0b8c4:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b8c8:	48 00 6f ad 	bl      ffc12874 <_Heap_Free>                  
                                                                      
    current->next = blocks;                                           
    blocks = current;                                                 
  }                                                                   
                                                                      
  while ( allocated_blocks != NULL ) {                                
ffc0b8cc:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0b8d0:	40 9e ff ec 	bne+    cr7,ffc0b8bc <_Heap_Greedy_allocate+0xa8>
    allocated_blocks = allocated_blocks->next;                        
    _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( current ) );
  }                                                                   
                                                                      
  return blocks;                                                      
}                                                                     
ffc0b8d4:	39 61 00 20 	addi    r11,r1,32                              
ffc0b8d8:	7f 83 e3 78 	mr      r3,r28                                 
ffc0b8dc:	4b ff 58 48 	b       ffc01124 <_restgpr_27_x>               
                                                                      

ffc12710 <_Heap_Iterate>: void _Heap_Iterate( Heap_Control *heap, Heap_Block_visitor visitor, void *visitor_arg ) {
ffc12710:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc12714:	7c 08 02 a6 	mflr    r0                                     
ffc12718:	90 01 00 1c 	stw     r0,28(r1)                              
ffc1271c:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc12720:	7c 9d 23 78 	mr      r29,r4                                 
ffc12724:	7c bc 2b 78 	mr      r28,r5                                 
  Heap_Block *current = heap->first_block;                            
ffc12728:	81 23 00 20 	lwz     r9,32(r3)                              
  Heap_Block *end = heap->last_block;                                 
ffc1272c:	83 c3 00 24 	lwz     r30,36(r3)                             
ffc12730:	48 00 00 34 	b       ffc12764 <_Heap_Iterate+0x54>          
ffc12734:	80 89 00 04 	lwz     r4,4(r9)                               
  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 );            
ffc12738:	7d 23 4b 78 	mr      r3,r9                                  
ffc1273c:	7f 86 e3 78 	mr      r6,r28                                 
ffc12740:	7f a9 03 a6 	mtctr   r29                                    
ffc12744:	54 84 00 3c 	rlwinm  r4,r4,0,0,30                           
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
ffc12748:	7f e9 22 14 	add     r31,r9,r4                              
  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;                 
ffc1274c:	80 bf 00 04 	lwz     r5,4(r31)                              
ffc12750:	54 a5 07 fe 	clrlwi  r5,r5,31                               
ffc12754:	4e 80 04 21 	bctrl                                          
ffc12758:	7f e9 fb 78 	mr      r9,r31                                 
{                                                                     
  Heap_Block *current = heap->first_block;                            
  Heap_Block *end = heap->last_block;                                 
  bool stop = false;                                                  
                                                                      
  while ( !stop && current != end ) {                                 
ffc1275c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12760:	40 9e 00 0c 	bne-    cr7,ffc1276c <_Heap_Iterate+0x5c>      <== NEVER TAKEN
ffc12764:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc12768:	40 9e ff cc 	bne+    cr7,ffc12734 <_Heap_Iterate+0x24>      
                                                                      
    stop = (*visitor)( current, size, used, visitor_arg );            
                                                                      
    current = next;                                                   
  }                                                                   
}                                                                     
ffc1276c:	39 61 00 18 	addi    r11,r1,24                              
ffc12770:	4b ff 0d d4 	b       ffc03544 <_restgpr_28_x>               
                                                                      

ffc1aa0c <_Heap_Size_of_alloc_area>: RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment);
ffc1aa0c:	81 03 00 10 	lwz     r8,16(r3)                              
bool _Heap_Size_of_alloc_area(                                        
  Heap_Control *heap,                                                 
  void *alloc_begin_ptr,                                              
  uintptr_t *alloc_size                                               
)                                                                     
{                                                                     
ffc1aa10:	7c 69 1b 78 	mr      r9,r3                                  
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           
ffc1aa14:	80 e3 00 20 	lwz     r7,32(r3)                              
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
ffc1aa18:	7d 44 43 96 	divwu   r10,r4,r8                              
ffc1aa1c:	7d 0a 41 d6 	mullw   r8,r10,r8                              
  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;             
ffc1aa20:	39 40 00 00 	li      r10,0                                  
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
ffc1aa24:	39 08 ff f8 	addi    r8,r8,-8                               
  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;             
ffc1aa28:	7f 88 38 40 	cmplw   cr7,r8,r7                              
ffc1aa2c:	41 9c 00 14 	blt-    cr7,ffc1aa40 <_Heap_Size_of_alloc_area+0x34>
ffc1aa30:	81 43 00 24 	lwz     r10,36(r3)                             
ffc1aa34:	7d 48 50 10 	subfc   r10,r8,r10                             
ffc1aa38:	39 40 00 00 	li      r10,0                                  
ffc1aa3c:	7d 4a 51 14 	adde    r10,r10,r10                            
  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 ) ) {                     
ffc1aa40:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
    return false;                                                     
ffc1aa44:	38 60 00 00 	li      r3,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 ) ) {                     
ffc1aa48:	4d 9e 00 20 	beqlr   cr7                                    
    - 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;                
ffc1aa4c:	81 48 00 04 	lwz     r10,4(r8)                              
ffc1aa50:	55 4a 00 3c 	rlwinm  r10,r10,0,0,30                         
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
ffc1aa54:	7d 4a 42 14 	add     r10,r10,r8                             
  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;             
ffc1aa58:	7f 8a 38 40 	cmplw   cr7,r10,r7                             
ffc1aa5c:	39 00 00 00 	li      r8,0                                   
ffc1aa60:	41 9c 00 14 	blt-    cr7,ffc1aa74 <_Heap_Size_of_alloc_area+0x68><== NEVER TAKEN
ffc1aa64:	81 09 00 24 	lwz     r8,36(r9)                              
ffc1aa68:	7d 0a 40 10 	subfc   r8,r10,r8                              
ffc1aa6c:	39 00 00 00 	li      r8,0                                   
ffc1aa70:	7d 08 41 14 	adde    r8,r8,r8                               
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
ffc1aa74:	2f 88 00 00 	cmpwi   cr7,r8,0                               
  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 ) ) {                     
    return false;                                                     
ffc1aa78:	38 60 00 00 	li      r3,0                                   
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
ffc1aa7c:	4d 9e 00 20 	beqlr   cr7                                    
  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;                 
ffc1aa80:	81 2a 00 04 	lwz     r9,4(r10)                              
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
ffc1aa84:	71 28 00 01 	andi.   r8,r9,1                                
ffc1aa88:	4d 82 00 20 	beqlr                                          
  ) {                                                                 
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
ffc1aa8c:	20 84 00 04 	subfic  r4,r4,4                                
ffc1aa90:	7d 44 52 14 	add     r10,r4,r10                             
ffc1aa94:	91 45 00 00 	stw     r10,0(r5)                              
                                                                      
  return true;                                                        
ffc1aa98:	38 60 00 01 	li      r3,1                                   
}                                                                     
ffc1aa9c:	4e 80 00 20 	blr                                            
                                                                      

ffc0a34c <_Heap_Walk>: 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;
ffc0a34c:	2f 85 00 00 	cmpwi   cr7,r5,0                               
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
ffc0a350:	94 21 ff 98 	stwu    r1,-104(r1)                            
ffc0a354:	7c 08 02 a6 	mflr    r0                                     
ffc0a358:	bd c1 00 20 	stmw    r14,32(r1)                             
ffc0a35c:	7c 7d 1b 78 	mr      r29,r3                                 
ffc0a360:	7c 9e 23 78 	mr      r30,r4                                 
ffc0a364:	90 01 00 6c 	stw     r0,108(r1)                             
  uintptr_t const page_size = heap->page_size;                        
ffc0a368:	83 43 00 10 	lwz     r26,16(r3)                             
  uintptr_t const min_block_size = heap->min_block_size;              
ffc0a36c:	83 03 00 14 	lwz     r24,20(r3)                             
  Heap_Block *const first_block = heap->first_block;                  
ffc0a370:	83 83 00 20 	lwz     r28,32(r3)                             
  Heap_Block *const last_block = heap->last_block;                    
ffc0a374:	82 e3 00 24 	lwz     r23,36(r3)                             
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
ffc0a378:	41 9e 00 10 	beq-    cr7,ffc0a388 <_Heap_Walk+0x3c>         
ffc0a37c:	3f e0 ff c1 	lis     r31,-63                                
ffc0a380:	3b ff a2 9c 	addi    r31,r31,-23908                         
ffc0a384:	48 00 00 0c 	b       ffc0a390 <_Heap_Walk+0x44>             
ffc0a388:	3f e0 ff c1 	lis     r31,-63                                
ffc0a38c:	3b ff a2 98 	addi    r31,r31,-23912                         
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
ffc0a390:	3d 20 00 00 	lis     r9,0                                   
ffc0a394:	81 29 28 08 	lwz     r9,10248(r9)                           
ffc0a398:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc0a39c:	41 9e 00 0c 	beq-    cr7,ffc0a3a8 <_Heap_Walk+0x5c>         
    return true;                                                      
ffc0a3a0:	38 60 00 01 	li      r3,1                                   
ffc0a3a4:	48 00 04 cc 	b       ffc0a870 <_Heap_Walk+0x524>            
  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)(                                                         
ffc0a3a8:	81 5d 00 08 	lwz     r10,8(r29)                             
ffc0a3ac:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a3b0:	81 1d 00 18 	lwz     r8,24(r29)                             
ffc0a3b4:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a3b8:	91 41 00 0c 	stw     r10,12(r1)                             
ffc0a3bc:	38 80 00 00 	li      r4,0                                   
ffc0a3c0:	38 a5 6e 94 	addi    r5,r5,28308                            
ffc0a3c4:	7f e9 03 a6 	mtctr   r31                                    
ffc0a3c8:	81 5d 00 0c 	lwz     r10,12(r29)                            
ffc0a3cc:	7f 46 d3 78 	mr      r6,r26                                 
ffc0a3d0:	81 3d 00 1c 	lwz     r9,28(r29)                             
ffc0a3d4:	7f 07 c3 78 	mr      r7,r24                                 
ffc0a3d8:	91 41 00 10 	stw     r10,16(r1)                             
ffc0a3dc:	7f 8a e3 78 	mr      r10,r28                                
ffc0a3e0:	92 e1 00 08 	stw     r23,8(r1)                              
ffc0a3e4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a3e8:	4e 80 04 21 	bctrl                                          
    heap->area_begin, heap->area_end,                                 
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
ffc0a3ec:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc0a3f0:	40 be 00 18 	bne+    cr7,ffc0a408 <_Heap_Walk+0xbc>         
    (*printer)( source, true, "page size is zero\n" );                
ffc0a3f4:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a3f8:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a3fc:	38 80 00 01 	li      r4,1                                   
ffc0a400:	38 a5 6f 25 	addi    r5,r5,28453                            
ffc0a404:	48 00 00 d8 	b       ffc0a4dc <_Heap_Walk+0x190>            
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
ffc0a408:	73 47 00 07 	andi.   r7,r26,7                               
ffc0a40c:	41 a2 00 1c 	beq+    ffc0a428 <_Heap_Walk+0xdc>             
    (*printer)(                                                       
ffc0a410:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a414:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a418:	38 80 00 01 	li      r4,1                                   
ffc0a41c:	38 a5 6f 38 	addi    r5,r5,28472                            
ffc0a420:	7f 46 d3 78 	mr      r6,r26                                 
ffc0a424:	48 00 04 3c 	b       ffc0a860 <_Heap_Walk+0x514>            
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
ffc0a428:	7d 38 d3 96 	divwu   r9,r24,r26                             
ffc0a42c:	7d 29 d1 d6 	mullw   r9,r9,r26                              
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
ffc0a430:	7f 98 48 00 	cmpw    cr7,r24,r9                             
ffc0a434:	41 be 00 1c 	beq+    cr7,ffc0a450 <_Heap_Walk+0x104>        
    (*printer)(                                                       
ffc0a438:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a43c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a440:	38 80 00 01 	li      r4,1                                   
ffc0a444:	38 a5 6f 56 	addi    r5,r5,28502                            
ffc0a448:	7f 06 c3 78 	mr      r6,r24                                 
ffc0a44c:	48 00 04 14 	b       ffc0a860 <_Heap_Walk+0x514>            
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
ffc0a450:	39 3c 00 08 	addi    r9,r28,8                               
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
ffc0a454:	7d 49 d3 96 	divwu   r10,r9,r26                             
ffc0a458:	7d 4a d1 d6 	mullw   r10,r10,r26                            
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
ffc0a45c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0a460:	41 be 00 18 	beq+    cr7,ffc0a478 <_Heap_Walk+0x12c>        
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
ffc0a464:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a468:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a46c:	38 80 00 01 	li      r4,1                                   
ffc0a470:	38 a5 6f 7a 	addi    r5,r5,28538                            
ffc0a474:	48 00 03 e8 	b       ffc0a85c <_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;                 
ffc0a478:	81 3c 00 04 	lwz     r9,4(r28)                              
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
ffc0a47c:	71 27 00 01 	andi.   r7,r9,1                                
ffc0a480:	40 a2 00 18 	bne+    ffc0a498 <_Heap_Walk+0x14c>            
    (*printer)(                                                       
ffc0a484:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a488:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a48c:	38 80 00 01 	li      r4,1                                   
ffc0a490:	38 a5 6f ab 	addi    r5,r5,28587                            
ffc0a494:	48 00 00 48 	b       ffc0a4dc <_Heap_Walk+0x190>            
    - 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;                
ffc0a498:	82 d7 00 04 	lwz     r22,4(r23)                             
ffc0a49c:	56 d6 00 3c 	rlwinm  r22,r22,0,0,30                         
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
ffc0a4a0:	7e d7 b2 14 	add     r22,r23,r22                            
  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;                 
ffc0a4a4:	81 36 00 04 	lwz     r9,4(r22)                              
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
ffc0a4a8:	71 27 00 01 	andi.   r7,r9,1                                
ffc0a4ac:	40 a2 00 18 	bne+    ffc0a4c4 <_Heap_Walk+0x178>            
    (*printer)(                                                       
ffc0a4b0:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a4b4:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a4b8:	38 80 00 01 	li      r4,1                                   
ffc0a4bc:	38 a5 6f d9 	addi    r5,r5,28633                            
ffc0a4c0:	48 00 00 1c 	b       ffc0a4dc <_Heap_Walk+0x190>            
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
ffc0a4c4:	7f 96 e0 00 	cmpw    cr7,r22,r28                            
ffc0a4c8:	41 9e 00 24 	beq-    cr7,ffc0a4ec <_Heap_Walk+0x1a0>        
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
ffc0a4cc:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a4d0:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a4d4:	38 80 00 01 	li      r4,1                                   
ffc0a4d8:	38 a5 6f ee 	addi    r5,r5,28654                            
ffc0a4dc:	7f e9 03 a6 	mtctr   r31                                    
ffc0a4e0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a4e4:	4e 80 04 21 	bctrl                                          
ffc0a4e8:	48 00 03 5c 	b       ffc0a844 <_Heap_Walk+0x4f8>            
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
ffc0a4ec:	81 3d 00 10 	lwz     r9,16(r29)                             
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
ffc0a4f0:	7f aa eb 78 	mr      r10,r29                                
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
ffc0a4f4:	80 dd 00 08 	lwz     r6,8(r29)                              
ffc0a4f8:	48 00 00 bc 	b       ffc0a5b4 <_Heap_Walk+0x268>            
  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;             
ffc0a4fc:	80 fd 00 20 	lwz     r7,32(r29)                             
ffc0a500:	39 00 00 00 	li      r8,0                                   
ffc0a504:	7f 87 30 40 	cmplw   cr7,r7,r6                              
ffc0a508:	41 9d 00 14 	bgt-    cr7,ffc0a51c <_Heap_Walk+0x1d0>        
ffc0a50c:	81 1d 00 24 	lwz     r8,36(r29)                             
ffc0a510:	7d 06 40 10 	subfc   r8,r6,r8                               
ffc0a514:	39 00 00 00 	li      r8,0                                   
ffc0a518:	7d 08 41 14 	adde    r8,r8,r8                               
  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 ) ) {              
ffc0a51c:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0a520:	40 be 00 18 	bne+    cr7,ffc0a538 <_Heap_Walk+0x1ec>        
      (*printer)(                                                     
ffc0a524:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a528:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a52c:	38 80 00 01 	li      r4,1                                   
ffc0a530:	38 a5 70 1d 	addi    r5,r5,28701                            
ffc0a534:	48 00 03 2c 	b       ffc0a860 <_Heap_Walk+0x514>            
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
ffc0a538:	39 06 00 08 	addi    r8,r6,8                                
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
ffc0a53c:	7c e8 4b 96 	divwu   r7,r8,r9                               
ffc0a540:	7c e7 49 d6 	mullw   r7,r7,r9                               
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
ffc0a544:	7f 88 38 00 	cmpw    cr7,r8,r7                              
ffc0a548:	41 be 00 18 	beq+    cr7,ffc0a560 <_Heap_Walk+0x214>        
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
ffc0a54c:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a550:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a554:	38 80 00 01 	li      r4,1                                   
ffc0a558:	38 a5 70 3d 	addi    r5,r5,28733                            
ffc0a55c:	48 00 03 04 	b       ffc0a860 <_Heap_Walk+0x514>            
    - 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;                
ffc0a560:	81 06 00 04 	lwz     r8,4(r6)                               
ffc0a564:	55 08 00 3c 	rlwinm  r8,r8,0,0,30                           
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
ffc0a568:	7d 06 42 14 	add     r8,r6,r8                               
  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;                 
ffc0a56c:	81 08 00 04 	lwz     r8,4(r8)                               
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
ffc0a570:	71 07 00 01 	andi.   r7,r8,1                                
ffc0a574:	41 a2 00 18 	beq+    ffc0a58c <_Heap_Walk+0x240>            
      (*printer)(                                                     
ffc0a578:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a57c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a580:	38 80 00 01 	li      r4,1                                   
ffc0a584:	38 a5 70 6d 	addi    r5,r5,28781                            
ffc0a588:	48 00 02 d8 	b       ffc0a860 <_Heap_Walk+0x514>            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
ffc0a58c:	80 e6 00 0c 	lwz     r7,12(r6)                              
ffc0a590:	7f 87 50 00 	cmpw    cr7,r7,r10                             
ffc0a594:	41 be 00 18 	beq+    cr7,ffc0a5ac <_Heap_Walk+0x260>        
      (*printer)(                                                     
ffc0a598:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a59c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a5a0:	38 80 00 01 	li      r4,1                                   
ffc0a5a4:	38 a5 70 89 	addi    r5,r5,28809                            
ffc0a5a8:	48 00 01 38 	b       ffc0a6e0 <_Heap_Walk+0x394>            
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
ffc0a5ac:	7c ca 33 78 	mr      r10,r6                                 
ffc0a5b0:	80 c6 00 08 	lwz     r6,8(r6)                               
  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 ) {                            
ffc0a5b4:	7f 86 e8 00 	cmpw    cr7,r6,r29                             
ffc0a5b8:	40 9e ff 44 	bne+    cr7,ffc0a4fc <_Heap_Walk+0x1b0>        
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
ffc0a5bc:	3e 80 ff c1 	lis     r20,-63                                
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
      (*printer)(                                                     
ffc0a5c0:	3e 60 ff c1 	lis     r19,-63                                
  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)(                                                         
ffc0a5c4:	3e 40 ff c1 	lis     r18,-63                                
  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 ) {                            
ffc0a5c8:	7e dc b3 78 	mr      r28,r22                                
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
ffc0a5cc:	3a 94 72 29 	addi    r20,r20,29225                          
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
      (*printer)(                                                     
ffc0a5d0:	3a 73 72 12 	addi    r19,r19,29202                          
  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)(                                                         
ffc0a5d4:	3a 52 71 75 	addi    r18,r18,29045                          
ffc0a5d8:	3e 20 ff c1 	lis     r17,-63                                
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
ffc0a5dc:	3e a0 ff c1 	lis     r21,-63                                
ffc0a5e0:	3e 00 ff c1 	lis     r16,-63                                
  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)(                                                         
ffc0a5e4:	3d e0 ff c1 	lis     r15,-63                                
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
ffc0a5e8:	3d c0 ff c1 	lis     r14,-63                                
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
ffc0a5ec:	81 7c 00 04 	lwz     r11,4(r28)                             
    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;               
ffc0a5f0:	7f 89 ba 78 	xor     r9,r28,r23                             
  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;             
ffc0a5f4:	81 1d 00 20 	lwz     r8,32(r29)                             
ffc0a5f8:	7d 29 00 34 	cntlzw  r9,r9                                  
    - 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;                
ffc0a5fc:	55 7b 00 3c 	rlwinm  r27,r11,0,0,30                         
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
ffc0a600:	7f 3b e2 14 	add     r25,r27,r28                            
  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;             
ffc0a604:	7f 88 c8 40 	cmplw   cr7,r8,r25                             
ffc0a608:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
  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;                 
ffc0a60c:	55 6b 07 fe 	clrlwi  r11,r11,31                             
ffc0a610:	69 29 00 01 	xori    r9,r9,1                                
  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;             
ffc0a614:	39 40 00 00 	li      r10,0                                  
ffc0a618:	41 9d 00 14 	bgt-    cr7,ffc0a62c <_Heap_Walk+0x2e0>        <== NEVER TAKEN
ffc0a61c:	81 5d 00 24 	lwz     r10,36(r29)                            
ffc0a620:	7d 59 50 10 	subfc   r10,r25,r10                            
ffc0a624:	39 40 00 00 	li      r10,0                                  
ffc0a628:	7d 4a 51 14 	adde    r10,r10,r10                            
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {              
ffc0a62c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0a630:	40 be 00 18 	bne+    cr7,ffc0a648 <_Heap_Walk+0x2fc>        
      (*printer)(                                                     
ffc0a634:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a638:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a63c:	38 80 00 01 	li      r4,1                                   
ffc0a640:	38 a5 70 bb 	addi    r5,r5,28859                            
ffc0a644:	48 00 00 94 	b       ffc0a6d8 <_Heap_Walk+0x38c>            
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
ffc0a648:	7d 5b d3 96 	divwu   r10,r27,r26                            
ffc0a64c:	7d 4a d1 d6 	mullw   r10,r10,r26                            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
ffc0a650:	7f 9b 50 00 	cmpw    cr7,r27,r10                            
ffc0a654:	41 9e 00 28 	beq-    cr7,ffc0a67c <_Heap_Walk+0x330>        
ffc0a658:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a65c:	41 be 00 94 	beq+    cr7,ffc0a6f0 <_Heap_Walk+0x3a4>        
      (*printer)(                                                     
ffc0a660:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a664:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a668:	38 80 00 01 	li      r4,1                                   
ffc0a66c:	38 a5 70 e8 	addi    r5,r5,28904                            
ffc0a670:	7f 86 e3 78 	mr      r6,r28                                 
ffc0a674:	7f 67 db 78 	mr      r7,r27                                 
ffc0a678:	48 00 00 68 	b       ffc0a6e0 <_Heap_Walk+0x394>            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
ffc0a67c:	7f 9b c0 40 	cmplw   cr7,r27,r24                            
ffc0a680:	40 9c 00 38 	bge-    cr7,ffc0a6b8 <_Heap_Walk+0x36c>        
ffc0a684:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a688:	41 be 00 68 	beq+    cr7,ffc0a6f0 <_Heap_Walk+0x3a4>        <== NEVER TAKEN
      (*printer)(                                                     
ffc0a68c:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a690:	7f e9 03 a6 	mtctr   r31                                    
ffc0a694:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a698:	38 80 00 01 	li      r4,1                                   
ffc0a69c:	38 a5 71 16 	addi    r5,r5,28950                            
ffc0a6a0:	7f 86 e3 78 	mr      r6,r28                                 
ffc0a6a4:	7f 67 db 78 	mr      r7,r27                                 
ffc0a6a8:	7f 08 c3 78 	mr      r8,r24                                 
ffc0a6ac:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a6b0:	4e 80 04 21 	bctrl                                          
ffc0a6b4:	48 00 01 90 	b       ffc0a844 <_Heap_Walk+0x4f8>            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
ffc0a6b8:	7f 99 e0 40 	cmplw   cr7,r25,r28                            
ffc0a6bc:	41 9d 00 34 	bgt-    cr7,ffc0a6f0 <_Heap_Walk+0x3a4>        
ffc0a6c0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a6c4:	41 be 00 2c 	beq+    cr7,ffc0a6f0 <_Heap_Walk+0x3a4>        
      (*printer)(                                                     
ffc0a6c8:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a6cc:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a6d0:	38 80 00 01 	li      r4,1                                   
ffc0a6d4:	38 a5 71 41 	addi    r5,r5,28993                            
ffc0a6d8:	7f 86 e3 78 	mr      r6,r28                                 
ffc0a6dc:	7f 27 cb 78 	mr      r7,r25                                 
ffc0a6e0:	7f e9 03 a6 	mtctr   r31                                    
ffc0a6e4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a6e8:	4e 80 04 21 	bctrl                                          
ffc0a6ec:	48 00 01 58 	b       ffc0a844 <_Heap_Walk+0x4f8>            
  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;                 
ffc0a6f0:	81 39 00 04 	lwz     r9,4(r25)                              
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
ffc0a6f4:	71 27 00 01 	andi.   r7,r9,1                                
ffc0a6f8:	40 a2 00 f4 	bne+    ffc0a7ec <_Heap_Walk+0x4a0>            
    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 ?                                 
ffc0a6fc:	81 1c 00 0c 	lwz     r8,12(r28)                             
  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)(                                                         
ffc0a700:	81 3d 00 08 	lwz     r9,8(r29)                              
  return _Heap_Free_list_head(heap)->next;                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_tail(heap)->prev;                            
ffc0a704:	80 fd 00 0c 	lwz     r7,12(r29)                             
ffc0a708:	7f 88 48 00 	cmpw    cr7,r8,r9                              
ffc0a70c:	41 9e 00 18 	beq-    cr7,ffc0a724 <_Heap_Walk+0x3d8>        
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
ffc0a710:	7f 88 e8 00 	cmpw    cr7,r8,r29                             
ffc0a714:	39 35 6d 3d 	addi    r9,r21,27965                           
ffc0a718:	40 be 00 10 	bne+    cr7,ffc0a728 <_Heap_Walk+0x3dc>        
ffc0a71c:	39 2e 6e 71 	addi    r9,r14,28273                           
ffc0a720:	48 00 00 08 	b       ffc0a728 <_Heap_Walk+0x3dc>            
  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)(                                                         
ffc0a724:	39 2f 6e 61 	addi    r9,r15,28257                           
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
ffc0a728:	81 5c 00 08 	lwz     r10,8(r28)                             
  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)(                                                         
ffc0a72c:	7f 8a 38 00 	cmpw    cr7,r10,r7                             
ffc0a730:	41 9e 00 18 	beq-    cr7,ffc0a748 <_Heap_Walk+0x3fc>        
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
ffc0a734:	7f 8a e8 00 	cmpw    cr7,r10,r29                            
ffc0a738:	38 f5 6d 3d 	addi    r7,r21,27965                           
ffc0a73c:	40 be 00 10 	bne+    cr7,ffc0a74c <_Heap_Walk+0x400>        
ffc0a740:	38 f0 6e 8a 	addi    r7,r16,28298                           
ffc0a744:	48 00 00 08 	b       ffc0a74c <_Heap_Walk+0x400>            
  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)(                                                         
ffc0a748:	38 f1 6e 7b 	addi    r7,r17,28283                           
ffc0a74c:	90 e1 00 08 	stw     r7,8(r1)                               
ffc0a750:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a754:	38 80 00 00 	li      r4,0                                   
ffc0a758:	7f e9 03 a6 	mtctr   r31                                    
ffc0a75c:	91 61 00 18 	stw     r11,24(r1)                             
ffc0a760:	7e 45 93 78 	mr      r5,r18                                 
ffc0a764:	7f 86 e3 78 	mr      r6,r28                                 
ffc0a768:	7f 67 db 78 	mr      r7,r27                                 
ffc0a76c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a770:	4e 80 04 21 	bctrl                                          
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
ffc0a774:	81 19 00 00 	lwz     r8,0(r25)                              
ffc0a778:	81 61 00 18 	lwz     r11,24(r1)                             
ffc0a77c:	7f 9b 40 00 	cmpw    cr7,r27,r8                             
ffc0a780:	41 be 00 30 	beq+    cr7,ffc0a7b0 <_Heap_Walk+0x464>        
    (*printer)(                                                       
ffc0a784:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a788:	7f e9 03 a6 	mtctr   r31                                    
ffc0a78c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a790:	38 80 00 01 	li      r4,1                                   
ffc0a794:	38 a5 71 aa 	addi    r5,r5,29098                            
ffc0a798:	7f 86 e3 78 	mr      r6,r28                                 
ffc0a79c:	7f 67 db 78 	mr      r7,r27                                 
ffc0a7a0:	7f 29 cb 78 	mr      r9,r25                                 
ffc0a7a4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a7a8:	4e 80 04 21 	bctrl                                          
ffc0a7ac:	48 00 00 98 	b       ffc0a844 <_Heap_Walk+0x4f8>            
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
ffc0a7b0:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc0a7b4:	40 be 00 18 	bne+    cr7,ffc0a7cc <_Heap_Walk+0x480>        
    (*printer)(                                                       
ffc0a7b8:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a7bc:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a7c0:	38 80 00 01 	li      r4,1                                   
ffc0a7c4:	38 a5 71 e3 	addi    r5,r5,29155                            
ffc0a7c8:	48 00 00 94 	b       ffc0a85c <_Heap_Walk+0x510>            
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
ffc0a7cc:	81 3d 00 08 	lwz     r9,8(r29)                              
ffc0a7d0:	48 00 00 10 	b       ffc0a7e0 <_Heap_Walk+0x494>            
{                                                                     
  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 ) {                                      
ffc0a7d4:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
ffc0a7d8:	41 9e 00 5c 	beq-    cr7,ffc0a834 <_Heap_Walk+0x4e8>        
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
ffc0a7dc:	81 29 00 08 	lwz     r9,8(r9)                               
)                                                                     
{                                                                     
  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 ) {                            
ffc0a7e0:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc0a7e4:	40 9e ff f0 	bne+    cr7,ffc0a7d4 <_Heap_Walk+0x488>        
ffc0a7e8:	48 00 00 64 	b       ffc0a84c <_Heap_Walk+0x500>            
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
ffc0a7ec:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
      (*printer)(                                                     
ffc0a7f0:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a7f4:	38 80 00 00 	li      r4,0                                   
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
ffc0a7f8:	41 9e 00 20 	beq-    cr7,ffc0a818 <_Heap_Walk+0x4cc>        
      (*printer)(                                                     
ffc0a7fc:	7e 65 9b 78 	mr      r5,r19                                 
ffc0a800:	7f e9 03 a6 	mtctr   r31                                    
ffc0a804:	7f 86 e3 78 	mr      r6,r28                                 
ffc0a808:	7f 67 db 78 	mr      r7,r27                                 
ffc0a80c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a810:	4e 80 04 21 	bctrl                                          
ffc0a814:	48 00 00 20 	b       ffc0a834 <_Heap_Walk+0x4e8>            
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
ffc0a818:	7e 85 a3 78 	mr      r5,r20                                 
ffc0a81c:	81 1c 00 00 	lwz     r8,0(r28)                              
ffc0a820:	7f 86 e3 78 	mr      r6,r28                                 
ffc0a824:	7f e9 03 a6 	mtctr   r31                                    
ffc0a828:	7f 67 db 78 	mr      r7,r27                                 
ffc0a82c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a830:	4e 80 04 21 	bctrl                                          
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
ffc0a834:	7f 99 b0 00 	cmpw    cr7,r25,r22                            
ffc0a838:	7f 3c cb 78 	mr      r28,r25                                
ffc0a83c:	40 9e fd b0 	bne+    cr7,ffc0a5ec <_Heap_Walk+0x2a0>        
ffc0a840:	4b ff fb 60 	b       ffc0a3a0 <_Heap_Walk+0x54>             
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
ffc0a844:	38 60 00 00 	li      r3,0                                   
ffc0a848:	48 00 00 28 	b       ffc0a870 <_Heap_Walk+0x524>            
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
ffc0a84c:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a850:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a854:	38 80 00 01 	li      r4,1                                   
ffc0a858:	38 a5 72 4e 	addi    r5,r5,29262                            
ffc0a85c:	7f 86 e3 78 	mr      r6,r28                                 
ffc0a860:	7f e9 03 a6 	mtctr   r31                                    
ffc0a864:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a868:	4e 80 04 21 	bctrl                                          
ffc0a86c:	4b ff ff d8 	b       ffc0a844 <_Heap_Walk+0x4f8>            
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
ffc0a870:	39 61 00 68 	addi    r11,r1,104                             
ffc0a874:	4b ff 62 f4 	b       ffc00b68 <_restgpr_14_x>               
                                                                      

ffc0a29c <_Heap_Walk_print>: /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) {
ffc0a29c:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0a2a0:	7c 08 02 a6 	mflr    r0                                     
ffc0a2a4:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc0a2a8:	4b ff 68 b9 	bl      ffc00b60 <_savegpr_31>                 
ffc0a2ac:	90 01 00 7c 	stw     r0,124(r1)                             
ffc0a2b0:	7c 6b 1b 78 	mr      r11,r3                                 
ffc0a2b4:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc0a2b8:	90 e1 00 20 	stw     r7,32(r1)                              
ffc0a2bc:	91 01 00 24 	stw     r8,36(r1)                              
ffc0a2c0:	91 21 00 28 	stw     r9,40(r1)                              
ffc0a2c4:	91 41 00 2c 	stw     r10,44(r1)                             
ffc0a2c8:	40 86 00 24 	bne-    cr1,ffc0a2ec <_Heap_Walk_print+0x50>   <== ALWAYS TAKEN
ffc0a2cc:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc0a2d0:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc0a2d4:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc0a2d8:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc0a2dc:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc0a2e0:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc0a2e4:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc0a2e8:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  va_list ap;                                                         
                                                                      
  if ( error ) {                                                      
ffc0a2ec:	2f 84 00 00 	cmpwi   cr7,r4,0                               
{                                                                     
  /* Do nothing */                                                    
}                                                                     
                                                                      
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{                                                                     
ffc0a2f0:	7c bf 2b 78 	mr      r31,r5                                 
  va_list ap;                                                         
                                                                      
  if ( error ) {                                                      
ffc0a2f4:	41 be 00 10 	beq+    cr7,ffc0a304 <_Heap_Walk_print+0x68>   
    printk( "FAIL[%d]: ", source );                                   
ffc0a2f8:	3c 60 ff c1 	lis     r3,-63                                 
ffc0a2fc:	38 63 6e 4b 	addi    r3,r3,28235                            
ffc0a300:	48 00 00 0c 	b       ffc0a30c <_Heap_Walk_print+0x70>       
  } else {                                                            
    printk( "PASS[%d]: ", source );                                   
ffc0a304:	3c 60 ff c1 	lis     r3,-63                                 
ffc0a308:	38 63 6e 56 	addi    r3,r3,28246                            
ffc0a30c:	7d 64 5b 78 	mr      r4,r11                                 
ffc0a310:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a314:	4b ff b3 59 	bl      ffc0566c <printk>                      
  }                                                                   
                                                                      
  va_start( ap, fmt );                                                
ffc0a318:	39 20 00 03 	li      r9,3                                   
ffc0a31c:	99 21 00 08 	stb     r9,8(r1)                               
ffc0a320:	39 20 00 00 	li      r9,0                                   
  vprintk( fmt, ap );                                                 
ffc0a324:	7f e3 fb 78 	mr      r3,r31                                 
    printk( "FAIL[%d]: ", source );                                   
  } else {                                                            
    printk( "PASS[%d]: ", source );                                   
  }                                                                   
                                                                      
  va_start( ap, fmt );                                                
ffc0a328:	99 21 00 09 	stb     r9,9(r1)                               
ffc0a32c:	39 21 00 80 	addi    r9,r1,128                              
  vprintk( fmt, ap );                                                 
ffc0a330:	38 81 00 08 	addi    r4,r1,8                                
    printk( "FAIL[%d]: ", source );                                   
  } else {                                                            
    printk( "PASS[%d]: ", source );                                   
  }                                                                   
                                                                      
  va_start( ap, fmt );                                                
ffc0a334:	91 21 00 0c 	stw     r9,12(r1)                              
ffc0a338:	39 21 00 10 	addi    r9,r1,16                               
ffc0a33c:	91 21 00 10 	stw     r9,16(r1)                              
  vprintk( fmt, ap );                                                 
ffc0a340:	4b ff dd 75 	bl      ffc080b4 <vprintk>                     
  va_end( ap );                                                       
}                                                                     
ffc0a344:	39 61 00 78 	addi    r11,r1,120                             
ffc0a348:	4b ff 68 64 	b       ffc00bac <_restgpr_31_x>               
                                                                      

ffc09d78 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) {
ffc09d78:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc09d7c:	7c 08 02 a6 	mflr    r0                                     
ffc09d80:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc09d84:	7c 9e 23 78 	mr      r30,r4                                 
ffc09d88:	7c 7d 1b 78 	mr      r29,r3                                 
  Internal_errors_Source source,                                      
  bool                   is_internal,                                 
  Internal_errors_t      error                                        
)                                                                     
{                                                                     
  User_extensions_Fatal_context ctx = { source, is_internal, error }; 
ffc09d8c:	98 81 00 0c 	stb     r4,12(r1)                              
                                                                      
  _User_extensions_Iterate( &ctx, _User_extensions_Fatal_visitor );   
ffc09d90:	3c 80 ff c1 	lis     r4,-63                                 
ffc09d94:	38 84 bd 74 	addi    r4,r4,-17036                           
  Internal_errors_Source source,                                      
  bool                   is_internal,                                 
  Internal_errors_t      error                                        
)                                                                     
{                                                                     
  User_extensions_Fatal_context ctx = { source, is_internal, error }; 
ffc09d98:	90 61 00 08 	stw     r3,8(r1)                               
                                                                      
  _User_extensions_Iterate( &ctx, _User_extensions_Fatal_visitor );   
ffc09d9c:	38 61 00 08 	addi    r3,r1,8                                
ffc09da0:	7c bf 2b 78 	mr      r31,r5                                 
ffc09da4:	90 01 00 2c 	stw     r0,44(r1)                              
  Internal_errors_Source source,                                      
  bool                   is_internal,                                 
  Internal_errors_t      error                                        
)                                                                     
{                                                                     
  User_extensions_Fatal_context ctx = { source, is_internal, error }; 
ffc09da8:	90 a1 00 10 	stw     r5,16(r1)                              
                                                                      
  _User_extensions_Iterate( &ctx, _User_extensions_Fatal_visitor );   
ffc09dac:	48 00 1f ed 	bl      ffc0bd98 <_User_extensions_Iterate>    
  _User_extensions_Fatal( the_source, is_internal, the_error );       
                                                                      
  _Internal_errors_What_happened.the_source  = the_source;            
ffc09db0:	3d 40 00 00 	lis     r10,0                                  
ffc09db4:	39 2a 2d ec 	addi    r9,r10,11756                           
ffc09db8:	93 aa 2d ec 	stw     r29,11756(r10)                         
  _Internal_errors_What_happened.is_internal = is_internal;           
  _Internal_errors_What_happened.the_error   = the_error;             
                                                                      
  _System_state_Set( SYSTEM_STATE_FAILED );                           
                                                                      
  _CPU_Fatal_halt( the_error );                                       
ffc09dbc:	7f e3 fb 78 	mr      r3,r31                                 
)                                                                     
{                                                                     
  _User_extensions_Fatal( the_source, is_internal, the_error );       
                                                                      
  _Internal_errors_What_happened.the_source  = the_source;            
  _Internal_errors_What_happened.is_internal = is_internal;           
ffc09dc0:	9b c9 00 04 	stb     r30,4(r9)                              
                                                                      
RTEMS_INLINE_ROUTINE void _System_state_Set (                         
  System_state_Codes state                                            
)                                                                     
{                                                                     
  _System_state_Current = state;                                      
ffc09dc4:	39 40 00 05 	li      r10,5                                  
  _Internal_errors_What_happened.the_error   = the_error;             
ffc09dc8:	93 e9 00 08 	stw     r31,8(r9)                              
ffc09dcc:	3d 20 00 00 	lis     r9,0                                   
ffc09dd0:	91 49 28 4c 	stw     r10,10316(r9)                          
                                                                      
  _System_state_Set( SYSTEM_STATE_FAILED );                           
                                                                      
  _CPU_Fatal_halt( the_error );                                       
ffc09dd4:	4b ff 99 8d 	bl      ffc03760 <_BSP_Fatal_error>            
ffc09dd8:	48 00 00 00 	b       ffc09dd8 <_Internal_error_Occurred+0x60><== NOT EXECUTED
                                                                      

ffc09df0 <_Objects_Allocate>: #endif Objects_Control *_Objects_Allocate( Objects_Information *information ) {
ffc09df0:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc09df4:	7c 08 02 a6 	mflr    r0                                     
ffc09df8:	90 01 00 14 	stw     r0,20(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 )                                       
ffc09dfc:	81 23 00 18 	lwz     r9,24(r3)                              
#endif                                                                
                                                                      
Objects_Control *_Objects_Allocate(                                   
  Objects_Information *information                                    
)                                                                     
{                                                                     
ffc09e00:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc09e04:	7c 7f 1b 78 	mr      r31,r3                                 
   *  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 )                                       
ffc09e08:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09e0c:	40 be 00 0c 	bne+    cr7,ffc09e18 <_Objects_Allocate+0x28>  <== ALWAYS TAKEN
    return NULL;                                                      
ffc09e10:	38 60 00 00 	li      r3,0                                   
ffc09e14:	48 00 00 70 	b       ffc09e84 <_Objects_Allocate+0x94>      
                                                                      
  /*                                                                  
   *  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 );
ffc09e18:	3b c3 00 20 	addi    r30,r3,32                              
ffc09e1c:	7f c3 f3 78 	mr      r3,r30                                 
ffc09e20:	4b ff f5 b9 	bl      ffc093d8 <_Chain_Get>                  
                                                                      
  if ( information->auto_extend ) {                                   
ffc09e24:	89 3f 00 12 	lbz     r9,18(r31)                             
ffc09e28:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09e2c:	41 9e 00 58 	beq-    cr7,ffc09e84 <_Objects_Allocate+0x94>  
    /*                                                                
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
ffc09e30:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc09e34:	40 be 00 1c 	bne+    cr7,ffc09e50 <_Objects_Allocate+0x60>  
      _Objects_Extend_information( information );                     
ffc09e38:	7f e3 fb 78 	mr      r3,r31                                 
ffc09e3c:	48 00 00 69 	bl      ffc09ea4 <_Objects_Extend_information> 
      the_object =  (Objects_Control *) _Chain_Get( &information->Inactive );
ffc09e40:	7f c3 f3 78 	mr      r3,r30                                 
ffc09e44:	4b ff f5 95 	bl      ffc093d8 <_Chain_Get>                  
    }                                                                 
                                                                      
    if ( the_object ) {                                               
ffc09e48:	2c 03 00 00 	cmpwi   r3,0                                   
ffc09e4c:	41 82 ff c4 	beq+    ffc09e10 <_Objects_Allocate+0x20>      
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
ffc09e50:	a1 43 00 0a 	lhz     r10,10(r3)                             
ffc09e54:	a1 3f 00 0a 	lhz     r9,10(r31)                             
ffc09e58:	7d 29 50 50 	subf    r9,r9,r10                              
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
ffc09e5c:	a1 5f 00 14 	lhz     r10,20(r31)                            
ffc09e60:	7d 29 53 96 	divwu   r9,r9,r10                              
                                                                      
      information->inactive_per_block[ block ]--;                     
ffc09e64:	81 5f 00 30 	lwz     r10,48(r31)                            
ffc09e68:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc09e6c:	7d 0a 48 2e 	lwzx    r8,r10,r9                              
ffc09e70:	39 08 ff ff 	addi    r8,r8,-1                               
ffc09e74:	7d 0a 49 2e 	stwx    r8,r10,r9                              
      information->inactive--;                                        
ffc09e78:	a1 3f 00 2c 	lhz     r9,44(r31)                             
ffc09e7c:	39 29 ff ff 	addi    r9,r9,-1                               
ffc09e80:	b1 3f 00 2c 	sth     r9,44(r31)                             
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
ffc09e84:	39 61 00 10 	addi    r11,r1,16                              
ffc09e88:	4b ff 67 38 	b       ffc005c0 <_restgpr_30_x>               
                                                                      

ffc09ea4 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) {
ffc09ea4:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc09ea8:	7c 08 02 a6 	mflr    r0                                     
ffc09eac:	90 01 00 4c 	stw     r0,76(r1)                              
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
ffc09eb0:	81 43 00 34 	lwz     r10,52(r3)                             
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
  Objects_Information *information                                    
)                                                                     
{                                                                     
ffc09eb4:	be a1 00 1c 	stmw    r21,28(r1)                             
ffc09eb8:	7c 7f 1b 78 	mr      r31,r3                                 
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
ffc09ebc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
ffc09ec0:	a3 83 00 0a 	lhz     r28,10(r3)                             
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
ffc09ec4:	41 9e 00 54 	beq-    cr7,ffc09f18 <_Objects_Extend_information+0x74>
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
ffc09ec8:	a1 03 00 14 	lhz     r8,20(r3)                              
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
ffc09ecc:	7f 9e e3 78 	mr      r30,r28                                
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
ffc09ed0:	a3 a3 00 10 	lhz     r29,16(r3)                             
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
ffc09ed4:	3b 60 00 00 	li      r27,0                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
ffc09ed8:	7f bd 43 96 	divwu   r29,r29,r8                             
ffc09edc:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
ffc09ee0:	39 3d 00 01 	addi    r9,r29,1                               
ffc09ee4:	40 be 00 24 	bne+    cr7,ffc09f08 <_Objects_Extend_information+0x64><== ALWAYS TAKEN
ffc09ee8:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc09eec:	48 00 00 1c 	b       ffc09f08 <_Objects_Extend_information+0x64><== NOT EXECUTED
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
ffc09ef0:	57 67 10 3a 	rlwinm  r7,r27,2,0,29                          
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
ffc09ef4:	7c ea 38 2e 	lwzx    r7,r10,r7                              
ffc09ef8:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc09efc:	41 9e 00 30 	beq-    cr7,ffc09f2c <_Objects_Extend_information+0x88>
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
ffc09f00:	7f de 42 14 	add     r30,r30,r8                             
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
ffc09f04:	3b 7b 00 01 	addi    r27,r27,1                              
ffc09f08:	35 29 ff ff 	addic.  r9,r9,-1                               
ffc09f0c:	40 82 ff e4 	bne+    ffc09ef0 <_Objects_Extend_information+0x4c>
                                                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
ffc09f10:	3b 40 00 01 	li      r26,1                                  
ffc09f14:	48 00 00 1c 	b       ffc09f30 <_Objects_Extend_information+0x8c>
  minimum_index = _Objects_Get_index( information->minimum_id );      
ffc09f18:	7f 9e e3 78 	mr      r30,r28                                
                                                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
ffc09f1c:	3b 40 00 01 	li      r26,1                                  
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
ffc09f20:	3b 60 00 00 	li      r27,0                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
ffc09f24:	3b a0 00 00 	li      r29,0                                  
ffc09f28:	48 00 00 08 	b       ffc09f30 <_Objects_Extend_information+0x8c>
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
        do_extend = false;                                            
ffc09f2c:	3b 40 00 00 	li      r26,0                                  
      } else                                                          
        index_base += information->allocation_size;                   
    }                                                                 
  }                                                                   
                                                                      
  maximum = (uint32_t) information->maximum + information->allocation_size;
ffc09f30:	a1 3f 00 14 	lhz     r9,20(r31)                             
ffc09f34:	a3 3f 00 10 	lhz     r25,16(r31)                            
ffc09f38:	7f 29 ca 14 	add     r25,r9,r25                             
  /*                                                                  
   *  We need to limit the number of objects to the maximum number    
   *  representable in the index portion of the object Id.  In the    
   *  case of 16-bit Ids, this is only 256 object instances.          
   */                                                                 
  if ( maximum > OBJECTS_ID_FINAL_INDEX ) {                           
ffc09f3c:	2b 99 ff ff 	cmplwi  cr7,r25,65535                          
ffc09f40:	41 9d 02 10 	bgt-    cr7,ffc0a150 <_Objects_Extend_information+0x2ac>
                                                                      
  /*                                                                  
   * Allocate the name table, and the objects and if it fails either return or
   * generate a fatal error depending on auto-extending being active. 
   */                                                                 
  block_size = information->allocation_size * information->size;      
ffc09f44:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc09f48:	7c 69 19 d6 	mullw   r3,r9,r3                               
  if ( information->auto_extend ) {                                   
ffc09f4c:	89 3f 00 12 	lbz     r9,18(r31)                             
ffc09f50:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09f54:	41 9e 00 14 	beq-    cr7,ffc09f68 <_Objects_Extend_information+0xc4>
    new_object_block = _Workspace_Allocate( block_size );             
ffc09f58:	48 00 23 49 	bl      ffc0c2a0 <_Workspace_Allocate>         
    if ( !new_object_block )                                          
ffc09f5c:	7c 76 1b 79 	mr.     r22,r3                                 
ffc09f60:	40 a2 00 10 	bne+    ffc09f70 <_Objects_Extend_information+0xcc>
ffc09f64:	48 00 01 ec 	b       ffc0a150 <_Objects_Extend_information+0x2ac>
      return;                                                         
  } else {                                                            
    new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
ffc09f68:	48 00 23 61 	bl      ffc0c2c8 <_Workspace_Allocate_or_fatal_error>
ffc09f6c:	7c 76 1b 78 	mr      r22,r3                                 
  }                                                                   
                                                                      
  /*                                                                  
   *  Do we need to grow the tables?                                  
   */                                                                 
  if ( do_extend ) {                                                  
ffc09f70:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc09f74:	41 9e 01 58 	beq-    cr7,ffc0a0cc <_Objects_Extend_information+0x228>
     */                                                               
                                                                      
    /*                                                                
     *  Up the block count and maximum                                
     */                                                               
    block_count++;                                                    
ffc09f78:	3b 1d 00 01 	addi    r24,r29,1                              
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
ffc09f7c:	1d 38 00 03 	mulli   r9,r24,3                               
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
ffc09f80:	7c 79 e2 14 	add     r3,r25,r28                             
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
ffc09f84:	7c 63 4a 14 	add     r3,r3,r9                               
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    if ( information->auto_extend ) {                                 
ffc09f88:	89 3f 00 12 	lbz     r9,18(r31)                             
    block_count++;                                                    
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
ffc09f8c:	54 63 10 3a 	rlwinm  r3,r3,2,0,29                           
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    if ( information->auto_extend ) {                                 
ffc09f90:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09f94:	41 9e 00 1c 	beq-    cr7,ffc09fb0 <_Objects_Extend_information+0x10c>
      object_blocks = _Workspace_Allocate( block_size );              
ffc09f98:	48 00 23 09 	bl      ffc0c2a0 <_Workspace_Allocate>         
      if ( !object_blocks ) {                                         
ffc09f9c:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc09fa0:	40 a2 00 18 	bne+    ffc09fb8 <_Objects_Extend_information+0x114>
        _Workspace_Free( new_object_block );                          
ffc09fa4:	7e c3 b3 78 	mr      r3,r22                                 
ffc09fa8:	48 00 23 11 	bl      ffc0c2b8 <_Workspace_Free>             
ffc09fac:	48 00 01 a4 	b       ffc0a150 <_Objects_Extend_information+0x2ac>
        return;                                                       
      }                                                               
    } else {                                                          
      object_blocks = _Workspace_Allocate_or_fatal_error( block_size );
ffc09fb0:	48 00 23 19 	bl      ffc0c2c8 <_Workspace_Allocate_or_fatal_error>
ffc09fb4:	7c 7a 1b 78 	mr      r26,r3                                 
     *  Take the block count down. Saves all the (block_count - 1)    
     *  in the copies.                                                
     */                                                               
    block_count--;                                                    
                                                                      
    if ( information->maximum > minimum_index ) {                     
ffc09fb8:	a1 1f 00 10 	lhz     r8,16(r31)                             
                                                                      
    /*                                                                
     *  Break the block into the various sections.                    
     */                                                               
    inactive_per_block = (uint32_t *) _Addresses_Add_offset(          
        object_blocks, block_count * sizeof(void*) );                 
ffc09fbc:	57 18 10 3a 	rlwinm  r24,r24,2,0,29                         
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (                    
  const void *base,                                                   
  uintptr_t   offset                                                  
)                                                                     
{                                                                     
  return (void *)((uintptr_t)base + offset);                          
ffc09fc0:	7e fa c2 14 	add     r23,r26,r24                            
     *  Take the block count down. Saves all the (block_count - 1)    
     *  in the copies.                                                
     */                                                               
    block_count--;                                                    
                                                                      
    if ( information->maximum > minimum_index ) {                     
ffc09fc4:	7f 88 e0 40 	cmplw   cr7,r8,r28                             
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
        local_table[ index ] = NULL;                                  
ffc09fc8:	38 fc 00 01 	addi    r7,r28,1                               
ffc09fcc:	7f 17 c2 14 	add     r24,r23,r24                            
ffc09fd0:	7c e9 03 a6 	mtctr   r7                                     
     *  Take the block count down. Saves all the (block_count - 1)    
     *  in the copies.                                                
     */                                                               
    block_count--;                                                    
                                                                      
    if ( information->maximum > minimum_index ) {                     
ffc09fd4:	39 20 00 00 	li      r9,0                                   
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
        local_table[ index ] = NULL;                                  
ffc09fd8:	39 40 00 00 	li      r10,0                                  
     *  Take the block count down. Saves all the (block_count - 1)    
     *  in the copies.                                                
     */                                                               
    block_count--;                                                    
                                                                      
    if ( information->maximum > minimum_index ) {                     
ffc09fdc:	40 bd 00 50 	ble+    cr7,ffc0a02c <_Objects_Extend_information+0x188>
       *  separate parts as size of each block has changed.           
       */                                                             
                                                                      
      memcpy( object_blocks,                                          
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
ffc09fe0:	57 b5 10 3a 	rlwinm  r21,r29,2,0,29                         
      /*                                                              
       *  Copy each section of the table over. This has to be performed as
       *  separate parts as size of each block has changed.           
       */                                                             
                                                                      
      memcpy( object_blocks,                                          
ffc09fe4:	80 9f 00 34 	lwz     r4,52(r31)                             
ffc09fe8:	7e a5 ab 78 	mr      r5,r21                                 
ffc09fec:	7f 43 d3 78 	mr      r3,r26                                 
ffc09ff0:	48 00 65 4d 	bl      ffc1053c <memcpy>                      
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
ffc09ff4:	80 9f 00 30 	lwz     r4,48(r31)                             
ffc09ff8:	7e a5 ab 78 	mr      r5,r21                                 
ffc09ffc:	7e e3 bb 78 	mr      r3,r23                                 
ffc0a000:	48 00 65 3d 	bl      ffc1053c <memcpy>                      
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
              information->local_table,                               
              (information->maximum + minimum_index) * sizeof(Objects_Control *) );
ffc0a004:	a1 3f 00 10 	lhz     r9,16(r31)                             
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
ffc0a008:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc0a00c:	7f 03 c3 78 	mr      r3,r24                                 
              information->local_table,                               
              (information->maximum + minimum_index) * sizeof(Objects_Control *) );
ffc0a010:	7c a9 e2 14 	add     r5,r9,r28                              
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
ffc0a014:	54 a5 10 3a 	rlwinm  r5,r5,2,0,29                           
ffc0a018:	48 00 65 25 	bl      ffc1053c <memcpy>                      
ffc0a01c:	48 00 00 14 	b       ffc0a030 <_Objects_Extend_information+0x18c>
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
ffc0a020:	55 28 10 3a 	rlwinm  r8,r9,2,0,29                           
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
        local_table[ index ] = NULL;                                  
ffc0a024:	7d 48 c1 2e 	stwx    r10,r8,r24                             
    } else {                                                          
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
ffc0a028:	39 29 00 01 	addi    r9,r9,1                                
ffc0a02c:	42 00 ff f4 	bdnz+   ffc0a020 <_Objects_Extend_information+0x17c>
    }                                                                 
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
ffc0a030:	39 20 00 00 	li      r9,0                                   
ffc0a034:	57 bd 10 3a 	rlwinm  r29,r29,2,0,29                         
ffc0a038:	7d 3a e9 2e 	stwx    r9,r26,r29                             
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
ffc0a03c:	7f ca f3 78 	mr      r10,r30                                
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
ffc0a040:	38 e0 00 00 	li      r7,0                                   
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
ffc0a044:	7d 37 e9 2e 	stwx    r9,r23,r29                             
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
ffc0a048:	a1 3f 00 14 	lhz     r9,20(r31)                             
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
ffc0a04c:	7d 1e 4a 14 	add     r8,r30,r9                              
ffc0a050:	7f 9e 40 40 	cmplw   cr7,r30,r8                             
ffc0a054:	39 29 00 01 	addi    r9,r9,1                                
ffc0a058:	41 9d 00 0c 	bgt-    cr7,ffc0a064 <_Objects_Extend_information+0x1c0><== NEVER TAKEN
ffc0a05c:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0a060:	40 be 00 18 	bne+    cr7,ffc0a078 <_Objects_Extend_information+0x1d4><== ALWAYS TAKEN
ffc0a064:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc0a068:	48 00 00 10 	b       ffc0a078 <_Objects_Extend_information+0x1d4><== NOT EXECUTED
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
ffc0a06c:	55 48 10 3a 	rlwinm  r8,r10,2,0,29                          
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
ffc0a070:	7c e8 c1 2e 	stwx    r7,r8,r24                              
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
ffc0a074:	39 4a 00 01 	addi    r10,r10,1                              
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
ffc0a078:	35 29 ff ff 	addic.  r9,r9,-1                               
ffc0a07c:	40 82 ff f0 	bne+    ffc0a06c <_Objects_Extend_information+0x1c8>
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0a080:	7d 40 00 a6 	mfmsr   r10                                    
ffc0a084:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0a088:	7d 49 48 78 	andc    r9,r10,r9                              
ffc0a08c:	7d 20 01 24 	mtmsr   r9                                     
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
ffc0a090:	81 3f 00 00 	lwz     r9,0(r31)                              
                                                                      
    information->object_blocks = object_blocks;                       
    information->inactive_per_block = inactive_per_block;             
    information->local_table = local_table;                           
    information->maximum = (Objects_Maximum) maximum;                 
    information->maximum_id = _Objects_Build_id(                      
ffc0a094:	a1 1f 00 04 	lhz     r8,4(r31)                              
ffc0a098:	55 29 c0 0e 	rlwinm  r9,r9,24,0,7                           
    old_tables = information->object_blocks;                          
                                                                      
    information->object_blocks = object_blocks;                       
    information->inactive_per_block = inactive_per_block;             
    information->local_table = local_table;                           
    information->maximum = (Objects_Maximum) maximum;                 
ffc0a09c:	b3 3f 00 10 	sth     r25,16(r31)                            
ffc0a0a0:	65 29 00 01 	oris    r9,r9,1                                
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
ffc0a0a4:	7d 39 cb 78 	or      r25,r9,r25                             
      local_table[ index ] = NULL;                                    
    }                                                                 
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
ffc0a0a8:	80 7f 00 34 	lwz     r3,52(r31)                             
ffc0a0ac:	55 08 d8 08 	rlwinm  r8,r8,27,0,4                           
                                                                      
    information->object_blocks = object_blocks;                       
ffc0a0b0:	93 5f 00 34 	stw     r26,52(r31)                            
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
ffc0a0b4:	7f 39 43 78 	or      r25,r25,r8                             
    information->inactive_per_block = inactive_per_block;             
ffc0a0b8:	92 ff 00 30 	stw     r23,48(r31)                            
    information->local_table = local_table;                           
ffc0a0bc:	93 1f 00 1c 	stw     r24,28(r31)                            
    information->maximum = (Objects_Maximum) maximum;                 
    information->maximum_id = _Objects_Build_id(                      
ffc0a0c0:	93 3f 00 0c 	stw     r25,12(r31)                            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0a0c4:	7d 40 01 24 	mtmsr   r10                                    
        information->maximum                                          
      );                                                              
                                                                      
    _ISR_Enable( level );                                             
                                                                      
    _Workspace_Free( old_tables );                                    
ffc0a0c8:	48 00 21 f1 	bl      ffc0c2b8 <_Workspace_Free>             
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
ffc0a0cc:	81 3f 00 34 	lwz     r9,52(r31)                             
ffc0a0d0:	57 7b 10 3a 	rlwinm  r27,r27,2,0,29                         
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
ffc0a0d4:	3b a1 00 08 	addi    r29,r1,8                               
ffc0a0d8:	a0 bf 00 14 	lhz     r5,20(r31)                             
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
ffc0a0dc:	7e c9 d9 2e 	stwx    r22,r9,r27                             
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
ffc0a0e0:	7f a3 eb 78 	mr      r3,r29                                 
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
ffc0a0e4:	3b 9f 00 20 	addi    r28,r31,32                             
  information->object_blocks[ block ] = new_object_block;             
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
ffc0a0e8:	81 3f 00 34 	lwz     r9,52(r31)                             
ffc0a0ec:	80 df 00 18 	lwz     r6,24(r31)                             
ffc0a0f0:	7c 89 d8 2e 	lwzx    r4,r9,r27                              
ffc0a0f4:	4b ff f3 25 	bl      ffc09418 <_Chain_Initialize>           
  /*                                                                  
   *  Move from the local chain, initialise, then append to the inactive chain
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
ffc0a0f8:	48 00 00 30 	b       ffc0a128 <_Objects_Extend_information+0x284>
ffc0a0fc:	81 3f 00 00 	lwz     r9,0(r31)                              
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
ffc0a100:	7f 83 e3 78 	mr      r3,r28                                 
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
                                                                      
    the_object->id = _Objects_Build_id(                               
ffc0a104:	a1 5f 00 04 	lhz     r10,4(r31)                             
ffc0a108:	55 29 c0 0e 	rlwinm  r9,r9,24,0,7                           
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
ffc0a10c:	55 4a d8 08 	rlwinm  r10,r10,27,0,4                         
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
ffc0a110:	65 29 00 01 	oris    r9,r9,1                                
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
ffc0a114:	7d 29 53 78 	or      r9,r9,r10                              
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
ffc0a118:	7d 29 f3 78 	or      r9,r9,r30                              
ffc0a11c:	91 24 00 08 	stw     r9,8(r4)                               
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
ffc0a120:	3b de 00 01 	addi    r30,r30,1                              
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
ffc0a124:	4b ff f2 85 	bl      ffc093a8 <_Chain_Append>               
  /*                                                                  
   *  Move from the local chain, initialise, then append to the inactive chain
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
ffc0a128:	7f a3 eb 78 	mr      r3,r29                                 
ffc0a12c:	4b ff f2 ad 	bl      ffc093d8 <_Chain_Get>                  
ffc0a130:	7c 64 1b 79 	mr.     r4,r3                                  
ffc0a134:	40 82 ff c8 	bne+    ffc0a0fc <_Objects_Extend_information+0x258>
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
ffc0a138:	a1 3f 00 14 	lhz     r9,20(r31)                             
ffc0a13c:	81 5f 00 30 	lwz     r10,48(r31)                            
ffc0a140:	7d 2a d9 2e 	stwx    r9,r10,r27                             
  information->inactive =                                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
ffc0a144:	a1 5f 00 2c 	lhz     r10,44(r31)                            
ffc0a148:	7d 29 52 14 	add     r9,r9,r10                              
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
  information->inactive =                                             
ffc0a14c:	b1 3f 00 2c 	sth     r9,44(r31)                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
}                                                                     
ffc0a150:	39 61 00 48 	addi    r11,r1,72                              
ffc0a154:	4b ff 64 48 	b       ffc0059c <_restgpr_21_x>               
                                                                      

ffc0a200 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) {
ffc0a200:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0a204:	7c 08 02 a6 	mflr    r0                                     
ffc0a208:	bf c1 00 08 	stmw    r30,8(r1)                              
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
ffc0a20c:	7c 9f 23 79 	mr.     r31,r4                                 
                                                                      
Objects_Information *_Objects_Get_information(                        
  Objects_APIs   the_api,                                             
  uint16_t       the_class                                            
)                                                                     
{                                                                     
ffc0a210:	90 01 00 14 	stw     r0,20(r1)                              
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
ffc0a214:	40 a2 00 0c 	bne+    ffc0a220 <_Objects_Get_information+0x20>
    return NULL;                                                      
ffc0a218:	38 60 00 00 	li      r3,0                                   
ffc0a21c:	48 00 00 50 	b       ffc0a26c <_Objects_Get_information+0x6c>
ffc0a220:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  /*                                                                  
   *  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 );      
ffc0a224:	48 00 3d 41 	bl      ffc0df64 <_Objects_API_maximum_class>  
  if ( the_class_api_maximum == 0 )                                   
ffc0a228:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0a22c:	41 a2 ff ec 	beq-    ffc0a218 <_Objects_Get_information+0x18>
    return NULL;                                                      
                                                                      
  if ( the_class > (uint32_t) the_class_api_maximum )                 
ffc0a230:	7f 9f 18 40 	cmplw   cr7,r31,r3                             
ffc0a234:	41 bd ff e4 	bgt-    cr7,ffc0a218 <_Objects_Get_information+0x18>
    return NULL;                                                      
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
ffc0a238:	3d 20 00 00 	lis     r9,0                                   
ffc0a23c:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         
ffc0a240:	39 29 2b f8 	addi    r9,r9,11256                            
ffc0a244:	7d 29 f0 2e 	lwzx    r9,r9,r30                              
ffc0a248:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a24c:	41 be ff cc 	beq-    cr7,ffc0a218 <_Objects_Get_information+0x18><== NEVER TAKEN
    return NULL;                                                      
                                                                      
  info = _Objects_Information_table[ the_api ][ the_class ];          
ffc0a250:	57 ff 10 3a 	rlwinm  r31,r31,2,0,29                         
ffc0a254:	7c 69 f8 2e 	lwzx    r3,r9,r31                              
  if ( !info )                                                        
ffc0a258:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0a25c:	41 be ff bc 	beq-    cr7,ffc0a218 <_Objects_Get_information+0x18><== 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 )                                         
ffc0a260:	a1 23 00 10 	lhz     r9,16(r3)                              
ffc0a264:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a268:	41 be ff b0 	beq-    cr7,ffc0a218 <_Objects_Get_information+0x18>
      return NULL;                                                    
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
ffc0a26c:	39 61 00 10 	addi    r11,r1,16                              
ffc0a270:	4b ff 63 50 	b       ffc005c0 <_restgpr_30_x>               
                                                                      

ffc1c6ec <_Objects_Get_no_protection>: /* * You can't just extract the index portion or you can get tricked * by a value between 1 and maximum. */ index = id - information->minimum_id + 1;
ffc1c6ec:	81 23 00 08 	lwz     r9,8(r3)                               
ffc1c6f0:	21 29 00 01 	subfic  r9,r9,1                                
ffc1c6f4:	7c 89 22 14 	add     r4,r9,r4                               
                                                                      
  if ( information->maximum >= index ) {                              
ffc1c6f8:	a1 23 00 10 	lhz     r9,16(r3)                              
ffc1c6fc:	7f 89 20 40 	cmplw   cr7,r9,r4                              
ffc1c700:	41 9c 00 24 	blt-    cr7,ffc1c724 <_Objects_Get_no_protection+0x38>
    if ( (the_object = information->local_table[ index ]) != NULL ) { 
ffc1c704:	81 23 00 1c 	lwz     r9,28(r3)                              
ffc1c708:	54 84 10 3a 	rlwinm  r4,r4,2,0,29                           
ffc1c70c:	7c 69 20 2e 	lwzx    r3,r9,r4                               
ffc1c710:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c714:	41 9e 00 10 	beq-    cr7,ffc1c724 <_Objects_Get_no_protection+0x38><== NEVER TAKEN
      *location = OBJECTS_LOCAL;                                      
ffc1c718:	39 20 00 00 	li      r9,0                                   
ffc1c71c:	91 25 00 00 	stw     r9,0(r5)                               
      return the_object;                                              
ffc1c720:	4e 80 00 20 	blr                                            
                                                                      
  /*                                                                  
   *  This isn't supported or required yet for Global objects so      
   *  if it isn't local, we don't find it.                            
   */                                                                 
  *location = OBJECTS_ERROR;                                          
ffc1c724:	39 20 00 01 	li      r9,1                                   
ffc1c728:	91 25 00 00 	stw     r9,0(r5)                               
  return NULL;                                                        
ffc1c72c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1c730:	4e 80 00 20 	blr                                            
                                                                      

ffc0e228 <_Objects_Id_to_name>: Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
ffc0e228:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0e22c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0e230:	7c 08 02 a6 	mflr    r0                                     
ffc0e234:	48 01 a4 55 	bl      ffc28688 <_savegpr_31>                 
ffc0e238:	7c 9f 23 78 	mr      r31,r4                                 
                                                                      
  /*                                                                  
   *  Caller is trusted for name != NULL.                             
   */                                                                 
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
ffc0e23c:	7c 64 1b 79 	mr.     r4,r3                                  
                                                                      
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (                
  Objects_Id      id,                                                 
  Objects_Name   *name                                                
)                                                                     
{                                                                     
ffc0e240:	90 01 00 24 	stw     r0,36(r1)                              
                                                                      
  /*                                                                  
   *  Caller is trusted for name != NULL.                             
   */                                                                 
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
ffc0e244:	40 82 00 10 	bne-    ffc0e254 <_Objects_Id_to_name+0x2c>    
ffc0e248:	3d 20 00 00 	lis     r9,0                                   
ffc0e24c:	81 29 37 30 	lwz     r9,14128(r9)                           
ffc0e250:	80 89 00 08 	lwz     r4,8(r9)                               
 */                                                                   
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(                   
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
ffc0e254:	54 8a 47 7e 	rlwinm  r10,r4,8,29,31                         
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(                      
  uint32_t   the_api                                                  
)                                                                     
{                                                                     
  if ( !the_api || the_api > OBJECTS_APIS_LAST )                      
ffc0e258:	39 0a ff ff 	addi    r8,r10,-1                              
ffc0e25c:	2b 88 00 02 	cmplwi  cr7,r8,2                               
ffc0e260:	40 9d 00 40 	ble-    cr7,ffc0e2a0 <_Objects_Id_to_name+0x78>
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
ffc0e264:	38 60 00 03 	li      r3,3                                   
ffc0e268:	48 00 00 54 	b       ffc0e2bc <_Objects_Id_to_name+0x94>    
  if ( !_Objects_Information_table[ the_api ] )                       
    return OBJECTS_INVALID_ID;                                        
                                                                      
  the_class = _Objects_Get_class( tmpId );                            
                                                                      
  information = _Objects_Information_table[ the_api ][ the_class ];   
ffc0e26c:	54 88 3e 7a 	rlwinm  r8,r4,7,25,29                          
ffc0e270:	7c 6a 40 2e 	lwzx    r3,r10,r8                              
  if ( !information )                                                 
ffc0e274:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e278:	41 be ff ec 	beq-    cr7,ffc0e264 <_Objects_Id_to_name+0x3c><== 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 ); 
ffc0e27c:	38 a1 00 08 	addi    r5,r1,8                                
ffc0e280:	4b ff ff 29 	bl      ffc0e1a8 <_Objects_Get>                
  if ( !the_object )                                                  
ffc0e284:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0e288:	41 a2 ff dc 	beq-    ffc0e264 <_Objects_Id_to_name+0x3c>    
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
ffc0e28c:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc0e290:	91 3f 00 00 	stw     r9,0(r31)                              
  _Thread_Enable_dispatch();                                          
ffc0e294:	48 00 0e 61 	bl      ffc0f0f4 <_Thread_Enable_dispatch>     
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
ffc0e298:	38 60 00 00 	li      r3,0                                   
ffc0e29c:	48 00 00 20 	b       ffc0e2bc <_Objects_Id_to_name+0x94>    
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
ffc0e2a0:	3d 00 00 00 	lis     r8,0                                   
ffc0e2a4:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
ffc0e2a8:	39 08 34 d8 	addi    r8,r8,13528                            
ffc0e2ac:	7d 48 50 2e 	lwzx    r10,r8,r10                             
ffc0e2b0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0e2b4:	40 9e ff b8 	bne+    cr7,ffc0e26c <_Objects_Id_to_name+0x44>
ffc0e2b8:	4b ff ff ac 	b       ffc0e264 <_Objects_Id_to_name+0x3c>    
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
  _Thread_Enable_dispatch();                                          
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
}                                                                     
ffc0e2bc:	39 61 00 20 	addi    r11,r1,32                              
ffc0e2c0:	4b ff 25 70 	b       ffc00830 <_restgpr_31_x>               
                                                                      

ffc0b034 <_RBTree_Extract_unprotected>: */ void _RBTree_Extract_unprotected( RBTree_Control *the_rbtree, RBTree_Node *the_node ) {
ffc0b034:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0b038:	7c 08 02 a6 	mflr    r0                                     
ffc0b03c:	bf 81 00 08 	stmw    r28,8(r1)                              
  RBTree_Node *leaf, *target;                                         
  RBTree_Color victim_color;                                          
  RBTree_Direction dir;                                               
                                                                      
  if (!the_node) return;                                              
ffc0b040:	7c 9f 23 79 	mr.     r31,r4                                 
 */                                                                   
void _RBTree_Extract_unprotected(                                     
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
ffc0b044:	90 01 00 1c 	stw     r0,28(r1)                              
  RBTree_Node *leaf, *target;                                         
  RBTree_Color victim_color;                                          
  RBTree_Direction dir;                                               
                                                                      
  if (!the_node) return;                                              
ffc0b048:	41 82 01 9c 	beq-    ffc0b1e4 <_RBTree_Extract_unprotected+0x1b0>
                                                                      
  /* check if min needs to be updated */                              
  if (the_node == the_rbtree->first[RBT_LEFT]) {                      
ffc0b04c:	81 23 00 08 	lwz     r9,8(r3)                               
ffc0b050:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0b054:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc0b058:	40 be 00 14 	bne+    cr7,ffc0b06c <_RBTree_Extract_unprotected+0x38>
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Successor_unprotected(      
  const RBTree_Node *node                                             
)                                                                     
{                                                                     
  return _RBTree_Next_unprotected( node, RBT_RIGHT );                 
ffc0b05c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b060:	38 80 00 01 	li      r4,1                                   
ffc0b064:	48 00 04 f5 	bl      ffc0b558 <_RBTree_Next_unprotected>    
    RBTree_Node *next;                                                
    next = _RBTree_Successor_unprotected(the_node);                   
    the_rbtree->first[RBT_LEFT] = next;                               
ffc0b068:	90 7c 00 08 	stw     r3,8(r28)                              
  }                                                                   
                                                                      
  /* 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]) {                     
ffc0b06c:	81 3c 00 0c 	lwz     r9,12(r28)                             
ffc0b070:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc0b074:	40 be 00 14 	bne+    cr7,ffc0b088 <_RBTree_Extract_unprotected+0x54>
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Predecessor_unprotected(    
  const RBTree_Node *node                                             
)                                                                     
{                                                                     
  return _RBTree_Next_unprotected( node, RBT_LEFT );                  
ffc0b078:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b07c:	38 80 00 00 	li      r4,0                                   
ffc0b080:	48 00 04 d9 	bl      ffc0b558 <_RBTree_Next_unprotected>    
    RBTree_Node *previous;                                            
    previous = _RBTree_Predecessor_unprotected(the_node);             
    the_rbtree->first[RBT_RIGHT] = previous;                          
ffc0b084:	90 7c 00 0c 	stw     r3,12(r28)                             
   * 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]) {      
ffc0b088:	83 df 00 04 	lwz     r30,4(r31)                             
ffc0b08c:	83 bf 00 08 	lwz     r29,8(r31)                             
ffc0b090:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0b094:	41 9e 00 d0 	beq-    cr7,ffc0b164 <_RBTree_Extract_unprotected+0x130>
ffc0b098:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0b09c:	40 be 00 0c 	bne+    cr7,ffc0b0a8 <_RBTree_Extract_unprotected+0x74>
ffc0b0a0:	48 00 00 d0 	b       ffc0b170 <_RBTree_Extract_unprotected+0x13c>
    target = the_node->child[RBT_LEFT]; /* find max in node->child[RBT_LEFT] */
    while (target->child[RBT_RIGHT]) target = target->child[RBT_RIGHT];
ffc0b0a4:	7d 3e 4b 78 	mr      r30,r9                                 
ffc0b0a8:	81 3e 00 08 	lwz     r9,8(r30)                              
ffc0b0ac:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b0b0:	40 9e ff f4 	bne+    cr7,ffc0b0a4 <_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];                                   
ffc0b0b4:	83 be 00 04 	lwz     r29,4(r30)                             
    if(leaf) {                                                        
ffc0b0b8:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0b0bc:	41 9e 00 10 	beq-    cr7,ffc0b0cc <_RBTree_Extract_unprotected+0x98>
      leaf->parent = target->parent;                                  
ffc0b0c0:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc0b0c4:	91 3d 00 00 	stw     r9,0(r29)                              
ffc0b0c8:	48 00 00 0c 	b       ffc0b0d4 <_RBTree_Extract_unprotected+0xa0>
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(target);                   
ffc0b0cc:	7f c3 f3 78 	mr      r3,r30                                 
ffc0b0d0:	4b ff fd cd 	bl      ffc0ae9c <_RBTree_Extract_validate_unprotected>
    }                                                                 
    victim_color = target->color;                                     
    dir = target != target->parent->child[0];                         
ffc0b0d4:	81 1e 00 00 	lwz     r8,0(r30)                              
      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;                                     
ffc0b0d8:	81 5e 00 0c 	lwz     r10,12(r30)                            
    dir = target != target->parent->child[0];                         
ffc0b0dc:	81 28 00 04 	lwz     r9,4(r8)                               
ffc0b0e0:	7f c9 4a 78 	xor     r9,r30,r9                              
ffc0b0e4:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0b0e8:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc0b0ec:	69 29 00 01 	xori    r9,r9,1                                
    target->parent->child[dir] = leaf;                                
ffc0b0f0:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0b0f4:	7d 08 4a 14 	add     r8,r8,r9                               
ffc0b0f8:	93 a8 00 04 	stw     r29,4(r8)                              
                                                                      
    /* now replace the_node with target */                            
    dir = the_node != the_node->parent->child[0];                     
ffc0b0fc:	81 1f 00 00 	lwz     r8,0(r31)                              
ffc0b100:	81 28 00 04 	lwz     r9,4(r8)                               
ffc0b104:	7f e9 4a 78 	xor     r9,r31,r9                              
ffc0b108:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0b10c:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc0b110:	69 29 00 01 	xori    r9,r9,1                                
    the_node->parent->child[dir] = target;                            
ffc0b114:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0b118:	7d 08 4a 14 	add     r8,r8,r9                               
ffc0b11c:	93 c8 00 04 	stw     r30,4(r8)                              
                                                                      
    /* set target's new children to the original node's children */   
    target->child[RBT_RIGHT] = the_node->child[RBT_RIGHT];            
ffc0b120:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0b124:	91 3e 00 08 	stw     r9,8(r30)                              
    if (the_node->child[RBT_RIGHT])                                   
ffc0b128:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0b12c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b130:	41 9e 00 08 	beq-    cr7,ffc0b138 <_RBTree_Extract_unprotected+0x104><== NEVER TAKEN
      the_node->child[RBT_RIGHT]->parent = target;                    
ffc0b134:	93 c9 00 00 	stw     r30,0(r9)                              
    target->child[RBT_LEFT] = the_node->child[RBT_LEFT];              
ffc0b138:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0b13c:	91 3e 00 04 	stw     r9,4(r30)                              
    if (the_node->child[RBT_LEFT])                                    
ffc0b140:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0b144:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b148:	41 9e 00 08 	beq-    cr7,ffc0b150 <_RBTree_Extract_unprotected+0x11c>
      the_node->child[RBT_LEFT]->parent = target;                     
ffc0b14c:	93 c9 00 00 	stw     r30,0(r9)                              
    /* 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;                                
ffc0b150:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc0b154:	91 3e 00 00 	stw     r9,0(r30)                              
    target->color = the_node->color;                                  
ffc0b158:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc0b15c:	91 3e 00 0c 	stw     r9,12(r30)                             
ffc0b160:	48 00 00 50 	b       ffc0b1b0 <_RBTree_Extract_unprotected+0x17c>
     * 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 ) {                                                      
ffc0b164:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0b168:	40 be 00 0c 	bne+    cr7,ffc0b174 <_RBTree_Extract_unprotected+0x140>
ffc0b16c:	48 00 00 14 	b       ffc0b180 <_RBTree_Extract_unprotected+0x14c>
   * 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]) {      
ffc0b170:	7f dd f3 78 	mr      r29,r30                                
     * 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;                                
ffc0b174:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc0b178:	91 3d 00 00 	stw     r9,0(r29)                              
ffc0b17c:	48 00 00 0c 	b       ffc0b188 <_RBTree_Extract_unprotected+0x154>
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(the_node);                 
ffc0b180:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b184:	4b ff fd 19 	bl      ffc0ae9c <_RBTree_Extract_validate_unprotected>
    }                                                                 
    victim_color = the_node->color;                                   
                                                                      
    /* remove the_node from the tree */                               
    dir = the_node != the_node->parent->child[0];                     
ffc0b188:	81 1f 00 00 	lwz     r8,0(r31)                              
      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;                                   
ffc0b18c:	81 5f 00 0c 	lwz     r10,12(r31)                            
                                                                      
    /* remove the_node from the tree */                               
    dir = the_node != the_node->parent->child[0];                     
ffc0b190:	81 28 00 04 	lwz     r9,4(r8)                               
ffc0b194:	7f e9 4a 78 	xor     r9,r31,r9                              
ffc0b198:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0b19c:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc0b1a0:	69 29 00 01 	xori    r9,r9,1                                
    the_node->parent->child[dir] = leaf;                              
ffc0b1a4:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0b1a8:	7d 08 4a 14 	add     r8,r8,r9                               
ffc0b1ac:	93 a8 00 04 	stw     r29,4(r8)                              
  /* 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 */             
ffc0b1b0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0b1b4:	40 9e 00 10 	bne-    cr7,ffc0b1c4 <_RBTree_Extract_unprotected+0x190>
    if (leaf) {                                                       
ffc0b1b8:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0b1bc:	41 9e 00 08 	beq-    cr7,ffc0b1c4 <_RBTree_Extract_unprotected+0x190>
      leaf->color = RBT_BLACK; /* case 2 */                           
ffc0b1c0:	91 5d 00 0c 	stw     r10,12(r29)                            
                                                                      
  /* 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;          
ffc0b1c4:	81 5c 00 04 	lwz     r10,4(r28)                             
 */                                                                   
RTEMS_INLINE_ROUTINE void _RBTree_Set_off_rbtree(                     
    RBTree_Node *node                                                 
    )                                                                 
{                                                                     
  node->parent = node->child[RBT_LEFT] = node->child[RBT_RIGHT] = NULL;
ffc0b1c8:	39 20 00 00 	li      r9,0                                   
ffc0b1cc:	91 3f 00 08 	stw     r9,8(r31)                              
ffc0b1d0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0b1d4:	91 3f 00 04 	stw     r9,4(r31)                              
ffc0b1d8:	91 3f 00 00 	stw     r9,0(r31)                              
ffc0b1dc:	41 9e 00 08 	beq-    cr7,ffc0b1e4 <_RBTree_Extract_unprotected+0x1b0>
ffc0b1e0:	91 2a 00 0c 	stw     r9,12(r10)                             
}                                                                     
ffc0b1e4:	39 61 00 18 	addi    r11,r1,24                              
ffc0b1e8:	4b ff 5b 84 	b       ffc00d6c <_restgpr_28_x>               
                                                                      

ffc0ba0c <_RBTree_Initialize>: void *starting_address, size_t number_nodes, size_t node_size, bool is_unique ) {
ffc0ba0c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0ba10:	7c 08 02 a6 	mflr    r0                                     
ffc0ba14:	bf 81 00 08 	stmw    r28,8(r1)                              
  size_t      count;                                                  
  RBTree_Node *next;                                                  
                                                                      
  /* TODO: Error message? */                                          
  if (!the_rbtree) return;                                            
ffc0ba18:	7c 7f 1b 79 	mr.     r31,r3                                 
  void                    *starting_address,                          
  size_t                   number_nodes,                              
  size_t                   node_size,                                 
  bool                     is_unique                                  
)                                                                     
{                                                                     
ffc0ba1c:	90 01 00 1c 	stw     r0,28(r1)                              
  size_t      count;                                                  
  RBTree_Node *next;                                                  
                                                                      
  /* TODO: Error message? */                                          
  if (!the_rbtree) return;                                            
ffc0ba20:	41 82 00 4c 	beq-    ffc0ba6c <_RBTree_Initialize+0x60>     <== NEVER TAKEN
    RBTree_Control          *the_rbtree,                              
    RBTree_Compare_function  compare_function,                        
    bool                     is_unique                                
    )                                                                 
{                                                                     
  the_rbtree->permanent_null   = NULL;                                
ffc0ba24:	39 20 00 00 	li      r9,0                                   
  the_rbtree->root             = NULL;                                
  the_rbtree->first[0]         = NULL;                                
  the_rbtree->first[1]         = NULL;                                
  the_rbtree->compare_function = compare_function;                    
ffc0ba28:	90 9f 00 10 	stw     r4,16(r31)                             
ffc0ba2c:	7c de 33 78 	mr      r30,r6                                 
ffc0ba30:	7c fc 3b 78 	mr      r28,r7                                 
    RBTree_Control          *the_rbtree,                              
    RBTree_Compare_function  compare_function,                        
    bool                     is_unique                                
    )                                                                 
{                                                                     
  the_rbtree->permanent_null   = NULL;                                
ffc0ba34:	91 3f 00 00 	stw     r9,0(r31)                              
                                                                      
  /* could do sanity checks here */                                   
  _RBTree_Initialize_empty(the_rbtree, compare_function, is_unique);  
                                                                      
  count = number_nodes;                                               
  next  = starting_address;                                           
ffc0ba38:	7c bd 2b 78 	mr      r29,r5                                 
  the_rbtree->root             = NULL;                                
ffc0ba3c:	91 3f 00 04 	stw     r9,4(r31)                              
  the_rbtree->first[0]         = NULL;                                
ffc0ba40:	91 3f 00 08 	stw     r9,8(r31)                              
  the_rbtree->first[1]         = NULL;                                
ffc0ba44:	91 3f 00 0c 	stw     r9,12(r31)                             
  the_rbtree->compare_function = compare_function;                    
  the_rbtree->is_unique        = is_unique;                           
ffc0ba48:	99 1f 00 14 	stb     r8,20(r31)                             
  while ( count-- ) {                                                 
ffc0ba4c:	48 00 00 18 	b       ffc0ba64 <_RBTree_Initialize+0x58>     
    _RBTree_Insert_unprotected(the_rbtree, next);                     
ffc0ba50:	7f a4 eb 78 	mr      r4,r29                                 
ffc0ba54:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ba58:	4b ff fc 91 	bl      ffc0b6e8 <_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(                                              
ffc0ba5c:	7f bd e2 14 	add     r29,r29,r28                            
ffc0ba60:	3b de ff ff 	addi    r30,r30,-1                             
  /* could do sanity checks here */                                   
  _RBTree_Initialize_empty(the_rbtree, compare_function, is_unique);  
                                                                      
  count = number_nodes;                                               
  next  = starting_address;                                           
  while ( count-- ) {                                                 
ffc0ba64:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0ba68:	40 9e ff e8 	bne+    cr7,ffc0ba50 <_RBTree_Initialize+0x44> 
    _RBTree_Insert_unprotected(the_rbtree, next);                     
    next           = (RBTree_Node *)                                  
                        _Addresses_Add_offset( (void *) next, node_size );
  }                                                                   
}                                                                     
ffc0ba6c:	39 61 00 18 	addi    r11,r1,24                              
ffc0ba70:	4b ff 5e f8 	b       ffc01968 <_restgpr_28_x>               
                                                                      

ffc0b29c <_RBTree_Insert_unprotected>: */ RBTree_Node *_RBTree_Insert_unprotected( RBTree_Control *the_rbtree, RBTree_Node *the_node ) {
ffc0b29c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0b2a0:	7c 08 02 a6 	mflr    r0                                     
ffc0b2a4:	bf 41 00 08 	stmw    r26,8(r1)                              
  if(!the_node) return (RBTree_Node*)-1;                              
ffc0b2a8:	7c 9f 23 79 	mr.     r31,r4                                 
 */                                                                   
RBTree_Node *_RBTree_Insert_unprotected(                              
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
ffc0b2ac:	90 01 00 24 	stw     r0,36(r1)                              
  if(!the_node) return (RBTree_Node*)-1;                              
ffc0b2b0:	41 82 01 d8 	beq-    ffc0b488 <_RBTree_Insert_unprotected+0x1ec>
                                                                      
  RBTree_Node *iter_node = the_rbtree->root;                          
ffc0b2b4:	83 c3 00 04 	lwz     r30,4(r3)                              
ffc0b2b8:	7c 7d 1b 78 	mr      r29,r3                                 
  int compare_result;                                                 
                                                                      
  if (!iter_node) { /* special case: first node inserted */           
ffc0b2bc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0b2c0:	7f db f3 78 	mr      r27,r30                                
ffc0b2c4:	40 be 00 28 	bne+    cr7,ffc0b2ec <_RBTree_Insert_unprotected+0x50>
    the_node->color = RBT_BLACK;                                      
ffc0b2c8:	93 df 00 0c 	stw     r30,12(r31)                            
    the_rbtree->root = the_node;                                      
ffc0b2cc:	93 e3 00 04 	stw     r31,4(r3)                              
    the_rbtree->first[0] = the_rbtree->first[1] = the_node;           
ffc0b2d0:	93 e3 00 0c 	stw     r31,12(r3)                             
ffc0b2d4:	93 e3 00 08 	stw     r31,8(r3)                              
    the_node->parent = (RBTree_Node *) the_rbtree;                    
ffc0b2d8:	90 7f 00 00 	stw     r3,0(r31)                              
    the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;    
ffc0b2dc:	93 df 00 08 	stw     r30,8(r31)                             
ffc0b2e0:	93 df 00 04 	stw     r30,4(r31)                             
ffc0b2e4:	48 00 01 c0 	b       ffc0b4a4 <_RBTree_Insert_unprotected+0x208>
              (dir && _RBTree_Is_greater(compare_result)) ) {         
          the_rbtree->first[dir] = the_node;                          
        }                                                             
        break;                                                        
      } else {                                                        
        iter_node = iter_node->child[dir];                            
ffc0b2e8:	7f db f3 78 	mr      r27,r30                                
    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);
ffc0b2ec:	81 3d 00 10 	lwz     r9,16(r29)                             
ffc0b2f0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b2f4:	7f c4 f3 78 	mr      r4,r30                                 
ffc0b2f8:	7d 29 03 a6 	mtctr   r9                                     
ffc0b2fc:	4e 80 04 21 	bctrl                                          
      if ( the_rbtree->is_unique && _RBTree_Is_equal( compare_result ) )
ffc0b300:	89 3d 00 14 	lbz     r9,20(r29)                             
ffc0b304:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b308:	41 9e 00 0c 	beq-    cr7,ffc0b314 <_RBTree_Insert_unprotected+0x78>
ffc0b30c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0b310:	41 9e 01 94 	beq-    cr7,ffc0b4a4 <_RBTree_Insert_unprotected+0x208>
        return iter_node;                                             
      RBTree_Direction dir = !_RBTree_Is_lesser( compare_result );    
ffc0b314:	7c 7c 18 f8 	not     r28,r3                                 
ffc0b318:	57 9c 0f fe 	rlwinm  r28,r28,1,31,31                        
      if (!iter_node->child[dir]) {                                   
ffc0b31c:	57 89 10 3a 	rlwinm  r9,r28,2,0,29                          
ffc0b320:	7f de 4a 14 	add     r30,r30,r9                             
ffc0b324:	39 5e 00 04 	addi    r10,r30,4                              
ffc0b328:	83 de 00 04 	lwz     r30,4(r30)                             
ffc0b32c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0b330:	40 9e ff b8 	bne+    cr7,ffc0b2e8 <_RBTree_Insert_unprotected+0x4c>
        the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;
ffc0b334:	93 df 00 08 	stw     r30,8(r31)                             
        the_node->color = RBT_RED;                                    
ffc0b338:	39 00 00 01 	li      r8,1                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_First(                      
  const RBTree_Control *the_rbtree,                                   
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return the_rbtree->first[dir];                                      
ffc0b33c:	7d 3d 4a 14 	add     r9,r29,r9                              
      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]) {                                   
        the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;
ffc0b340:	93 df 00 04 	stw     r30,4(r31)                             
        the_node->color = RBT_RED;                                    
        iter_node->child[dir] = the_node;                             
        the_node->parent = iter_node;                                 
        /* update min/max */                                          
        compare_result = the_rbtree->compare_function(                
ffc0b344:	7f e3 fb 78 	mr      r3,r31                                 
        return iter_node;                                             
      RBTree_Direction dir = !_RBTree_Is_lesser( compare_result );    
      if (!iter_node->child[dir]) {                                   
        the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;
        the_node->color = RBT_RED;                                    
        iter_node->child[dir] = the_node;                             
ffc0b348:	93 ea 00 00 	stw     r31,0(r10)                             
        the_node->parent = iter_node;                                 
        /* update min/max */                                          
        compare_result = the_rbtree->compare_function(                
ffc0b34c:	81 5d 00 10 	lwz     r10,16(r29)                            
      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]) {                                   
        the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;
        the_node->color = RBT_RED;                                    
ffc0b350:	91 1f 00 0c 	stw     r8,12(r31)                             
        iter_node->child[dir] = the_node;                             
        the_node->parent = iter_node;                                 
        /* update min/max */                                          
        compare_result = the_rbtree->compare_function(                
ffc0b354:	7d 49 03 a6 	mtctr   r10                                    
      RBTree_Direction dir = !_RBTree_Is_lesser( compare_result );    
      if (!iter_node->child[dir]) {                                   
        the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;
        the_node->color = RBT_RED;                                    
        iter_node->child[dir] = the_node;                             
        the_node->parent = iter_node;                                 
ffc0b358:	93 7f 00 00 	stw     r27,0(r31)                             
        /* update min/max */                                          
        compare_result = the_rbtree->compare_function(                
ffc0b35c:	80 89 00 08 	lwz     r4,8(r9)                               
ffc0b360:	4e 80 04 21 	bctrl                                          
            the_node,                                                 
            _RBTree_First(the_rbtree, dir)                            
        );                                                            
        if ( (!dir && _RBTree_Is_lesser(compare_result)) ||           
ffc0b364:	2f 1c 00 00 	cmpwi   cr6,r28,0                              
ffc0b368:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0b36c:	40 9a 00 0c 	bne-    cr6,ffc0b378 <_RBTree_Insert_unprotected+0xdc>
ffc0b370:	40 bc 00 e4 	bge+    cr7,ffc0b454 <_RBTree_Insert_unprotected+0x1b8>
ffc0b374:	48 00 00 08 	b       ffc0b37c <_RBTree_Insert_unprotected+0xe0>
              (dir && _RBTree_Is_greater(compare_result)) ) {         
ffc0b378:	40 9d 00 dc 	ble-    cr7,ffc0b454 <_RBTree_Insert_unprotected+0x1b8>
          the_rbtree->first[dir] = the_node;                          
ffc0b37c:	57 9c 10 3a 	rlwinm  r28,r28,2,0,29                         
ffc0b380:	7f bd e2 14 	add     r29,r29,r28                            
ffc0b384:	93 fd 00 08 	stw     r31,8(r29)                             
ffc0b388:	48 00 00 cc 	b       ffc0b454 <_RBTree_Insert_unprotected+0x1b8>
  const RBTree_Node *the_node                                         
)                                                                     
{                                                                     
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
  if(!(the_node->parent->parent)) return NULL;                        
ffc0b38c:	41 9e 00 38 	beq-    cr7,ffc0b3c4 <_RBTree_Insert_unprotected+0x128><== NEVER TAKEN
  if(!(the_node->parent->parent->parent)) return NULL;                
ffc0b390:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc0b394:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b398:	41 9e 00 2c 	beq-    cr7,ffc0b3c4 <_RBTree_Insert_unprotected+0x128><== 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])                   
ffc0b39c:	81 3d 00 04 	lwz     r9,4(r29)                              
ffc0b3a0:	7f 83 48 00 	cmpw    cr7,r3,r9                              
ffc0b3a4:	40 be 00 08 	bne+    cr7,ffc0b3ac <_RBTree_Insert_unprotected+0x110>
    return the_node->parent->child[RBT_RIGHT];                        
ffc0b3a8:	81 3d 00 08 	lwz     r9,8(r29)                              
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
ffc0b3ac:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b3b0:	41 9e 00 18 	beq-    cr7,ffc0b3c8 <_RBTree_Insert_unprotected+0x12c>
ffc0b3b4:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0b3b8:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
ffc0b3bc:	40 be 00 0c 	bne+    cr7,ffc0b3c8 <_RBTree_Insert_unprotected+0x12c>
ffc0b3c0:	48 00 00 10 	b       ffc0b3d0 <_RBTree_Insert_unprotected+0x134>
)                                                                     
{                                                                     
  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;                
ffc0b3c4:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
ffc0b3c8:	39 40 00 00 	li      r10,0                                  
ffc0b3cc:	48 00 00 08 	b       ffc0b3d4 <_RBTree_Insert_unprotected+0x138>
ffc0b3d0:	39 40 00 01 	li      r10,1                                  
  while (_RBTree_Is_red(_RBTree_Parent(the_node))) {                  
    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)) {                                           
ffc0b3d4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0b3d8:	41 9e 00 14 	beq-    cr7,ffc0b3ec <_RBTree_Insert_unprotected+0x150>
      the_node->parent->color = RBT_BLACK;                            
ffc0b3dc:	93 63 00 0c 	stw     r27,12(r3)                             
      u->color = RBT_BLACK;                                           
ffc0b3e0:	93 69 00 0c 	stw     r27,12(r9)                             
      g->color = RBT_RED;                                             
ffc0b3e4:	93 5d 00 0c 	stw     r26,12(r29)                            
ffc0b3e8:	48 00 00 64 	b       ffc0b44c <_RBTree_Insert_unprotected+0x1b0>
      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];        
ffc0b3ec:	80 9d 00 04 	lwz     r4,4(r29)                              
      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];  
ffc0b3f0:	81 23 00 04 	lwz     r9,4(r3)                               
      RBTree_Direction pdir = the_node->parent != g->child[0];        
ffc0b3f4:	7c 64 22 78 	xor     r4,r3,r4                               
      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];  
ffc0b3f8:	7f e9 4a 78 	xor     r9,r31,r9                              
      RBTree_Direction pdir = the_node->parent != g->child[0];        
ffc0b3fc:	7c 84 00 34 	cntlzw  r4,r4                                  
      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];  
ffc0b400:	7d 29 00 34 	cntlzw  r9,r9                                  
      RBTree_Direction pdir = the_node->parent != g->child[0];        
ffc0b404:	54 84 d9 7e 	rlwinm  r4,r4,27,5,31                          
      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];  
ffc0b408:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
      RBTree_Direction pdir = the_node->parent != g->child[0];        
ffc0b40c:	68 9c 00 01 	xori    r28,r4,1                               
      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];  
ffc0b410:	69 29 00 01 	xori    r9,r9,1                                
      RBTree_Direction pdir = the_node->parent != g->child[0];        
                                                                      
      /* ensure node is on the same branch direction as parent */     
      if (dir != pdir) {                                              
ffc0b414:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
ffc0b418:	41 9e 00 18 	beq-    cr7,ffc0b430 <_RBTree_Insert_unprotected+0x194>
        _RBTree_Rotate(the_node->parent, pdir);                       
ffc0b41c:	7f 84 e3 78 	mr      r4,r28                                 
ffc0b420:	4b ff fe 01 	bl      ffc0b220 <_RBTree_Rotate>              
        the_node = the_node->child[pdir];                             
ffc0b424:	57 89 10 3a 	rlwinm  r9,r28,2,0,29                          
ffc0b428:	7f ff 4a 14 	add     r31,r31,r9                             
ffc0b42c:	83 ff 00 04 	lwz     r31,4(r31)                             
      }                                                               
      the_node->parent->color = RBT_BLACK;                            
ffc0b430:	81 3f 00 00 	lwz     r9,0(r31)                              
      g->color = RBT_RED;                                             
                                                                      
      /* now rotate grandparent in the other branch direction (toward uncle) */
      _RBTree_Rotate(g, (1-pdir));                                    
ffc0b434:	7f a3 eb 78 	mr      r3,r29                                 
ffc0b438:	20 9c 00 01 	subfic  r4,r28,1                               
      /* 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;                            
ffc0b43c:	93 69 00 0c 	stw     r27,12(r9)                             
      g->color = RBT_RED;                                             
ffc0b440:	93 5d 00 0c 	stw     r26,12(r29)                            
                                                                      
      /* now rotate grandparent in the other branch direction (toward uncle) */
      _RBTree_Rotate(g, (1-pdir));                                    
ffc0b444:	7f fd fb 78 	mr      r29,r31                                
ffc0b448:	4b ff fd d9 	bl      ffc0b220 <_RBTree_Rotate>              
ffc0b44c:	7f bf eb 78 	mr      r31,r29                                
ffc0b450:	48 00 00 0c 	b       ffc0b45c <_RBTree_Insert_unprotected+0x1c0>
ffc0b454:	3b 60 00 00 	li      r27,0                                  
ffc0b458:	3b 40 00 01 	li      r26,1                                  
                                                                      
  _ISR_Disable( level );                                              
  return_node = _RBTree_Insert_unprotected( tree, node );             
  _ISR_Enable( level );                                               
  return return_node;                                                 
}                                                                     
ffc0b45c:	80 7f 00 00 	lwz     r3,0(r31)                              
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Parent(                     
  const RBTree_Node *the_node                                         
)                                                                     
{                                                                     
  if (!the_node->parent->parent) return NULL;                         
ffc0b460:	83 a3 00 00 	lwz     r29,0(r3)                              
ffc0b464:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0b468:	40 be 00 28 	bne+    cr7,ffc0b490 <_RBTree_Insert_unprotected+0x1f4>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
ffc0b46c:	39 20 00 00 	li      r9,0                                   
  RBTree_Node *u,*g;                                                  
                                                                      
  /* note: the insert root case is handled already */                 
  /* if the parent is black, nothing needs to be done                 
   * otherwise may need to loop a few times */                        
  while (_RBTree_Is_red(_RBTree_Parent(the_node))) {                  
ffc0b470:	2f 09 00 00 	cmpwi   cr6,r9,0                               
ffc0b474:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0b478:	40 9a ff 14 	bne+    cr6,ffc0b38c <_RBTree_Insert_unprotected+0xf0>
                                                                      
      /* 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;          
ffc0b47c:	40 be 00 28 	bne+    cr7,ffc0b4a4 <_RBTree_Insert_unprotected+0x208>
ffc0b480:	93 bf 00 0c 	stw     r29,12(r31)                            
ffc0b484:	48 00 00 20 	b       ffc0b4a4 <_RBTree_Insert_unprotected+0x208>
RBTree_Node *_RBTree_Insert_unprotected(                              
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  if(!the_node) return (RBTree_Node*)-1;                              
ffc0b488:	3b c0 ff ff 	li      r30,-1                                 
ffc0b48c:	48 00 00 18 	b       ffc0b4a4 <_RBTree_Insert_unprotected+0x208>
ffc0b490:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc0b494:	69 29 00 01 	xori    r9,r9,1                                
ffc0b498:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0b49c:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc0b4a0:	4b ff ff d0 	b       ffc0b470 <_RBTree_Insert_unprotected+0x1d4>
                                                                      
    /* verify red-black properties */                                 
    _RBTree_Validate_insert_unprotected(the_node);                    
  }                                                                   
  return (RBTree_Node*)0;                                             
}                                                                     
ffc0b4a4:	39 61 00 20 	addi    r11,r1,32                              
ffc0b4a8:	7f c3 f3 78 	mr      r3,r30                                 
ffc0b4ac:	4b ff 58 b8 	b       ffc00d64 <_restgpr_26_x>               
                                                                      

ffc0b4e4 <_RBTree_Iterate_unprotected>: const RBTree_Control *rbtree, RBTree_Direction dir, RBTree_Visitor visitor, void *visitor_arg ) {
ffc0b4e4:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0b4e8:	7c 08 02 a6 	mflr    r0                                     
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(     
  RBTree_Direction the_dir                                            
)                                                                     
{                                                                     
  return (RBTree_Direction) !((int) the_dir);                         
ffc0b4ec:	7c 89 00 34 	cntlzw  r9,r4                                  
ffc0b4f0:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc0b4f4:	90 01 00 24 	stw     r0,36(r1)                              
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_First(                      
  const RBTree_Control *the_rbtree,                                   
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return the_rbtree->first[dir];                                      
ffc0b4f8:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0b4fc:	7c 63 4a 14 	add     r3,r3,r9                               
ffc0b500:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc0b504:	7c bd 2b 78 	mr      r29,r5                                 
ffc0b508:	7c dc 33 78 	mr      r28,r6                                 
ffc0b50c:	83 e3 00 08 	lwz     r31,8(r3)                              
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(     
  RBTree_Direction the_dir                                            
)                                                                     
{                                                                     
  return (RBTree_Direction) !((int) the_dir);                         
ffc0b510:	7c 9e 23 78 	mr      r30,r4                                 
ffc0b514:	48 00 00 34 	b       ffc0b548 <_RBTree_Iterate_unprotected+0x64>
  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 );                   
ffc0b518:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b51c:	7f a9 03 a6 	mtctr   r29                                    
ffc0b520:	7f c4 f3 78 	mr      r4,r30                                 
ffc0b524:	7f 85 e3 78 	mr      r5,r28                                 
ffc0b528:	4e 80 04 21 	bctrl                                          
                                                                      
    current = _RBTree_Next_unprotected( current, dir );               
ffc0b52c:	7f c4 f3 78 	mr      r4,r30                                 
  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 );                   
ffc0b530:	7c 7b 1b 78 	mr      r27,r3                                 
                                                                      
    current = _RBTree_Next_unprotected( current, dir );               
ffc0b534:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b538:	48 00 00 21 	bl      ffc0b558 <_RBTree_Next_unprotected>    
{                                                                     
  RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );       
  const RBTree_Node *current = _RBTree_First( rbtree, opp_dir );      
  bool stop = false;                                                  
                                                                      
  while ( !stop && current != NULL ) {                                
ffc0b53c:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
    stop = (*visitor)( current, dir, visitor_arg );                   
                                                                      
    current = _RBTree_Next_unprotected( current, dir );               
ffc0b540:	7c 7f 1b 78 	mr      r31,r3                                 
{                                                                     
  RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );       
  const RBTree_Node *current = _RBTree_First( rbtree, opp_dir );      
  bool stop = false;                                                  
                                                                      
  while ( !stop && current != NULL ) {                                
ffc0b544:	40 9e 00 0c 	bne-    cr7,ffc0b550 <_RBTree_Iterate_unprotected+0x6c><== NEVER TAKEN
ffc0b548:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0b54c:	40 9e ff cc 	bne+    cr7,ffc0b518 <_RBTree_Iterate_unprotected+0x34>
    stop = (*visitor)( current, dir, visitor_arg );                   
                                                                      
    current = _RBTree_Next_unprotected( current, dir );               
  }                                                                   
}                                                                     
ffc0b550:	39 61 00 20 	addi    r11,r1,32                              
ffc0b554:	4b ff 58 14 	b       ffc00d68 <_restgpr_27_x>               
                                                                      

ffc0ade4 <_RBTree_Sibling>: */ RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Sibling( const RBTree_Node *the_node ) { if(!the_node) return NULL;
ffc0ade4:	7c 6a 1b 79 	mr.     r10,r3                                 
ffc0ade8:	41 82 00 30 	beq-    ffc0ae18 <_RBTree_Sibling+0x34>        <== NEVER TAKEN
  if(!(the_node->parent)) return NULL;                                
ffc0adec:	81 2a 00 00 	lwz     r9,0(r10)                              
ffc0adf0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0adf4:	41 9e 00 24 	beq-    cr7,ffc0ae18 <_RBTree_Sibling+0x34>    <== NEVER TAKEN
  if(!(the_node->parent->parent)) return NULL;                        
ffc0adf8:	81 09 00 00 	lwz     r8,0(r9)                               
ffc0adfc:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0ae00:	41 9e 00 18 	beq-    cr7,ffc0ae18 <_RBTree_Sibling+0x34>    
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
ffc0ae04:	80 69 00 04 	lwz     r3,4(r9)                               
ffc0ae08:	7f 8a 18 00 	cmpw    cr7,r10,r3                             
ffc0ae0c:	4c be 00 20 	bnelr+  cr7                                    
    return the_node->parent->child[RBT_RIGHT];                        
ffc0ae10:	80 69 00 08 	lwz     r3,8(r9)                               
ffc0ae14:	4e 80 00 20 	blr                                            
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Sibling(                    
  const RBTree_Node *the_node                                         
)                                                                     
{                                                                     
  if(!the_node) return NULL;                                          
ffc0ae18:	38 60 00 00 	li      r3,0                                   
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
    return the_node->parent->child[RBT_RIGHT];                        
  else                                                                
    return the_node->parent->child[RBT_LEFT];                         
}                                                                     
ffc0ae1c:	4e 80 00 20 	blr                                            
                                                                      

ffc099d8 <_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 ) {
ffc099d8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc099dc:	7c 08 02 a6 	mflr    r0                                     
ffc099e0:	90 01 00 24 	stw     r0,36(r1)                              
ffc099e4:	bf c1 00 18 	stmw    r30,24(r1)                             
  RTEMS_API_Control *api;                                             
  ASR_Information   *asr;                                             
  rtems_signal_set   signal_set;                                      
  Modes_Control      prev_mode;                                       
                                                                      
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
ffc099e8:	83 e3 01 48 	lwz     r31,328(r3)                            
  if ( !api )                                                         
ffc099ec:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc099f0:	41 9e 00 7c 	beq-    cr7,ffc09a6c <_RTEMS_signal_Post_switch_hook+0x94><== NEVER TAKEN
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc099f4:	7d 20 00 a6 	mfmsr   r9                                     
ffc099f8:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc099fc:	7d 2a 50 78 	andc    r10,r9,r10                             
ffc09a00:	7d 40 01 24 	mtmsr   r10                                    
                                                                      
  asr = &api->Signal;                                                 
                                                                      
  _ISR_Disable( level );                                              
    signal_set = asr->signals_posted;                                 
    asr->signals_posted = 0;                                          
ffc09a04:	39 40 00 00 	li      r10,0                                  
   */                                                                 
                                                                      
  asr = &api->Signal;                                                 
                                                                      
  _ISR_Disable( level );                                              
    signal_set = asr->signals_posted;                                 
ffc09a08:	83 df 00 14 	lwz     r30,20(r31)                            
    asr->signals_posted = 0;                                          
ffc09a0c:	91 5f 00 14 	stw     r10,20(r31)                            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc09a10:	7d 20 01 24 	mtmsr   r9                                     
  _ISR_Enable( level );                                               
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
ffc09a14:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc09a18:	41 be 00 54 	beq+    cr7,ffc09a6c <_RTEMS_signal_Post_switch_hook+0x94>
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
ffc09a1c:	81 3f 00 1c 	lwz     r9,28(r31)                             
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
ffc09a20:	38 80 00 00 	li      r4,0                                   
ffc09a24:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc09a28:	60 84 ff ff 	ori     r4,r4,65535                            
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
ffc09a2c:	39 29 00 01 	addi    r9,r9,1                                
ffc09a30:	91 3f 00 1c 	stw     r9,28(r31)                             
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
ffc09a34:	38 a1 00 08 	addi    r5,r1,8                                
ffc09a38:	48 00 04 41 	bl      ffc09e78 <rtems_task_mode>             
                                                                      
  (*asr->handler)( signal_set );                                      
ffc09a3c:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc09a40:	7f c3 f3 78 	mr      r3,r30                                 
ffc09a44:	7d 29 03 a6 	mtctr   r9                                     
ffc09a48:	4e 80 04 21 	bctrl                                          
                                                                      
  asr->nest_level -= 1;                                               
ffc09a4c:	81 3f 00 1c 	lwz     r9,28(r31)                             
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
ffc09a50:	38 80 00 00 	li      r4,0                                   
ffc09a54:	80 61 00 08 	lwz     r3,8(r1)                               
  asr->nest_level += 1;                                               
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
                                                                      
  (*asr->handler)( signal_set );                                      
                                                                      
  asr->nest_level -= 1;                                               
ffc09a58:	39 29 ff ff 	addi    r9,r9,-1                               
ffc09a5c:	91 3f 00 1c 	stw     r9,28(r31)                             
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
ffc09a60:	60 84 ff ff 	ori     r4,r4,65535                            
ffc09a64:	38 a1 00 08 	addi    r5,r1,8                                
ffc09a68:	48 00 04 11 	bl      ffc09e78 <rtems_task_mode>             
                                                                      
}                                                                     
ffc09a6c:	39 61 00 20 	addi    r11,r1,32                              
ffc09a70:	4b ff 7a a0 	b       ffc01510 <_restgpr_30_x>               
                                                                      

ffc338f4 <_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 ) {
ffc338f4:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc338f8:	7c 08 02 a6 	mflr    r0                                     
ffc338fc:	90 01 00 2c 	stw     r0,44(r1)                              
ffc33900:	bf 81 00 18 	stmw    r28,24(r1)                             
ffc33904:	7c 9d 23 78 	mr      r29,r4                                 
 */                                                                   
static inline void _TOD_Get_uptime(                                   
  Timestamp_Control *time                                             
)                                                                     
{                                                                     
  _TOD_Get_with_nanoseconds( time, &_TOD.uptime );                    
ffc33908:	3c 80 00 00 	lis     r4,0                                   
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    Timestamp_Control        uptime;                                  
  #endif                                                              
    Thread_Control          *owning_thread = the_period->owner;       
ffc3390c:	83 c3 00 40 	lwz     r30,64(r3)                             
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                
)                                                                     
{                                                                     
ffc33910:	7c 7f 1b 78 	mr      r31,r3                                 
ffc33914:	38 84 63 48 	addi    r4,r4,25416                            
ffc33918:	38 61 00 08 	addi    r3,r1,8                                
ffc3391c:	7c bc 2b 78 	mr      r28,r5                                 
ffc33920:	4b fd 58 05 	bl      ffc09124 <_TOD_Get_with_nanoseconds>   
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
ffc33924:	81 5f 00 50 	lwz     r10,80(r31)                            
ffc33928:	81 7f 00 54 	lwz     r11,84(r31)                            
  /*                                                                  
   *  Determine elapsed wall time since period initiated.             
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _TOD_Get_uptime( &uptime );                                       
    _Timestamp_Subtract(                                              
ffc3392c:	80 c1 00 08 	lwz     r6,8(r1)                               
ffc33930:	80 e1 00 0c 	lwz     r7,12(r1)                              
ffc33934:	7d 6b 38 10 	subfc   r11,r11,r7                             
ffc33938:	7d 4a 31 10 	subfe   r10,r10,r6                             
ffc3393c:	91 5d 00 00 	stw     r10,0(r29)                             
   *  Determine cpu usage since period initiated.                     
   */                                                                 
  used = owning_thread->cpu_time_used;                                
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    if (owning_thread == _Thread_Executing) {                         
ffc33940:	3d 40 00 00 	lis     r10,0                                  
ffc33944:	39 4a 65 60 	addi    r10,r10,25952                          
ffc33948:	91 7d 00 04 	stw     r11,4(r29)                             
ffc3394c:	80 aa 00 10 	lwz     r5,16(r10)                             
  #endif                                                              
                                                                      
  /*                                                                  
   *  Determine cpu usage since period initiated.                     
   */                                                                 
  used = owning_thread->cpu_time_used;                                
ffc33950:	81 1e 00 80 	lwz     r8,128(r30)                            
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    if (owning_thread == _Thread_Executing) {                         
ffc33954:	7f 9e 28 00 	cmpw    cr7,r30,r5                             
  #endif                                                              
                                                                      
  /*                                                                  
   *  Determine cpu usage since period initiated.                     
   */                                                                 
  used = owning_thread->cpu_time_used;                                
ffc33958:	81 3e 00 84 	lwz     r9,132(r30)                            
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    if (owning_thread == _Thread_Executing) {                         
ffc3395c:	40 be 00 48 	bne+    cr7,ffc339a4 <_Rate_monotonic_Get_status+0xb0>
ffc33960:	81 6a 00 24 	lwz     r11,36(r10)                            
ffc33964:	81 4a 00 20 	lwz     r10,32(r10)                            
ffc33968:	7c eb 38 10 	subfc   r7,r11,r7                              
ffc3396c:	7c ca 31 10 	subfe   r6,r10,r6                              
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc33970:	81 5f 00 48 	lwz     r10,72(r31)                            
ffc33974:	81 7f 00 4c 	lwz     r11,76(r31)                            
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
ffc33978:	7d 29 38 14 	addc    r9,r9,r7                               
ffc3397c:	7d 08 31 14 	adde    r8,r8,r6                               
                                                                      
      /*                                                              
       *  The cpu usage info was reset while executing.  Can't        
       *  determine a status.                                         
       */                                                             
      if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
ffc33980:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc33984:	41 9d 00 28 	bgt-    cr7,ffc339ac <_Rate_monotonic_Get_status+0xb8><== NEVER TAKEN
ffc33988:	40 be 00 0c 	bne+    cr7,ffc33994 <_Rate_monotonic_Get_status+0xa0>
ffc3398c:	7f 8b 48 40 	cmplw   cr7,r11,r9                             
ffc33990:	41 9d 00 1c 	bgt-    cr7,ffc339ac <_Rate_monotonic_Get_status+0xb8>
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
ffc33994:	7d 6b 48 10 	subfc   r11,r11,r9                             
ffc33998:	7d 4a 41 10 	subfe   r10,r10,r8                             
ffc3399c:	91 5c 00 00 	stw     r10,0(r28)                             
ffc339a0:	91 7c 00 04 	stw     r11,4(r28)                             
      if (used < the_period->cpu_usage_period_initiated)              
        return false;                                                 
                                                                      
      *cpu_since_last_period = used - the_period->cpu_usage_period_initiated;
  #endif                                                              
  return true;                                                        
ffc339a4:	38 60 00 01 	li      r3,1                                   
ffc339a8:	48 00 00 08 	b       ffc339b0 <_Rate_monotonic_Get_status+0xbc>
      /*                                                              
       *  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;                                                 
ffc339ac:	38 60 00 00 	li      r3,0                                   
        return false;                                                 
                                                                      
      *cpu_since_last_period = used - the_period->cpu_usage_period_initiated;
  #endif                                                              
  return true;                                                        
}                                                                     
ffc339b0:	39 61 00 28 	addi    r11,r1,40                              
ffc339b4:	48 01 fe 3c 	b       ffc537f0 <_restgpr_28_x>               
                                                                      

ffc33d50 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) {
ffc33d50:	7c 2b 0b 78 	mr      r11,r1                                 
ffc33d54:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc33d58:	7c 08 02 a6 	mflr    r0                                     
ffc33d5c:	7c 64 1b 78 	mr      r4,r3                                  
ffc33d60:	3c 60 00 00 	lis     r3,0                                   
ffc33d64:	48 01 fa 4d 	bl      ffc537b0 <_savegpr_31>                 
ffc33d68:	38 63 67 e0 	addi    r3,r3,26592                            
ffc33d6c:	90 01 00 24 	stw     r0,36(r1)                              
ffc33d70:	38 a1 00 08 	addi    r5,r1,8                                
ffc33d74:	4b fd 5e 31 	bl      ffc09ba4 <_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 ) {                                               
ffc33d78:	81 21 00 08 	lwz     r9,8(r1)                               
ffc33d7c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc33d80:	40 9e 00 88 	bne-    cr7,ffc33e08 <_Rate_monotonic_Timeout+0xb8><== NEVER TAKEN
ffc33d84:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
    case OBJECTS_LOCAL:                                               
      the_thread = the_period->owner;                                 
ffc33d88:	80 63 00 40 	lwz     r3,64(r3)                              
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period (             
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_FOR_PERIOD);                   
ffc33d8c:	81 23 00 10 	lwz     r9,16(r3)                              
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
ffc33d90:	71 2a 40 00 	andi.   r10,r9,16384                           
ffc33d94:	41 82 00 24 	beq-    ffc33db8 <_Rate_monotonic_Timeout+0x68>
ffc33d98:	81 43 00 20 	lwz     r10,32(r3)                             
ffc33d9c:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc33da0:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc33da4:	40 be 00 14 	bne+    cr7,ffc33db8 <_Rate_monotonic_Timeout+0x68>
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
ffc33da8:	3c 80 10 07 	lis     r4,4103                                
ffc33dac:	60 84 ff f8 	ori     r4,r4,65528                            
ffc33db0:	4b fd 67 ed 	bl      ffc0a59c <_Thread_Clear_state>         
ffc33db4:	48 00 00 18 	b       ffc33dcc <_Rate_monotonic_Timeout+0x7c>
        _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 ) {
ffc33db8:	81 3f 00 38 	lwz     r9,56(r31)                             
ffc33dbc:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc33dc0:	40 be 00 30 	bne+    cr7,ffc33df0 <_Rate_monotonic_Timeout+0xa0>
        the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;    
ffc33dc4:	39 20 00 03 	li      r9,3                                   
ffc33dc8:	91 3f 00 38 	stw     r9,56(r31)                             
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
ffc33dcc:	7f e3 fb 78 	mr      r3,r31                                 
ffc33dd0:	4b ff fd 15 	bl      ffc33ae4 <_Rate_monotonic_Initiate_statistics>
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc33dd4:	81 3f 00 3c 	lwz     r9,60(r31)                             
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc33dd8:	3c 60 00 00 	lis     r3,0                                   
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc33ddc:	91 3f 00 1c 	stw     r9,28(r31)                             
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc33de0:	38 63 64 88 	addi    r3,r3,25736                            
ffc33de4:	38 9f 00 10 	addi    r4,r31,16                              
ffc33de8:	4b fd 78 fd 	bl      ffc0b6e4 <_Watchdog_Insert>            
ffc33dec:	48 00 00 0c 	b       ffc33df8 <_Rate_monotonic_Timeout+0xa8>
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else                                                          
        the_period->state = RATE_MONOTONIC_EXPIRED;                   
ffc33df0:	39 20 00 04 	li      r9,4                                   
ffc33df4:	91 3f 00 38 	stw     r9,56(r31)                             
   *                                                                  
   * 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;                  
ffc33df8:	3d 20 00 00 	lis     r9,0                                   
ffc33dfc:	81 49 34 80 	lwz     r10,13440(r9)                          
                                                                      
    --level;                                                          
ffc33e00:	39 4a ff ff 	addi    r10,r10,-1                             
    _Thread_Dispatch_disable_level = level;                           
ffc33e04:	91 49 34 80 	stw     r10,13440(r9)                          
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
ffc33e08:	39 61 00 20 	addi    r11,r1,32                              
ffc33e0c:	48 01 f9 f0 	b       ffc537fc <_restgpr_31_x>               
                                                                      

ffc339b8 <_Rate_monotonic_Update_statistics>: } static void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) {
ffc339b8:	7c 2b 0b 78 	mr      r11,r1                                 
ffc339bc:	7c 08 02 a6 	mflr    r0                                     
ffc339c0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc339c4:	90 01 00 24 	stw     r0,36(r1)                              
ffc339c8:	48 01 fd e9 	bl      ffc537b0 <_savegpr_31>                 
ffc339cc:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
ffc339d0:	81 23 00 58 	lwz     r9,88(r3)                              
ffc339d4:	39 29 00 01 	addi    r9,r9,1                                
ffc339d8:	91 23 00 58 	stw     r9,88(r3)                              
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
ffc339dc:	81 23 00 38 	lwz     r9,56(r3)                              
ffc339e0:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc339e4:	40 be 00 10 	bne+    cr7,ffc339f4 <_Rate_monotonic_Update_statistics+0x3c>
    stats->missed_count++;                                            
ffc339e8:	81 23 00 5c 	lwz     r9,92(r3)                              
ffc339ec:	39 29 00 01 	addi    r9,r9,1                                
ffc339f0:	91 23 00 5c 	stw     r9,92(r3)                              
                                                                      
  /*                                                                  
   *  Grab status for time statistics.                                
   */                                                                 
  valid_status =                                                      
ffc339f4:	7f e3 fb 78 	mr      r3,r31                                 
ffc339f8:	38 81 00 08 	addi    r4,r1,8                                
ffc339fc:	38 a1 00 10 	addi    r5,r1,16                               
ffc33a00:	4b ff fe f5 	bl      ffc338f4 <_Rate_monotonic_Get_status>  
    _Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
  if (!valid_status)                                                  
ffc33a04:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc33a08:	41 9e 00 d4 	beq-    cr7,ffc33adc <_Rate_monotonic_Update_statistics+0x124>
                                                                      
  /*                                                                  
   *  Update CPU time                                                 
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_cpu_time, &executed );           
ffc33a0c:	81 41 00 10 	lwz     r10,16(r1)                             
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
ffc33a10:	81 1f 00 70 	lwz     r8,112(r31)                            
ffc33a14:	81 3f 00 74 	lwz     r9,116(r31)                            
ffc33a18:	81 61 00 14 	lwz     r11,20(r1)                             
ffc33a1c:	7d 29 58 14 	addc    r9,r9,r11                              
ffc33a20:	7d 08 51 14 	adde    r8,r8,r10                              
ffc33a24:	91 3f 00 74 	stw     r9,116(r31)                            
                                                                      
    if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )    
ffc33a28:	81 3f 00 60 	lwz     r9,96(r31)                             
ffc33a2c:	91 1f 00 70 	stw     r8,112(r31)                            
ffc33a30:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc33a34:	41 9d 00 14 	bgt-    cr7,ffc33a48 <_Rate_monotonic_Update_statistics+0x90>
ffc33a38:	40 9e 00 18 	bne-    cr7,ffc33a50 <_Rate_monotonic_Update_statistics+0x98><== NEVER TAKEN
ffc33a3c:	81 3f 00 64 	lwz     r9,100(r31)                            
ffc33a40:	7f 89 58 40 	cmplw   cr7,r9,r11                             
ffc33a44:	40 9d 00 0c 	ble-    cr7,ffc33a50 <_Rate_monotonic_Update_statistics+0x98>
      stats->min_cpu_time = executed;                                 
ffc33a48:	91 5f 00 60 	stw     r10,96(r31)                            
ffc33a4c:	91 7f 00 64 	stw     r11,100(r31)                           
                                                                      
    if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) 
ffc33a50:	81 3f 00 68 	lwz     r9,104(r31)                            
ffc33a54:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc33a58:	41 9c 00 14 	blt-    cr7,ffc33a6c <_Rate_monotonic_Update_statistics+0xb4><== NEVER TAKEN
ffc33a5c:	40 9e 00 18 	bne-    cr7,ffc33a74 <_Rate_monotonic_Update_statistics+0xbc><== NEVER TAKEN
ffc33a60:	81 3f 00 6c 	lwz     r9,108(r31)                            
ffc33a64:	7f 89 58 40 	cmplw   cr7,r9,r11                             
ffc33a68:	40 9c 00 0c 	bge-    cr7,ffc33a74 <_Rate_monotonic_Update_statistics+0xbc>
      stats->max_cpu_time = executed;                                 
ffc33a6c:	91 5f 00 68 	stw     r10,104(r31)                           
ffc33a70:	91 7f 00 6c 	stw     r11,108(r31)                           
                                                                      
  /*                                                                  
   *  Update Wall time                                                
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); 
ffc33a74:	81 41 00 08 	lwz     r10,8(r1)                              
ffc33a78:	81 1f 00 88 	lwz     r8,136(r31)                            
ffc33a7c:	81 3f 00 8c 	lwz     r9,140(r31)                            
ffc33a80:	81 61 00 0c 	lwz     r11,12(r1)                             
ffc33a84:	7d 29 58 14 	addc    r9,r9,r11                              
ffc33a88:	7d 08 51 14 	adde    r8,r8,r10                              
ffc33a8c:	91 3f 00 8c 	stw     r9,140(r31)                            
                                                                      
    if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
ffc33a90:	81 3f 00 78 	lwz     r9,120(r31)                            
ffc33a94:	91 1f 00 88 	stw     r8,136(r31)                            
ffc33a98:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc33a9c:	41 9d 00 14 	bgt-    cr7,ffc33ab0 <_Rate_monotonic_Update_statistics+0xf8>
ffc33aa0:	40 9e 00 18 	bne-    cr7,ffc33ab8 <_Rate_monotonic_Update_statistics+0x100><== NEVER TAKEN
ffc33aa4:	81 3f 00 7c 	lwz     r9,124(r31)                            
ffc33aa8:	7f 89 58 40 	cmplw   cr7,r9,r11                             
ffc33aac:	40 9d 00 0c 	ble-    cr7,ffc33ab8 <_Rate_monotonic_Update_statistics+0x100>
      stats->min_wall_time = since_last_period;                       
ffc33ab0:	91 5f 00 78 	stw     r10,120(r31)                           
ffc33ab4:	91 7f 00 7c 	stw     r11,124(r31)                           
                                                                      
    if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
ffc33ab8:	81 3f 00 80 	lwz     r9,128(r31)                            
ffc33abc:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc33ac0:	41 bc 00 14 	blt+    cr7,ffc33ad4 <_Rate_monotonic_Update_statistics+0x11c><== NEVER TAKEN
ffc33ac4:	40 9e 00 18 	bne-    cr7,ffc33adc <_Rate_monotonic_Update_statistics+0x124>
ffc33ac8:	81 3f 00 84 	lwz     r9,132(r31)                            
ffc33acc:	7f 89 58 40 	cmplw   cr7,r9,r11                             
ffc33ad0:	40 9c 00 0c 	bge-    cr7,ffc33adc <_Rate_monotonic_Update_statistics+0x124>
      stats->max_wall_time = since_last_period;                       
ffc33ad4:	91 5f 00 80 	stw     r10,128(r31)                           
ffc33ad8:	91 7f 00 84 	stw     r11,132(r31)                           
      stats->min_wall_time = since_last_period;                       
                                                                      
    if ( since_last_period > stats->max_wall_time )                   
      stats->max_wall_time = since_last_period;                       
  #endif                                                              
}                                                                     
ffc33adc:	39 61 00 20 	addi    r11,r1,32                              
ffc33ae0:	48 01 fd 1c 	b       ffc537fc <_restgpr_31_x>               
                                                                      

ffc0b03c <_Scheduler_CBS_Allocate>: #include <rtems/score/wkspace.h> void *_Scheduler_CBS_Allocate( Thread_Control *the_thread ) {
ffc0b03c:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0b040:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0b044:	7c 08 02 a6 	mflr    r0                                     
ffc0b048:	48 01 0a b5 	bl      ffc1bafc <_savegpr_31>                 
ffc0b04c:	7c 7f 1b 78 	mr      r31,r3                                 
  void *sched;                                                        
  Scheduler_CBS_Per_thread *schinfo;                                  
                                                                      
  sched = _Workspace_Allocate(sizeof(Scheduler_CBS_Per_thread));      
ffc0b050:	38 60 00 1c 	li      r3,28                                  
#include <rtems/score/wkspace.h>                                      
                                                                      
void *_Scheduler_CBS_Allocate(                                        
  Thread_Control      *the_thread                                     
)                                                                     
{                                                                     
ffc0b054:	90 01 00 14 	stw     r0,20(r1)                              
  void *sched;                                                        
  Scheduler_CBS_Per_thread *schinfo;                                  
                                                                      
  sched = _Workspace_Allocate(sizeof(Scheduler_CBS_Per_thread));      
ffc0b058:	48 00 1c 7d 	bl      ffc0ccd4 <_Workspace_Allocate>         
  if ( sched ) {                                                      
ffc0b05c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0b060:	41 82 00 1c 	beq-    ffc0b07c <_Scheduler_CBS_Allocate+0x40><== NEVER TAKEN
    the_thread->scheduler_info = sched;                               
    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;
ffc0b064:	39 40 00 02 	li      r10,2                                  
  void *sched;                                                        
  Scheduler_CBS_Per_thread *schinfo;                                  
                                                                      
  sched = _Workspace_Allocate(sizeof(Scheduler_CBS_Per_thread));      
  if ( sched ) {                                                      
    the_thread->scheduler_info = sched;                               
ffc0b068:	90 7f 00 88 	stw     r3,136(r31)                            
    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;
ffc0b06c:	91 43 00 14 	stw     r10,20(r3)                             
    schinfo->cbs_server = NULL;                                       
ffc0b070:	39 40 00 00 	li      r10,0                                  
                                                                      
  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;                      
ffc0b074:	93 e3 00 00 	stw     r31,0(r3)                              
    schinfo->edf_per_thread.queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN;
    schinfo->cbs_server = NULL;                                       
ffc0b078:	91 43 00 18 	stw     r10,24(r3)                             
  }                                                                   
                                                                      
  return sched;                                                       
}                                                                     
ffc0b07c:	39 61 00 10 	addi    r11,r1,16                              
ffc0b080:	4b ff 5b 4c 	b       ffc00bcc <_restgpr_31_x>               
                                                                      

ffc0c6f8 <_Scheduler_CBS_Budget_callout>: Scheduler_CBS_Server **_Scheduler_CBS_Server_list; void _Scheduler_CBS_Budget_callout( Thread_Control *the_thread ) {
ffc0c6f8:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0c6fc:	7c 08 02 a6 	mflr    r0                                     
ffc0c700:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0c704:	90 01 00 24 	stw     r0,36(r1)                              
ffc0c708:	48 01 0b 09 	bl      ffc1d210 <_savegpr_31>                 
ffc0c70c:	7c 7f 1b 78 	mr      r31,r3                                 
  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;                  
ffc0c710:	80 83 00 ac 	lwz     r4,172(r3)                             
  if ( the_thread->real_priority != new_priority )                    
ffc0c714:	81 23 00 18 	lwz     r9,24(r3)                              
ffc0c718:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc0c71c:	41 9e 00 08 	beq-    cr7,ffc0c724 <_Scheduler_CBS_Budget_callout+0x2c><== NEVER TAKEN
    the_thread->real_priority = new_priority;                         
ffc0c720:	90 83 00 18 	stw     r4,24(r3)                              
  if ( the_thread->current_priority != new_priority )                 
ffc0c724:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0c728:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc0c72c:	41 9e 00 10 	beq-    cr7,ffc0c73c <_Scheduler_CBS_Budget_callout+0x44><== NEVER TAKEN
    _Thread_Change_priority(the_thread, new_priority, true);          
ffc0c730:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c734:	38 a0 00 01 	li      r5,1                                   
ffc0c738:	48 00 06 61 	bl      ffc0cd98 <_Thread_Change_priority>     
                                                                      
  /* Invoke callback function if any. */                              
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
ffc0c73c:	83 ff 00 88 	lwz     r31,136(r31)                           
  if ( sched_info->cbs_server->cbs_budget_overrun ) {                 
ffc0c740:	81 3f 00 18 	lwz     r9,24(r31)                             
ffc0c744:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0c748:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0c74c:	41 9e 00 24 	beq-    cr7,ffc0c770 <_Scheduler_CBS_Budget_callout+0x78><== NEVER TAKEN
    _Scheduler_CBS_Get_server_id(                                     
ffc0c750:	80 69 00 00 	lwz     r3,0(r9)                               
ffc0c754:	38 81 00 08 	addi    r4,r1,8                                
ffc0c758:	4b ff ff 49 	bl      ffc0c6a0 <_Scheduler_CBS_Get_server_id>
        sched_info->cbs_server->task_id,                              
        &server_id                                                    
    );                                                                
    sched_info->cbs_server->cbs_budget_overrun( server_id );          
ffc0c75c:	81 3f 00 18 	lwz     r9,24(r31)                             
ffc0c760:	80 61 00 08 	lwz     r3,8(r1)                               
ffc0c764:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc0c768:	7d 29 03 a6 	mtctr   r9                                     
ffc0c76c:	4e 80 04 21 	bctrl                                          
  }                                                                   
}                                                                     
ffc0c770:	39 61 00 20 	addi    r11,r1,32                              
ffc0c774:	4b ff 51 44 	b       ffc018b8 <_restgpr_31_x>               
                                                                      

ffc0c2b4 <_Scheduler_CBS_Create_server>: int _Scheduler_CBS_Create_server ( Scheduler_CBS_Parameters *params, Scheduler_CBS_Budget_overrun budget_overrun_callback, rtems_id *server_id ) {
ffc0c2b4:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0c2b8:	7c 08 02 a6 	mflr    r0                                     
ffc0c2bc:	90 01 00 24 	stw     r0,36(r1)                              
  unsigned int i;                                                     
  Scheduler_CBS_Server *the_server;                                   
                                                                      
  if ( params->budget <= 0 ||                                         
ffc0c2c0:	81 23 00 04 	lwz     r9,4(r3)                               
int _Scheduler_CBS_Create_server (                                    
  Scheduler_CBS_Parameters     *params,                               
  Scheduler_CBS_Budget_overrun  budget_overrun_callback,              
  rtems_id                     *server_id                             
)                                                                     
{                                                                     
ffc0c2c4:	bf 41 00 08 	stmw    r26,8(r1)                              
ffc0c2c8:	7c 7f 1b 78 	mr      r31,r3                                 
  unsigned int i;                                                     
  Scheduler_CBS_Server *the_server;                                   
                                                                      
  if ( params->budget <= 0 ||                                         
ffc0c2cc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c2d0:	40 9d 00 7c 	ble-    cr7,ffc0c34c <_Scheduler_CBS_Create_server+0x98>
ffc0c2d4:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0c2d8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c2dc:	40 9d 00 70 	ble-    cr7,ffc0c34c <_Scheduler_CBS_Create_server+0x98>
       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++ ) {              
ffc0c2e0:	3d 20 00 00 	lis     r9,0                                   
ffc0c2e4:	81 49 27 94 	lwz     r10,10132(r9)                          
    if ( !_Scheduler_CBS_Server_list[i] )                             
ffc0c2e8:	3d 20 00 00 	lis     r9,0                                   
ffc0c2ec:	81 09 28 b0 	lwz     r8,10416(r9)                           
ffc0c2f0:	7c 9a 23 78 	mr      r26,r4                                 
ffc0c2f4:	39 4a 00 01 	addi    r10,r10,1                              
ffc0c2f8:	7c bd 2b 78 	mr      r29,r5                                 
ffc0c2fc:	7d 49 03 a6 	mtctr   r10                                    
ffc0c300:	39 20 00 00 	li      r9,0                                   
ffc0c304:	48 00 00 18 	b       ffc0c31c <_Scheduler_CBS_Create_server+0x68>
#include <rtems/system.h>                                             
#include <rtems/config.h>                                             
#include <rtems/score/scheduler.h>                                    
#include <rtems/score/schedulercbs.h>                                 
                                                                      
int _Scheduler_CBS_Create_server (                                    
ffc0c308:	55 3c 10 3a 	rlwinm  r28,r9,2,0,29                          
       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++ ) {              
    if ( !_Scheduler_CBS_Server_list[i] )                             
ffc0c30c:	7d 48 e0 2e 	lwzx    r10,r8,r28                             
ffc0c310:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0c314:	41 9e 00 48 	beq-    cr7,ffc0c35c <_Scheduler_CBS_Create_server+0xa8>
       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++ ) {              
ffc0c318:	39 29 00 01 	addi    r9,r9,1                                
ffc0c31c:	42 00 ff ec 	bdnz+   ffc0c308 <_Scheduler_CBS_Create_server+0x54>
    if ( !_Scheduler_CBS_Server_list[i] )                             
      break;                                                          
  }                                                                   
                                                                      
  if ( i == _Scheduler_CBS_Maximum_servers )                          
    return SCHEDULER_CBS_ERROR_FULL;                                  
ffc0c320:	38 60 ff e6 	li      r3,-26                                 
ffc0c324:	48 00 00 6c 	b       ffc0c390 <_Scheduler_CBS_Create_server+0xdc>
    _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;                                   
ffc0c328:	81 5f 00 00 	lwz     r10,0(r31)                             
  the_server->task_id = -1;                                           
  the_server->cbs_budget_overrun = budget_overrun_callback;           
  return SCHEDULER_CBS_OK;                                            
ffc0c32c:	38 60 00 00 	li      r3,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;                                   
ffc0c330:	81 7f 00 04 	lwz     r11,4(r31)                             
ffc0c334:	91 49 00 04 	stw     r10,4(r9)                              
  the_server->task_id = -1;                                           
ffc0c338:	39 40 ff ff 	li      r10,-1                                 
    _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;                                   
ffc0c33c:	91 69 00 08 	stw     r11,8(r9)                              
  the_server->task_id = -1;                                           
ffc0c340:	91 49 00 00 	stw     r10,0(r9)                              
  the_server->cbs_budget_overrun = budget_overrun_callback;           
ffc0c344:	93 49 00 0c 	stw     r26,12(r9)                             
  return SCHEDULER_CBS_OK;                                            
ffc0c348:	48 00 00 48 	b       ffc0c390 <_Scheduler_CBS_Create_server+0xdc>
                                                                      
  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;                     
ffc0c34c:	38 60 ff ee 	li      r3,-18                                 
ffc0c350:	48 00 00 40 	b       ffc0c390 <_Scheduler_CBS_Create_server+0xdc>
  *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 )                                                  
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
ffc0c354:	38 60 ff ef 	li      r3,-17                                 <== NOT EXECUTED
ffc0c358:	48 00 00 38 	b       ffc0c390 <_Scheduler_CBS_Create_server+0xdc><== NOT EXECUTED
  }                                                                   
                                                                      
  if ( i == _Scheduler_CBS_Maximum_servers )                          
    return SCHEDULER_CBS_ERROR_FULL;                                  
                                                                      
  *server_id = i;                                                     
ffc0c35c:	91 3d 00 00 	stw     r9,0(r29)                              
  _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)   
ffc0c360:	3f c0 00 00 	lis     r30,0                                  
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
ffc0c364:	38 60 00 10 	li      r3,16                                  
                                                                      
  if ( i == _Scheduler_CBS_Maximum_servers )                          
    return SCHEDULER_CBS_ERROR_FULL;                                  
                                                                      
  *server_id = i;                                                     
  _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)   
ffc0c368:	83 7e 28 b0 	lwz     r27,10416(r30)                         
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
ffc0c36c:	48 00 20 7d 	bl      ffc0e3e8 <_Workspace_Allocate>         
  the_server = _Scheduler_CBS_Server_list[*server_id];                
ffc0c370:	81 3d 00 00 	lwz     r9,0(r29)                              
                                                                      
  if ( i == _Scheduler_CBS_Maximum_servers )                          
    return SCHEDULER_CBS_ERROR_FULL;                                  
                                                                      
  *server_id = i;                                                     
  _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)   
ffc0c374:	7c 7b e1 2e 	stwx    r3,r27,r28                             
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
  the_server = _Scheduler_CBS_Server_list[*server_id];                
ffc0c378:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0c37c:	81 5e 28 b0 	lwz     r10,10416(r30)                         
ffc0c380:	7d 2a 48 2e 	lwzx    r9,r10,r9                              
  if ( !the_server )                                                  
ffc0c384:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c388:	40 9e ff a0 	bne+    cr7,ffc0c328 <_Scheduler_CBS_Create_server+0x74><== ALWAYS TAKEN
ffc0c38c:	4b ff ff c8 	b       ffc0c354 <_Scheduler_CBS_Create_server+0xa0><== NOT EXECUTED
                                                                      
  the_server->parameters = *params;                                   
  the_server->task_id = -1;                                           
  the_server->cbs_budget_overrun = budget_overrun_callback;           
  return SCHEDULER_CBS_OK;                                            
}                                                                     
ffc0c390:	39 61 00 20 	addi    r11,r1,32                              
ffc0c394:	4b ff 55 10 	b       ffc018a4 <_restgpr_26_x>               
                                                                      

ffc0c41c <_Scheduler_CBS_Detach_thread>: int _Scheduler_CBS_Detach_thread ( Scheduler_CBS_Server_id server_id, rtems_id task_id ) {
ffc0c41c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0c420:	7c 08 02 a6 	mflr    r0                                     
ffc0c424:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc0c428:	7c 7d 1b 78 	mr      r29,r3                                 
ffc0c42c:	7c 9e 23 78 	mr      r30,r4                                 
  Objects_Locations location;                                         
  Thread_Control *the_thread;                                         
  Scheduler_CBS_Per_thread *sched_info;                               
                                                                      
  the_thread = _Thread_Get(task_id, &location);                       
ffc0c430:	7c 83 23 78 	mr      r3,r4                                  
                                                                      
int _Scheduler_CBS_Detach_thread (                                    
  Scheduler_CBS_Server_id server_id,                                  
  rtems_id                task_id                                     
)                                                                     
{                                                                     
ffc0c434:	90 01 00 2c 	stw     r0,44(r1)                              
  Objects_Locations location;                                         
  Thread_Control *the_thread;                                         
  Scheduler_CBS_Per_thread *sched_info;                               
                                                                      
  the_thread = _Thread_Get(task_id, &location);                       
ffc0c438:	38 81 00 08 	addi    r4,r1,8                                
ffc0c43c:	48 00 0e bd 	bl      ffc0d2f8 <_Thread_Get>                 
  /* The routine _Thread_Get may disable dispatch and not enable again. */
  if ( the_thread ) {                                                 
ffc0c440:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0c444:	41 82 00 08 	beq-    ffc0c44c <_Scheduler_CBS_Detach_thread+0x30>
    _Thread_Enable_dispatch();                                        
ffc0c448:	48 00 0e 95 	bl      ffc0d2dc <_Thread_Enable_dispatch>     
  }                                                                   
                                                                      
  if ( server_id >= _Scheduler_CBS_Maximum_servers )                  
ffc0c44c:	3d 20 00 00 	lis     r9,0                                   
ffc0c450:	81 29 27 94 	lwz     r9,10132(r9)                           
ffc0c454:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc0c458:	40 9c 00 6c 	bge-    cr7,ffc0c4c4 <_Scheduler_CBS_Detach_thread+0xa8>
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
  if ( !the_thread )                                                  
ffc0c45c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0c460:	41 9e 00 64 	beq-    cr7,ffc0c4c4 <_Scheduler_CBS_Detach_thread+0xa8>
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
  /* Server is not valid. */                                          
  if ( !_Scheduler_CBS_Server_list[server_id] )                       
ffc0c464:	3d 20 00 00 	lis     r9,0                                   
ffc0c468:	81 29 28 b0 	lwz     r9,10416(r9)                           
ffc0c46c:	57 bd 10 3a 	rlwinm  r29,r29,2,0,29                         
ffc0c470:	7d 29 e8 2e 	lwzx    r9,r9,r29                              
ffc0c474:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c478:	41 9e 00 44 	beq-    cr7,ffc0c4bc <_Scheduler_CBS_Detach_thread+0xa0>
    return SCHEDULER_CBS_ERROR_NOSERVER;                              
  /* Thread and server are not attached. */                           
  if ( _Scheduler_CBS_Server_list[server_id]->task_id != task_id )    
ffc0c47c:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0c480:	7f 8a f0 00 	cmpw    cr7,r10,r30                            
ffc0c484:	40 9e 00 40 	bne-    cr7,ffc0c4c4 <_Scheduler_CBS_Detach_thread+0xa8><== NEVER TAKEN
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
                                                                      
  _Scheduler_CBS_Server_list[server_id]->task_id = -1;                
ffc0c488:	39 40 ff ff 	li      r10,-1                                 
ffc0c48c:	91 49 00 00 	stw     r10,0(r9)                              
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
  sched_info->cbs_server = NULL;                                      
ffc0c490:	39 40 00 00 	li      r10,0                                  
                                                                      
  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;                                            
ffc0c494:	38 60 00 00 	li      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;                                      
ffc0c498:	81 3f 00 88 	lwz     r9,136(r31)                            
ffc0c49c:	91 49 00 18 	stw     r10,24(r9)                             
                                                                      
  the_thread->budget_algorithm = the_thread->Start.budget_algorithm;  
ffc0c4a0:	81 3f 00 a0 	lwz     r9,160(r31)                            
ffc0c4a4:	91 3f 00 78 	stw     r9,120(r31)                            
  the_thread->budget_callout   = the_thread->Start.budget_callout;    
ffc0c4a8:	81 3f 00 a4 	lwz     r9,164(r31)                            
ffc0c4ac:	91 3f 00 7c 	stw     r9,124(r31)                            
  the_thread->is_preemptible   = the_thread->Start.is_preemptible;    
ffc0c4b0:	89 3f 00 9c 	lbz     r9,156(r31)                            
ffc0c4b4:	99 3f 00 70 	stb     r9,112(r31)                            
ffc0c4b8:	48 00 00 10 	b       ffc0c4c8 <_Scheduler_CBS_Detach_thread+0xac>
    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] )                       
    return SCHEDULER_CBS_ERROR_NOSERVER;                              
ffc0c4bc:	38 60 ff e7 	li      r3,-25                                 
ffc0c4c0:	48 00 00 08 	b       ffc0c4c8 <_Scheduler_CBS_Detach_thread+0xac>
  if ( the_thread ) {                                                 
    _Thread_Enable_dispatch();                                        
  }                                                                   
                                                                      
  if ( server_id >= _Scheduler_CBS_Maximum_servers )                  
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
ffc0c4c4:	38 60 ff ee 	li      r3,-18                                 
  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;                                            
}                                                                     
ffc0c4c8:	39 61 00 28 	addi    r11,r1,40                              
ffc0c4cc:	4b ff 53 e4 	b       ffc018b0 <_restgpr_29_x>               
                                                                      

ffc0c778 <_Scheduler_CBS_Initialize>: int _Scheduler_CBS_Initialize(void) {
ffc0c778:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0c77c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0c780:	7c 08 02 a6 	mflr    r0                                     
ffc0c784:	48 01 0a 8d 	bl      ffc1d210 <_savegpr_31>                 
  unsigned int i;                                                     
  _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
      _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
ffc0c788:	3f e0 00 00 	lis     r31,0                                  
ffc0c78c:	80 7f 27 94 	lwz     r3,10132(r31)                          
    sched_info->cbs_server->cbs_budget_overrun( server_id );          
  }                                                                   
}                                                                     
                                                                      
int _Scheduler_CBS_Initialize(void)                                   
{                                                                     
ffc0c790:	90 01 00 14 	stw     r0,20(r1)                              
  unsigned int i;                                                     
  _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
ffc0c794:	54 63 10 3a 	rlwinm  r3,r3,2,0,29                           
ffc0c798:	48 00 1c 51 	bl      ffc0e3e8 <_Workspace_Allocate>         
ffc0c79c:	3d 40 00 00 	lis     r10,0                                  
      _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
  if ( !_Scheduler_CBS_Server_list )                                  
ffc0c7a0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
}                                                                     
                                                                      
int _Scheduler_CBS_Initialize(void)                                   
{                                                                     
  unsigned int i;                                                     
  _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
ffc0c7a4:	90 6a 28 b0 	stw     r3,10416(r10)                          
      _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
  if ( !_Scheduler_CBS_Server_list )                                  
ffc0c7a8:	41 9e 00 38 	beq-    cr7,ffc0c7e0 <_Scheduler_CBS_Initialize+0x68><== NEVER TAKEN
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
  for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) {                
ffc0c7ac:	81 1f 27 94 	lwz     r8,10132(r31)                          
ffc0c7b0:	39 20 00 00 	li      r9,0                                   
    _Scheduler_CBS_Server_list[i] = NULL;                             
ffc0c7b4:	38 e0 00 00 	li      r7,0                                   
ffc0c7b8:	39 08 00 01 	addi    r8,r8,1                                
ffc0c7bc:	7d 09 03 a6 	mtctr   r8                                     
ffc0c7c0:	48 00 00 14 	b       ffc0c7d4 <_Scheduler_CBS_Initialize+0x5c>
ffc0c7c4:	81 0a 28 b0 	lwz     r8,10416(r10)                          
ffc0c7c8:	55 26 10 3a 	rlwinm  r6,r9,2,0,29                           
  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++) {                
ffc0c7cc:	39 29 00 01 	addi    r9,r9,1                                
    _Scheduler_CBS_Server_list[i] = NULL;                             
ffc0c7d0:	7c e8 31 2e 	stwx    r7,r8,r6                               
  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++) {                
ffc0c7d4:	42 00 ff f0 	bdnz+   ffc0c7c4 <_Scheduler_CBS_Initialize+0x4c>
    _Scheduler_CBS_Server_list[i] = NULL;                             
  }                                                                   
  return SCHEDULER_CBS_OK;                                            
ffc0c7d8:	38 60 00 00 	li      r3,0                                   
ffc0c7dc:	48 00 00 08 	b       ffc0c7e4 <_Scheduler_CBS_Initialize+0x6c>
{                                                                     
  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;                             
ffc0c7e0:	38 60 ff ef 	li      r3,-17                                 <== NOT EXECUTED
  for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) {                
    _Scheduler_CBS_Server_list[i] = NULL;                             
  }                                                                   
  return SCHEDULER_CBS_OK;                                            
}                                                                     
ffc0c7e4:	39 61 00 10 	addi    r11,r1,16                              
ffc0c7e8:	4b ff 50 d0 	b       ffc018b8 <_restgpr_31_x>               
                                                                      

ffc0b084 <_Scheduler_CBS_Release_job>: 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; if (deadline) {
ffc0b084:	2c 04 00 00 	cmpwi   r4,0                                   
{                                                                     
  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;                  
ffc0b088:	81 23 00 88 	lwz     r9,136(r3)                             
)                                                                     
{                                                                     
  Priority_Control new_priority;                                      
  Scheduler_CBS_Per_thread *sched_info =                              
    (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;          
  Scheduler_CBS_Server *serv_info =                                   
ffc0b08c:	81 29 00 18 	lwz     r9,24(r9)                              
ffc0b090:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    (Scheduler_CBS_Server *) sched_info->cbs_server;                  
                                                                      
  if (deadline) {                                                     
ffc0b094:	41 82 00 30 	beq-    ffc0b0c4 <_Scheduler_CBS_Release_job+0x40>
ffc0b098:	3d 40 00 00 	lis     r10,0                                  
    /* Initializing or shifting deadline. */                          
    if (serv_info)                                                    
ffc0b09c:	41 9e 00 18 	beq-    cr7,ffc0b0b4 <_Scheduler_CBS_Release_job+0x30>
      new_priority = (_Watchdog_Ticks_since_boot + serv_info->parameters.deadline)
ffc0b0a0:	80 8a 28 a4 	lwz     r4,10404(r10)                          
ffc0b0a4:	81 49 00 04 	lwz     r10,4(r9)                              
ffc0b0a8:	7c 84 52 14 	add     r4,r4,r10                              
ffc0b0ac:	54 84 00 7e 	clrlwi  r4,r4,1                                
ffc0b0b0:	48 00 00 1c 	b       ffc0b0cc <_Scheduler_CBS_Release_job+0x48>
        & ~SCHEDULER_EDF_PRIO_MSB;                                    
    else                                                              
      new_priority = (_Watchdog_Ticks_since_boot + deadline)          
ffc0b0b4:	81 2a 28 a4 	lwz     r9,10404(r10)                          
ffc0b0b8:	7c 84 4a 14 	add     r4,r4,r9                               
ffc0b0bc:	54 84 00 7e 	clrlwi  r4,r4,1                                
ffc0b0c0:	48 00 00 14 	b       ffc0b0d4 <_Scheduler_CBS_Release_job+0x50>
        & ~SCHEDULER_EDF_PRIO_MSB;                                    
  }                                                                   
  else {                                                              
    /* Switch back to background priority. */                         
    new_priority = the_thread->Start.initial_priority;                
ffc0b0c4:	80 83 00 ac 	lwz     r4,172(r3)                             
  }                                                                   
                                                                      
  /* Budget replenishment for the next job. */                        
  if (serv_info)                                                      
ffc0b0c8:	41 9e 00 0c 	beq-    cr7,ffc0b0d4 <_Scheduler_CBS_Release_job+0x50><== NEVER TAKEN
    the_thread->cpu_time_budget = serv_info->parameters.budget;       
ffc0b0cc:	81 29 00 08 	lwz     r9,8(r9)                               
ffc0b0d0:	91 23 00 74 	stw     r9,116(r3)                             
                                                                      
  the_thread->real_priority = new_priority;                           
ffc0b0d4:	90 83 00 18 	stw     r4,24(r3)                              
  _Thread_Change_priority(the_thread, new_priority, true);            
ffc0b0d8:	38 a0 00 01 	li      r5,1                                   
ffc0b0dc:	48 00 04 ec 	b       ffc0b5c8 <_Thread_Change_priority>     
                                                                      

ffc0b0e0 <_Scheduler_CBS_Unblock>: #include <rtems/score/schedulercbs.h> void _Scheduler_CBS_Unblock( Thread_Control *the_thread ) {
ffc0b0e0:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0b0e4:	7c 08 02 a6 	mflr    r0                                     
ffc0b0e8:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc0b0ec:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0b0f0:	90 01 00 14 	stw     r0,20(r1)                              
  Scheduler_CBS_Per_thread *sched_info;                               
  Scheduler_CBS_Server *serv_info;                                    
  Priority_Control new_priority;                                      
                                                                      
  _Scheduler_EDF_Enqueue(the_thread);                                 
ffc0b0f4:	48 00 01 1d 	bl      ffc0b210 <_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;        
ffc0b0f8:	81 3f 00 88 	lwz     r9,136(r31)                            
ffc0b0fc:	81 29 00 18 	lwz     r9,24(r9)                              
   * 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) {                                                    
ffc0b100:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b104:	41 9e 00 58 	beq-    cr7,ffc0b15c <_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 -                  
ffc0b108:	3d 00 00 00 	lis     r8,0                                   
ffc0b10c:	81 5f 00 18 	lwz     r10,24(r31)                            
ffc0b110:	80 e8 28 a4 	lwz     r7,10404(r8)                           
                           _Watchdog_Ticks_since_boot;                
                                                                      
    if ( deadline*budget_left > budget*deadline_left ) {              
ffc0b114:	81 09 00 04 	lwz     r8,4(r9)                               
   */                                                                 
  if (serv_info) {                                                    
    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 -                  
ffc0b118:	7c e7 50 50 	subf    r7,r7,r10                              
                           _Watchdog_Ticks_since_boot;                
                                                                      
    if ( deadline*budget_left > budget*deadline_left ) {              
ffc0b11c:	7d 07 41 d6 	mullw   r8,r7,r8                               
ffc0b120:	80 e9 00 08 	lwz     r7,8(r9)                               
ffc0b124:	81 3f 00 74 	lwz     r9,116(r31)                            
ffc0b128:	7d 27 49 d6 	mullw   r9,r7,r9                               
ffc0b12c:	7f 88 48 00 	cmpw    cr7,r8,r9                              
ffc0b130:	40 9d 00 2c 	ble-    cr7,ffc0b15c <_Scheduler_CBS_Unblock+0x7c>
      /* Put late unblocked task to background until the end of period. */
      new_priority = the_thread->Start.initial_priority;              
ffc0b134:	80 9f 00 ac 	lwz     r4,172(r31)                            
      if ( the_thread->real_priority != new_priority )                
ffc0b138:	7f 8a 20 00 	cmpw    cr7,r10,r4                             
ffc0b13c:	41 9e 00 08 	beq-    cr7,ffc0b144 <_Scheduler_CBS_Unblock+0x64>
        the_thread->real_priority = new_priority;                     
ffc0b140:	90 9f 00 18 	stw     r4,24(r31)                             
      if ( the_thread->current_priority != new_priority )             
ffc0b144:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0b148:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc0b14c:	41 9e 00 10 	beq-    cr7,ffc0b15c <_Scheduler_CBS_Unblock+0x7c>
        _Thread_Change_priority(the_thread, new_priority, true);      
ffc0b150:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b154:	38 a0 00 01 	li      r5,1                                   
ffc0b158:	48 00 04 71 	bl      ffc0b5c8 <_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,
ffc0b15c:	3f c0 00 00 	lis     r30,0                                  
ffc0b160:	80 7f 00 14 	lwz     r3,20(r31)                             
ffc0b164:	3b de 2e 80 	addi    r30,r30,11904                          
ffc0b168:	3d 40 00 00 	lis     r10,0                                  
ffc0b16c:	81 3e 00 14 	lwz     r9,20(r30)                             
ffc0b170:	81 4a 20 b0 	lwz     r10,8368(r10)                          
ffc0b174:	80 89 00 14 	lwz     r4,20(r9)                              
ffc0b178:	7d 49 03 a6 	mtctr   r10                                    
ffc0b17c:	4e 80 04 21 	bctrl                                          
ffc0b180:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0b184:	40 9d 00 34 	ble-    cr7,ffc0b1b8 <_Scheduler_CBS_Unblock+0xd8>
       _Thread_Heir->current_priority)) {                             
    _Thread_Heir = the_thread;                                        
    if ( _Thread_Executing->is_preemptible ||                         
ffc0b188:	81 3e 00 10 	lwz     r9,16(r30)                             
   *    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;                                        
ffc0b18c:	93 fe 00 14 	stw     r31,20(r30)                            
    if ( _Thread_Executing->is_preemptible ||                         
ffc0b190:	89 29 00 70 	lbz     r9,112(r9)                             
ffc0b194:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b198:	40 9e 00 10 	bne-    cr7,ffc0b1a8 <_Scheduler_CBS_Unblock+0xc8>
ffc0b19c:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0b1a0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b1a4:	40 9e 00 14 	bne-    cr7,ffc0b1b8 <_Scheduler_CBS_Unblock+0xd8><== ALWAYS TAKEN
         the_thread->current_priority == 0 )                          
      _Thread_Dispatch_necessary = true;                              
ffc0b1a8:	3d 20 00 00 	lis     r9,0                                   
ffc0b1ac:	39 40 00 01 	li      r10,1                                  
ffc0b1b0:	39 29 2e 80 	addi    r9,r9,11904                            
ffc0b1b4:	99 49 00 0c 	stb     r10,12(r9)                             
  }                                                                   
}                                                                     
ffc0b1b8:	39 61 00 10 	addi    r11,r1,16                              
ffc0b1bc:	4b ff 5a 0c 	b       ffc00bc8 <_restgpr_30_x>               
                                                                      

ffc0b03c <_Scheduler_EDF_Allocate>: #include <rtems/score/wkspace.h> void *_Scheduler_EDF_Allocate( Thread_Control *the_thread ) {
ffc0b03c:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0b040:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0b044:	7c 08 02 a6 	mflr    r0                                     
ffc0b048:	48 01 0a 19 	bl      ffc1ba60 <_savegpr_31>                 
ffc0b04c:	7c 7f 1b 78 	mr      r31,r3                                 
  void *sched;                                                        
  Scheduler_EDF_Per_thread *schinfo;                                  
                                                                      
  sched = _Workspace_Allocate( sizeof(Scheduler_EDF_Per_thread) );    
ffc0b050:	38 60 00 18 	li      r3,24                                  
#include <rtems/score/wkspace.h>                                      
                                                                      
void *_Scheduler_EDF_Allocate(                                        
  Thread_Control      *the_thread                                     
)                                                                     
{                                                                     
ffc0b054:	90 01 00 14 	stw     r0,20(r1)                              
  void *sched;                                                        
  Scheduler_EDF_Per_thread *schinfo;                                  
                                                                      
  sched = _Workspace_Allocate( sizeof(Scheduler_EDF_Per_thread) );    
ffc0b058:	48 00 1b e1 	bl      ffc0cc38 <_Workspace_Allocate>         
                                                                      
  if ( sched ) {                                                      
ffc0b05c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0b060:	41 82 00 14 	beq-    ffc0b074 <_Scheduler_EDF_Allocate+0x38><== NEVER TAKEN
    the_thread->scheduler_info = sched;                               
    schinfo = (Scheduler_EDF_Per_thread *)(the_thread->scheduler_info);
    schinfo->thread = the_thread;                                     
    schinfo->queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN;  
ffc0b064:	39 40 00 02 	li      r10,2                                  
  Scheduler_EDF_Per_thread *schinfo;                                  
                                                                      
  sched = _Workspace_Allocate( sizeof(Scheduler_EDF_Per_thread) );    
                                                                      
  if ( sched ) {                                                      
    the_thread->scheduler_info = sched;                               
ffc0b068:	90 7f 00 88 	stw     r3,136(r31)                            
    schinfo = (Scheduler_EDF_Per_thread *)(the_thread->scheduler_info);
    schinfo->thread = the_thread;                                     
ffc0b06c:	93 e3 00 00 	stw     r31,0(r3)                              
    schinfo->queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN;  
ffc0b070:	91 43 00 14 	stw     r10,20(r3)                             
  }                                                                   
                                                                      
  return sched;                                                       
}                                                                     
ffc0b074:	39 61 00 10 	addi    r11,r1,16                              
ffc0b078:	4b ff 5b 54 	b       ffc00bcc <_restgpr_31_x>               
                                                                      

ffc0b23c <_Scheduler_EDF_Unblock>: #include <rtems/score/scheduleredf.h> void _Scheduler_EDF_Unblock( Thread_Control *the_thread ) {
ffc0b23c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0b240:	7c 08 02 a6 	mflr    r0                                     
ffc0b244:	bf c1 00 08 	stmw    r30,8(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(                             
ffc0b248:	3f c0 00 00 	lis     r30,0                                  
#include <rtems/score/scheduleredf.h>                                 
                                                                      
void _Scheduler_EDF_Unblock(                                          
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
ffc0b24c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0b250:	90 01 00 14 	stw     r0,20(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(                             
ffc0b254:	3b de 2e 80 	addi    r30,r30,11904                          
                                                                      
void _Scheduler_EDF_Unblock(                                          
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler_EDF_Enqueue(the_thread);                                 
ffc0b258:	4b ff fe 75 	bl      ffc0b0cc <_Scheduler_EDF_Enqueue>      
ffc0b25c:	3d 20 00 00 	lis     r9,0                                   
   *    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(                             
ffc0b260:	81 5e 00 14 	lwz     r10,20(r30)                            
ffc0b264:	81 29 20 b0 	lwz     r9,8368(r9)                            
ffc0b268:	80 6a 00 14 	lwz     r3,20(r10)                             
ffc0b26c:	80 9f 00 14 	lwz     r4,20(r31)                             
ffc0b270:	7d 29 03 a6 	mtctr   r9                                     
ffc0b274:	4e 80 04 21 	bctrl                                          
ffc0b278:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0b27c:	40 bc 00 34 	bge+    cr7,ffc0b2b0 <_Scheduler_EDF_Unblock+0x74>
         _Thread_Heir->current_priority,                              
         the_thread->current_priority )) {                            
    _Thread_Heir = the_thread;                                        
    if ( _Thread_Executing->is_preemptible ||                         
ffc0b280:	81 3e 00 10 	lwz     r9,16(r30)                             
   *    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;                                        
ffc0b284:	93 fe 00 14 	stw     r31,20(r30)                            
    if ( _Thread_Executing->is_preemptible ||                         
ffc0b288:	89 29 00 70 	lbz     r9,112(r9)                             
ffc0b28c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b290:	40 9e 00 10 	bne-    cr7,ffc0b2a0 <_Scheduler_EDF_Unblock+0x64>
ffc0b294:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0b298:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b29c:	40 9e 00 14 	bne-    cr7,ffc0b2b0 <_Scheduler_EDF_Unblock+0x74><== ALWAYS TAKEN
         the_thread->current_priority == 0 )                          
      _Thread_Dispatch_necessary = true;                              
ffc0b2a0:	3d 20 00 00 	lis     r9,0                                   
ffc0b2a4:	39 40 00 01 	li      r10,1                                  
ffc0b2a8:	39 29 2e 80 	addi    r9,r9,11904                            
ffc0b2ac:	99 49 00 0c 	stb     r10,12(r9)                             
  }                                                                   
}                                                                     
ffc0b2b0:	39 61 00 10 	addi    r11,r1,16                              
ffc0b2b4:	4b ff 59 14 	b       ffc00bc8 <_restgpr_30_x>               
                                                                      

ffc0a67c <_Scheduler_priority_Block>: ) { Scheduler_priority_Per_thread *sched_info; Chain_Control *ready; sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
ffc0a67c:	81 43 00 88 	lwz     r10,136(r3)                            
  ready      = sched_info->ready_chain;                               
ffc0a680:	81 2a 00 00 	lwz     r9,0(r10)                              
                                                                      
  if ( _Chain_Has_only_one_node( ready ) ) {                          
ffc0a684:	80 e9 00 00 	lwz     r7,0(r9)                               
ffc0a688:	81 09 00 08 	lwz     r8,8(r9)                               
ffc0a68c:	7f 87 40 00 	cmpw    cr7,r7,r8                              
ffc0a690:	40 be 00 4c 	bne+    cr7,ffc0a6dc <_Scheduler_priority_Block+0x60>
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 );                        
ffc0a694:	39 09 00 04 	addi    r8,r9,4                                
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc0a698:	91 29 00 08 	stw     r9,8(r9)                               
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc0a69c:	91 09 00 00 	stw     r8,0(r9)                               
  head->previous = NULL;                                              
ffc0a6a0:	39 00 00 00 	li      r8,0                                   
ffc0a6a4:	91 09 00 04 	stw     r8,4(r9)                               
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (                  
  Priority_bit_map_Information *the_priority_map                      
)                                                                     
{                                                                     
  *the_priority_map->minor &= the_priority_map->block_minor;          
ffc0a6a8:	81 0a 00 04 	lwz     r8,4(r10)                              
ffc0a6ac:	81 2a 00 14 	lwz     r9,20(r10)                             
ffc0a6b0:	80 e8 00 00 	lwz     r7,0(r8)                               
ffc0a6b4:	7c e9 48 38 	and     r9,r7,r9                               
  if ( *the_priority_map->minor == 0 )                                
ffc0a6b8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (                  
  Priority_bit_map_Information *the_priority_map                      
)                                                                     
{                                                                     
  *the_priority_map->minor &= the_priority_map->block_minor;          
ffc0a6bc:	91 28 00 00 	stw     r9,0(r8)                               
  if ( *the_priority_map->minor == 0 )                                
ffc0a6c0:	40 9e 00 2c 	bne-    cr7,ffc0a6ec <_Scheduler_priority_Block+0x70>
    _Priority_Major_bit_map &= the_priority_map->block_major;         
ffc0a6c4:	3d 20 00 00 	lis     r9,0                                   
ffc0a6c8:	81 4a 00 10 	lwz     r10,16(r10)                            
ffc0a6cc:	81 09 28 50 	lwz     r8,10320(r9)                           
ffc0a6d0:	7d 0a 50 38 	and     r10,r8,r10                             
ffc0a6d4:	91 49 28 50 	stw     r10,10320(r9)                          
ffc0a6d8:	48 00 00 14 	b       ffc0a6ec <_Scheduler_priority_Block+0x70>
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc0a6dc:	81 23 00 00 	lwz     r9,0(r3)                               
  previous       = the_node->previous;                                
ffc0a6e0:	81 43 00 04 	lwz     r10,4(r3)                              
  next->previous = previous;                                          
ffc0a6e4:	91 49 00 04 	stw     r10,4(r9)                              
  previous->next = next;                                              
ffc0a6e8:	91 2a 00 00 	stw     r9,0(r10)                              
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_heir (                           
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Heir );                              
ffc0a6ec:	3d 20 00 00 	lis     r9,0                                   
{                                                                     
  _Scheduler_priority_Ready_queue_extract( the_thread );              
                                                                      
  /* TODO: flash critical section? */                                 
                                                                      
  if ( _Thread_Is_heir( the_thread ) )                                
ffc0a6f0:	81 29 2e 14 	lwz     r9,11796(r9)                           
ffc0a6f4:	7f 83 48 00 	cmpw    cr7,r3,r9                              
ffc0a6f8:	40 be 00 60 	bne+    cr7,ffc0a758 <_Scheduler_priority_Block+0xdc>
 *  @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                          
ffc0a6fc:	3d 20 00 00 	lis     r9,0                                   
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 );         
ffc0a700:	3c e0 00 00 	lis     r7,0                                   
ffc0a704:	81 49 20 80 	lwz     r10,8320(r9)                           
ffc0a708:	81 27 28 50 	lwz     r9,10320(r7)                           
ffc0a70c:	7d 28 00 34 	cntlzw  r8,r9                                  
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
ffc0a710:	3c c0 00 00 	lis     r6,0                                   
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 );         
ffc0a714:	91 27 28 50 	stw     r9,10320(r7)                           
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
ffc0a718:	38 c6 2e 40 	addi    r6,r6,11840                            
ffc0a71c:	55 07 10 3a 	rlwinm  r7,r8,2,0,29                           
ffc0a720:	7d 26 38 2e 	lwzx    r9,r6,r7                               
ffc0a724:	7d 25 00 34 	cntlzw  r5,r9                                  
ffc0a728:	7d 26 39 2e 	stwx    r9,r6,r7                               
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
ffc0a72c:	55 09 20 36 	rlwinm  r9,r8,4,0,27                           
ffc0a730:	7d 29 2a 14 	add     r9,r9,r5                               
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
ffc0a734:	1d 29 00 0c 	mulli   r9,r9,12                               
ffc0a738:	7d 0a 4a 14 	add     r8,r10,r9                              
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0a73c:	7d 2a 48 2e 	lwzx    r9,r10,r9                              
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0a740:	39 48 00 04 	addi    r10,r8,4                               
ffc0a744:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0a748:	40 be 00 08 	bne+    cr7,ffc0a750 <_Scheduler_priority_Block+0xd4><== ALWAYS TAKEN
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
                                                                      
  return NULL;                                                        
ffc0a74c:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
ffc0a750:	3d 40 00 00 	lis     r10,0                                  
ffc0a754:	91 2a 2e 14 	stw     r9,11796(r10)                          
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
ffc0a758:	3d 20 00 00 	lis     r9,0                                   
ffc0a75c:	39 29 2e 00 	addi    r9,r9,11776                            
     _Scheduler_priority_Schedule_body();                             
                                                                      
  if ( _Thread_Is_executing( the_thread ) )                           
ffc0a760:	81 49 00 10 	lwz     r10,16(r9)                             
ffc0a764:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc0a768:	4c be 00 20 	bnelr+  cr7                                    
    _Thread_Dispatch_necessary = true;                                
ffc0a76c:	39 40 00 01 	li      r10,1                                  
ffc0a770:	99 49 00 0c 	stb     r10,12(r9)                             
ffc0a774:	4e 80 00 20 	blr                                            
                                                                      

ffc0a92c <_Scheduler_priority_Schedule>: * @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
ffc0a92c:	3d 20 00 00 	lis     r9,0                                   
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 );         
ffc0a930:	3c e0 00 00 	lis     r7,0                                   
ffc0a934:	81 49 20 80 	lwz     r10,8320(r9)                           
ffc0a938:	81 27 28 50 	lwz     r9,10320(r7)                           
ffc0a93c:	7d 28 00 34 	cntlzw  r8,r9                                  
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
ffc0a940:	3c c0 00 00 	lis     r6,0                                   
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 );         
ffc0a944:	91 27 28 50 	stw     r9,10320(r7)                           
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
ffc0a948:	38 c6 2e 40 	addi    r6,r6,11840                            
ffc0a94c:	55 07 10 3a 	rlwinm  r7,r8,2,0,29                           
ffc0a950:	7d 26 38 2e 	lwzx    r9,r6,r7                               
ffc0a954:	7d 25 00 34 	cntlzw  r5,r9                                  
ffc0a958:	7d 26 39 2e 	stwx    r9,r6,r7                               
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
ffc0a95c:	55 09 20 36 	rlwinm  r9,r8,4,0,27                           
ffc0a960:	7d 29 2a 14 	add     r9,r9,r5                               
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
ffc0a964:	1d 29 00 0c 	mulli   r9,r9,12                               
ffc0a968:	7d 0a 4a 14 	add     r8,r10,r9                              
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0a96c:	7d 2a 48 2e 	lwzx    r9,r10,r9                              
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0a970:	39 48 00 04 	addi    r10,r8,4                               
ffc0a974:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0a978:	40 be 00 08 	bne+    cr7,ffc0a980 <_Scheduler_priority_Schedule+0x54><== ALWAYS TAKEN
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
                                                                      
  return NULL;                                                        
ffc0a97c:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
ffc0a980:	3d 40 00 00 	lis     r10,0                                  
ffc0a984:	91 2a 2e 14 	stw     r9,11796(r10)                          
ffc0a988:	4e 80 00 20 	blr                                            
                                                                      

ffc095d4 <_TOD_Validate>: { uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick();
ffc095d4:	3d 20 ff c2 	lis     r9,-62                                 
)                                                                     
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
ffc095d8:	81 29 cf c4 	lwz     r9,-12348(r9)                          
ffc095dc:	3d 00 00 0f 	lis     r8,15                                  
ffc095e0:	61 08 42 40 	ori     r8,r8,16960                            
ffc095e4:	7d 08 4b 96 	divwu   r8,r8,r9                               
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
ffc095e8:	7c 69 1b 79 	mr.     r9,r3                                  
ffc095ec:	41 82 00 90 	beq-    ffc0967c <_TOD_Validate+0xa8>          <== NEVER TAKEN
ffc095f0:	81 49 00 18 	lwz     r10,24(r9)                             
      (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;                                                    
ffc095f4:	38 60 00 00 	li      r3,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)                                  ||                  
ffc095f8:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
ffc095fc:	4c 9c 00 20 	bgelr   cr7                                    
      (the_tod->ticks  >= ticks_per_second)       ||                  
ffc09600:	81 49 00 14 	lwz     r10,20(r9)                             
ffc09604:	2b 8a 00 3b 	cmplwi  cr7,r10,59                             
ffc09608:	4d 9d 00 20 	bgtlr   cr7                                    
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
ffc0960c:	81 49 00 10 	lwz     r10,16(r9)                             
ffc09610:	2b 8a 00 3b 	cmplwi  cr7,r10,59                             
ffc09614:	4d 9d 00 20 	bgtlr   cr7                                    
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
ffc09618:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0961c:	2b 8a 00 17 	cmplwi  cr7,r10,23                             
ffc09620:	4d 9d 00 20 	bgtlr   cr7                                    
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
ffc09624:	81 49 00 04 	lwz     r10,4(r9)                              
	    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)      ||                  
ffc09628:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0962c:	4d 9e 00 20 	beqlr   cr7                                    
      (the_tod->month  == 0)                      ||                  
ffc09630:	2b 8a 00 0c 	cmplwi  cr7,r10,12                             
ffc09634:	4d 9d 00 20 	bgtlr   cr7                                    
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
ffc09638:	81 09 00 00 	lwz     r8,0(r9)                               
      (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)    ||                  
ffc0963c:	2b 88 07 c3 	cmplwi  cr7,r8,1987                            
ffc09640:	4c 9d 00 20 	blelr   cr7                                    
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
ffc09644:	81 29 00 08 	lwz     r9,8(r9)                               
      (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)          ||                  
ffc09648:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0964c:	4d 9e 00 20 	beqlr   cr7                                    
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
ffc09650:	71 07 00 03 	andi.   r7,r8,3                                
ffc09654:	3c e0 ff c2 	lis     r7,-62                                 
ffc09658:	39 07 e7 08 	addi    r8,r7,-6392                            
ffc0965c:	40 82 00 08 	bne-    ffc09664 <_TOD_Validate+0x90>          
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
ffc09660:	39 4a 00 0d 	addi    r10,r10,13                             
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
ffc09664:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
ffc09668:	7c 68 50 2e 	lwzx    r3,r8,r10                              
                                                                      
  if ( the_tod->day > days_in_month )                                 
ffc0966c:	7c 69 18 10 	subfc   r3,r9,r3                               
ffc09670:	38 60 00 00 	li      r3,0                                   
ffc09674:	7c 63 19 14 	adde    r3,r3,r3                               
ffc09678:	4e 80 00 20 	blr                                            
      (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;                                                    
ffc0967c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
                                                                      
  if ( the_tod->day > days_in_month )                                 
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
ffc09680:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc0ac50 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
ffc0ac50:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0ac54:	7c 08 02 a6 	mflr    r0                                     
ffc0ac58:	90 01 00 24 	stw     r0,36(r1)                              
ffc0ac5c:	bf 81 00 10 	stmw    r28,16(r1)                             
ffc0ac60:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0ac64:	7c bd 2b 78 	mr      r29,r5                                 
  States_Control state, original_state;                               
                                                                      
  /*                                                                  
   * Save original state                                              
   */                                                                 
  original_state = the_thread->current_state;                         
ffc0ac68:	83 83 00 10 	lwz     r28,16(r3)                             
  /*                                                                  
   * 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 );                                
ffc0ac6c:	90 81 00 08 	stw     r4,8(r1)                               
ffc0ac70:	48 00 0e a5 	bl      ffc0bb14 <_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 )                  
ffc0ac74:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0ac78:	80 81 00 08 	lwz     r4,8(r1)                               
ffc0ac7c:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc0ac80:	41 9e 00 0c 	beq-    cr7,ffc0ac8c <_Thread_Change_priority+0x3c>
    _Thread_Set_priority( the_thread, new_priority );                 
ffc0ac84:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ac88:	48 00 0e 1d 	bl      ffc0baa4 <_Thread_Set_priority>        
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0ac8c:	7f c0 00 a6 	mfmsr   r30                                    
ffc0ac90:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0ac94:	7f c9 48 78 	andc    r9,r30,r9                              
ffc0ac98:	7d 20 01 24 	mtmsr   r9                                     
                                                                      
  /*                                                                  
   *  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;                                  
ffc0ac9c:	81 5f 00 10 	lwz     r10,16(r31)                            
ffc0aca0:	57 89 07 7a 	rlwinm  r9,r28,0,29,29                         
  if ( state != STATES_TRANSIENT ) {                                  
ffc0aca4:	2f 8a 00 04 	cmpwi   cr7,r10,4                              
ffc0aca8:	41 9e 00 44 	beq-    cr7,ffc0acec <_Thread_Change_priority+0x9c>
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
ffc0acac:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0acb0:	40 9e 00 0c 	bne-    cr7,ffc0acbc <_Thread_Change_priority+0x6c><== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
ffc0acb4:	55 49 07 b8 	rlwinm  r9,r10,0,30,28                         
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
ffc0acb8:	91 3f 00 10 	stw     r9,16(r31)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0acbc:	7f c0 01 24 	mtmsr   r30                                    
    _ISR_Enable( level );                                             
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
ffc0acc0:	3d 20 00 03 	lis     r9,3                                   
ffc0acc4:	61 29 be e0 	ori     r9,r9,48864                            
ffc0acc8:	7d 48 48 39 	and.    r8,r10,r9                              
ffc0accc:	41 a2 00 a0 	beq+    ffc0ad6c <_Thread_Change_priority+0x11c>
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
  _ISR_Enable( level );                                               
}                                                                     
ffc0acd0:	80 01 00 24 	lwz     r0,36(r1)                              
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
    _ISR_Enable( level );                                             
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
ffc0acd4:	7f e4 fb 78 	mr      r4,r31                                 
ffc0acd8:	80 7f 00 44 	lwz     r3,68(r31)                             
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
  _ISR_Enable( level );                                               
}                                                                     
ffc0acdc:	7c 08 03 a6 	mtlr    r0                                     
ffc0ace0:	bb 81 00 10 	lmw     r28,16(r1)                             
ffc0ace4:	38 21 00 20 	addi    r1,r1,32                               
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
    _ISR_Enable( level );                                             
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
ffc0ace8:	48 00 0d 04 	b       ffc0b9ec <_Thread_queue_Requeue>       
    }                                                                 
    return;                                                           
  }                                                                   
                                                                      
  /* Only clear the transient state if it wasn't set already */       
  if ( ! _States_Is_transient( original_state ) ) {                   
ffc0acec:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0acf0:	40 9e 00 30 	bne-    cr7,ffc0ad20 <_Thread_Change_priority+0xd0><== NEVER TAKEN
     *  the TRANSIENT state.  So we have to place it on the appropriate
     *  Ready Queue with interrupts off.                              
     */                                                               
    the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
                                                                      
    if ( prepend_it )                                                 
ffc0acf4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
     *  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 );
ffc0acf8:	91 3f 00 10 	stw     r9,16(r31)                             
ffc0acfc:	3d 20 00 00 	lis     r9,0                                   
ffc0ad00:	39 29 20 80 	addi    r9,r9,8320                             
                                                                      
    if ( prepend_it )                                                 
ffc0ad04:	41 9e 00 0c 	beq-    cr7,ffc0ad10 <_Thread_Change_priority+0xc0>
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first(                   
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue_first( the_thread );                  
ffc0ad08:	81 29 00 28 	lwz     r9,40(r9)                              
ffc0ad0c:	48 00 00 08 	b       ffc0ad14 <_Thread_Change_priority+0xc4>
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue(                         
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue( the_thread );                        
ffc0ad10:	81 29 00 24 	lwz     r9,36(r9)                              
ffc0ad14:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ad18:	7d 29 03 a6 	mtctr   r9                                     
ffc0ad1c:	4e 80 04 21 	bctrl                                          
                                                                      
static inline void ppc_interrupt_flash( uint32_t level )              
{                                                                     
  uint32_t current_level;                                             
                                                                      
  __asm__ volatile (                                                  
ffc0ad20:	7d 20 00 a6 	mfmsr   r9                                     
ffc0ad24:	7f c0 01 24 	mtmsr   r30                                    
ffc0ad28:	7d 20 01 24 	mtmsr   r9                                     
 *  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();                                   
ffc0ad2c:	3d 20 00 00 	lis     r9,0                                   
ffc0ad30:	81 29 20 88 	lwz     r9,8328(r9)                            
ffc0ad34:	7d 29 03 a6 	mtctr   r9                                     
ffc0ad38:	4e 80 04 21 	bctrl                                          
 *  is also the heir thread, and false otherwise.                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )  
{                                                                     
  return ( _Thread_Executing == _Thread_Heir );                       
ffc0ad3c:	3d 20 00 00 	lis     r9,0                                   
ffc0ad40:	39 29 2e 00 	addi    r9,r9,11776                            
ffc0ad44:	81 49 00 10 	lwz     r10,16(r9)                             
   *  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() &&                       
ffc0ad48:	81 09 00 14 	lwz     r8,20(r9)                              
ffc0ad4c:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc0ad50:	41 9e 00 18 	beq-    cr7,ffc0ad68 <_Thread_Change_priority+0x118>
ffc0ad54:	89 4a 00 70 	lbz     r10,112(r10)                           
ffc0ad58:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0ad5c:	41 9e 00 0c 	beq-    cr7,ffc0ad68 <_Thread_Change_priority+0x118>
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
ffc0ad60:	39 40 00 01 	li      r10,1                                  
ffc0ad64:	99 49 00 0c 	stb     r10,12(r9)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0ad68:	7f c0 01 24 	mtmsr   r30                                    
  _ISR_Enable( level );                                               
}                                                                     
ffc0ad6c:	39 61 00 20 	addi    r11,r1,32                              
ffc0ad70:	4b ff 58 48 	b       ffc005b8 <_restgpr_28_x>               
                                                                      

ffc0af8c <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
ffc0af8c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0af90:	7c 08 02 a6 	mflr    r0                                     
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0af94:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
void _Thread_Delay_ended(                                             
  Objects_Id  id,                                                     
  void       *ignored __attribute__((unused))                         
)                                                                     
{                                                                     
ffc0af98:	90 01 00 1c 	stw     r0,28(r1)                              
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0af9c:	48 00 02 15 	bl      ffc0b1b0 <_Thread_Get>                 
  switch ( location ) {                                               
ffc0afa0:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0afa4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0afa8:	40 9e 00 20 	bne-    cr7,ffc0afc8 <_Thread_Delay_ended+0x3c><== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_Clear_state(                                            
ffc0afac:	3c 80 10 00 	lis     r4,4096                                
ffc0afb0:	60 84 00 18 	ori     r4,r4,24                               
ffc0afb4:	4b ff fd c1 	bl      ffc0ad74 <_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;                  
ffc0afb8:	3d 20 00 00 	lis     r9,0                                   
ffc0afbc:	81 49 28 24 	lwz     r10,10276(r9)                          
                                                                      
    --level;                                                          
ffc0afc0:	39 4a ff ff 	addi    r10,r10,-1                             
    _Thread_Dispatch_disable_level = level;                           
ffc0afc4:	91 49 28 24 	stw     r10,10276(r9)                          
          | STATES_INTERRUPTIBLE_BY_SIGNAL                            
      );                                                              
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
ffc0afc8:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0afcc:	38 21 00 18 	addi    r1,r1,24                               
ffc0afd0:	7c 08 03 a6 	mtlr    r0                                     
ffc0afd4:	4e 80 00 20 	blr                                            
                                                                      

ffc0afd8 <_Thread_Dispatch>: #if defined(RTEMS_SMP) #include <rtems/score/smp.h> #endif void _Thread_Dispatch( void ) {
ffc0afd8:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc0afdc:	7c 08 02 a6 	mflr    r0                                     
ffc0afe0:	be 81 00 18 	stmw    r20,24(r1)                             
  #endif                                                              
                                                                      
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
ffc0afe4:	3f e0 00 00 	lis     r31,0                                  
ffc0afe8:	39 3f 2e 00 	addi    r9,r31,11776                           
#if defined(RTEMS_SMP)                                                
  #include <rtems/score/smp.h>                                        
#endif                                                                
                                                                      
void _Thread_Dispatch( void )                                         
{                                                                     
ffc0afec:	90 01 00 4c 	stw     r0,76(r1)                              
  #endif                                                              
                                                                      
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
ffc0aff0:	82 c9 00 10 	lwz     r22,16(r9)                             
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0aff4:	7d 40 00 a6 	mfmsr   r10                                    
ffc0aff8:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0affc:	7d 49 48 78 	andc    r9,r10,r9                              
ffc0b000:	7d 20 01 24 	mtmsr   r9                                     
 */                                                                   
static inline void _TOD_Get_uptime(                                   
  Timestamp_Control *time                                             
)                                                                     
{                                                                     
  _TOD_Get_with_nanoseconds( time, &_TOD.uptime );                    
ffc0b004:	3f 40 00 00 	lis     r26,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 ) {                                            
ffc0b008:	3e e0 00 00 	lis     r23,0                                  
   * 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;                           
ffc0b00c:	3f c0 00 00 	lis     r30,0                                  
ffc0b010:	3b a0 00 01 	li      r29,1                                  
  while ( _Thread_Dispatch_necessary == true ) {                      
    heir = _Thread_Heir;                                              
    #ifndef RTEMS_SMP                                                 
      _Thread_Dispatch_set_disable_level( 1 );                        
    #endif                                                            
    _Thread_Dispatch_necessary = false;                               
ffc0b014:	3b 80 00 00 	li      r28,0                                  
#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;            
ffc0b018:	3f 60 00 00 	lis     r27,0                                  
ffc0b01c:	3b 5a 2b e8 	addi    r26,r26,11240                          
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
ffc0b020:	3f 20 00 00 	lis     r25,0                                  
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0b024:	3f 00 00 00 	lis     r24,0                                  
ffc0b028:	3a f7 22 0c 	addi    r23,r23,8716                           
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
ffc0b02c:	48 00 01 30 	b       ffc0b15c <_Thread_Dispatch+0x184>      
    heir = _Thread_Heir;                                              
ffc0b030:	82 a9 00 14 	lwz     r21,20(r9)                             
ffc0b034:	93 be 28 24 	stw     r29,10276(r30)                         
    /*                                                                
     *  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 )                                          
ffc0b038:	7f 95 b0 00 	cmpw    cr7,r21,r22                            
  while ( _Thread_Dispatch_necessary == true ) {                      
    heir = _Thread_Heir;                                              
    #ifndef RTEMS_SMP                                                 
      _Thread_Dispatch_set_disable_level( 1 );                        
    #endif                                                            
    _Thread_Dispatch_necessary = false;                               
ffc0b03c:	9b 89 00 0c 	stb     r28,12(r9)                             
    _Thread_Executing = heir;                                         
ffc0b040:	92 a9 00 10 	stw     r21,16(r9)                             
    /*                                                                
     *  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 )                                          
ffc0b044:	40 be 00 28 	bne+    cr7,ffc0b06c <_Thread_Dispatch+0x94>   
ffc0b048:	39 00 00 00 	li      r8,0                                   
ffc0b04c:	3d 20 00 00 	lis     r9,0                                   
ffc0b050:	91 09 28 24 	stw     r8,10276(r9)                           
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0b054:	7d 40 01 24 	mtmsr   r10                                    
ffc0b058:	3d 20 00 00 	lis     r9,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 ) {                                            
ffc0b05c:	3f c0 00 00 	lis     r30,0                                  
ffc0b060:	83 e9 2d 10 	lwz     r31,11536(r9)                          
ffc0b064:	3b de 2d 14 	addi    r30,r30,11540                          
ffc0b068:	48 00 01 1c 	b       ffc0b184 <_Thread_Dispatch+0x1ac>      
     */                                                               
#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 )
ffc0b06c:	81 35 00 78 	lwz     r9,120(r21)                            
ffc0b070:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0b074:	40 be 00 0c 	bne+    cr7,ffc0b080 <_Thread_Dispatch+0xa8>   
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
ffc0b078:	81 3b 28 20 	lwz     r9,10272(r27)                          
ffc0b07c:	91 35 00 74 	stw     r9,116(r21)                            
ffc0b080:	7d 40 01 24 	mtmsr   r10                                    
ffc0b084:	38 61 00 08 	addi    r3,r1,8                                
ffc0b088:	7f 44 d3 78 	mr      r4,r26                                 
ffc0b08c:	4b ff e7 d9 	bl      ffc09864 <_TOD_Get_with_nanoseconds>   
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
        _Timestamp_Subtract(                                          
ffc0b090:	38 bf 2e 00 	addi    r5,r31,11776                           
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
ffc0b094:	81 05 00 20 	lwz     r8,32(r5)                              
ffc0b098:	81 25 00 24 	lwz     r9,36(r5)                              
ffc0b09c:	81 41 00 08 	lwz     r10,8(r1)                              
ffc0b0a0:	81 61 00 0c 	lwz     r11,12(r1)                             
ffc0b0a4:	7c e9 58 10 	subfc   r7,r9,r11                              
ffc0b0a8:	7c c8 51 10 	subfe   r6,r8,r10                              
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
ffc0b0ac:	81 16 00 80 	lwz     r8,128(r22)                            
ffc0b0b0:	81 36 00 84 	lwz     r9,132(r22)                            
ffc0b0b4:	7d 29 38 14 	addc    r9,r9,r7                               
ffc0b0b8:	7d 08 31 14 	adde    r8,r8,r6                               
ffc0b0bc:	91 36 00 84 	stw     r9,132(r22)                            
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
ffc0b0c0:	81 39 28 2c 	lwz     r9,10284(r25)                          
ffc0b0c4:	91 16 00 80 	stw     r8,128(r22)                            
ffc0b0c8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
ffc0b0cc:	91 45 00 20 	stw     r10,32(r5)                             
ffc0b0d0:	91 65 00 24 	stw     r11,36(r5)                             
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
ffc0b0d4:	41 9e 00 14 	beq-    cr7,ffc0b0e8 <_Thread_Dispatch+0x110>  <== NEVER TAKEN
      executing->libc_reent = *_Thread_libc_reent;                    
ffc0b0d8:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0b0dc:	91 56 01 44 	stw     r10,324(r22)                           
      *_Thread_libc_reent = heir->libc_reent;                         
ffc0b0e0:	81 55 01 44 	lwz     r10,324(r21)                           
ffc0b0e4:	91 49 00 00 	stw     r10,0(r9)                              
ffc0b0e8:	82 98 22 08 	lwz     r20,8712(r24)                          
ffc0b0ec:	48 00 00 1c 	b       ffc0b108 <_Thread_Dispatch+0x130>      
    const User_extensions_Switch_control *extension =                 
      (const User_extensions_Switch_control *) node;                  
                                                                      
    (*extension->thread_switch)( executing, heir );                   
ffc0b0f0:	81 34 00 08 	lwz     r9,8(r20)                              
ffc0b0f4:	7e c3 b3 78 	mr      r3,r22                                 
ffc0b0f8:	7e a4 ab 78 	mr      r4,r21                                 
ffc0b0fc:	7d 29 03 a6 	mtctr   r9                                     
ffc0b100:	4e 80 04 21 	bctrl                                          
  #ifdef RTEMS_SMP                                                    
    _Thread_Unnest_dispatch();                                        
  #endif                                                              
                                                                      
  _API_extensions_Run_post_switch( executing );                       
}                                                                     
ffc0b104:	82 94 00 00 	lwz     r20,0(r20)                             
{                                                                     
  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 ) {                                            
ffc0b108:	7f 94 b8 00 	cmpw    cr7,r20,r23                            
ffc0b10c:	40 9e ff e4 	bne+    cr7,ffc0b0f0 <_Thread_Dispatch+0x118>  
     *  operations.                                                   
     */                                                               
                                                                      
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
#if ( CPU_USE_DEFERRED_FP_SWITCH != TRUE )                            
    if ( executing->fp_context != NULL )                              
ffc0b110:	81 36 01 40 	lwz     r9,320(r22)                            
ffc0b114:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b118:	41 9e 00 0c 	beq-    cr7,ffc0b124 <_Thread_Dispatch+0x14c>  
      _Context_Save_fp( &executing->fp_context );                     
ffc0b11c:	38 76 01 40 	addi    r3,r22,320                             
ffc0b120:	48 00 ef e1 	bl      ffc1a100 <_CPU_Context_save_fp>        
#endif                                                                
#endif                                                                
                                                                      
    _Context_Switch( &executing->Registers, &heir->Registers );       
ffc0b124:	38 76 00 c0 	addi    r3,r22,192                             
ffc0b128:	38 95 00 c0 	addi    r4,r21,192                             
ffc0b12c:	48 00 f1 55 	bl      ffc1a280 <_CPU_Context_switch>         
        _Context_Save_fp( &_Thread_Allocated_fp->fp_context );        
      _Context_Restore_fp( &executing->fp_context );                  
      _Thread_Allocated_fp = executing;                               
    }                                                                 
#else                                                                 
    if ( executing->fp_context != NULL )                              
ffc0b130:	81 36 01 40 	lwz     r9,320(r22)                            
ffc0b134:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b138:	41 9e 00 0c 	beq-    cr7,ffc0b144 <_Thread_Dispatch+0x16c>  
      _Context_Restore_fp( &executing->fp_context );                  
ffc0b13c:	38 76 01 40 	addi    r3,r22,320                             
ffc0b140:	48 00 f0 81 	bl      ffc1a1c0 <_CPU_Context_restore_fp>     
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
ffc0b144:	39 3f 2e 00 	addi    r9,r31,11776                           
ffc0b148:	82 c9 00 10 	lwz     r22,16(r9)                             
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0b14c:	7d 40 00 a6 	mfmsr   r10                                    
ffc0b150:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0b154:	7d 49 48 78 	andc    r9,r10,r9                              
ffc0b158:	7d 20 01 24 	mtmsr   r9                                     
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
ffc0b15c:	39 3f 2e 00 	addi    r9,r31,11776                           
ffc0b160:	89 09 00 0c 	lbz     r8,12(r9)                              
ffc0b164:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0b168:	40 9e fe c8 	bne+    cr7,ffc0b030 <_Thread_Dispatch+0x58>   
ffc0b16c:	4b ff fe dc 	b       ffc0b048 <_Thread_Dispatch+0x70>       
    const API_extensions_Post_switch_control *post_switch =           
      (const API_extensions_Post_switch_control *) node;              
                                                                      
    (*post_switch->hook)( executing );                                
ffc0b170:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0b174:	7e c3 b3 78 	mr      r3,r22                                 
ffc0b178:	7d 29 03 a6 	mtctr   r9                                     
ffc0b17c:	4e 80 04 21 	bctrl                                          
  #ifdef RTEMS_SMP                                                    
    _Thread_Unnest_dispatch();                                        
  #endif                                                              
                                                                      
  _API_extensions_Run_post_switch( executing );                       
}                                                                     
ffc0b180:	83 ff 00 00 	lwz     r31,0(r31)                             
{                                                                     
  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 ) {                                            
ffc0b184:	7f 9f f0 00 	cmpw    cr7,r31,r30                            
ffc0b188:	40 9e ff e8 	bne+    cr7,ffc0b170 <_Thread_Dispatch+0x198>  
ffc0b18c:	39 61 00 48 	addi    r11,r1,72                              
ffc0b190:	4b ff 54 08 	b       ffc00598 <_restgpr_20_x>               
                                                                      

ffc0f668 <_Thread_Handler>: #define INIT_NAME __main #define EXECUTE_GLOBAL_CONSTRUCTORS #endif void _Thread_Handler( void ) {
ffc0f668:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0f66c:	7c 08 02 a6 	mflr    r0                                     
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static bool doneConstructors;                                     
    bool doCons;                                                      
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
ffc0f670:	3d 20 00 00 	lis     r9,0                                   
  #define INIT_NAME __main                                            
  #define EXECUTE_GLOBAL_CONSTRUCTORS                                 
#endif                                                                
                                                                      
void _Thread_Handler( void )                                          
{                                                                     
ffc0f674:	90 01 00 14 	stw     r0,20(r1)                              
ffc0f678:	bf c1 00 08 	stmw    r30,8(r1)                              
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static bool doneConstructors;                                     
    bool doCons;                                                      
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
ffc0f67c:	83 e9 2e 10 	lwz     r31,11792(r9)                          
                                                                      
  /*                                                                  
   * have to put level into a register for those cpu's that use       
   * inline asm here                                                  
   */                                                                 
  level = executing->Start.isr_level;                                 
ffc0f680:	81 5f 00 a8 	lwz     r10,168(r31)                           
}                                                                     
                                                                      
static inline void _CPU_ISR_Set_level( uint32_t   level )             
{                                                                     
  register unsigned int msr;                                          
  _CPU_MSR_GET(msr);                                                  
ffc0f684:	39 20 00 00 	li      r9,0                                   
ffc0f688:	7d 20 00 a6 	mfmsr   r9                                     
  if (!(level & CPU_MODES_INTERRUPT_MASK)) {                          
ffc0f68c:	71 48 00 01 	andi.   r8,r10,1                               
                                                                      
static inline uint32_t ppc_interrupt_get_disable_mask( void )         
{                                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0f690:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc0f694:	40 a2 00 0c 	bne+    ffc0f6a0 <_Thread_Handler+0x38>        
    msr |= ppc_interrupt_get_disable_mask();                          
ffc0f698:	7d 49 4b 78 	or      r9,r10,r9                              
ffc0f69c:	48 00 00 08 	b       ffc0f6a4 <_Thread_Handler+0x3c>        
  }                                                                   
  else {                                                              
    msr &= ~ppc_interrupt_get_disable_mask();                         
ffc0f6a0:	7d 29 50 78 	andc    r9,r9,r10                              
  }                                                                   
  _CPU_MSR_SET(msr);                                                  
ffc0f6a4:	7d 20 01 24 	mtmsr   r9                                     
      doCons = !doneConstructors                                      
        && _Objects_Get_API( executing->Object.id ) != OBJECTS_INTERNAL_API;
      if (doCons)                                                     
        doneConstructors = true;                                      
    #else                                                             
      doCons = !doneConstructors;                                     
ffc0f6a8:	3d 20 00 00 	lis     r9,0                                   
ffc0f6ac:	8b c9 29 c4 	lbz     r30,10692(r9)                          
  );                                                                  
}                                                                     
                                                                      
static inline void _User_extensions_Thread_begin( Thread_Control *executing )
{                                                                     
  _User_extensions_Iterate(                                           
ffc0f6b0:	3c 80 ff c1 	lis     r4,-63                                 
      doneConstructors = true;                                        
ffc0f6b4:	39 40 00 01 	li      r10,1                                  
ffc0f6b8:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f6bc:	99 49 29 c4 	stb     r10,10692(r9)                          
ffc0f6c0:	38 84 bd 4c 	addi    r4,r4,-17076                           
ffc0f6c4:	4b ff c6 d5 	bl      ffc0bd98 <_User_extensions_Iterate>    
  _User_extensions_Thread_begin( executing );                         
                                                                      
  /*                                                                  
   *  At this point, the dispatch disable level BETTER be 1.          
   */                                                                 
  _Thread_Enable_dispatch();                                          
ffc0f6c8:	4b ff ba cd 	bl      ffc0b194 <_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) */ {                    
ffc0f6cc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0f6d0:	40 be 00 08 	bne+    cr7,ffc0f6d8 <_Thread_Handler+0x70>    
      INIT_NAME ();                                                   
ffc0f6d4:	48 00 b6 29 	bl      ffc1acfc <_init>                       
        _Thread_Enable_dispatch();                                    
      #endif                                                          
    }                                                                 
 #endif                                                               
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
ffc0f6d8:	81 3f 00 90 	lwz     r9,144(r31)                            
ffc0f6dc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f6e0:	40 be 00 18 	bne+    cr7,ffc0f6f8 <_Thread_Handler+0x90>    <== NEVER TAKEN
    executing->Wait.return_argument =                                 
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
ffc0f6e4:	81 3f 00 8c 	lwz     r9,140(r31)                            
ffc0f6e8:	80 7f 00 98 	lwz     r3,152(r31)                            
ffc0f6ec:	7d 29 03 a6 	mtctr   r9                                     
ffc0f6f0:	4e 80 04 21 	bctrl                                          
      #endif                                                          
    }                                                                 
 #endif                                                               
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
    executing->Wait.return_argument =                                 
ffc0f6f4:	90 7f 00 28 	stw     r3,40(r31)                             
  }                                                                   
}                                                                     
                                                                      
static inline void _User_extensions_Thread_exitted( Thread_Control *executing )
{                                                                     
  _User_extensions_Iterate(                                           
ffc0f6f8:	3c 80 ff c1 	lis     r4,-63                                 
ffc0f6fc:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f700:	38 84 bd 60 	addi    r4,r4,-17056                           
ffc0f704:	4b ff c6 95 	bl      ffc0bd98 <_User_extensions_Iterate>    
   *  able to fit in a (void *).                                      
   */                                                                 
                                                                      
  _User_extensions_Thread_exitted( executing );                       
                                                                      
  _Internal_error_Occurred(                                           
ffc0f708:	38 60 00 00 	li      r3,0                                   
ffc0f70c:	38 80 00 01 	li      r4,1                                   
ffc0f710:	38 a0 00 05 	li      r5,5                                   
ffc0f714:	4b ff a6 65 	bl      ffc09d78 <_Internal_error_Occurred>    
                                                                      

ffc0b44c <_Thread_Handler_initialization>: #include <rtems/bspsmp.h> #endif void _Thread_Handler_initialization(void) { uint32_t ticks_per_timeslice =
ffc0b44c:	3d 20 ff c2 	lis     r9,-62                                 
#if defined(RTEMS_SMP)                                                
  #include <rtems/bspsmp.h>                                           
#endif                                                                
                                                                      
void _Thread_Handler_initialization(void)                             
{                                                                     
ffc0b450:	94 21 ff f0 	stwu    r1,-16(r1)                             
  uint32_t ticks_per_timeslice =                                      
ffc0b454:	39 29 ad 58 	addi    r9,r9,-21160                           
#if defined(RTEMS_SMP)                                                
  #include <rtems/bspsmp.h>                                           
#endif                                                                
                                                                      
void _Thread_Handler_initialization(void)                             
{                                                                     
ffc0b458:	7c 08 02 a6 	mflr    r0                                     
  #if defined(RTEMS_MULTIPROCESSING)                                  
    uint32_t maximum_proxies =                                        
      _Configuration_MP_table->maximum_proxies;                       
  #endif                                                              
                                                                      
  if ( rtems_configuration_get_stack_allocate_hook() == NULL ||       
ffc0b45c:	81 09 00 28 	lwz     r8,40(r9)                              
#if defined(RTEMS_SMP)                                                
  #include <rtems/bspsmp.h>                                           
#endif                                                                
                                                                      
void _Thread_Handler_initialization(void)                             
{                                                                     
ffc0b460:	bf c1 00 08 	stmw    r30,8(r1)                              
  #if defined(RTEMS_MULTIPROCESSING)                                  
    uint32_t maximum_proxies =                                        
      _Configuration_MP_table->maximum_proxies;                       
  #endif                                                              
                                                                      
  if ( rtems_configuration_get_stack_allocate_hook() == NULL ||       
ffc0b464:	2f 88 00 00 	cmpwi   cr7,r8,0                               
#if defined(RTEMS_SMP)                                                
  #include <rtems/bspsmp.h>                                           
#endif                                                                
                                                                      
void _Thread_Handler_initialization(void)                             
{                                                                     
ffc0b468:	90 01 00 14 	stw     r0,20(r1)                              
  uint32_t ticks_per_timeslice =                                      
ffc0b46c:	83 e9 00 14 	lwz     r31,20(r9)                             
    rtems_configuration_get_ticks_per_timeslice();                    
  uint32_t maximum_extensions =                                       
ffc0b470:	83 c9 00 08 	lwz     r30,8(r9)                              
    rtems_configuration_get_maximum_extensions();                     
  rtems_stack_allocate_init_hook stack_allocate_init_hook =           
ffc0b474:	81 49 00 24 	lwz     r10,36(r9)                             
  #if defined(RTEMS_MULTIPROCESSING)                                  
    uint32_t maximum_proxies =                                        
      _Configuration_MP_table->maximum_proxies;                       
  #endif                                                              
                                                                      
  if ( rtems_configuration_get_stack_allocate_hook() == NULL ||       
ffc0b478:	41 9e 00 10 	beq-    cr7,ffc0b488 <_Thread_Handler_initialization+0x3c><== NEVER TAKEN
ffc0b47c:	81 09 00 2c 	lwz     r8,44(r9)                              
ffc0b480:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0b484:	40 be 00 14 	bne+    cr7,ffc0b498 <_Thread_Handler_initialization+0x4c>
       rtems_configuration_get_stack_free_hook() == NULL)             
    _Internal_error_Occurred(                                         
ffc0b488:	38 60 00 00 	li      r3,0                                   
ffc0b48c:	38 80 00 01 	li      r4,1                                   
ffc0b490:	38 a0 00 0e 	li      r5,14                                  
ffc0b494:	4b ff e8 e5 	bl      ffc09d78 <_Internal_error_Occurred>    
      INTERNAL_ERROR_CORE,                                            
      true,                                                           
      INTERNAL_ERROR_BAD_STACK_HOOK                                   
    );                                                                
                                                                      
  if ( stack_allocate_init_hook != NULL )                             
ffc0b498:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0b49c:	41 9e 00 10 	beq-    cr7,ffc0b4ac <_Thread_Handler_initialization+0x60>
    (*stack_allocate_init_hook)( rtems_configuration_get_stack_space_size() );
ffc0b4a0:	80 69 00 04 	lwz     r3,4(r9)                               
ffc0b4a4:	7d 49 03 a6 	mtctr   r10                                    
ffc0b4a8:	4e 80 04 21 	bctrl                                          
                                                                      
  _Thread_Dispatch_necessary = false;                                 
ffc0b4ac:	3d 40 00 00 	lis     r10,0                                  
      false,                      /* true if this is a global object class */
      NULL                        /* Proxy extraction support callout */
    #endif                                                            
  );                                                                  
                                                                      
}                                                                     
ffc0b4b0:	80 01 00 14 	lwz     r0,20(r1)                              
    );                                                                
                                                                      
  if ( stack_allocate_init_hook != NULL )                             
    (*stack_allocate_init_hook)( rtems_configuration_get_stack_space_size() );
                                                                      
  _Thread_Dispatch_necessary = false;                                 
ffc0b4b4:	39 4a 2e 00 	addi    r10,r10,11776                          
ffc0b4b8:	39 20 00 00 	li      r9,0                                   
      false,                      /* true if this is a global object class */
      NULL                        /* Proxy extraction support callout */
    #endif                                                            
  );                                                                  
                                                                      
}                                                                     
ffc0b4bc:	7c 08 03 a6 	mtlr    r0                                     
    );                                                                
                                                                      
  if ( stack_allocate_init_hook != NULL )                             
    (*stack_allocate_init_hook)( rtems_configuration_get_stack_space_size() );
                                                                      
  _Thread_Dispatch_necessary = false;                                 
ffc0b4c0:	99 2a 00 0c 	stb     r9,12(r10)                             
  _Thread_Executing         = NULL;                                   
ffc0b4c4:	39 20 00 00 	li      r9,0                                   
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0b4c8:	3c 60 00 00 	lis     r3,0                                   
                                                                      
  if ( stack_allocate_init_hook != NULL )                             
    (*stack_allocate_init_hook)( rtems_configuration_get_stack_space_size() );
                                                                      
  _Thread_Dispatch_necessary = false;                                 
  _Thread_Executing         = NULL;                                   
ffc0b4cc:	91 2a 00 10 	stw     r9,16(r10)                             
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0b4d0:	38 63 2d 74 	addi    r3,r3,11636                            
ffc0b4d4:	38 80 00 01 	li      r4,1                                   
  if ( stack_allocate_init_hook != NULL )                             
    (*stack_allocate_init_hook)( rtems_configuration_get_stack_space_size() );
                                                                      
  _Thread_Dispatch_necessary = false;                                 
  _Thread_Executing         = NULL;                                   
  _Thread_Heir              = NULL;                                   
ffc0b4d8:	91 2a 00 14 	stw     r9,20(r10)                             
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
  _Thread_Allocated_fp      = NULL;                                   
ffc0b4dc:	3d 40 00 00 	lis     r10,0                                  
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0b4e0:	38 a0 00 01 	li      r5,1                                   
                                                                      
  _Thread_Dispatch_necessary = false;                                 
  _Thread_Executing         = NULL;                                   
  _Thread_Heir              = NULL;                                   
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
  _Thread_Allocated_fp      = NULL;                                   
ffc0b4e4:	91 2a 28 28 	stw     r9,10280(r10)                          
#endif                                                                
                                                                      
  _Thread_Maximum_extensions = maximum_extensions;                    
ffc0b4e8:	3d 20 00 00 	lis     r9,0                                   
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0b4ec:	38 c0 00 01 	li      r6,1                                   
  _Thread_Heir              = NULL;                                   
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
  _Thread_Allocated_fp      = NULL;                                   
#endif                                                                
                                                                      
  _Thread_Maximum_extensions = maximum_extensions;                    
ffc0b4f0:	93 c9 28 30 	stw     r30,10288(r9)                          
                                                                      
  _Thread_Ticks_per_timeslice  = ticks_per_timeslice;                 
ffc0b4f4:	3d 20 00 00 	lis     r9,0                                   
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0b4f8:	38 e0 01 58 	li      r7,344                                 
  _Thread_Allocated_fp      = NULL;                                   
#endif                                                                
                                                                      
  _Thread_Maximum_extensions = maximum_extensions;                    
                                                                      
  _Thread_Ticks_per_timeslice  = ticks_per_timeslice;                 
ffc0b4fc:	93 e9 28 20 	stw     r31,10272(r9)                          
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0b500:	39 00 00 00 	li      r8,0                                   
ffc0b504:	39 20 00 08 	li      r9,8                                   
      false,                      /* true if this is a global object class */
      NULL                        /* Proxy extraction support callout */
    #endif                                                            
  );                                                                  
                                                                      
}                                                                     
ffc0b508:	bb c1 00 08 	lmw     r30,8(r1)                              
ffc0b50c:	38 21 00 10 	addi    r1,r1,16                               
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0b510:	4b ff ee 54 	b       ffc0a364 <_Objects_Initialize_information>
                                                                      

ffc0b244 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) {
ffc0b244:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc0b248:	7c 08 02 a6 	mflr    r0                                     
ffc0b24c:	be e1 00 1c 	stmw    r23,28(r1)                             
ffc0b250:	7d 1c 43 78 	mr      r28,r8                                 
                                                                      
  /*                                                                  
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
ffc0b254:	39 00 00 00 	li      r8,0                                   
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
ffc0b258:	90 01 00 44 	stw     r0,68(r1)                              
ffc0b25c:	7d 3b 4b 78 	mr      r27,r9                                 
ffc0b260:	7c 78 1b 78 	mr      r24,r3                                 
ffc0b264:	81 21 00 50 	lwz     r9,80(r1)                              
                                                                      
  /*                                                                  
   *  Allocate and Initialize the stack for this thread.              
   */                                                                 
  #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) 
    actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
ffc0b268:	7c 83 23 78 	mr      r3,r4                                  
                                                                      
  /*                                                                  
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
ffc0b26c:	91 04 01 48 	stw     r8,328(r4)                             
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
ffc0b270:	7c 9f 23 78 	mr      r31,r4                                 
ffc0b274:	7c de 33 78 	mr      r30,r6                                 
                                                                      
  /*                                                                  
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
ffc0b278:	91 04 01 4c 	stw     r8,332(r4)                             
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
ffc0b27c:	7c f7 3b 78 	mr      r23,r7                                 
ffc0b280:	7d 5a 53 78 	mr      r26,r10                                
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
                                                                      
  extensions_area = NULL;                                             
  the_thread->libc_reent = NULL;                                      
ffc0b284:	91 04 01 44 	stw     r8,324(r4)                             
                                                                      
  /*                                                                  
   *  Allocate and Initialize the stack for this thread.              
   */                                                                 
  #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) 
    actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
ffc0b288:	7c c4 33 78 	mr      r4,r6                                  
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
ffc0b28c:	83 29 00 00 	lwz     r25,0(r9)                              
                                                                      
  /*                                                                  
   *  Allocate and Initialize the stack for this thread.              
   */                                                                 
  #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) 
    actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
ffc0b290:	48 00 08 d9 	bl      ffc0bb68 <_Thread_Stack_Allocate>      
    if ( !actual_stack_size || actual_stack_size < stack_size )       
ffc0b294:	7c 68 1b 79 	mr.     r8,r3                                  
      return false;                     /* stack allocation failed */ 
ffc0b298:	38 60 00 00 	li      r3,0                                   
  /*                                                                  
   *  Allocate and Initialize the stack for this thread.              
   */                                                                 
  #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) 
    actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
    if ( !actual_stack_size || actual_stack_size < stack_size )       
ffc0b29c:	41 82 01 a8 	beq-    ffc0b444 <_Thread_Initialize+0x200>    
ffc0b2a0:	7f 88 f0 40 	cmplw   cr7,r8,r30                             
ffc0b2a4:	41 9c 01 a0 	blt-    cr7,ffc0b444 <_Thread_Initialize+0x200><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Allocate the floating point area for this thread                
   */                                                                 
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    if ( is_fp ) {                                                    
ffc0b2a8:	2f 97 00 00 	cmpwi   cr7,r23,0                              
  Stack_Control *the_stack,                                           
  void          *starting_address,                                    
  size_t         size                                                 
)                                                                     
{                                                                     
  the_stack->area = starting_address;                                 
ffc0b2ac:	81 3f 00 bc 	lwz     r9,188(r31)                            
  the_stack->size = size;                                             
ffc0b2b0:	91 1f 00 b0 	stw     r8,176(r31)                            
                                                                      
  extensions_area = NULL;                                             
  the_thread->libc_reent = NULL;                                      
                                                                      
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    fp_area = NULL;                                                   
ffc0b2b4:	3b a0 00 00 	li      r29,0                                  
  Stack_Control *the_stack,                                           
  void          *starting_address,                                    
  size_t         size                                                 
)                                                                     
{                                                                     
  the_stack->area = starting_address;                                 
ffc0b2b8:	91 3f 00 b4 	stw     r9,180(r31)                            
                                                                      
  /*                                                                  
   *  Allocate the floating point area for this thread                
   */                                                                 
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    if ( is_fp ) {                                                    
ffc0b2bc:	41 be 00 14 	beq+    cr7,ffc0b2d0 <_Thread_Initialize+0x8c> 
      fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );               
ffc0b2c0:	38 60 01 08 	li      r3,264                                 
ffc0b2c4:	48 00 0f dd 	bl      ffc0c2a0 <_Workspace_Allocate>         
      if ( !fp_area )                                                 
ffc0b2c8:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc0b2cc:	41 82 01 34 	beq-    ffc0b400 <_Thread_Initialize+0x1bc>    
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
ffc0b2d0:	3d 20 00 00 	lis     r9,0                                   
      fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );               
      if ( !fp_area )                                                 
        goto failed;                                                  
      fp_area = _Context_Fp_start( fp_area, 0 );                      
    }                                                                 
    the_thread->fp_context       = fp_area;                           
ffc0b2d4:	93 bf 01 40 	stw     r29,320(r31)                           
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc0b2d8:	38 e0 00 00 	li      r7,0                                   
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
ffc0b2dc:	81 09 28 30 	lwz     r8,10288(r9)                           
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
                                                                      
  extensions_area = NULL;                                             
ffc0b2e0:	3b c0 00 00 	li      r30,0                                  
      if ( !fp_area )                                                 
        goto failed;                                                  
      fp_area = _Context_Fp_start( fp_area, 0 );                      
    }                                                                 
    the_thread->fp_context       = fp_area;                           
    the_thread->Start.fp_context = fp_area;                           
ffc0b2e4:	93 bf 00 b8 	stw     r29,184(r31)                           
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
ffc0b2e8:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0b2ec:	90 ff 00 50 	stw     r7,80(r31)                             
  the_watchdog->routine   = routine;                                  
ffc0b2f0:	90 ff 00 64 	stw     r7,100(r31)                            
  the_watchdog->id        = id;                                       
ffc0b2f4:	90 ff 00 68 	stw     r7,104(r31)                            
  the_watchdog->user_data = user_data;                                
ffc0b2f8:	90 ff 00 6c 	stw     r7,108(r31)                            
ffc0b2fc:	41 be 00 18 	beq+    cr7,ffc0b314 <_Thread_Initialize+0xd0> 
    extensions_area = _Workspace_Allocate(                            
ffc0b300:	38 68 00 01 	addi    r3,r8,1                                
ffc0b304:	54 63 10 3a 	rlwinm  r3,r3,2,0,29                           
ffc0b308:	48 00 0f 99 	bl      ffc0c2a0 <_Workspace_Allocate>         
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
ffc0b30c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0b310:	41 82 00 f4 	beq-    ffc0b404 <_Thread_Initialize+0x1c0>    
   * if they are linked to the thread. An extension user may          
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
ffc0b314:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
ffc0b318:	93 df 01 50 	stw     r30,336(r31)                           
   * if they are linked to the thread. An extension user may          
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
ffc0b31c:	40 be 00 58 	bne+    cr7,ffc0b374 <_Thread_Initialize+0x130>
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
  the_thread->Start.budget_callout   = budget_callout;                
ffc0b320:	81 21 00 48 	lwz     r9,72(r1)                              
 */                                                                   
RTEMS_INLINE_ROUTINE void* _Scheduler_Allocate(                       
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  return _Scheduler.Operations.allocate( the_thread );                
ffc0b324:	7f e3 fb 78 	mr      r3,r31                                 
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
ffc0b328:	93 5f 00 a0 	stw     r26,160(r31)                           
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
ffc0b32c:	3b 40 00 01 	li      r26,1                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
  the_thread->Start.budget_callout   = budget_callout;                
ffc0b330:	91 3f 00 a4 	stw     r9,164(r31)                            
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
ffc0b334:	81 21 00 4c 	lwz     r9,76(r1)                              
                                                                      
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
ffc0b338:	9b 7f 00 9c 	stb     r27,156(r31)                           
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
ffc0b33c:	91 3f 00 a8 	stw     r9,168(r31)                            
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
  the_thread->Wait.queue              = NULL;                         
ffc0b340:	39 20 00 00 	li      r9,0                                   
ffc0b344:	91 3f 00 44 	stw     r9,68(r31)                             
  the_thread->resource_count          = 0;                            
ffc0b348:	91 3f 00 1c 	stw     r9,28(r31)                             
ffc0b34c:	3d 20 00 00 	lis     r9,0                                   
ffc0b350:	81 29 20 98 	lwz     r9,8344(r9)                            
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
ffc0b354:	93 5f 00 10 	stw     r26,16(r31)                            
ffc0b358:	7d 29 03 a6 	mtctr   r9                                     
  the_thread->Wait.queue              = NULL;                         
  the_thread->resource_count          = 0;                            
  the_thread->real_priority           = priority;                     
ffc0b35c:	93 9f 00 18 	stw     r28,24(r31)                            
  the_thread->Start.initial_priority  = priority;                     
ffc0b360:	93 9f 00 ac 	stw     r28,172(r31)                           
ffc0b364:	4e 80 04 21 	bctrl                                          
  sched =_Scheduler_Allocate( the_thread );                           
  if ( !sched )                                                       
ffc0b368:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc0b36c:	40 a2 00 38 	bne+    ffc0b3a4 <_Thread_Initialize+0x160>    
ffc0b370:	48 00 00 98 	b       ffc0b408 <_Thread_Initialize+0x1c4>    
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
ffc0b374:	3d 20 00 00 	lis     r9,0                                   
ffc0b378:	81 49 28 30 	lwz     r10,10288(r9)                          
ffc0b37c:	38 e0 00 00 	li      r7,0                                   
      the_thread->extensions[i] = NULL;                               
ffc0b380:	39 00 00 00 	li      r8,0                                   
ffc0b384:	48 00 00 14 	b       ffc0b398 <_Thread_Initialize+0x154>    
ffc0b388:	81 3f 01 50 	lwz     r9,336(r31)                            
ffc0b38c:	54 e6 10 3a 	rlwinm  r6,r7,2,0,29                           
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
ffc0b390:	38 e7 00 01 	addi    r7,r7,1                                
      the_thread->extensions[i] = NULL;                               
ffc0b394:	7d 09 31 2e 	stwx    r8,r9,r6                               
   * create the extension long after tasks have been created          
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
ffc0b398:	7f 87 50 40 	cmplw   cr7,r7,r10                             
ffc0b39c:	40 9d ff ec 	ble+    cr7,ffc0b388 <_Thread_Initialize+0x144>
ffc0b3a0:	4b ff ff 80 	b       ffc0b320 <_Thread_Initialize+0xdc>     
  the_thread->real_priority           = priority;                     
  the_thread->Start.initial_priority  = priority;                     
  sched =_Scheduler_Allocate( the_thread );                           
  if ( !sched )                                                       
    goto failed;                                                      
  _Thread_Set_priority( the_thread, priority );                       
ffc0b3a4:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b3a8:	7f 84 e3 78 	mr      r4,r28                                 
ffc0b3ac:	48 00 06 f9 	bl      ffc0baa4 <_Thread_Set_priority>        
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
ffc0b3b0:	a1 3f 00 0a 	lhz     r9,10(r31)                             
                                                                      
static inline void _Timestamp64_implementation_Set_to_zero(           
  Timestamp64_Control *_time                                          
)                                                                     
{                                                                     
  *_time = 0;                                                         
ffc0b3b4:	39 40 00 00 	li      r10,0                                  
ffc0b3b8:	91 5f 00 80 	stw     r10,128(r31)                           
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc0b3bc:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0b3c0:	39 60 00 00 	li      r11,0                                  
ffc0b3c4:	81 58 00 1c 	lwz     r10,28(r24)                            
                                                                      
static inline bool _User_extensions_Thread_create( Thread_Control *created )
{                                                                     
  User_extensions_Thread_create_context ctx = { created, true };      
                                                                      
  _User_extensions_Iterate( &ctx, _User_extensions_Thread_create_visitor );
ffc0b3c8:	3c 80 ff c1 	lis     r4,-63                                 
ffc0b3cc:	91 7f 00 84 	stw     r11,132(r31)                           
ffc0b3d0:	38 61 00 08 	addi    r3,r1,8                                
ffc0b3d4:	38 84 bc bc 	addi    r4,r4,-17220                           
ffc0b3d8:	7f ea 49 2e 	stwx    r31,r10,r9                             
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
ffc0b3dc:	93 3f 00 0c 	stw     r25,12(r31)                            
 * @{                                                                 
 */                                                                   
                                                                      
static inline bool _User_extensions_Thread_create( Thread_Control *created )
{                                                                     
  User_extensions_Thread_create_context ctx = { created, true };      
ffc0b3e0:	93 e1 00 08 	stw     r31,8(r1)                              
ffc0b3e4:	9b 41 00 0c 	stb     r26,12(r1)                             
                                                                      
  _User_extensions_Iterate( &ctx, _User_extensions_Thread_create_visitor );
ffc0b3e8:	48 00 09 b1 	bl      ffc0bd98 <_User_extensions_Iterate>    
   *  Mutex provides sufficient protection to let the user extensions 
   *  run safely.                                                     
   */                                                                 
  extension_status = _User_extensions_Thread_create( the_thread );    
  if ( extension_status )                                             
    return true;                                                      
ffc0b3ec:	38 60 00 01 	li      r3,1                                   
                                                                      
  return ctx.ok;                                                      
ffc0b3f0:	89 21 00 0c 	lbz     r9,12(r1)                              
   *  user extensions with dispatching enabled.  The Allocator        
   *  Mutex provides sufficient protection to let the user extensions 
   *  run safely.                                                     
   */                                                                 
  extension_status = _User_extensions_Thread_create( the_thread );    
  if ( extension_status )                                             
ffc0b3f4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b3f8:	41 be 00 10 	beq+    cr7,ffc0b408 <_Thread_Initialize+0x1c4>
ffc0b3fc:	48 00 00 48 	b       ffc0b444 <_Thread_Initialize+0x200>    
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
                                                                      
  extensions_area = NULL;                                             
ffc0b400:	3b c0 00 00 	li      r30,0                                  
  size_t               actual_stack_size = 0;                         
  void                *stack = NULL;                                  
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    void              *fp_area;                                       
  #endif                                                              
  void                *sched = NULL;                                  
ffc0b404:	3b 60 00 00 	li      r27,0                                  
  extension_status = _User_extensions_Thread_create( the_thread );    
  if ( extension_status )                                             
    return true;                                                      
                                                                      
failed:                                                               
  _Workspace_Free( the_thread->libc_reent );                          
ffc0b408:	80 7f 01 44 	lwz     r3,324(r31)                            
ffc0b40c:	48 00 0e ad 	bl      ffc0c2b8 <_Workspace_Free>             
                                                                      
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    _Workspace_Free( the_thread->API_Extensions[i] );                 
ffc0b410:	80 7f 01 48 	lwz     r3,328(r31)                            
ffc0b414:	48 00 0e a5 	bl      ffc0c2b8 <_Workspace_Free>             
ffc0b418:	80 7f 01 4c 	lwz     r3,332(r31)                            
ffc0b41c:	48 00 0e 9d 	bl      ffc0c2b8 <_Workspace_Free>             
                                                                      
  _Workspace_Free( extensions_area );                                 
ffc0b420:	7f c3 f3 78 	mr      r3,r30                                 
ffc0b424:	48 00 0e 95 	bl      ffc0c2b8 <_Workspace_Free>             
                                                                      
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    _Workspace_Free( fp_area );                                       
ffc0b428:	7f a3 eb 78 	mr      r3,r29                                 
ffc0b42c:	48 00 0e 8d 	bl      ffc0c2b8 <_Workspace_Free>             
  #endif                                                              
                                                                      
   _Workspace_Free( sched );                                          
ffc0b430:	7f 63 db 78 	mr      r3,r27                                 
ffc0b434:	48 00 0e 85 	bl      ffc0c2b8 <_Workspace_Free>             
                                                                      
   _Thread_Stack_Free( the_thread );                                  
ffc0b438:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b43c:	48 00 07 89 	bl      ffc0bbc4 <_Thread_Stack_Free>          
  return false;                                                       
ffc0b440:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc0b444:	39 61 00 40 	addi    r11,r1,64                              
ffc0b448:	4b ff 51 5c 	b       ffc005a4 <_restgpr_23_x>               
                                                                      

ffc0c2f8 <_Thread_Restart>: bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) {
ffc0c2f8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0c2fc:	7c 08 02 a6 	mflr    r0                                     
ffc0c300:	90 01 00 1c 	stw     r0,28(r1)                              
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_dormant (                        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_DORMANT);                              
ffc0c304:	81 23 00 10 	lwz     r9,16(r3)                              
ffc0c308:	bf c1 00 10 	stmw    r30,16(r1)                             
ffc0c30c:	7c 7f 1b 78 	mr      r31,r3                                 
  if ( !_States_Is_dormant( the_thread->current_state ) ) {           
ffc0c310:	71 2a 00 01 	andi.   r10,r9,1                               
ffc0c314:	40 a2 00 7c 	bne+    ffc0c390 <_Thread_Restart+0x98>        
                                                                      
    _Thread_Set_transient( the_thread );                              
ffc0c318:	90 81 00 08 	stw     r4,8(r1)                               
ffc0c31c:	90 a1 00 0c 	stw     r5,12(r1)                              
ffc0c320:	48 00 00 ed 	bl      ffc0c40c <_Thread_Set_transient>       
                                                                      
    _Thread_Reset( the_thread, pointer_argument, numeric_argument );  
ffc0c324:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c328:	80 81 00 08 	lwz     r4,8(r1)                               
ffc0c32c:	80 a1 00 0c 	lwz     r5,12(r1)                              
ffc0c330:	48 00 28 6d 	bl      ffc0eb9c <_Thread_Reset>               
                                                                      
    _Thread_Load_environment( the_thread );                           
ffc0c334:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c338:	48 00 25 49 	bl      ffc0e880 <_Thread_Load_environment>    
                                                                      
    _Thread_Ready( the_thread );                                      
ffc0c33c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c340:	48 00 28 15 	bl      ffc0eb54 <_Thread_Ready>               
  );                                                                  
}                                                                     
                                                                      
static inline void _User_extensions_Thread_restart( Thread_Control *restarted )
{                                                                     
  _User_extensions_Iterate(                                           
ffc0c344:	3c 80 ff c1 	lis     r4,-63                                 
ffc0c348:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c34c:	38 84 c6 30 	addi    r4,r4,-14800                           
ffc0c350:	48 00 03 41 	bl      ffc0c690 <_User_extensions_Iterate>    
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
ffc0c354:	3d 20 00 00 	lis     r9,0                                   
ffc0c358:	39 29 2e 20 	addi    r9,r9,11808                            
                                                                      
    _User_extensions_Thread_restart( the_thread );                    
                                                                      
    if ( _Thread_Is_executing ( the_thread ) )                        
ffc0c35c:	81 49 00 10 	lwz     r10,16(r9)                             
      _Thread_Restart_self();                                         
                                                                      
    return true;                                                      
ffc0c360:	38 60 00 01 	li      r3,1                                   
ffc0c364:	7d 3e 4b 78 	mr      r30,r9                                 
                                                                      
    _Thread_Ready( the_thread );                                      
                                                                      
    _User_extensions_Thread_restart( the_thread );                    
                                                                      
    if ( _Thread_Is_executing ( the_thread ) )                        
ffc0c368:	7f 9f 50 00 	cmpw    cr7,r31,r10                            
ffc0c36c:	40 be 00 28 	bne+    cr7,ffc0c394 <_Thread_Restart+0x9c>    
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void )                
{                                                                     
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
  if ( _Thread_Executing->fp_context != NULL )                        
ffc0c370:	81 3f 01 40 	lwz     r9,320(r31)                            
ffc0c374:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c378:	41 9e 00 0c 	beq-    cr7,ffc0c384 <_Thread_Restart+0x8c>    <== NEVER TAKEN
    _Context_Restore_fp( &_Thread_Executing->fp_context );            
ffc0c37c:	38 7f 01 40 	addi    r3,r31,320                             
ffc0c380:	48 00 e7 c1 	bl      ffc1ab40 <_CPU_Context_restore_fp>     
#endif                                                                
                                                                      
  _CPU_Context_Restart_self( &_Thread_Executing->Registers );         
ffc0c384:	80 7e 00 10 	lwz     r3,16(r30)                             
ffc0c388:	38 63 00 c0 	addi    r3,r3,192                              
ffc0c38c:	48 00 e9 49 	bl      ffc1acd4 <_CPU_Context_restore>        
      _Thread_Restart_self();                                         
                                                                      
    return true;                                                      
  }                                                                   
                                                                      
  return false;                                                       
ffc0c390:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc0c394:	39 61 00 18 	addi    r11,r1,24                              
ffc0c398:	4b ff 4a 88 	b       ffc00e20 <_restgpr_30_x>               
                                                                      

ffc0e210 <_Thread_queue_Process_timeout>: #include <rtems/score/tqdata.h> void _Thread_queue_Process_timeout( Thread_Control *the_thread ) {
ffc0e210:	7c 64 1b 78 	mr      r4,r3                                  
  Thread_queue_Control *the_thread_queue = the_thread->Wait.queue;    
ffc0e214:	80 63 00 44 	lwz     r3,68(r3)                              
   *  If it is not satisfied, then it is "nothing happened" and       
   *  this is the "timeout" transition.  After a request is satisfied,
   *  a timeout is not allowed to occur.                              
   */                                                                 
                                                                      
  if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED &&
ffc0e218:	81 23 00 30 	lwz     r9,48(r3)                              
ffc0e21c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e220:	41 9e 00 30 	beq-    cr7,ffc0e250 <_Thread_queue_Process_timeout+0x40>
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
ffc0e224:	3d 40 00 00 	lis     r10,0                                  
ffc0e228:	81 4a 2e 10 	lwz     r10,11792(r10)                         
ffc0e22c:	7f 84 50 00 	cmpw    cr7,r4,r10                             
ffc0e230:	40 be 00 20 	bne+    cr7,ffc0e250 <_Thread_queue_Process_timeout+0x40><== NEVER TAKEN
       _Thread_Is_executing( the_thread ) ) {                         
    if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
ffc0e234:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc0e238:	4d 9e 00 20 	beqlr   cr7                                    
      the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
ffc0e23c:	81 23 00 3c 	lwz     r9,60(r3)                              
ffc0e240:	91 24 00 34 	stw     r9,52(r4)                              
      the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
ffc0e244:	39 20 00 02 	li      r9,2                                   
ffc0e248:	91 23 00 30 	stw     r9,48(r3)                              
ffc0e24c:	4e 80 00 20 	blr                                            
    }                                                                 
  } else {                                                            
    the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
ffc0e250:	81 23 00 3c 	lwz     r9,60(r3)                              
ffc0e254:	91 24 00 34 	stw     r9,52(r4)                              
    _Thread_queue_Extract( the_thread->Wait.queue, the_thread );      
ffc0e258:	4b ff fe 9c 	b       ffc0e0f4 <_Thread_queue_Extract>       
                                                                      

ffc0b9ec <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
ffc0b9ec:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0b9f0:	7c 08 02 a6 	mflr    r0                                     
ffc0b9f4:	bf a1 00 1c 	stmw    r29,28(r1)                             
  /*                                                                  
   * Just in case the thread really wasn't blocked on a thread queue  
   * when we get here.                                                
   */                                                                 
  if ( !the_thread_queue )                                            
ffc0b9f8:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
void _Thread_queue_Requeue(                                           
  Thread_queue_Control *the_thread_queue,                             
  Thread_Control       *the_thread                                    
)                                                                     
{                                                                     
ffc0b9fc:	90 01 00 2c 	stw     r0,44(r1)                              
  /*                                                                  
   * Just in case the thread really wasn't blocked on a thread queue  
   * when we get here.                                                
   */                                                                 
  if ( !the_thread_queue )                                            
ffc0ba00:	41 82 00 58 	beq-    ffc0ba58 <_Thread_queue_Requeue+0x6c>  <== 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 ) {
ffc0ba04:	81 3f 00 34 	lwz     r9,52(r31)                             
ffc0ba08:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0ba0c:	40 be 00 4c 	bne+    cr7,ffc0ba58 <_Thread_queue_Requeue+0x6c><== NEVER TAKEN
ffc0ba10:	7c 9e 23 78 	mr      r30,r4                                 
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0ba14:	7f a0 00 a6 	mfmsr   r29                                    
ffc0ba18:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc0ba1c:	7f aa 50 78 	andc    r10,r29,r10                            
ffc0ba20:	7d 40 01 24 	mtmsr   r10                                    
    Thread_queue_Control *tq = the_thread_queue;                      
    ISR_Level             level;                                      
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
ffc0ba24:	3d 00 00 03 	lis     r8,3                                   
ffc0ba28:	81 44 00 10 	lwz     r10,16(r4)                             
ffc0ba2c:	61 08 be e0 	ori     r8,r8,48864                            
ffc0ba30:	7d 07 50 39 	and.    r7,r8,r10                              
ffc0ba34:	41 a2 00 20 	beq+    ffc0ba54 <_Thread_queue_Requeue+0x68>  <== 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;
ffc0ba38:	91 3f 00 30 	stw     r9,48(r31)                             
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
ffc0ba3c:	38 a0 00 01 	li      r5,1                                   
ffc0ba40:	48 00 26 cd 	bl      ffc0e10c <_Thread_queue_Extract_priority_helper>
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
ffc0ba44:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ba48:	7f c4 f3 78 	mr      r4,r30                                 
ffc0ba4c:	38 a1 00 08 	addi    r5,r1,8                                
ffc0ba50:	4b ff fd 11 	bl      ffc0b760 <_Thread_queue_Enqueue_priority>
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0ba54:	7f a0 01 24 	mtmsr   r29                                    
    }                                                                 
    _ISR_Enable( level );                                             
  }                                                                   
}                                                                     
ffc0ba58:	39 61 00 28 	addi    r11,r1,40                              
ffc0ba5c:	4b ff 4b 60 	b       ffc005bc <_restgpr_29_x>               
                                                                      

ffc0ba60 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
ffc0ba60:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0ba64:	7c 08 02 a6 	mflr    r0                                     
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0ba68:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
void _Thread_queue_Timeout(                                           
  Objects_Id  id,                                                     
  void       *ignored __attribute__((unused))                         
)                                                                     
{                                                                     
ffc0ba6c:	90 01 00 1c 	stw     r0,28(r1)                              
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0ba70:	4b ff f7 41 	bl      ffc0b1b0 <_Thread_Get>                 
  switch ( location ) {                                               
ffc0ba74:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0ba78:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ba7c:	40 9e 00 18 	bne-    cr7,ffc0ba94 <_Thread_queue_Timeout+0x34><== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_queue_Process_timeout( the_thread );                    
ffc0ba80:	48 00 27 91 	bl      ffc0e210 <_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;                  
ffc0ba84:	3d 20 00 00 	lis     r9,0                                   
ffc0ba88:	81 49 28 24 	lwz     r10,10276(r9)                          
                                                                      
    --level;                                                          
ffc0ba8c:	39 4a ff ff 	addi    r10,r10,-1                             
    _Thread_Dispatch_disable_level = level;                           
ffc0ba90:	91 49 28 24 	stw     r10,10276(r9)                          
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
ffc0ba94:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0ba98:	38 21 00 18 	addi    r1,r1,24                               
ffc0ba9c:	7c 08 03 a6 	mtlr    r0                                     
ffc0baa0:	4e 80 00 20 	blr                                            
                                                                      

ffc19d40 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
ffc19d40:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc19d44:	7c 08 02 a6 	mflr    r0                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc19d48:	39 20 00 00 	li      r9,0                                   
ffc19d4c:	be 41 00 28 	stmw    r18,40(r1)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc19d50:	3a c1 00 14 	addi    r22,r1,20                              
ffc19d54:	3a 61 00 18 	addi    r19,r1,24                              
ffc19d58:	3b 21 00 0c 	addi    r25,r1,12                              
ffc19d5c:	90 01 00 64 	stw     r0,100(r1)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc19d60:	3b a1 00 08 	addi    r29,r1,8                               
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc19d64:	92 61 00 14 	stw     r19,20(r1)                             
ffc19d68:	7c 7f 1b 78 	mr      r31,r3                                 
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
ffc19d6c:	3e a0 00 00 	lis     r21,0                                  
  head->previous = NULL;                                              
ffc19d70:	91 21 00 18 	stw     r9,24(r1)                              
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
ffc19d74:	3b 43 00 30 	addi    r26,r3,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();
ffc19d78:	3e 80 00 00 	lis     r20,0                                  
  tail->previous = head;                                              
ffc19d7c:	92 c1 00 1c 	stw     r22,28(r1)                             
     /*                                                               
      *  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 ); 
ffc19d80:	3b 83 00 68 	addi    r28,r3,104                             
         *  service routine may remove a watchdog from the chain.     
         */                                                           
        _ISR_Disable( level );                                        
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
          watchdog->state = WATCHDOG_INACTIVE;                        
ffc19d84:	3a 40 00 00 	li      r18,0                                  
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc19d88:	93 21 00 08 	stw     r25,8(r1)                              
   *                                                                  
   * 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;                  
ffc19d8c:	3f 60 00 00 	lis     r27,0                                  
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
ffc19d90:	3a e3 00 08 	addi    r23,r3,8                               
  head->previous = NULL;                                              
ffc19d94:	91 21 00 0c 	stw     r9,12(r1)                              
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
ffc19d98:	3b 03 00 40 	addi    r24,r3,64                              
  tail->previous = head;                                              
ffc19d9c:	93 a1 00 10 	stw     r29,16(r1)                             
{                                                                     
  /*                                                                  
   *  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;                                    
ffc19da0:	92 df 00 78 	stw     r22,120(r31)                           
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
ffc19da4:	81 35 29 18 	lwz     r9,10520(r21)                          
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
ffc19da8:	7f 43 d3 78 	mr      r3,r26                                 
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
ffc19dac:	80 9f 00 3c 	lwz     r4,60(r31)                             
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
ffc19db0:	7f a5 eb 78 	mr      r5,r29                                 
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
ffc19db4:	91 3f 00 3c 	stw     r9,60(r31)                             
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
ffc19db8:	7c 84 48 50 	subf    r4,r4,r9                               
ffc19dbc:	48 00 46 b1 	bl      ffc1e46c <_Watchdog_Adjust_to_chain>   
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
ffc19dc0:	39 34 70 00 	addi    r9,r20,28672                           
ffc19dc4:	80 69 00 00 	lwz     r3,0(r9)                               
ffc19dc8:	3c c0 3b 9a 	lis     r6,15258                               
ffc19dcc:	80 89 00 04 	lwz     r4,4(r9)                               
ffc19dd0:	38 a0 00 00 	li      r5,0                                   
ffc19dd4:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc19dd8:	48 01 37 a1 	bl      ffc2d578 <__divdi3>                    
  Watchdog_Interval last_snapshot = watchdogs->last_snapshot;         
ffc19ddc:	80 bf 00 74 	lwz     r5,116(r31)                            
ffc19de0:	7c 9e 23 78 	mr      r30,r4                                 
  /*                                                                  
   *  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 ) {                                   
ffc19de4:	7f 84 28 40 	cmplw   cr7,r4,r5                              
ffc19de8:	40 bd 00 18 	ble+    cr7,ffc19e00 <_Timer_server_Body+0xc0> 
    /*                                                                
     *  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 );
ffc19dec:	7c 85 20 50 	subf    r4,r5,r4                               
ffc19df0:	7f 83 e3 78 	mr      r3,r28                                 
ffc19df4:	7f a5 eb 78 	mr      r5,r29                                 
ffc19df8:	48 00 46 75 	bl      ffc1e46c <_Watchdog_Adjust_to_chain>   
ffc19dfc:	48 00 00 18 	b       ffc19e14 <_Timer_server_Body+0xd4>     
                                                                      
  } else if ( snapshot < last_snapshot ) {                            
ffc19e00:	40 bc 00 14 	bge+    cr7,ffc19e14 <_Timer_server_Body+0xd4> 
     /*                                                               
      *  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 ); 
ffc19e04:	7f 83 e3 78 	mr      r3,r28                                 
ffc19e08:	38 80 00 01 	li      r4,1                                   
ffc19e0c:	7c be 28 50 	subf    r5,r30,r5                              
ffc19e10:	48 00 45 a1 	bl      ffc1e3b0 <_Watchdog_Adjust>            
  }                                                                   
                                                                      
  watchdogs->last_snapshot = snapshot;                                
ffc19e14:	93 df 00 74 	stw     r30,116(r31)                           
}                                                                     
                                                                      
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{                                                                     
  while ( true ) {                                                    
    Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
ffc19e18:	80 7f 00 78 	lwz     r3,120(r31)                            
ffc19e1c:	48 00 0a ed 	bl      ffc1a908 <_Chain_Get>                  
                                                                      
    if ( timer == NULL ) {                                            
ffc19e20:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc19e24:	41 82 00 2c 	beq-    ffc19e50 <_Timer_server_Body+0x110>    
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
ffc19e28:	81 3e 00 38 	lwz     r9,56(r30)                             
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
ffc19e2c:	7f 43 d3 78 	mr      r3,r26                                 
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
ffc19e30:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc19e34:	41 9e 00 10 	beq-    cr7,ffc19e44 <_Timer_server_Body+0x104>
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
ffc19e38:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc19e3c:	40 9e ff dc 	bne+    cr7,ffc19e18 <_Timer_server_Body+0xd8> <== NEVER TAKEN
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
ffc19e40:	7f 83 e3 78 	mr      r3,r28                                 
ffc19e44:	38 9e 00 10 	addi    r4,r30,16                              
ffc19e48:	48 00 46 c1 	bl      ffc1e508 <_Watchdog_Insert>            
ffc19e4c:	4b ff ff cc 	b       ffc19e18 <_Timer_server_Body+0xd8>     
     *  of zero it will be processed in the next iteration of the timer server
     *  body loop.                                                    
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
ffc19e50:	4b ff fe 05 	bl      ffc19c54 <ppc_interrupt_disable>       
    if ( _Chain_Is_empty( insert_chain ) ) {                          
ffc19e54:	81 21 00 14 	lwz     r9,20(r1)                              
ffc19e58:	7f 89 98 00 	cmpw    cr7,r9,r19                             
ffc19e5c:	40 be 00 1c 	bne+    cr7,ffc19e78 <_Timer_server_Body+0x138><== NEVER TAKEN
      ts->insert_chain = NULL;                                        
ffc19e60:	93 df 00 78 	stw     r30,120(r31)                           
ffc19e64:	7c 60 01 24 	mtmsr   r3                                     
  _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 ) ) {                          
ffc19e68:	81 21 00 08 	lwz     r9,8(r1)                               
ffc19e6c:	7f 89 c8 00 	cmpw    cr7,r9,r25                             
ffc19e70:	40 be 00 10 	bne+    cr7,ffc19e80 <_Timer_server_Body+0x140>
ffc19e74:	48 00 00 50 	b       ffc19ec4 <_Timer_server_Body+0x184>    
ffc19e78:	7c 60 01 24 	mtmsr   r3                                     <== NOT EXECUTED
ffc19e7c:	4b ff ff 28 	b       ffc19da4 <_Timer_server_Body+0x64>     <== 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 );                                        
ffc19e80:	4b ff fd d5 	bl      ffc19c54 <ppc_interrupt_disable>       
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc19e84:	81 21 00 08 	lwz     r9,8(r1)                               
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
ffc19e88:	7f 89 c8 00 	cmpw    cr7,r9,r25                             
ffc19e8c:	41 9e 00 30 	beq-    cr7,ffc19ebc <_Timer_server_Body+0x17c>
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
ffc19e90:	81 49 00 00 	lwz     r10,0(r9)                              
                                                                      
  head->next = new_first;                                             
  new_first->previous = head;                                         
ffc19e94:	93 aa 00 04 	stw     r29,4(r10)                             
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
ffc19e98:	91 41 00 08 	stw     r10,8(r1)                              
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
          watchdog->state = WATCHDOG_INACTIVE;                        
ffc19e9c:	92 49 00 08 	stw     r18,8(r9)                              
ffc19ea0:	7c 60 01 24 	mtmsr   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 );    
ffc19ea4:	81 49 00 1c 	lwz     r10,28(r9)                             
ffc19ea8:	80 69 00 20 	lwz     r3,32(r9)                              
ffc19eac:	80 89 00 24 	lwz     r4,36(r9)                              
ffc19eb0:	7d 49 03 a6 	mtctr   r10                                    
ffc19eb4:	4e 80 04 21 	bctrl                                          
      }                                                               
ffc19eb8:	4b ff ff c8 	b       ffc19e80 <_Timer_server_Body+0x140>    
ffc19ebc:	7c 60 01 24 	mtmsr   r3                                     
ffc19ec0:	4b ff fe e0 	b       ffc19da0 <_Timer_server_Body+0x60>     
    } else {                                                          
      ts->active = false;                                             
ffc19ec4:	39 20 00 00 	li      r9,0                                   
ffc19ec8:	99 3f 00 7c 	stb     r9,124(r31)                            
ffc19ecc:	81 3b 28 f8 	lwz     r9,10488(r27)                          
                                                                      
    ++level;                                                          
ffc19ed0:	39 29 00 01 	addi    r9,r9,1                                
    _Thread_Dispatch_disable_level = level;                           
ffc19ed4:	91 3b 28 f8 	stw     r9,10488(r27)                          
                                                                      
      /*                                                              
       *  Block until there is something to do.                       
       */                                                             
      _Thread_Disable_dispatch();                                     
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
ffc19ed8:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc19edc:	38 80 00 08 	li      r4,8                                   
ffc19ee0:	48 00 40 cd 	bl      ffc1dfac <_Thread_Set_state>           
        _Timer_server_Reset_interval_system_watchdog( ts );           
ffc19ee4:	7f e3 fb 78 	mr      r3,r31                                 
ffc19ee8:	4b ff fd 81 	bl      ffc19c68 <_Timer_server_Reset_interval_system_watchdog>
        _Timer_server_Reset_tod_system_watchdog( ts );                
ffc19eec:	7f e3 fb 78 	mr      r3,r31                                 
ffc19ef0:	4b ff fd e5 	bl      ffc19cd4 <_Timer_server_Reset_tod_system_watchdog>
      _Thread_Enable_dispatch();                                      
ffc19ef4:	48 00 36 f1 	bl      ffc1d5e4 <_Thread_Enable_dispatch>     
                                                                      
      ts->active = true;                                              
ffc19ef8:	39 20 00 01 	li      r9,1                                   
ffc19efc:	99 3f 00 7c 	stb     r9,124(r31)                            
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
ffc19f00:	7e e3 bb 78 	mr      r3,r23                                 
ffc19f04:	48 00 47 61 	bl      ffc1e664 <_Watchdog_Remove>            
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
ffc19f08:	7f 03 c3 78 	mr      r3,r24                                 
ffc19f0c:	48 00 47 59 	bl      ffc1e664 <_Watchdog_Remove>            
ffc19f10:	4b ff fe 90 	b       ffc19da0 <_Timer_server_Body+0x60>     
                                                                      

ffc19f14 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) {
ffc19f14:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc19f18:	7c 08 02 a6 	mflr    r0                                     
ffc19f1c:	90 01 00 1c 	stw     r0,28(r1)                              
  if ( ts->insert_chain == NULL ) {                                   
ffc19f20:	81 23 00 78 	lwz     r9,120(r3)                             
                                                                      
static void _Timer_server_Schedule_operation_method(                  
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
ffc19f24:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc19f28:	7c 7f 1b 78 	mr      r31,r3                                 
  if ( ts->insert_chain == NULL ) {                                   
ffc19f2c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc19f30:	40 be 01 3c 	bne+    cr7,ffc1a06c <_Timer_server_Schedule_operation_method+0x158>
   *                                                                  
   * 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;                  
ffc19f34:	3d 20 00 00 	lis     r9,0                                   
ffc19f38:	81 49 28 f8 	lwz     r10,10488(r9)                          
ffc19f3c:	7c 9e 23 78 	mr      r30,r4                                 
                                                                      
    ++level;                                                          
ffc19f40:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc19f44:	91 49 28 f8 	stw     r10,10488(r9)                          
   *  being inserted.  This could result in an integer overflow.      
   */                                                                 
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
ffc19f48:	81 24 00 38 	lwz     r9,56(r4)                              
ffc19f4c:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc19f50:	40 be 00 6c 	bne+    cr7,ffc19fbc <_Timer_server_Schedule_operation_method+0xa8>
    /*                                                                
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
ffc19f54:	4b ff fd 01 	bl      ffc19c54 <ppc_interrupt_disable>       
    snapshot = _Watchdog_Ticks_since_boot;                            
ffc19f58:	3d 20 00 00 	lis     r9,0                                   
ffc19f5c:	81 49 29 18 	lwz     r10,10520(r9)                          
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc19f60:	39 1f 00 34 	addi    r8,r31,52                              
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc19f64:	81 3f 00 30 	lwz     r9,48(r31)                             
    last_snapshot = ts->Interval_watchdogs.last_snapshot;             
ffc19f68:	80 ff 00 3c 	lwz     r7,60(r31)                             
    if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {        
ffc19f6c:	7f 89 40 00 	cmpw    cr7,r9,r8                              
ffc19f70:	41 9e 00 20 	beq-    cr7,ffc19f90 <_Timer_server_Schedule_operation_method+0x7c>
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
ffc19f74:	80 c9 00 10 	lwz     r6,16(r9)                              
      first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain );
                                                                      
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
ffc19f78:	7c e7 50 50 	subf    r7,r7,r10                              
                                                                      
      delta_interval = first_watchdog->delta_interval;                
      if (delta_interval > delta) {                                   
        delta_interval -= delta;                                      
      } else {                                                        
        delta_interval = 0;                                           
ffc19f7c:	39 00 00 00 	li      r8,0                                   
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
      if (delta_interval > delta) {                                   
ffc19f80:	7f 86 38 40 	cmplw   cr7,r6,r7                              
ffc19f84:	40 9d 00 08 	ble-    cr7,ffc19f8c <_Timer_server_Schedule_operation_method+0x78>
        delta_interval -= delta;                                      
ffc19f88:	7d 07 30 50 	subf    r8,r7,r6                               
      } else {                                                        
        delta_interval = 0;                                           
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
ffc19f8c:	91 09 00 10 	stw     r8,16(r9)                              
    }                                                                 
    ts->Interval_watchdogs.last_snapshot = snapshot;                  
ffc19f90:	91 5f 00 3c 	stw     r10,60(r31)                            
ffc19f94:	7c 60 01 24 	mtmsr   r3                                     
    _ISR_Enable( level );                                             
                                                                      
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
ffc19f98:	38 7f 00 30 	addi    r3,r31,48                              
ffc19f9c:	38 9e 00 10 	addi    r4,r30,16                              
ffc19fa0:	48 00 45 69 	bl      ffc1e508 <_Watchdog_Insert>            
                                                                      
    if ( !ts->active ) {                                              
ffc19fa4:	89 3f 00 7c 	lbz     r9,124(r31)                            
ffc19fa8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc19fac:	40 be 00 ac 	bne+    cr7,ffc1a058 <_Timer_server_Schedule_operation_method+0x144>
      _Timer_server_Reset_interval_system_watchdog( ts );             
ffc19fb0:	7f e3 fb 78 	mr      r3,r31                                 
ffc19fb4:	4b ff fc b5 	bl      ffc19c68 <_Timer_server_Reset_interval_system_watchdog>
ffc19fb8:	48 00 00 a0 	b       ffc1a058 <_Timer_server_Schedule_operation_method+0x144>
    }                                                                 
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
ffc19fbc:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc19fc0:	40 be 00 98 	bne+    cr7,ffc1a058 <_Timer_server_Schedule_operation_method+0x144>
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
ffc19fc4:	4b ff fc 91 	bl      ffc19c54 <ppc_interrupt_disable>       
ffc19fc8:	7c 7d 1b 78 	mr      r29,r3                                 
ffc19fcc:	3d 20 00 00 	lis     r9,0                                   
ffc19fd0:	39 29 70 00 	addi    r9,r9,28672                            
ffc19fd4:	80 69 00 00 	lwz     r3,0(r9)                               
ffc19fd8:	3c c0 3b 9a 	lis     r6,15258                               
ffc19fdc:	80 89 00 04 	lwz     r4,4(r9)                               
ffc19fe0:	38 a0 00 00 	li      r5,0                                   
ffc19fe4:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc19fe8:	48 01 35 91 	bl      ffc2d578 <__divdi3>                    
ffc19fec:	81 3f 00 68 	lwz     r9,104(r31)                            
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc19ff0:	39 1f 00 6c 	addi    r8,r31,108                             
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
ffc19ff4:	81 5f 00 74 	lwz     r10,116(r31)                           
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
ffc19ff8:	7f 89 40 00 	cmpw    cr7,r9,r8                              
ffc19ffc:	41 9e 00 34 	beq-    cr7,ffc1a030 <_Timer_server_Schedule_operation_method+0x11c>
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
      if ( snapshot > last_snapshot ) {                               
ffc1a000:	7f 84 50 40 	cmplw   cr7,r4,r10                             
    _ISR_Disable( level );                                            
    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;                
ffc1a004:	81 09 00 10 	lwz     r8,16(r9)                              
      if ( snapshot > last_snapshot ) {                               
ffc1a008:	40 9d 00 1c 	ble-    cr7,ffc1a024 <_Timer_server_Schedule_operation_method+0x110>
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
ffc1a00c:	7c ea 20 50 	subf    r7,r10,r4                              
        if (delta_interval > delta) {                                 
ffc1a010:	7f 88 38 40 	cmplw   cr7,r8,r7                              
          delta_interval -= delta;                                    
        } else {                                                      
          delta_interval = 0;                                         
ffc1a014:	39 40 00 00 	li      r10,0                                  
      if ( snapshot > last_snapshot ) {                               
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
        if (delta_interval > delta) {                                 
ffc1a018:	40 9d 00 14 	ble-    cr7,ffc1a02c <_Timer_server_Schedule_operation_method+0x118><== NEVER TAKEN
          delta_interval -= delta;                                    
ffc1a01c:	7d 47 40 50 	subf    r10,r7,r8                              
ffc1a020:	48 00 00 0c 	b       ffc1a02c <_Timer_server_Schedule_operation_method+0x118>
        }                                                             
      } else {                                                        
        /*                                                            
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
ffc1a024:	7d 48 52 14 	add     r10,r8,r10                             
        delta_interval += delta;                                      
ffc1a028:	7d 44 50 50 	subf    r10,r4,r10                             
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
ffc1a02c:	91 49 00 10 	stw     r10,16(r9)                             
    }                                                                 
    ts->TOD_watchdogs.last_snapshot = snapshot;                       
ffc1a030:	90 9f 00 74 	stw     r4,116(r31)                            
ffc1a034:	7f a0 01 24 	mtmsr   r29                                    
    _ISR_Enable( level );                                             
                                                                      
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
ffc1a038:	38 7f 00 68 	addi    r3,r31,104                             
ffc1a03c:	38 9e 00 10 	addi    r4,r30,16                              
ffc1a040:	48 00 44 c9 	bl      ffc1e508 <_Watchdog_Insert>            
                                                                      
    if ( !ts->active ) {                                              
ffc1a044:	89 3f 00 7c 	lbz     r9,124(r31)                            
ffc1a048:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1a04c:	40 be 00 0c 	bne+    cr7,ffc1a058 <_Timer_server_Schedule_operation_method+0x144><== NEVER TAKEN
      _Timer_server_Reset_tod_system_watchdog( ts );                  
ffc1a050:	7f e3 fb 78 	mr      r3,r31                                 
ffc1a054:	4b ff fc 81 	bl      ffc19cd4 <_Timer_server_Reset_tod_system_watchdog>
     *  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 );           
  }                                                                   
}                                                                     
ffc1a058:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc1a05c:	bb a1 00 0c 	lmw     r29,12(r1)                             
ffc1a060:	7c 08 03 a6 	mtlr    r0                                     
ffc1a064:	38 21 00 18 	addi    r1,r1,24                               
    if ( !ts->active ) {                                              
      _Timer_server_Reset_tod_system_watchdog( ts );                  
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
ffc1a068:	48 00 35 7c 	b       ffc1d5e4 <_Thread_Enable_dispatch>     
     *  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 );           
  }                                                                   
}                                                                     
ffc1a06c:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc1a070:	bb a1 00 0c 	lmw     r29,12(r1)                             
ffc1a074:	7c 08 03 a6 	mtlr    r0                                     
     *  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 );           
ffc1a078:	80 63 00 78 	lwz     r3,120(r3)                             
  }                                                                   
}                                                                     
ffc1a07c:	38 21 00 18 	addi    r1,r1,24                               
     *  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 );           
ffc1a080:	48 00 08 58 	b       ffc1a8d8 <_Chain_Append>               
                                                                      

ffc0d54c <_Timestamp64_Divide>: const Timestamp64_Control *_lhs, const Timestamp64_Control *_rhs, uint32_t *_ival_percentage, uint32_t *_fval_percentage ) {
ffc0d54c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0d550:	7c 08 02 a6 	mflr    r0                                     
ffc0d554:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0d558:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc0d55c:	7c be 2b 78 	mr      r30,r5                                 
ffc0d560:	7c df 33 78 	mr      r31,r6                                 
  Timestamp64_Control answer;                                         
                                                                      
  if ( *_rhs == 0 ) {                                                 
ffc0d564:	80 a4 00 00 	lwz     r5,0(r4)                               
ffc0d568:	81 24 00 04 	lwz     r9,4(r4)                               
ffc0d56c:	7c a8 4b 79 	or.     r8,r5,r9                               
ffc0d570:	40 a2 00 10 	bne+    ffc0d580 <_Timestamp64_Divide+0x34>    <== ALWAYS TAKEN
    *_ival_percentage = 0;                                            
ffc0d574:	91 1e 00 00 	stw     r8,0(r30)                              <== NOT EXECUTED
    *_fval_percentage = 0;                                            
ffc0d578:	91 06 00 00 	stw     r8,0(r6)                               <== NOT EXECUTED
    return;                                                           
ffc0d57c:	48 00 00 5c 	b       ffc0d5d8 <_Timestamp64_Divide+0x8c>    <== NOT EXECUTED
   *  This looks odd but gives the results the proper precision.      
   *                                                                  
   *  TODO: Rounding on the last digit of the fval.                   
   */                                                                 
                                                                      
  answer = (*_lhs * 100000) / *_rhs;                                  
ffc0d580:	80 c3 00 04 	lwz     r6,4(r3)                               
ffc0d584:	3d 00 00 01 	lis     r8,1                                   
ffc0d588:	80 e3 00 00 	lwz     r7,0(r3)                               
ffc0d58c:	61 08 86 a0 	ori     r8,r8,34464                            
ffc0d590:	7c 68 30 16 	mulhwu  r3,r8,r6                               
ffc0d594:	7c e8 39 d6 	mullw   r7,r8,r7                               
ffc0d598:	7c 88 31 d6 	mullw   r4,r8,r6                               
ffc0d59c:	7c 67 1a 14 	add     r3,r7,r3                               
ffc0d5a0:	7d 26 4b 78 	mr      r6,r9                                  
ffc0d5a4:	48 00 dd 7d 	bl      ffc1b320 <__divdi3>                    
                                                                      
  *_ival_percentage = answer / 1000;                                  
ffc0d5a8:	38 a0 00 00 	li      r5,0                                   
ffc0d5ac:	38 c0 03 e8 	li      r6,1000                                
   *  This looks odd but gives the results the proper precision.      
   *                                                                  
   *  TODO: Rounding on the last digit of the fval.                   
   */                                                                 
                                                                      
  answer = (*_lhs * 100000) / *_rhs;                                  
ffc0d5b0:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0d5b4:	7c 9d 23 78 	mr      r29,r4                                 
                                                                      
  *_ival_percentage = answer / 1000;                                  
ffc0d5b8:	48 00 dd 69 	bl      ffc1b320 <__divdi3>                    
ffc0d5bc:	90 9e 00 00 	stw     r4,0(r30)                              
  *_fval_percentage = answer % 1000;                                  
ffc0d5c0:	7f 83 e3 78 	mr      r3,r28                                 
ffc0d5c4:	7f a4 eb 78 	mr      r4,r29                                 
ffc0d5c8:	38 a0 00 00 	li      r5,0                                   
ffc0d5cc:	38 c0 03 e8 	li      r6,1000                                
ffc0d5d0:	48 00 e1 75 	bl      ffc1b744 <__moddi3>                    
ffc0d5d4:	90 9f 00 00 	stw     r4,0(r31)                              
}                                                                     
ffc0d5d8:	39 61 00 18 	addi    r11,r1,24                              
ffc0d5dc:	4b ff 3d 54 	b       ffc01330 <_restgpr_28_x>               
                                                                      

ffc0d840 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
ffc0d840:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0d844:	7c 08 02 a6 	mflr    r0                                     
ffc0d848:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0d84c:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc0d850:	7c 7e 1b 78 	mr      r30,r3                                 
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0d854:	7d 20 00 a6 	mfmsr   r9                                     
ffc0d858:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc0d85c:	7d 2a 50 78 	andc    r10,r9,r10                             
ffc0d860:	7d 40 01 24 	mtmsr   r10                                    
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0d864:	81 43 00 00 	lwz     r10,0(r3)                              
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0d868:	3b a3 00 04 	addi    r29,r3,4                               
   *       hence the compiler must not assume *header to remain       
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
ffc0d86c:	7f 8a e8 00 	cmpw    cr7,r10,r29                            
ffc0d870:	41 9e 00 80 	beq-    cr7,ffc0d8f0 <_Watchdog_Adjust+0xb0>   
    switch ( direction ) {                                            
ffc0d874:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0d878:	7c bf 2b 78 	mr      r31,r5                                 
ffc0d87c:	41 9e 00 68 	beq-    cr7,ffc0d8e4 <_Watchdog_Adjust+0xa4>   
ffc0d880:	2f 84 00 01 	cmpwi   cr7,r4,1                               
ffc0d884:	40 be 00 6c 	bne+    cr7,ffc0d8f0 <_Watchdog_Adjust+0xb0>   <== NEVER TAKEN
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
ffc0d888:	81 0a 00 10 	lwz     r8,16(r10)                             
ffc0d88c:	7f e8 2a 14 	add     r31,r8,r5                              
ffc0d890:	48 00 00 18 	b       ffc0d8a8 <_Watchdog_Adjust+0x68>       
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc0d894:	81 5e 00 00 	lwz     r10,0(r30)                             
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
ffc0d898:	81 0a 00 10 	lwz     r8,16(r10)                             
ffc0d89c:	7f 9f 40 40 	cmplw   cr7,r31,r8                             
ffc0d8a0:	40 bc 00 10 	bge+    cr7,ffc0d8b0 <_Watchdog_Adjust+0x70>   
            _Watchdog_First( header )->delta_interval -= units;       
ffc0d8a4:	7f ff 40 50 	subf    r31,r31,r8                             
ffc0d8a8:	93 ea 00 10 	stw     r31,16(r10)                            
            break;                                                    
ffc0d8ac:	48 00 00 44 	b       ffc0d8f0 <_Watchdog_Adjust+0xb0>       
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
ffc0d8b0:	93 8a 00 10 	stw     r28,16(r10)                            
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
ffc0d8b4:	7f e8 f8 50 	subf    r31,r8,r31                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0d8b8:	7d 20 01 24 	mtmsr   r9                                     
            _Watchdog_First( header )->delta_interval = 1;            
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
ffc0d8bc:	7f c3 f3 78 	mr      r3,r30                                 
ffc0d8c0:	48 00 02 41 	bl      ffc0db00 <_Watchdog_Tickle>            
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0d8c4:	7d 20 00 a6 	mfmsr   r9                                     
ffc0d8c8:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc0d8cc:	7d 2a 50 78 	andc    r10,r9,r10                             
ffc0d8d0:	7d 40 01 24 	mtmsr   r10                                    
                                                                      
            _ISR_Disable( level );                                    
                                                                      
            if ( _Chain_Is_empty( header ) )                          
ffc0d8d4:	81 5e 00 00 	lwz     r10,0(r30)                             
ffc0d8d8:	7f 8a e8 00 	cmpw    cr7,r10,r29                            
ffc0d8dc:	40 be 00 0c 	bne+    cr7,ffc0d8e8 <_Watchdog_Adjust+0xa8>   
ffc0d8e0:	48 00 00 10 	b       ffc0d8f0 <_Watchdog_Adjust+0xb0>       
          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;            
ffc0d8e4:	3b 80 00 01 	li      r28,1                                  
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
ffc0d8e8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0d8ec:	40 9e ff a8 	bne+    cr7,ffc0d894 <_Watchdog_Adjust+0x54>   <== ALWAYS TAKEN
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0d8f0:	7d 20 01 24 	mtmsr   r9                                     
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
                                                                      
}                                                                     
ffc0d8f4:	39 61 00 18 	addi    r11,r1,24                              
ffc0d8f8:	4b ff 3a 38 	b       ffc01330 <_restgpr_28_x>               
                                                                      

ffc0c018 <_Watchdog_Remove>: #include <rtems/score/watchdog.h> Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) {
ffc0c018:	7c 69 1b 78 	mr      r9,r3                                  
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0c01c:	7c c0 00 a6 	mfmsr   r6                                     
ffc0c020:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc0c024:	7c ca 50 78 	andc    r10,r6,r10                             
ffc0c028:	7d 40 01 24 	mtmsr   r10                                    
  ISR_Level         level;                                            
  Watchdog_States   previous_state;                                   
  Watchdog_Control *next_watchdog;                                    
                                                                      
  _ISR_Disable( level );                                              
  previous_state = the_watchdog->state;                               
ffc0c02c:	80 63 00 08 	lwz     r3,8(r3)                               
  switch ( previous_state ) {                                         
ffc0c030:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc0c034:	41 9e 00 18 	beq-    cr7,ffc0c04c <_Watchdog_Remove+0x34>   
ffc0c038:	2b 83 00 01 	cmplwi  cr7,r3,1                               
ffc0c03c:	41 9c 00 70 	blt-    cr7,ffc0c0ac <_Watchdog_Remove+0x94>   
ffc0c040:	2b 83 00 03 	cmplwi  cr7,r3,3                               
ffc0c044:	41 9d 00 68 	bgt-    cr7,ffc0c0ac <_Watchdog_Remove+0x94>   <== NEVER TAKEN
ffc0c048:	48 00 00 10 	b       ffc0c058 <_Watchdog_Remove+0x40>       
                                                                      
      /*                                                              
       *  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;                        
ffc0c04c:	39 40 00 00 	li      r10,0                                  
ffc0c050:	91 49 00 08 	stw     r10,8(r9)                              
      break;                                                          
ffc0c054:	48 00 00 58 	b       ffc0c0ac <_Watchdog_Remove+0x94>       
                                                                      
    case WATCHDOG_ACTIVE:                                             
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
ffc0c058:	39 40 00 00 	li      r10,0                                  
ffc0c05c:	91 49 00 08 	stw     r10,8(r9)                              
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
ffc0c060:	81 49 00 00 	lwz     r10,0(r9)                              
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
      next_watchdog = _Watchdog_Next( the_watchdog );                 
                                                                      
      if ( _Watchdog_Next(next_watchdog) )                            
ffc0c064:	81 0a 00 00 	lwz     r8,0(r10)                              
ffc0c068:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0c06c:	41 9e 00 14 	beq-    cr7,ffc0c080 <_Watchdog_Remove+0x68>   
        next_watchdog->delta_interval += the_watchdog->delta_interval;
ffc0c070:	80 ea 00 10 	lwz     r7,16(r10)                             
ffc0c074:	81 09 00 10 	lwz     r8,16(r9)                              
ffc0c078:	7d 07 42 14 	add     r8,r7,r8                               
ffc0c07c:	91 0a 00 10 	stw     r8,16(r10)                             
                                                                      
      if ( _Watchdog_Sync_count )                                     
ffc0c080:	3d 00 00 00 	lis     r8,0                                   
ffc0c084:	81 08 28 40 	lwz     r8,10304(r8)                           
ffc0c088:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0c08c:	41 9e 00 14 	beq-    cr7,ffc0c0a0 <_Watchdog_Remove+0x88>   
        _Watchdog_Sync_level = _ISR_Nest_level;                       
ffc0c090:	3d 00 00 00 	lis     r8,0                                   
ffc0c094:	80 e8 2e 08 	lwz     r7,11784(r8)                           
ffc0c098:	3d 00 00 00 	lis     r8,0                                   
ffc0c09c:	90 e8 28 38 	stw     r7,10296(r8)                           
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
ffc0c0a0:	81 09 00 04 	lwz     r8,4(r9)                               
  next->previous = previous;                                          
ffc0c0a4:	91 0a 00 04 	stw     r8,4(r10)                              
  previous->next = next;                                              
ffc0c0a8:	91 48 00 00 	stw     r10,0(r8)                              
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
ffc0c0ac:	3d 40 00 00 	lis     r10,0                                  
ffc0c0b0:	81 4a 28 44 	lwz     r10,10308(r10)                         
ffc0c0b4:	91 49 00 18 	stw     r10,24(r9)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0c0b8:	7c c0 01 24 	mtmsr   r6                                     
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
ffc0c0bc:	4e 80 00 20 	blr                                            
                                                                      

ffc0c0c0 <_Watchdog_Tickle>: #include <rtems/score/watchdog.h> void _Watchdog_Tickle( Chain_Control *header ) {
ffc0c0c0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0c0c4:	7c 08 02 a6 	mflr    r0                                     
ffc0c0c8:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0c0cc:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc0c0d0:	7c 7e 1b 78 	mr      r30,r3                                 
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0c0d4:	7f a0 00 a6 	mfmsr   r29                                    
ffc0c0d8:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0c0dc:	7f a9 48 78 	andc    r9,r29,r9                              
ffc0c0e0:	7d 20 01 24 	mtmsr   r9                                     
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0c0e4:	83 e3 00 00 	lwz     r31,0(r3)                              
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0c0e8:	3b 83 00 04 	addi    r28,r3,4                               
   * volatile data - till, 2003/7                                     
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
                                                                      
  if ( _Chain_Is_empty( header ) )                                    
ffc0c0ec:	7f 9f e0 00 	cmpw    cr7,r31,r28                            
ffc0c0f0:	41 9e 00 6c 	beq-    cr7,ffc0c15c <_Watchdog_Tickle+0x9c>   
   * 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) {                            
ffc0c0f4:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0c0f8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c0fc:	41 9e 00 14 	beq-    cr7,ffc0c110 <_Watchdog_Tickle+0x50>   <== NEVER TAKEN
    the_watchdog->delta_interval--;                                   
ffc0c100:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0c104:	91 3f 00 10 	stw     r9,16(r31)                             
    if ( the_watchdog->delta_interval != 0 )                          
ffc0c108:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c10c:	40 9e 00 50 	bne-    cr7,ffc0c15c <_Watchdog_Tickle+0x9c>   
      goto leave;                                                     
  }                                                                   
                                                                      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
ffc0c110:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c114:	4b ff ff 05 	bl      ffc0c018 <_Watchdog_Remove>            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0c118:	7f a0 01 24 	mtmsr   r29                                    
                                                                      
     _ISR_Enable( level );                                            
                                                                      
     switch( watchdog_state ) {                                       
ffc0c11c:	2f 83 00 02 	cmpwi   cr7,r3,2                               
ffc0c120:	40 be 00 18 	bne+    cr7,ffc0c138 <_Watchdog_Tickle+0x78>   
       case WATCHDOG_ACTIVE:                                          
         (*the_watchdog->routine)(                                    
ffc0c124:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc0c128:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc0c12c:	80 9f 00 24 	lwz     r4,36(r31)                             
ffc0c130:	7d 29 03 a6 	mtctr   r9                                     
ffc0c134:	4e 80 04 21 	bctrl                                          
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0c138:	7f a0 00 a6 	mfmsr   r29                                    
ffc0c13c:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0c140:	7f a9 48 78 	andc    r9,r29,r9                              
ffc0c144:	7d 20 01 24 	mtmsr   r9                                     
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc0c148:	83 fe 00 00 	lwz     r31,0(r30)                             
                                                                      
     _ISR_Disable( level );                                           
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
ffc0c14c:	7f 9f e0 00 	cmpw    cr7,r31,r28                            
ffc0c150:	41 9e 00 0c 	beq-    cr7,ffc0c15c <_Watchdog_Tickle+0x9c>   
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
ffc0c154:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0c158:	4b ff ff b0 	b       ffc0c108 <_Watchdog_Tickle+0x48>       
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0c15c:	7f a0 01 24 	mtmsr   r29                                    
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
ffc0c160:	39 61 00 18 	addi    r11,r1,24                              
ffc0c164:	4b ff 44 54 	b       ffc005b8 <_restgpr_28_x>               
                                                                      

ffc0c168 <_Workspace_Handler_initialization>: 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();
ffc0c168:	3d 40 ff c2 	lis     r10,-62                                
void _Workspace_Handler_initialization(                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
ffc0c16c:	7d 80 00 26 	mfcr    r12                                    
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
  uintptr_t remaining = rtems_configuration_get_work_space_size();    
ffc0c170:	39 2a ad 58 	addi    r9,r10,-21160                          
void _Workspace_Handler_initialization(                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
ffc0c174:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0c178:	7c 08 02 a6 	mflr    r0                                     
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
  uintptr_t remaining = rtems_configuration_get_work_space_size();    
ffc0c17c:	89 09 00 32 	lbz     r8,50(r9)                              
void _Workspace_Handler_initialization(                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
ffc0c180:	bf 01 00 10 	stmw    r24,16(r1)                             
ffc0c184:	7c 99 23 78 	mr      r25,r4                                 
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
  uintptr_t remaining = rtems_configuration_get_work_space_size();    
ffc0c188:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0c18c:	83 ca ad 58 	lwz     r30,-21160(r10)                        
void _Workspace_Handler_initialization(                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
ffc0c190:	7c ba 2b 78 	mr      r26,r5                                 
ffc0c194:	90 01 00 34 	stw     r0,52(r1)                              
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
  uintptr_t remaining = rtems_configuration_get_work_space_size();    
ffc0c198:	39 40 00 00 	li      r10,0                                  
void _Workspace_Handler_initialization(                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
ffc0c19c:	91 81 00 0c 	stw     r12,12(r1)                             
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
  uintptr_t remaining = rtems_configuration_get_work_space_size();    
ffc0c1a0:	40 9e 00 08 	bne-    cr7,ffc0c1a8 <_Workspace_Handler_initialization+0x40>
ffc0c1a4:	81 49 00 04 	lwz     r10,4(r9)                              
ffc0c1a8:	7f ca f2 14 	add     r30,r10,r30                            
  bool do_zero = rtems_configuration_get_do_zero_of_workspace();      
ffc0c1ac:	89 49 00 30 	lbz     r10,48(r9)                             
  bool unified = rtems_configuration_get_unified_work_area();         
ffc0c1b0:	89 29 00 31 	lbz     r9,49(r9)                              
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
ffc0c1b4:	3f 60 ff c1 	lis     r27,-63                                
        } else {                                                      
          size = 0;                                                   
        }                                                             
      }                                                               
                                                                      
      space_available = (*init_or_extend)(                            
ffc0c1b8:	3f 00 00 00 	lis     r24,0                                  
ffc0c1bc:	7c 7f 1b 78 	mr      r31,r3                                 
  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) {                                  
ffc0c1c0:	3b 80 00 00 	li      r28,0                                  
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
ffc0c1c4:	3b 7b 9a f8 	addi    r27,r27,-25864                         
  size_t i;                                                           
                                                                      
  for (i = 0; i < area_count; ++i) {                                  
    Heap_Area *area = &areas [i];                                     
                                                                      
    if ( do_zero ) {                                                  
ffc0c1c8:	2e 0a 00 00 	cmpwi   cr4,r10,0                              
                                                                      
    if ( area->size > overhead ) {                                    
      uintptr_t space_available;                                      
      uintptr_t size;                                                 
                                                                      
      if ( unified ) {                                                
ffc0c1cc:	2d 89 00 00 	cmpwi   cr3,r9,0                               
        } else {                                                      
          size = 0;                                                   
        }                                                             
      }                                                               
                                                                      
      space_available = (*init_or_extend)(                            
ffc0c1d0:	3b 18 2c 94 	addi    r24,r24,11412                          
  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) {                                  
ffc0c1d4:	48 00 00 9c 	b       ffc0c270 <_Workspace_Handler_initialization+0x108>
    Heap_Area *area = &areas [i];                                     
                                                                      
    if ( do_zero ) {                                                  
ffc0c1d8:	41 b2 00 14 	beq+    cr4,ffc0c1ec <_Workspace_Handler_initialization+0x84>
      memset( area->begin, 0, area->size );                           
ffc0c1dc:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc0c1e0:	38 80 00 00 	li      r4,0                                   
ffc0c1e4:	80 bf 00 04 	lwz     r5,4(r31)                              
ffc0c1e8:	48 00 44 49 	bl      ffc10630 <memset>                      
    }                                                                 
                                                                      
    if ( area->size > overhead ) {                                    
ffc0c1ec:	83 bf 00 04 	lwz     r29,4(r31)                             
ffc0c1f0:	2b 9d 00 16 	cmplwi  cr7,r29,22                             
ffc0c1f4:	40 9d 00 74 	ble-    cr7,ffc0c268 <_Workspace_Handler_initialization+0x100>
      uintptr_t space_available;                                      
      uintptr_t size;                                                 
                                                                      
      if ( unified ) {                                                
ffc0c1f8:	40 8e 00 24 	bne-    cr3,ffc0c21c <_Workspace_Handler_initialization+0xb4>
        size = area->size;                                            
      } else {                                                        
        if ( remaining > 0 ) {                                        
ffc0c1fc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0c200:	41 9e 00 18 	beq-    cr7,ffc0c218 <_Workspace_Handler_initialization+0xb0><== NEVER TAKEN
          size = remaining < area->size - overhead ?                  
ffc0c204:	39 3d ff ea 	addi    r9,r29,-22                             
            remaining + overhead : area->size;                        
ffc0c208:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc0c20c:	40 9c 00 10 	bge-    cr7,ffc0c21c <_Workspace_Handler_initialization+0xb4><== NEVER TAKEN
ffc0c210:	3b be 00 16 	addi    r29,r30,22                             
ffc0c214:	48 00 00 08 	b       ffc0c21c <_Workspace_Handler_initialization+0xb4>
        } else {                                                      
          size = 0;                                                   
ffc0c218:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
        }                                                             
      }                                                               
                                                                      
      space_available = (*init_or_extend)(                            
ffc0c21c:	7f a5 eb 78 	mr      r5,r29                                 
ffc0c220:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc0c224:	7f 03 c3 78 	mr      r3,r24                                 
ffc0c228:	7f 69 03 a6 	mtctr   r27                                    
ffc0c22c:	38 c0 00 08 	li      r6,8                                   
ffc0c230:	4e 80 04 21 	bctrl                                          
        area->begin,                                                  
        size,                                                         
        page_size                                                     
      );                                                              
                                                                      
      area->begin = (char *) area->begin + size;                      
ffc0c234:	81 3f 00 00 	lwz     r9,0(r31)                              
      area->size -= size;                                             
                                                                      
      if ( space_available < remaining ) {                            
ffc0c238:	7f 83 f0 40 	cmplw   cr7,r3,r30                             
        area->begin,                                                  
        size,                                                         
        page_size                                                     
      );                                                              
                                                                      
      area->begin = (char *) area->begin + size;                      
ffc0c23c:	7d 29 ea 14 	add     r9,r9,r29                              
ffc0c240:	91 3f 00 00 	stw     r9,0(r31)                              
      area->size -= size;                                             
ffc0c244:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0c248:	7f bd 48 50 	subf    r29,r29,r9                             
ffc0c24c:	93 bf 00 04 	stw     r29,4(r31)                             
                                                                      
      if ( space_available < remaining ) {                            
ffc0c250:	40 9c 00 10 	bge-    cr7,ffc0c260 <_Workspace_Handler_initialization+0xf8><== ALWAYS TAKEN
        remaining -= space_available;                                 
ffc0c254:	7f c3 f0 50 	subf    r30,r3,r30                             <== NOT EXECUTED
      } else {                                                        
        remaining = 0;                                                
      }                                                               
                                                                      
      init_or_extend = extend;                                        
ffc0c258:	7f 5b d3 78 	mr      r27,r26                                <== NOT EXECUTED
ffc0c25c:	48 00 00 0c 	b       ffc0c268 <_Workspace_Handler_initialization+0x100><== NOT EXECUTED
ffc0c260:	7f 5b d3 78 	mr      r27,r26                                
      area->size -= size;                                             
                                                                      
      if ( space_available < remaining ) {                            
        remaining -= space_available;                                 
      } else {                                                        
        remaining = 0;                                                
ffc0c264:	3b c0 00 00 	li      r30,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) {                                  
ffc0c268:	3b 9c 00 01 	addi    r28,r28,1                              
ffc0c26c:	3b ff 00 08 	addi    r31,r31,8                              
ffc0c270:	7f 9c c8 00 	cmpw    cr7,r28,r25                            
ffc0c274:	40 9e ff 64 	bne+    cr7,ffc0c1d8 <_Workspace_Handler_initialization+0x70>
                                                                      
      init_or_extend = extend;                                        
    }                                                                 
  }                                                                   
                                                                      
  if ( remaining > 0 ) {                                              
ffc0c278:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0c27c:	41 be 00 14 	beq+    cr7,ffc0c290 <_Workspace_Handler_initialization+0x128>
    _Internal_error_Occurred(                                         
ffc0c280:	38 60 00 00 	li      r3,0                                   
ffc0c284:	38 80 00 01 	li      r4,1                                   
ffc0c288:	38 a0 00 02 	li      r5,2                                   
ffc0c28c:	4b ff da ed 	bl      ffc09d78 <_Internal_error_Occurred>    
      INTERNAL_ERROR_CORE,                                            
      true,                                                           
      INTERNAL_ERROR_TOO_LITTLE_WORKSPACE                             
    );                                                                
  }                                                                   
}                                                                     
ffc0c290:	81 81 00 0c 	lwz     r12,12(r1)                             
ffc0c294:	39 61 00 30 	addi    r11,r1,48                              
ffc0c298:	7d 81 81 20 	mtcrf   24,r12                                 
ffc0c29c:	4b ff 43 0c 	b       ffc005a8 <_restgpr_24_x>               
                                                                      

ffc0bc58 <_Workspace_String_duplicate>: char *_Workspace_String_duplicate( const char *string, size_t len ) {
ffc0bc58:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0bc5c:	7c 08 02 a6 	mflr    r0                                     
ffc0bc60:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc0bc64:	7c 7d 1b 78 	mr      r29,r3                                 
  char *dup = _Workspace_Allocate(len + 1);                           
ffc0bc68:	38 64 00 01 	addi    r3,r4,1                                
                                                                      
char *_Workspace_String_duplicate(                                    
  const char *string,                                                 
  size_t len                                                          
)                                                                     
{                                                                     
ffc0bc6c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0bc70:	7c 9f 23 78 	mr      r31,r4                                 
  char *dup = _Workspace_Allocate(len + 1);                           
ffc0bc74:	4b ff ff 75 	bl      ffc0bbe8 <_Workspace_Allocate>         
                                                                      
  if (dup != NULL) {                                                  
ffc0bc78:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0bc7c:	41 82 00 18 	beq-    ffc0bc94 <_Workspace_String_duplicate+0x3c><== NEVER TAKEN
    dup [len] = '\0';                                                 
ffc0bc80:	39 20 00 00 	li      r9,0                                   
ffc0bc84:	7d 3e f9 ae 	stbx    r9,r30,r31                             
    memcpy(dup, string, len);                                         
ffc0bc88:	7f a4 eb 78 	mr      r4,r29                                 
ffc0bc8c:	7f e5 fb 78 	mr      r5,r31                                 
ffc0bc90:	48 00 41 2d 	bl      ffc0fdbc <memcpy>                      
  }                                                                   
                                                                      
  return dup;                                                         
}                                                                     
ffc0bc94:	39 61 00 18 	addi    r11,r1,24                              
ffc0bc98:	7f c3 f3 78 	mr      r3,r30                                 
ffc0bc9c:	48 00 83 64 	b       ffc14000 <_restgpr_29_x>               
                                                                      

ffc1a4d0 <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; }
ffc1a4d0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1a4d4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc13b98 <_fat_block_read>: uint32_t start, uint32_t offset, uint32_t count, void *buff ) {
ffc13b98:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc13b9c:	7c 08 02 a6 	mflr    r0                                     
ffc13ba0:	bf 21 00 1c 	stmw    r25,28(r1)                             
ffc13ba4:	7c 7a 1b 78 	mr      r26,r3                                 
ffc13ba8:	7c df 33 78 	mr      r31,r6                                 
ffc13bac:	90 01 00 3c 	stw     r0,60(r1)                              
ffc13bb0:	7c f9 3b 78 	mr      r25,r7                                 
    int                     rc = RC_OK;                               
    ssize_t                 cmpltd = 0;                               
    uint32_t                sec_num = start;                          
    uint32_t                ofs = offset;                             
ffc13bb4:	7c bb 2b 78 	mr      r27,r5                                 
    void                                 *buff                        
    )                                                                 
{                                                                     
    int                     rc = RC_OK;                               
    ssize_t                 cmpltd = 0;                               
    uint32_t                sec_num = start;                          
ffc13bb8:	7c 9c 23 78 	mr      r28,r4                                 
    uint32_t                              count,                      
    void                                 *buff                        
    )                                                                 
{                                                                     
    int                     rc = RC_OK;                               
    ssize_t                 cmpltd = 0;                               
ffc13bbc:	3b c0 00 00 	li      r30,0                                  
    uint32_t                sec_num = start;                          
    uint32_t                ofs = offset;                             
    uint8_t                *sec_buf;                                  
    uint32_t                c = 0;                                    
                                                                      
    while (count > 0)                                                 
ffc13bc0:	48 00 00 58 	b       ffc13c18 <_fat_block_read+0x80>        
    {                                                                 
        rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &sec_buf);
ffc13bc4:	7f 43 d3 78 	mr      r3,r26                                 
ffc13bc8:	7f 84 e3 78 	mr      r4,r28                                 
ffc13bcc:	38 a0 00 01 	li      r5,1                                   
ffc13bd0:	38 c1 00 08 	addi    r6,r1,8                                
ffc13bd4:	4b ff fe fd 	bl      ffc13ad0 <fat_buf_access>              
        if (rc != RC_OK)                                              
ffc13bd8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13bdc:	40 9e 00 48 	bne-    cr7,ffc13c24 <_fat_block_read+0x8c>    <== NEVER TAKEN
            return -1;                                                
                                                                      
        c = MIN(count, (fs_info->vol.bps - ofs));                     
ffc13be0:	a3 ba 00 00 	lhz     r29,0(r26)                             
ffc13be4:	7f bb e8 50 	subf    r29,r27,r29                            
ffc13be8:	7f 9d f8 40 	cmplw   cr7,r29,r31                            
ffc13bec:	40 9d 00 08 	ble-    cr7,ffc13bf4 <_fat_block_read+0x5c>    
ffc13bf0:	7f fd fb 78 	mr      r29,r31                                
        memcpy((buff + cmpltd), (sec_buf + ofs), c);                  
ffc13bf4:	80 81 00 08 	lwz     r4,8(r1)                               
ffc13bf8:	7c 79 f2 14 	add     r3,r25,r30                             
ffc13bfc:	7f a5 eb 78 	mr      r5,r29                                 
ffc13c00:	7c 84 da 14 	add     r4,r4,r27                              
ffc13c04:	48 00 84 51 	bl      ffc1c054 <memcpy>                      
                                                                      
        count -= c;                                                   
ffc13c08:	7f fd f8 50 	subf    r31,r29,r31                            
        cmpltd += c;                                                  
ffc13c0c:	7f dd f2 14 	add     r30,r29,r30                            
        sec_num++;                                                    
ffc13c10:	3b 9c 00 01 	addi    r28,r28,1                              
        ofs = 0;                                                      
ffc13c14:	3b 60 00 00 	li      r27,0                                  
    uint32_t                sec_num = start;                          
    uint32_t                ofs = offset;                             
    uint8_t                *sec_buf;                                  
    uint32_t                c = 0;                                    
                                                                      
    while (count > 0)                                                 
ffc13c18:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc13c1c:	40 9e ff a8 	bne+    cr7,ffc13bc4 <_fat_block_read+0x2c>    
ffc13c20:	48 00 00 08 	b       ffc13c28 <_fat_block_read+0x90>        
    {                                                                 
        rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &sec_buf);
        if (rc != RC_OK)                                              
            return -1;                                                
ffc13c24:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
        cmpltd += c;                                                  
        sec_num++;                                                    
        ofs = 0;                                                      
    }                                                                 
    return cmpltd;                                                    
}                                                                     
ffc13c28:	39 61 00 38 	addi    r11,r1,56                              
ffc13c2c:	7f c3 f3 78 	mr      r3,r30                                 
ffc13c30:	4b fe d9 b4 	b       ffc015e4 <_restgpr_25_x>               
                                                                      

ffc046cc <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp );
ffc046cc:	4b ff ff 60 	b       ffc0462c <gettimeofday>                <== NOT EXECUTED
                                                                      

ffc0523c <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf );
ffc0523c:	7c 83 23 78 	mr      r3,r4                                  <== NOT EXECUTED
ffc05240:	7c a4 2b 78 	mr      r4,r5                                  <== NOT EXECUTED
ffc05244:	4b ff ff 8c 	b       ffc051d0 <lstat>                       <== NOT EXECUTED
                                                                      

ffc05514 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf );
ffc05514:	7c 83 23 78 	mr      r3,r4                                  <== NOT EXECUTED
ffc05518:	7c a4 2b 78 	mr      r4,r5                                  <== NOT EXECUTED
ffc0551c:	4b ff ff 8c 	b       ffc054a8 <stat>                        <== NOT EXECUTED
                                                                      

ffc04dec <chroot>: #include <unistd.h> #include <rtems/libio_.h> int chroot( const char *path ) {
ffc04dec:	94 21 ff 90 	stwu    r1,-112(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(             
ffc04df0:	3c c0 00 00 	lis     r6,0                                   
#include <unistd.h>                                                   
                                                                      
#include <rtems/libio_.h>                                             
                                                                      
int chroot( const char *path )                                        
{                                                                     
ffc04df4:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  /*                                                                  
   * 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(             
ffc04df8:	38 c6 21 3c 	addi    r6,r6,8508                             
#include <unistd.h>                                                   
                                                                      
#include <rtems/libio_.h>                                             
                                                                      
int chroot( const char *path )                                        
{                                                                     
ffc04dfc:	7c 64 1b 78 	mr      r4,r3                                  
ffc04e00:	bf c1 00 68 	stmw    r30,104(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(             
ffc04e04:	38 a0 00 19 	li      r5,25                                  
ffc04e08:	38 e6 ff fc 	addi    r7,r6,-4                               
#include <unistd.h>                                                   
                                                                      
#include <rtems/libio_.h>                                             
                                                                      
int chroot( const char *path )                                        
{                                                                     
ffc04e0c:	90 01 00 74 	stw     r0,116(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(             
ffc04e10:	38 61 00 08 	addi    r3,r1,8                                
ffc04e14:	48 00 15 51 	bl      ffc06364 <rtems_filesystem_eval_path_start_with_root_and_current>
ffc04e18:	38 61 00 40 	addi    r3,r1,64                               
ffc04e1c:	38 81 00 20 	addi    r4,r1,32                               
ffc04e20:	48 00 1b 45 	bl      ffc06964 <rtems_filesystem_location_copy_and_detach>
    &rtems_global_user_env.root_directory,                            
    &rtems_global_user_env.current_directory                          
  );                                                                  
                                                                      
  rtems_filesystem_eval_path_extract_currentloc( &ctx, &loc );        
  new_current_loc = rtems_filesystem_location_transform_to_global( &loc );
ffc04e24:	38 61 00 40 	addi    r3,r1,64                               
ffc04e28:	48 00 1d 65 	bl      ffc06b8c <rtems_filesystem_location_transform_to_global>
  if ( !rtems_filesystem_global_location_is_null( new_current_loc ) ) {
ffc04e2c:	3f c0 ff c1 	lis     r30,-63                                
ffc04e30:	81 23 00 10 	lwz     r9,16(r3)                              
ffc04e34:	3b de 2d 80 	addi    r30,r30,11648                          
    &rtems_global_user_env.root_directory,                            
    &rtems_global_user_env.current_directory                          
  );                                                                  
                                                                      
  rtems_filesystem_eval_path_extract_currentloc( &ctx, &loc );        
  new_current_loc = rtems_filesystem_location_transform_to_global( &loc );
ffc04e38:	90 61 00 58 	stw     r3,88(r1)                              
  if ( !rtems_filesystem_global_location_is_null( new_current_loc ) ) {
ffc04e3c:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc04e40:	41 9e 00 90 	beq-    cr7,ffc04ed0 <chroot+0xe4>             
    rtems_filesystem_global_location_t *new_root_loc =                
ffc04e44:	38 61 00 58 	addi    r3,r1,88                               
ffc04e48:	48 00 1c 79 	bl      ffc06ac0 <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)(           
ffc04e4c:	81 23 00 14 	lwz     r9,20(r3)                              
  );                                                                  
                                                                      
  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 =                
ffc04e50:	7c 7f 1b 78 	mr      r31,r3                                 
      rtems_filesystem_global_location_obtain( &new_current_loc );    
    rtems_filesystem_node_types_t type =                              
      (*new_root_loc->location.mt_entry->ops->node_type_h)(           
ffc04e54:	81 29 00 0c 	lwz     r9,12(r9)                              
  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 =                              
ffc04e58:	81 29 00 14 	lwz     r9,20(r9)                              
ffc04e5c:	7d 29 03 a6 	mtctr   r9                                     
ffc04e60:	4e 80 04 21 	bctrl                                          
      (*new_root_loc->location.mt_entry->ops->node_type_h)(           
        &new_root_loc->location                                       
      );                                                              
                                                                      
    if ( type == RTEMS_FILESYSTEM_DIRECTORY ) {                       
ffc04e64:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04e68:	40 9e 00 4c 	bne-    cr7,ffc04eb4 <chroot+0xc8>             
      sc = rtems_libio_set_private_env();                             
ffc04e6c:	48 00 0d 81 	bl      ffc05bec <rtems_libio_set_private_env> 
      if (sc == RTEMS_SUCCESSFUL) {                                   
ffc04e70:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04e74:	40 a2 00 2c 	bne+    ffc04ea0 <chroot+0xb4>                 
        rtems_filesystem_global_location_assign(                      
ffc04e78:	3f c0 00 00 	lis     r30,0                                  
ffc04e7c:	80 7e 27 08 	lwz     r3,9992(r30)                           
ffc04e80:	7f e4 fb 78 	mr      r4,r31                                 
          &rtems_filesystem_root,                                     
          new_root_loc                                                
        );                                                            
        rtems_filesystem_global_location_assign(                      
ffc04e84:	3b e0 00 00 	li      r31,0                                  
      );                                                              
                                                                      
    if ( type == RTEMS_FILESYSTEM_DIRECTORY ) {                       
      sc = rtems_libio_set_private_env();                             
      if (sc == RTEMS_SUCCESSFUL) {                                   
        rtems_filesystem_global_location_assign(                      
ffc04e88:	38 63 00 04 	addi    r3,r3,4                                
ffc04e8c:	48 00 1b f5 	bl      ffc06a80 <rtems_filesystem_global_location_assign>
          &rtems_filesystem_root,                                     
          new_root_loc                                                
        );                                                            
        rtems_filesystem_global_location_assign(                      
ffc04e90:	80 7e 27 08 	lwz     r3,9992(r30)                           
ffc04e94:	80 81 00 58 	lwz     r4,88(r1)                              
ffc04e98:	48 00 1b e9 	bl      ffc06a80 <rtems_filesystem_global_location_assign>
ffc04e9c:	48 00 00 38 	b       ffc04ed4 <chroot+0xe8>                 
          &rtems_filesystem_current,                                  
          new_current_loc                                             
        );                                                            
      } else {                                                        
        if (sc != RTEMS_UNSATISFIED) {                                
ffc04ea0:	2f 83 00 0d 	cmpwi   cr7,r3,13                              
ffc04ea4:	41 9e 00 4c 	beq-    cr7,ffc04ef0 <chroot+0x104>            <== NEVER TAKEN
          errno = ENOMEM;                                             
ffc04ea8:	48 00 74 ad 	bl      ffc0c354 <__errno>                     
ffc04eac:	39 20 00 0c 	li      r9,12                                  
ffc04eb0:	48 00 00 18 	b       ffc04ec8 <chroot+0xdc>                 
static inline void rtems_filesystem_location_error(                   
  const rtems_filesystem_location_info_t *loc,                        
  int eno                                                             
)                                                                     
{                                                                     
  if ( !rtems_filesystem_location_is_null( loc ) ) {                  
ffc04eb4:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc04eb8:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc04ebc:	41 9e 00 34 	beq-    cr7,ffc04ef0 <chroot+0x104>            <== NEVER TAKEN
    errno = eno;                                                      
ffc04ec0:	48 00 74 95 	bl      ffc0c354 <__errno>                     
ffc04ec4:	39 20 00 14 	li      r9,20                                  
ffc04ec8:	91 23 00 00 	stw     r9,0(r3)                               
ffc04ecc:	48 00 00 24 	b       ffc04ef0 <chroot+0x104>                
                                                                      
    if ( rv != 0 ) {                                                  
      rtems_filesystem_global_location_release( new_root_loc );       
    }                                                                 
  } else {                                                            
    rv = -1;                                                          
ffc04ed0:	3b e0 ff ff 	li      r31,-1                                 
  }                                                                   
                                                                      
  rtems_filesystem_eval_path_cleanup( &ctx );                         
ffc04ed4:	38 61 00 08 	addi    r3,r1,8                                
ffc04ed8:	48 00 16 0d 	bl      ffc064e4 <rtems_filesystem_eval_path_cleanup>
                                                                      
  if ( rv != 0 ) {                                                    
ffc04edc:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc04ee0:	41 be 00 1c 	beq+    cr7,ffc04efc <chroot+0x110>            
    rtems_filesystem_global_location_release( new_current_loc );      
ffc04ee4:	80 61 00 58 	lwz     r3,88(r1)                              
ffc04ee8:	48 00 1b 41 	bl      ffc06a28 <rtems_filesystem_global_location_release>
ffc04eec:	48 00 00 10 	b       ffc04efc <chroot+0x110>                
      rtems_filesystem_location_error( &new_root_loc->location, ENOTDIR );
      rv = -1;                                                        
    }                                                                 
                                                                      
    if ( rv != 0 ) {                                                  
      rtems_filesystem_global_location_release( new_root_loc );       
ffc04ef0:	7f e3 fb 78 	mr      r3,r31                                 
ffc04ef4:	48 00 1b 35 	bl      ffc06a28 <rtems_filesystem_global_location_release>
ffc04ef8:	4b ff ff d8 	b       ffc04ed0 <chroot+0xe4>                 
  if ( rv != 0 ) {                                                    
    rtems_filesystem_global_location_release( new_current_loc );      
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04efc:	39 61 00 70 	addi    r11,r1,112                             
ffc04f00:	7f e3 fb 78 	mr      r3,r31                                 
ffc04f04:	48 00 b8 bc 	b       ffc107c0 <_restgpr_30_x>               
                                                                      

ffc042ac <create_disk>: dev_t dev, const char *name, rtems_disk_device **dd_ptr, char **alloc_name_ptr ) {
ffc042ac:	94 21 ff c8 	stwu    r1,-56(r1)                             
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major >= disktab_size) {                                        
ffc042b0:	3d 20 00 00 	lis     r9,0                                   
  dev_t dev,                                                          
  const char *name,                                                   
  rtems_disk_device **dd_ptr,                                         
  char **alloc_name_ptr                                               
)                                                                     
{                                                                     
ffc042b4:	7c 08 02 a6 	mflr    r0                                     
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major >= disktab_size) {                                        
ffc042b8:	39 49 28 48 	addi    r10,r9,10312                           
  dev_t dev,                                                          
  const char *name,                                                   
  rtems_disk_device **dd_ptr,                                         
  char **alloc_name_ptr                                               
)                                                                     
{                                                                     
ffc042bc:	be a1 00 0c 	stmw    r21,12(r1)                             
ffc042c0:	7c 7d 1b 78 	mr      r29,r3                                 
ffc042c4:	7c 9e 23 78 	mr      r30,r4                                 
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major >= disktab_size) {                                        
ffc042c8:	83 89 28 48 	lwz     r28,10312(r9)                          
  dev_t dev,                                                          
  const char *name,                                                   
  rtems_disk_device **dd_ptr,                                         
  char **alloc_name_ptr                                               
)                                                                     
{                                                                     
ffc042cc:	7c b9 2b 78 	mr      r25,r5                                 
ffc042d0:	90 01 00 3c 	stw     r0,60(r1)                              
ffc042d4:	7c d7 33 78 	mr      r23,r6                                 
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major >= disktab_size) {                                        
ffc042d8:	7f 83 e0 40 	cmplw   cr7,r3,r28                             
  dev_t dev,                                                          
  const char *name,                                                   
  rtems_disk_device **dd_ptr,                                         
  char **alloc_name_ptr                                               
)                                                                     
{                                                                     
ffc042dc:	7c f6 3b 78 	mr      r22,r7                                 
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major >= disktab_size) {                                        
ffc042e0:	41 9c 00 50 	blt-    cr7,ffc04330 <create_disk+0x84>        
    rtems_disk_device_table *table = disktab;                         
    rtems_device_major_number old_size = disktab_size;                
    rtems_device_major_number new_size = 2 * old_size;                
ffc042e4:	57 9f 08 3c 	rlwinm  r31,r28,1,0,30                         
  rtems_device_minor_number minor = 0;                                
                                                                      
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major >= disktab_size) {                                        
    rtems_disk_device_table *table = disktab;                         
ffc042e8:	80 6a 00 04 	lwz     r3,4(r10)                              
    rtems_device_major_number old_size = disktab_size;                
    rtems_device_major_number new_size = 2 * old_size;                
                                                                      
    if (major >= new_size) {                                          
ffc042ec:	7f 9d f8 40 	cmplw   cr7,r29,r31                            
ffc042f0:	41 9c 00 08 	blt-    cr7,ffc042f8 <create_disk+0x4c>        <== NEVER TAKEN
      new_size = major + 1;                                           
ffc042f4:	3b fd 00 01 	addi    r31,r29,1                              
    }                                                                 
                                                                      
    table = realloc(table, new_size * sizeof(*table));                
ffc042f8:	57 e4 18 38 	rlwinm  r4,r31,3,0,28                          
ffc042fc:	48 00 21 3d 	bl      ffc06438 <realloc>                     
    if (table == NULL) {                                              
ffc04300:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc04304:	41 82 01 50 	beq-    ffc04454 <create_disk+0x1a8>           <== ALWAYS TAKEN
      return NULL;                                                    
    }                                                                 
                                                                      
    memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
ffc04308:	7c bc f8 50 	subf    r5,r28,r31                             <== NOT EXECUTED
ffc0430c:	57 83 18 38 	rlwinm  r3,r28,3,0,28                          <== NOT EXECUTED
ffc04310:	7c 7b 1a 14 	add     r3,r27,r3                              <== NOT EXECUTED
ffc04314:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc04318:	54 a5 18 38 	rlwinm  r5,r5,3,0,28                           <== NOT EXECUTED
ffc0431c:	48 01 05 69 	bl      ffc14884 <memset>                      <== NOT EXECUTED
    disktab = table;                                                  
ffc04320:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
ffc04324:	39 49 28 48 	addi    r10,r9,10312                           <== NOT EXECUTED
    disktab_size = new_size;                                          
ffc04328:	93 e9 28 48 	stw     r31,10312(r9)                          <== NOT EXECUTED
    if (table == NULL) {                                              
      return NULL;                                                    
    }                                                                 
                                                                      
    memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
    disktab = table;                                                  
ffc0432c:	93 6a 00 04 	stw     r27,4(r10)                             <== NOT EXECUTED
    disktab_size = new_size;                                          
  }                                                                   
                                                                      
  if (disktab [major].minor == NULL || minor >= disktab[major].size) {
ffc04330:	3d 20 00 00 	lis     r9,0                                   
ffc04334:	83 69 28 4c 	lwz     r27,10316(r9)                          
ffc04338:	57 ba 18 38 	rlwinm  r26,r29,3,0,28                         
ffc0433c:	7c 7b d0 2e 	lwzx    r3,r27,r26                             
ffc04340:	7f 1b d2 14 	add     r24,r27,r26                            
ffc04344:	83 98 00 04 	lwz     r28,4(r24)                             
ffc04348:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0434c:	41 9e 00 0c 	beq-    cr7,ffc04358 <create_disk+0xac>        
ffc04350:	7f 9e e0 40 	cmplw   cr7,r30,r28                            
ffc04354:	41 9c 00 50 	blt-    cr7,ffc043a4 <create_disk+0xf8>        
    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) {                                              
ffc04358:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
      new_size = DISKTAB_INITIAL_SIZE;                                
ffc0435c:	3b e0 00 08 	li      r31,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) {                                              
ffc04360:	41 9e 00 08 	beq-    cr7,ffc04368 <create_disk+0xbc>        
      new_size = DISKTAB_INITIAL_SIZE;                                
    } else {                                                          
      new_size = 2 * old_size;                                        
ffc04364:	57 9f 08 3c 	rlwinm  r31,r28,1,0,30                         
    }                                                                 
    if (minor >= new_size) {                                          
ffc04368:	7f 9e f8 40 	cmplw   cr7,r30,r31                            
ffc0436c:	41 9c 00 08 	blt-    cr7,ffc04374 <create_disk+0xc8>        
      new_size = minor + 1;                                           
ffc04370:	3b fe 00 01 	addi    r31,r30,1                              
    }                                                                 
                                                                      
    table = realloc(table, new_size * sizeof(*table));                
ffc04374:	57 e4 10 3a 	rlwinm  r4,r31,2,0,29                          
ffc04378:	48 00 20 c1 	bl      ffc06438 <realloc>                     
    if (table == NULL) {                                              
ffc0437c:	7c 75 1b 79 	mr.     r21,r3                                 
ffc04380:	41 82 00 d4 	beq-    ffc04454 <create_disk+0x1a8>           
      return NULL;                                                    
    }                                                                 
                                                                      
    memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
ffc04384:	7c bc f8 50 	subf    r5,r28,r31                             
ffc04388:	57 83 10 3a 	rlwinm  r3,r28,2,0,29                          
ffc0438c:	7c 75 1a 14 	add     r3,r21,r3                              
ffc04390:	38 80 00 00 	li      r4,0                                   
ffc04394:	54 a5 10 3a 	rlwinm  r5,r5,2,0,29                           
ffc04398:	48 01 04 ed 	bl      ffc14884 <memset>                      
    disktab [major].minor = table;                                    
ffc0439c:	7e bb d1 2e 	stwx    r21,r27,r26                            
    disktab [major].size = new_size;                                  
ffc043a0:	93 f8 00 04 	stw     r31,4(r24)                             
  }                                                                   
                                                                      
  return disktab [major].minor + minor;                               
ffc043a4:	7f 7b d0 2e 	lwzx    r27,r27,r26                            
ffc043a8:	57 dc 10 3a 	rlwinm  r28,r30,2,0,29                         
ffc043ac:	7d 3b e2 14 	add     r9,r27,r28                             
{                                                                     
  rtems_disk_device **dd_entry = create_disk_table_entry(dev);        
  rtems_disk_device *dd = NULL;                                       
  char *alloc_name = NULL;                                            
                                                                      
  if (dd_entry == NULL) {                                             
ffc043b0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc043b4:	40 be 00 08 	bne+    cr7,ffc043bc <create_disk+0x110>       <== ALWAYS TAKEN
ffc043b8:	48 00 00 9c 	b       ffc04454 <create_disk+0x1a8>           <== NOT EXECUTED
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  if (*dd_entry != NULL) {                                            
ffc043bc:	7d 5b e0 2e 	lwzx    r10,r27,r28                            
    return RTEMS_RESOURCE_IN_USE;                                     
ffc043c0:	38 60 00 0c 	li      r3,12                                  
                                                                      
  if (dd_entry == NULL) {                                             
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  if (*dd_entry != NULL) {                                            
ffc043c4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc043c8:	40 be 00 90 	bne+    cr7,ffc04458 <create_disk+0x1ac>       
    return RTEMS_RESOURCE_IN_USE;                                     
  }                                                                   
                                                                      
  dd = malloc(sizeof(*dd));                                           
ffc043cc:	38 60 00 78 	li      r3,120                                 
ffc043d0:	48 00 15 59 	bl      ffc05928 <malloc>                      
  if (dd == NULL) {                                                   
ffc043d4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc043d8:	41 82 00 7c 	beq-    ffc04454 <create_disk+0x1a8>           <== NEVER TAKEN
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  if (name != NULL) {                                                 
ffc043dc:	2f 99 00 00 	cmpwi   cr7,r25,0                              
ffc043e0:	41 9e 00 40 	beq-    cr7,ffc04420 <create_disk+0x174>       
    alloc_name = strdup(name);                                        
ffc043e4:	7f 23 cb 78 	mr      r3,r25                                 
ffc043e8:	48 01 08 39 	bl      ffc14c20 <strdup>                      
                                                                      
    if (alloc_name == NULL) {                                         
ffc043ec:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  if (dd == NULL) {                                                   
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  if (name != NULL) {                                                 
    alloc_name = strdup(name);                                        
ffc043f0:	7c 7a 1b 78 	mr      r26,r3                                 
ffc043f4:	7c 79 1b 78 	mr      r25,r3                                 
                                                                      
    if (alloc_name == NULL) {                                         
ffc043f8:	40 be 00 40 	bne+    cr7,ffc04438 <create_disk+0x18c>       <== ALWAYS TAKEN
      free(dd);                                                       
ffc043fc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc04400:	48 00 0f 99 	bl      ffc05398 <free>                        <== NOT EXECUTED
ffc04404:	48 00 00 50 	b       ffc04454 <create_disk+0x1a8>           <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  if (name != NULL) {                                                 
    if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {                 
      free(alloc_name);                                               
ffc04408:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc0440c:	48 00 0f 8d 	bl      ffc05398 <free>                        <== NOT EXECUTED
      free(dd);                                                       
ffc04410:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc04414:	48 00 0f 85 	bl      ffc05398 <free>                        <== NOT EXECUTED
      return RTEMS_UNSATISFIED;                                       
ffc04418:	38 60 00 0d 	li      r3,13                                  <== NOT EXECUTED
ffc0441c:	48 00 00 3c 	b       ffc04458 <create_disk+0x1ac>           <== 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;                                            
ffc04420:	3b 20 00 00 	li      r25,0                                  
      free(dd);                                                       
      return RTEMS_UNSATISFIED;                                       
    }                                                                 
  }                                                                   
                                                                      
  *dd_entry = dd;                                                     
ffc04424:	7f fb e1 2e 	stwx    r31,r27,r28                            
  *dd_ptr = dd;                                                       
  *alloc_name_ptr = alloc_name;                                       
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc04428:	38 60 00 00 	li      r3,0                                   
      return RTEMS_UNSATISFIED;                                       
    }                                                                 
  }                                                                   
                                                                      
  *dd_entry = dd;                                                     
  *dd_ptr = dd;                                                       
ffc0442c:	93 f7 00 00 	stw     r31,0(r23)                             
  *alloc_name_ptr = alloc_name;                                       
ffc04430:	93 36 00 00 	stw     r25,0(r22)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc04434:	48 00 00 24 	b       ffc04458 <create_disk+0x1ac>           
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
  }                                                                   
                                                                      
  if (name != NULL) {                                                 
    if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {                 
ffc04438:	38 80 61 ff 	li      r4,25087                               
ffc0443c:	7f a5 eb 78 	mr      r5,r29                                 
ffc04440:	7f c6 f3 78 	mr      r6,r30                                 
ffc04444:	48 00 16 89 	bl      ffc05acc <mknod>                       
ffc04448:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0444c:	40 9c ff d8 	bge+    cr7,ffc04424 <create_disk+0x178>       <== ALWAYS TAKEN
ffc04450:	4b ff ff b8 	b       ffc04408 <create_disk+0x15c>           <== NOT EXECUTED
  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;                                           
ffc04454:	38 60 00 1a 	li      r3,26                                  
  *dd_entry = dd;                                                     
  *dd_ptr = dd;                                                       
  *alloc_name_ptr = alloc_name;                                       
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04458:	39 61 00 38 	addi    r11,r1,56                              
ffc0445c:	48 01 45 58 	b       ffc189b4 <_restgpr_21_x>               
                                                                      

ffc058c8 <data_to_part_desc.part.1>: * 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 data_to_part_desc(uint8_t *data, rtems_part_desc_t **new_part_desc)
ffc058c8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc058cc:	7c 08 02 a6 	mflr    r0                                     
    if (new_part_desc == NULL)                                        
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    *new_part_desc = NULL;                                            
ffc058d0:	39 20 00 00 	li      r9,0                                   
 *      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                                              
data_to_part_desc(uint8_t *data, rtems_part_desc_t **new_part_desc)   
ffc058d4:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc058d8:	7c 7e 1b 78 	mr      r30,r3                                 
ffc058dc:	7c 9d 23 78 	mr      r29,r4                                 
ffc058e0:	90 01 00 1c 	stw     r0,28(r1)                              
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    *new_part_desc = NULL;                                            
                                                                      
    if ((part_desc = calloc(1, sizeof(rtems_part_desc_t))) == NULL)   
ffc058e4:	38 60 00 01 	li      r3,1                                   
    if (new_part_desc == NULL)                                        
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    *new_part_desc = NULL;                                            
ffc058e8:	91 24 00 00 	stw     r9,0(r4)                               
                                                                      
    if ((part_desc = calloc(1, sizeof(rtems_part_desc_t))) == NULL)   
ffc058ec:	38 80 00 28 	li      r4,40                                  
ffc058f0:	48 00 0d 59 	bl      ffc06648 <calloc>                      
ffc058f4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc058f8:	41 82 00 a0 	beq-    ffc05998 <data_to_part_desc.part.1+0xd0><== NEVER TAKEN
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
    }                                                                 
                                                                      
    part_desc->bootable = *(data + RTEMS_IDE_PARTITION_BOOTABLE_OFFSET);
ffc058fc:	89 3e 00 00 	lbz     r9,0(r30)                              
ffc05900:	99 3f 00 00 	stb     r9,0(r31)                              
    part_desc->sys_type = *(data + RTEMS_IDE_PARTITION_SYS_TYPE_OFFSET);
ffc05904:	88 9e 00 04 	lbz     r4,4(r30)                              
ffc05908:	98 9f 00 01 	stb     r4,1(r31)                              
  uint32_t value                                                      
)                                                                     
{                                                                     
  uint32_t   swapped;                                                 
                                                                      
  __asm__ volatile("rlwimi %0,%1,8,24,31;"                            
ffc0590c:	81 3e 00 08 	lwz     r9,8(r30)                              
ffc05910:	51 28 46 3e 	rlwimi  r8,r9,8,24,31                          
ffc05914:	51 28 c4 2e 	rlwimi  r8,r9,24,16,23                         
ffc05918:	51 28 42 1e 	rlwimi  r8,r9,8,8,15                           
ffc0591c:	51 28 c0 0e 	rlwimi  r8,r9,24,0,7                           
                                                                      
    /* 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);                           
ffc05920:	91 1f 00 04 	stw     r8,4(r31)                              
ffc05924:	81 3e 00 0c 	lwz     r9,12(r30)                             
ffc05928:	51 3e 46 3e 	rlwimi  r30,r9,8,24,31                         
ffc0592c:	51 3e c4 2e 	rlwimi  r30,r9,24,16,23                        
ffc05930:	51 3e 42 1e 	rlwimi  r30,r9,8,8,15                          
ffc05934:	51 3e c0 0e 	rlwimi  r30,r9,24,0,7                          
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
ffc05938:	2f 84 00 05 	cmpwi   cr7,r4,5                               
    /* 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);                           
                                                                      
    memcpy(&temp, data + RTEMS_IDE_PARTITION_SIZE_OFFSET, sizeof(uint32_t));
    part_desc->size = LE_TO_CPU_U32(temp);                            
ffc0593c:	93 df 00 08 	stw     r30,8(r31)                             
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
ffc05940:	41 9e 00 14 	beq-    cr7,ffc05954 <data_to_part_desc.part.1+0x8c>
ffc05944:	68 89 00 85 	xori    r9,r4,133                              
ffc05948:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0594c:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc05950:	48 00 00 08 	b       ffc05958 <data_to_part_desc.part.1+0x90>
ffc05954:	39 20 00 01 	li      r9,1                                   
     * use partitions that are                                        
     * - extended                                                     
     * or                                                             
     * - FAT type and non-zero                                        
     */                                                               
    if (is_extended(part_desc->sys_type) ||                           
ffc05958:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0595c:	40 9e 00 24 	bne-    cr7,ffc05980 <data_to_part_desc.part.1+0xb8>
    DOS_P32MB_PARTITION,                                              
    FAT32_PARTITION    ,FAT32_LBA_PARTITION,                          
    FAT16_LBA_PARTITION                                               
  };                                                                  
                                                                      
  return (NULL != memchr(fat_part_types,type,sizeof(fat_part_types)));
ffc05960:	3c 60 ff c2 	lis     r3,-62                                 
ffc05964:	38 63 50 1c 	addi    r3,r3,20508                            
ffc05968:	38 a0 00 06 	li      r5,6                                   
ffc0596c:	48 01 02 b5 	bl      ffc15c20 <memchr>                      
     * use partitions that are                                        
     * - extended                                                     
     * or                                                             
     * - FAT type and non-zero                                        
     */                                                               
    if (is_extended(part_desc->sys_type) ||                           
ffc05970:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05974:	41 9e 00 14 	beq-    cr7,ffc05988 <data_to_part_desc.part.1+0xc0>
       ((is_fat_partition(part_desc->sys_type)) && (part_desc->size != 0))) {
ffc05978:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0597c:	41 be 00 0c 	beq+    cr7,ffc05988 <data_to_part_desc.part.1+0xc0><== NEVER TAKEN
      *new_part_desc = part_desc;                                     
ffc05980:	93 fd 00 00 	stw     r31,0(r29)                             
ffc05984:	48 00 00 0c 	b       ffc05990 <data_to_part_desc.part.1+0xc8>
    }                                                                 
    else {                                                            
      /* empty partition */                                           
      free(part_desc);                                                
ffc05988:	7f e3 fb 78 	mr      r3,r31                                 
ffc0598c:	48 00 0d a1 	bl      ffc0672c <free>                        
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
ffc05990:	38 60 00 00 	li      r3,0                                   
ffc05994:	48 00 00 08 	b       ffc0599c <data_to_part_desc.part.1+0xd4>
                                                                      
    *new_part_desc = NULL;                                            
                                                                      
    if ((part_desc = calloc(1, sizeof(rtems_part_desc_t))) == NULL)   
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
ffc05998:	38 60 00 1a 	li      r3,26                                  <== NOT EXECUTED
    else {                                                            
      /* empty partition */                                           
      free(part_desc);                                                
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc0599c:	39 61 00 18 	addi    r11,r1,24                              
ffc059a0:	4b ff ae 4c 	b       ffc007ec <_restgpr_29_x>               
                                                                      

ffc0c4dc <devFS_eval_path>: } void devFS_eval_path( rtems_filesystem_eval_path_context_t *ctx ) {
ffc0c4dc:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0c4e0:	7c 08 02 a6 	mflr    r0                                     
ffc0c4e4:	90 01 00 2c 	stw     r0,44(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;       
ffc0c4e8:	81 23 00 2c 	lwz     r9,44(r3)                              
ffc0c4ec:	bf 01 00 08 	stmw    r24,8(r1)                              
ffc0c4f0:	7c 7f 1b 78 	mr      r31,r3                                 
)                                                                     
{                                                                     
  size_t i = 0;                                                       
  size_t n = data->count;                                             
  devFS_node *nodes = data->nodes;                                    
  devFS_node *node = NULL;                                            
ffc0c4f4:	3b a0 00 00 	li      r29,0                                  
ffc0c4f8:	81 29 00 10 	lwz     r9,16(r9)                              
  devFS_node *free_node = NULL;                                       
                                                                      
  for (i = 0; (free_node == NULL || node == NULL) && i < n; ++i) {    
ffc0c4fc:	3b 40 00 00 	li      r26,0                                  
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
    }                                                                 
  }                                                                   
}                                                                     
ffc0c500:	83 23 00 00 	lwz     r25,0(r3)                              
  size_t pathlen,                                                     
  devFS_node **free_node_ptr                                          
)                                                                     
{                                                                     
  size_t i = 0;                                                       
  size_t n = data->count;                                             
ffc0c504:	83 09 00 04 	lwz     r24,4(r9)                              
ffc0c508:	83 c9 00 00 	lwz     r30,0(r9)                              
  devFS_node *nodes = data->nodes;                                    
  devFS_node *node = NULL;                                            
  devFS_node *free_node = NULL;                                       
ffc0c50c:	39 20 00 00 	li      r9,0                                   
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
    }                                                                 
  }                                                                   
}                                                                     
ffc0c510:	83 63 00 04 	lwz     r27,4(r3)                              
ffc0c514:	48 00 00 58 	b       ffc0c56c <devFS_eval_path+0x90>        
  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) {                                      
ffc0c518:	80 7e 00 00 	lwz     r3,0(r30)                              
  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) {    
    devFS_node *current = nodes + i;                                  
ffc0c51c:	7f dc f3 78 	mr      r28,r30                                
                                                                      
    if (current->name != NULL) {                                      
ffc0c520:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0c524:	41 9e 00 2c 	beq-    cr7,ffc0c550 <devFS_eval_path+0x74>    
      if (                                                            
ffc0c528:	81 5e 00 04 	lwz     r10,4(r30)                             
ffc0c52c:	7d 3c 4b 78 	mr      r28,r9                                 
ffc0c530:	7f 8a d8 00 	cmpw    cr7,r10,r27                            
ffc0c534:	40 be 00 1c 	bne+    cr7,ffc0c550 <devFS_eval_path+0x74>    
        current->namelen == pathlen                                   
          && memcmp(current->name, path, pathlen) == 0                
ffc0c538:	7f 24 cb 78 	mr      r4,r25                                 
ffc0c53c:	7f 65 db 78 	mr      r5,r27                                 
ffc0c540:	48 00 2a 09 	bl      ffc0ef48 <memcmp>                      
ffc0c544:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0c548:	40 9e 00 08 	bne-    cr7,ffc0c550 <devFS_eval_path+0x74>    
ffc0c54c:	7f dd f3 78 	mr      r29,r30                                
  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) {    
ffc0c550:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0c554:	3b 5a 00 01 	addi    r26,r26,1                              
ffc0c558:	41 9e 00 0c 	beq-    cr7,ffc0c564 <devFS_eval_path+0x88>    <== NEVER TAKEN
ffc0c55c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0c560:	40 9e 00 18 	bne-    cr7,ffc0c578 <devFS_eval_path+0x9c>    
ffc0c564:	3b de 00 14 	addi    r30,r30,20                             
ffc0c568:	7f 89 e3 78 	mr      r9,r28                                 
ffc0c56c:	7f 9a c0 00 	cmpw    cr7,r26,r24                            
ffc0c570:	40 9e ff a8 	bne+    cr7,ffc0c518 <devFS_eval_path+0x3c>    
ffc0c574:	48 00 00 08 	b       ffc0c57c <devFS_eval_path+0xa0>        
ffc0c578:	7f 89 e3 78 	mr      r9,r28                                 
    rtems_filesystem_eval_path_get_pathlen(ctx),                      
    &free_node                                                        
  );                                                                  
  int eval_flags = rtems_filesystem_eval_path_get_flags(ctx);         
                                                                      
  if (node != NULL) {                                                 
ffc0c57c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
    }                                                                 
  }                                                                   
}                                                                     
ffc0c580:	81 5f 00 10 	lwz     r10,16(r31)                            
    rtems_filesystem_eval_path_get_pathlen(ctx),                      
    &free_node                                                        
  );                                                                  
  int eval_flags = rtems_filesystem_eval_path_get_flags(ctx);         
                                                                      
  if (node != NULL) {                                                 
ffc0c584:	41 9e 00 24 	beq-    cr7,ffc0c5a8 <devFS_eval_path+0xcc>    
    if ((eval_flags & RTEMS_FS_EXCLUSIVE) == 0) {                     
ffc0c588:	71 49 00 40 	andi.   r9,r10,64                              
ffc0c58c:	40 82 00 10 	bne-    ffc0c59c <devFS_eval_path+0xc0>        
      currentloc->node_access = node;                                 
ffc0c590:	93 bf 00 20 	stw     r29,32(r31)                            
                                                                      
static inline void rtems_filesystem_eval_path_clear_path(             
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  ctx->pathlen = 0;                                                   
ffc0c594:	91 3f 00 04 	stw     r9,4(r31)                              
ffc0c598:	48 00 00 64 	b       ffc0c5fc <devFS_eval_path+0x120>       
      rtems_filesystem_eval_path_clear_path(ctx);                     
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, EEXIST);                  
ffc0c59c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c5a0:	38 80 00 11 	li      r4,17                                  
ffc0c5a4:	48 00 00 44 	b       ffc0c5e8 <devFS_eval_path+0x10c>       
    }                                                                 
  } else {                                                            
    if ((eval_flags & RTEMS_FS_MAKE) != 0) {                          
ffc0c5a8:	71 48 00 20 	andi.   r8,r10,32                              
ffc0c5ac:	41 82 00 34 	beq-    ffc0c5e0 <devFS_eval_path+0x104>       <== NEVER TAKEN
      if (free_node != NULL) {                                        
ffc0c5b0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c5b4:	41 9e 00 20 	beq-    cr7,ffc0c5d4 <devFS_eval_path+0xf8>    
        free_node->mode = S_IRWXU | S_IRWXG | S_IRWXO;                
ffc0c5b8:	39 40 01 ff 	li      r10,511                                
ffc0c5bc:	91 49 00 10 	stw     r10,16(r9)                             
        currentloc->node_access = free_node;                          
ffc0c5c0:	91 3f 00 20 	stw     r9,32(r31)                             
  rtems_filesystem_eval_path_context_t *ctx,                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  ctx->token = token;                                                 
ffc0c5c4:	93 3f 00 08 	stw     r25,8(r31)                             
  ctx->tokenlen = tokenlen;                                           
ffc0c5c8:	93 7f 00 0c 	stw     r27,12(r31)                            
                                                                      
static inline void rtems_filesystem_eval_path_clear_path(             
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  ctx->pathlen = 0;                                                   
ffc0c5cc:	93 bf 00 04 	stw     r29,4(r31)                             
ffc0c5d0:	48 00 00 2c 	b       ffc0c5fc <devFS_eval_path+0x120>       
          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);                
ffc0c5d4:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c5d8:	38 80 00 1c 	li      r4,28                                  
ffc0c5dc:	48 00 00 0c 	b       ffc0c5e8 <devFS_eval_path+0x10c>       
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
ffc0c5e0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0c5e4:	38 80 00 02 	li      r4,2                                   <== NOT EXECUTED
    }                                                                 
  }                                                                   
}                                                                     
ffc0c5e8:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc0c5ec:	bb 01 00 08 	lmw     r24,8(r1)                              
ffc0c5f0:	7c 08 03 a6 	mtlr    r0                                     
ffc0c5f4:	38 21 00 28 	addi    r1,r1,40                               
        rtems_filesystem_eval_path_clear_path(ctx);                   
      } else {                                                        
        rtems_filesystem_eval_path_error(ctx, ENOSPC);                
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
ffc0c5f8:	4b ff 8f 38 	b       ffc05530 <rtems_filesystem_eval_path_error>
    }                                                                 
  }                                                                   
}                                                                     
ffc0c5fc:	39 61 00 28 	addi    r11,r1,40                              
ffc0c600:	48 00 ad 78 	b       ffc17378 <_restgpr_24_x>               
                                                                      

ffc04188 <devFS_mknod>: dev_t dev ) { int rv = 0; if (namelen != 3 || name [0] != 'd' || name [1] != 'e' || name [2] != 'v') {
ffc04188:	2f 85 00 03 	cmpwi   cr7,r5,3                               
  const char *name,                                                   
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
ffc0418c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc04190:	7c 08 02 a6 	mflr    r0                                     
ffc04194:	bf 81 00 10 	stmw    r28,16(r1)                             
ffc04198:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0419c:	7c df 33 78 	mr      r31,r6                                 
ffc041a0:	90 01 00 24 	stw     r0,36(r1)                              
ffc041a4:	7c fd 3b 78 	mr      r29,r7                                 
ffc041a8:	7d 1c 43 78 	mr      r28,r8                                 
  int rv = 0;                                                         
                                                                      
  if (namelen != 3 || name [0] != 'd' || name [1] != 'e' || name [2] != 'v') {
ffc041ac:	40 be 00 28 	bne+    cr7,ffc041d4 <devFS_mknod+0x4c>        
ffc041b0:	89 24 00 00 	lbz     r9,0(r4)                               
ffc041b4:	2f 89 00 64 	cmpwi   cr7,r9,100                             
ffc041b8:	40 be 00 1c 	bne+    cr7,ffc041d4 <devFS_mknod+0x4c>        <== NEVER TAKEN
ffc041bc:	89 24 00 01 	lbz     r9,1(r4)                               
ffc041c0:	2f 89 00 65 	cmpwi   cr7,r9,101                             
ffc041c4:	40 be 00 10 	bne+    cr7,ffc041d4 <devFS_mknod+0x4c>        <== NEVER TAKEN
ffc041c8:	89 24 00 02 	lbz     r9,2(r4)                               
ffc041cc:	2f 89 00 76 	cmpwi   cr7,r9,118                             
ffc041d0:	41 9e 00 68 	beq-    cr7,ffc04238 <devFS_mknod+0xb0>        <== ALWAYS TAKEN
    if (S_ISBLK(mode) || S_ISCHR(mode)) {                             
ffc041d4:	57 e9 04 26 	rlwinm  r9,r31,0,16,19                         
ffc041d8:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc041dc:	41 9e 00 0c 	beq-    cr7,ffc041e8 <devFS_mknod+0x60>        
ffc041e0:	2f 89 20 00 	cmpwi   cr7,r9,8192                            
ffc041e4:	40 9e 00 64 	bne-    cr7,ffc04248 <devFS_mknod+0xc0>        
      char *dupname = malloc(namelen);                                
ffc041e8:	7c a3 2b 78 	mr      r3,r5                                  
ffc041ec:	90 81 00 08 	stw     r4,8(r1)                               
ffc041f0:	90 a1 00 0c 	stw     r5,12(r1)                              
ffc041f4:	48 00 05 69 	bl      ffc0475c <malloc>                      
                                                                      
      if (dupname != NULL) {                                          
ffc041f8:	7c 6a 1b 79 	mr.     r10,r3                                 
ffc041fc:	80 81 00 08 	lwz     r4,8(r1)                               
ffc04200:	80 a1 00 0c 	lwz     r5,12(r1)                              
ffc04204:	41 82 00 28 	beq-    ffc0422c <devFS_mknod+0xa4>            
        devFS_node *node = parentloc->node_access;                    
ffc04208:	81 3e 00 08 	lwz     r9,8(r30)                              
                                                                      
        node->name = dupname;                                         
ffc0420c:	91 49 00 00 	stw     r10,0(r9)                              
        node->namelen = namelen;                                      
ffc04210:	90 a9 00 04 	stw     r5,4(r9)                               
        node->major = rtems_filesystem_dev_major_t(dev);              
ffc04214:	93 a9 00 08 	stw     r29,8(r9)                              
        node->minor = rtems_filesystem_dev_minor_t(dev);              
ffc04218:	93 89 00 0c 	stw     r28,12(r9)                             
        node->mode = mode;                                            
ffc0421c:	93 e9 00 10 	stw     r31,16(r9)                             
        memcpy(dupname, name, namelen);                               
ffc04220:	48 00 ad ad 	bl      ffc0efcc <memcpy>                      
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
  int rv = 0;                                                         
ffc04224:	38 60 00 00 	li      r3,0                                   
ffc04228:	48 00 00 30 	b       ffc04258 <devFS_mknod+0xd0>            
        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;                                               
ffc0422c:	48 00 9a a5 	bl      ffc0dcd0 <__errno>                     
ffc04230:	39 20 00 0c 	li      r9,12                                  
ffc04234:	48 00 00 1c 	b       ffc04250 <devFS_mknod+0xc8>            
    } else {                                                          
      errno = ENOTSUP;                                                
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    if (!S_ISDIR(mode)) {                                             
ffc04238:	54 df 04 26 	rlwinm  r31,r6,0,16,19                         
ffc0423c:	2f 9f 40 00 	cmpwi   cr7,r31,16384                          
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
  int rv = 0;                                                         
ffc04240:	38 60 00 00 	li      r3,0                                   
    } else {                                                          
      errno = ENOTSUP;                                                
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    if (!S_ISDIR(mode)) {                                             
ffc04244:	41 be 00 14 	beq+    cr7,ffc04258 <devFS_mknod+0xd0>        <== ALWAYS TAKEN
      errno = ENOTSUP;                                                
ffc04248:	48 00 9a 89 	bl      ffc0dcd0 <__errno>                     
ffc0424c:	39 20 00 86 	li      r9,134                                 
ffc04250:	91 23 00 00 	stw     r9,0(r3)                               
      rv = -1;                                                        
ffc04254:	38 60 ff ff 	li      r3,-1                                  
    }                                                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04258:	39 61 00 20 	addi    r11,r1,32                              
ffc0425c:	48 01 31 2c 	b       ffc17388 <_restgpr_28_x>               
                                                                      

ffc04214 <disk_lock>: */ static volatile bool diskdevs_protected; static rtems_status_code disk_lock(void) {
ffc04214:	7c 2b 0b 78 	mr      r11,r1                                 
ffc04218:	7c 08 02 a6 	mflr    r0                                     
ffc0421c:	94 21 ff f0 	stwu    r1,-16(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc04220:	38 80 00 00 	li      r4,0                                   
ffc04224:	38 a0 00 00 	li      r5,0                                   
 */                                                                   
static volatile bool diskdevs_protected;                              
                                                                      
static rtems_status_code                                              
disk_lock(void)                                                       
{                                                                     
ffc04228:	90 01 00 14 	stw     r0,20(r1)                              
ffc0422c:	48 01 47 65 	bl      ffc18990 <_savegpr_31>                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc04230:	3f e0 00 00 	lis     r31,0                                  
ffc04234:	3b ff 28 48 	addi    r31,r31,10312                          
ffc04238:	80 7f 00 08 	lwz     r3,8(r31)                              
ffc0423c:	48 00 57 69 	bl      ffc099a4 <rtems_semaphore_obtain>      
  if (sc == RTEMS_SUCCESSFUL) {                                       
    diskdevs_protected = true;                                        
                                                                      
    return RTEMS_SUCCESSFUL;                                          
  } else {                                                            
    return RTEMS_NOT_CONFIGURED;                                      
ffc04240:	39 20 00 16 	li      r9,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) {                                       
ffc04244:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04248:	40 be 00 10 	bne+    cr7,ffc04258 <disk_lock+0x44>          <== NEVER TAKEN
    diskdevs_protected = true;                                        
ffc0424c:	39 20 00 01 	li      r9,1                                   
ffc04250:	99 3f 00 0c 	stb     r9,12(r31)                             
                                                                      
    return RTEMS_SUCCESSFUL;                                          
ffc04254:	39 20 00 00 	li      r9,0                                   
  } else {                                                            
    return RTEMS_NOT_CONFIGURED;                                      
  }                                                                   
}                                                                     
ffc04258:	39 61 00 10 	addi    r11,r1,16                              
ffc0425c:	7d 23 4b 78 	mr      r3,r9                                  
ffc04260:	48 01 47 7c 	b       ffc189dc <_restgpr_31_x>               
                                                                      

ffc04264 <disk_unlock>: static void disk_unlock(void) {
ffc04264:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc04268:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  diskdevs_protected = false;                                         
ffc0426c:	3d 20 00 00 	lis     r9,0                                   
  }                                                                   
}                                                                     
                                                                      
static void                                                           
disk_unlock(void)                                                     
{                                                                     
ffc04270:	90 01 00 0c 	stw     r0,12(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  diskdevs_protected = false;                                         
ffc04274:	39 29 28 48 	addi    r9,r9,10312                            
ffc04278:	39 40 00 00 	li      r10,0                                  
                                                                      
  sc = rtems_semaphore_release(diskdevs_mutex);                       
ffc0427c:	80 69 00 08 	lwz     r3,8(r9)                               
static void                                                           
disk_unlock(void)                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  diskdevs_protected = false;                                         
ffc04280:	99 49 00 0c 	stb     r10,12(r9)                             
                                                                      
  sc = rtems_semaphore_release(diskdevs_mutex);                       
ffc04284:	48 00 58 45 	bl      ffc09ac8 <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04288:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0428c:	41 be 00 10 	beq+    cr7,ffc0429c <disk_unlock+0x38>        <== ALWAYS TAKEN
    /* FIXME: Error number */                                         
    rtems_fatal_error_occurred(0xdeadbeef);                           
ffc04290:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc04294:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc04298:	48 00 5e 09 	bl      ffc0a0a0 <rtems_fatal_error_occurred>  <== NOT EXECUTED
  }                                                                   
}                                                                     
ffc0429c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc042a0:	38 21 00 08 	addi    r1,r1,8                                
ffc042a4:	7c 08 03 a6 	mtlr    r0                                     
ffc042a8:	4e 80 00 20 	blr                                            
                                                                      

ffc06340 <drainOutput.part.0>: /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty)
ffc06340:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc06344:	7c 08 02 a6 	mflr    r0                                     
ffc06348:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc0634c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc06350:	90 01 00 14 	stw     r0,20(r1)                              
{                                                                     
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
    rtems_interrupt_disable (level);                                  
ffc06354:	4b ff fd 79 	bl      ffc060cc <ppc_interrupt_disable>       
    while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {              
      tty->rawOutBufState = rob_wait;                                 
ffc06358:	3b c0 00 02 	li      r30,2                                  
ffc0635c:	48 00 00 2c 	b       ffc06388 <drainOutput.part.0+0x48>     
ffc06360:	93 df 00 94 	stw     r30,148(r31)                           <== NOT EXECUTED
ffc06364:	7c 60 01 24 	mtmsr   r3                                     <== NOT EXECUTED
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
ffc06368:	80 7f 00 8c 	lwz     r3,140(r31)                            <== NOT EXECUTED
ffc0636c:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc06370:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc06374:	48 00 25 39 	bl      ffc088ac <rtems_semaphore_obtain>      <== NOT EXECUTED
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc06378:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc0637c:	41 be 00 08 	beq+    cr7,ffc06384 <drainOutput.part.0+0x44> <== NOT EXECUTED
        rtems_fatal_error_occurred (sc);                              
ffc06380:	48 00 2c f1 	bl      ffc09070 <rtems_fatal_error_occurred>  <== NOT EXECUTED
      rtems_interrupt_disable (level);                                
ffc06384:	4b ff fd 49 	bl      ffc060cc <ppc_interrupt_disable>       <== 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) {              
ffc06388:	81 5f 00 84 	lwz     r10,132(r31)                           
ffc0638c:	81 3f 00 80 	lwz     r9,128(r31)                            
ffc06390:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc06394:	40 9e ff cc 	bne+    cr7,ffc06360 <drainOutput.part.0+0x20> <== NEVER TAKEN
ffc06398:	7c 60 01 24 	mtmsr   r3                                     
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
    }                                                                 
    rtems_interrupt_enable (level);                                   
  }                                                                   
}                                                                     
ffc0639c:	39 61 00 10 	addi    r11,r1,16                              
ffc063a0:	4b ff a2 20 	b       ffc005c0 <_restgpr_30_x>               
                                                                      

ffc04a90 <dup2>: */ int dup2( int fildes, int fildes2 ) {
ffc04a90:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc04a94:	7c 08 02 a6 	mflr    r0                                     
ffc04a98:	bf c1 00 58 	stmw    r30,88(r1)                             
ffc04a9c:	7c 9f 23 78 	mr      r31,r4                                 
                                                                      
  /*                                                                  
   *  If fildes is not valid, then fildes2 should not be closed.      
   */                                                                 
                                                                      
  status = fstat( fildes, &buf );                                     
ffc04aa0:	38 81 00 08 	addi    r4,r1,8                                
 */                                                                   
int dup2(                                                             
  int fildes,                                                         
  int fildes2                                                         
)                                                                     
{                                                                     
ffc04aa4:	90 01 00 64 	stw     r0,100(r1)                             
ffc04aa8:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  /*                                                                  
   *  If fildes is not valid, then fildes2 should not be closed.      
   */                                                                 
                                                                      
  status = fstat( fildes, &buf );                                     
ffc04aac:	48 00 05 3d 	bl      ffc04fe8 <fstat>                       
  if ( status == -1 )                                                 
ffc04ab0:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc04ab4:	40 be 00 0c 	bne+    cr7,ffc04ac0 <dup2+0x30>               
    return -1;                                                        
ffc04ab8:	38 60 ff ff 	li      r3,-1                                  
ffc04abc:	48 00 00 2c 	b       ffc04ae8 <dup2+0x58>                   
                                                                      
  /*                                                                  
   *  If fildes2 is not valid, then we should not do anything either. 
   */                                                                 
                                                                      
  status = fstat( fildes2, &buf );                                    
ffc04ac0:	7f e3 fb 78 	mr      r3,r31                                 
ffc04ac4:	38 81 00 08 	addi    r4,r1,8                                
ffc04ac8:	48 00 05 21 	bl      ffc04fe8 <fstat>                       
  if ( status == -1 )                                                 
ffc04acc:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc04ad0:	41 be ff e8 	beq-    cr7,ffc04ab8 <dup2+0x28>               <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  This fcntl handles everything else.                             
   */                                                                 
                                                                      
  return fcntl( fildes, F_DUPFD, fildes2 );                           
ffc04ad4:	7f c3 f3 78 	mr      r3,r30                                 
ffc04ad8:	38 80 00 00 	li      r4,0                                   
ffc04adc:	7f e5 fb 78 	mr      r5,r31                                 
ffc04ae0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04ae4:	48 00 00 1d 	bl      ffc04b00 <fcntl>                       
}                                                                     
ffc04ae8:	39 61 00 60 	addi    r11,r1,96                              
ffc04aec:	4b ff c2 80 	b       ffc00d6c <_restgpr_30_x>               
                                                                      

ffc070e4 <echo>: /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) {
ffc070e4:	7c 2b 0b 78 	mr      r11,r1                                 
ffc070e8:	7c 08 02 a6 	mflr    r0                                     
ffc070ec:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc070f0:	90 01 00 24 	stw     r0,36(r1)                              
ffc070f4:	48 01 2f 55 	bl      ffc1a048 <_savegpr_31>                 
ffc070f8:	7c 9f 23 78 	mr      r31,r4                                 
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
ffc070fc:	81 24 00 3c 	lwz     r9,60(r4)                              
ffc07100:	71 2a 02 00 	andi.   r10,r9,512                             
ffc07104:	41 82 00 60 	beq-    ffc07164 <echo+0x80>                   <== NEVER TAKEN
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
ffc07108:	3d 20 00 00 	lis     r9,0                                   
ffc0710c:	81 29 27 a0 	lwz     r9,10144(r9)                           
ffc07110:	7d 29 1a 14 	add     r9,r9,r3                               
ffc07114:	89 29 00 01 	lbz     r9,1(r9)                               
 * Echo a typed character                                             
 */                                                                   
static void                                                           
echo (unsigned char c, struct rtems_termios_tty *tty)                 
{                                                                     
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
ffc07118:	55 29 06 b4 	rlwinm  r9,r9,0,26,26                          
ffc0711c:	71 2a 00 ff 	andi.   r10,r9,255                             
ffc07120:	41 82 00 44 	beq-    ffc07164 <echo+0x80>                   
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
ffc07124:	2f 83 00 09 	cmpwi   cr7,r3,9                               
ffc07128:	41 9e 00 3c 	beq-    cr7,ffc07164 <echo+0x80>               
ffc0712c:	2f 83 00 0a 	cmpwi   cr7,r3,10                              
ffc07130:	41 be 00 34 	beq+    cr7,ffc07164 <echo+0x80>               
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
    echobuf[1] = c ^ 0x40;                                            
ffc07134:	68 63 00 40 	xori    r3,r3,64                               
{                                                                     
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
ffc07138:	39 20 00 5e 	li      r9,94                                  
    echobuf[1] = c ^ 0x40;                                            
ffc0713c:	98 61 00 09 	stb     r3,9(r1)                               
    rtems_termios_puts (echobuf, 2, tty);                             
ffc07140:	38 80 00 02 	li      r4,2                                   
ffc07144:	38 61 00 08 	addi    r3,r1,8                                
{                                                                     
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
ffc07148:	99 21 00 08 	stb     r9,8(r1)                               
    echobuf[1] = c ^ 0x40;                                            
    rtems_termios_puts (echobuf, 2, tty);                             
ffc0714c:	7f e5 fb 78 	mr      r5,r31                                 
ffc07150:	4b ff fc f5 	bl      ffc06e44 <rtems_termios_puts>          
    tty->column += 2;                                                 
ffc07154:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc07158:	39 29 00 02 	addi    r9,r9,2                                
ffc0715c:	91 3f 00 28 	stw     r9,40(r31)                             
ffc07160:	48 00 00 0c 	b       ffc0716c <echo+0x88>                   
  } else {                                                            
    oproc (c, tty);                                                   
ffc07164:	7f e4 fb 78 	mr      r4,r31                                 
ffc07168:	4b ff fe 09 	bl      ffc06f70 <oproc>                       
  }                                                                   
}                                                                     
ffc0716c:	39 61 00 20 	addi    r11,r1,32                              
ffc07170:	4b ff 94 54 	b       ffc005c4 <_restgpr_31_x>               
                                                                      

ffc07174 <erase.part.2>: * 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)
ffc07174:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc07178:	7d 80 00 26 	mfcr    r12                                    
ffc0717c:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
ffc07180:	2e 04 00 00 	cmpwi   cr4,r4,0                               
 * 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)                   
ffc07184:	bf 61 00 0c 	stmw    r27,12(r1)                             
          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);                       
ffc07188:	3f 80 ff c2 	lis     r28,-62                                
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
ffc0718c:	3f 60 ff c2 	lis     r27,-62                                
 * 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)                   
ffc07190:	90 01 00 24 	stw     r0,36(r1)                              
ffc07194:	7c 7f 1b 78 	mr      r31,r3                                 
ffc07198:	3f a0 00 00 	lis     r29,0                                  
ffc0719c:	91 81 00 08 	stw     r12,8(r1)                              
          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);                       
ffc071a0:	3b 9c be be 	addi    r28,r28,-16706                         
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
ffc071a4:	3b 7b be c0 	addi    r27,r27,-16704                         
ffc071a8:	48 00 01 74 	b       ffc0731c <erase.part.2+0x1a8>          
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
ffc071ac:	81 3f 00 3c 	lwz     r9,60(r31)                             
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
ffc071b0:	39 08 ff ff 	addi    r8,r8,-1                               
ffc071b4:	80 ff 00 1c 	lwz     r7,28(r31)                             
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
ffc071b8:	71 25 00 08 	andi.   r5,r9,8                                
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
ffc071bc:	91 1f 00 20 	stw     r8,32(r31)                             
ffc071c0:	7f c7 40 ae 	lbzx    r30,r7,r8                              
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
ffc071c4:	41 82 01 54 	beq-    ffc07318 <erase.part.2+0x1a4>          <== NEVER TAKEN
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
ffc071c8:	40 92 00 30 	bne-    cr4,ffc071f8 <erase.part.2+0x84>       
ffc071cc:	71 2a 00 10 	andi.   r10,r9,16                              
ffc071d0:	40 a2 00 28 	bne+    ffc071f8 <erase.part.2+0x84>           <== ALWAYS TAKEN
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
ffc071d4:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
        echo (tty->termios.c_cc[VERASE], tty);                        
ffc071d8:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
ffc071dc:	81 81 00 08 	lwz     r12,8(r1)                              <== NOT EXECUTED
ffc071e0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
        echo (tty->termios.c_cc[VERASE], tty);                        
ffc071e4:	88 7f 00 43 	lbz     r3,67(r31)                             <== NOT EXECUTED
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
ffc071e8:	7d 80 81 20 	mtcrf   8,r12                                  <== NOT EXECUTED
ffc071ec:	bb 61 00 0c 	lmw     r27,12(r1)                             <== NOT EXECUTED
ffc071f0:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
        echo (tty->termios.c_cc[VERASE], tty);                        
ffc071f4:	4b ff fe f0 	b       ffc070e4 <echo>                        <== NOT EXECUTED
      } else if (c == '\t') {                                         
ffc071f8:	2f 9e 00 09 	cmpwi   cr7,r30,9                              
ffc071fc:	40 be 00 94 	bne+    cr7,ffc07290 <erase.part.2+0x11c>      
        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)                       
ffc07200:	39 08 00 01 	addi    r8,r8,1                                
                                                                      
    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;                             
ffc07204:	83 df 00 2c 	lwz     r30,44(r31)                            
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
ffc07208:	80 dd 27 a0 	lwz     r6,10144(r29)                          
    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;                                                    
ffc0720c:	39 40 00 00 	li      r10,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)                       
ffc07210:	71 25 02 00 	andi.   r5,r9,512                              
ffc07214:	7d 09 03 a6 	mtctr   r8                                     
ffc07218:	48 00 00 44 	b       ffc0725c <erase.part.2+0xe8>           
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
ffc0721c:	7d 07 50 ae 	lbzx    r8,r7,r10                              
ffc07220:	39 4a 00 01 	addi    r10,r10,1                              
          if (c == '\t') {                                            
ffc07224:	2f 88 00 09 	cmpwi   cr7,r8,9                               
ffc07228:	40 be 00 0c 	bne+    cr7,ffc07234 <erase.part.2+0xc0>       
            col = (col | 7) + 1;                                      
ffc0722c:	63 de 00 07 	ori     r30,r30,7                              
ffc07230:	48 00 00 28 	b       ffc07258 <erase.part.2+0xe4>           
          } else if (iscntrl (c)) {                                   
ffc07234:	7d 06 42 14 	add     r8,r6,r8                               
ffc07238:	89 08 00 01 	lbz     r8,1(r8)                               
ffc0723c:	55 08 06 b4 	rlwinm  r8,r8,0,26,26                          
ffc07240:	55 09 06 3e 	clrlwi  r9,r8,24                               
ffc07244:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07248:	41 9e 00 10 	beq-    cr7,ffc07258 <erase.part.2+0xe4>       <== ALWAYS TAKEN
            if (tty->termios.c_lflag & ECHOCTL)                       
ffc0724c:	41 82 00 10 	beq-    ffc0725c <erase.part.2+0xe8>           <== NOT EXECUTED
              col += 2;                                               
ffc07250:	3b de 00 02 	addi    r30,r30,2                              <== NOT EXECUTED
ffc07254:	48 00 00 08 	b       ffc0725c <erase.part.2+0xe8>           <== NOT EXECUTED
          } else {                                                    
            col++;                                                    
ffc07258:	3b de 00 01 	addi    r30,r30,1                              
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
ffc0725c:	42 00 ff c0 	bdnz+   ffc0721c <erase.part.2+0xa8>           
ffc07260:	48 00 00 20 	b       ffc07280 <erase.part.2+0x10c>          
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
ffc07264:	7f 63 db 78 	mr      r3,r27                                 
ffc07268:	38 80 00 01 	li      r4,1                                   
ffc0726c:	7f e5 fb 78 	mr      r5,r31                                 
ffc07270:	4b ff fb d5 	bl      ffc06e44 <rtems_termios_puts>          
          tty->column--;                                              
ffc07274:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc07278:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0727c:	91 3f 00 28 	stw     r9,40(r31)                             
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
ffc07280:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc07284:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc07288:	41 9d ff dc 	bgt+    cr7,ffc07264 <erase.part.2+0xf0>       
ffc0728c:	48 00 00 8c 	b       ffc07318 <erase.part.2+0x1a4>          
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
ffc07290:	81 5d 27 a0 	lwz     r10,10144(r29)                         
ffc07294:	3b de 00 01 	addi    r30,r30,1                              
ffc07298:	7d 4a f0 ae 	lbzx    r10,r10,r30                            
ffc0729c:	55 4a 06 b4 	rlwinm  r10,r10,0,26,26                        
ffc072a0:	71 45 00 ff 	andi.   r5,r10,255                             
ffc072a4:	41 82 00 30 	beq-    ffc072d4 <erase.part.2+0x160>          <== ALWAYS TAKEN
ffc072a8:	71 28 02 00 	andi.   r8,r9,512                              <== NOT EXECUTED
ffc072ac:	41 a2 00 28 	beq+    ffc072d4 <erase.part.2+0x160>          <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
ffc072b0:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc072b4:	38 80 00 03 	li      r4,3                                   <== NOT EXECUTED
ffc072b8:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc072bc:	4b ff fb 89 	bl      ffc06e44 <rtems_termios_puts>          <== NOT EXECUTED
          if (tty->column)                                            
ffc072c0:	81 3f 00 28 	lwz     r9,40(r31)                             <== NOT EXECUTED
ffc072c4:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc072c8:	41 9e 00 0c 	beq-    cr7,ffc072d4 <erase.part.2+0x160>      <== NOT EXECUTED
            tty->column--;                                            
ffc072cc:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc072d0:	91 3f 00 28 	stw     r9,40(r31)                             <== NOT EXECUTED
        }                                                             
        if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {       
ffc072d4:	81 3d 27 a0 	lwz     r9,10144(r29)                          
ffc072d8:	7d 29 f0 ae 	lbzx    r9,r9,r30                              
ffc072dc:	55 29 06 b4 	rlwinm  r9,r9,0,26,26                          
ffc072e0:	71 2a 00 ff 	andi.   r10,r9,255                             
ffc072e4:	41 82 00 10 	beq-    ffc072f4 <erase.part.2+0x180>          <== ALWAYS TAKEN
ffc072e8:	81 3f 00 3c 	lwz     r9,60(r31)                             <== NOT EXECUTED
ffc072ec:	71 25 02 00 	andi.   r5,r9,512                              <== NOT EXECUTED
ffc072f0:	41 82 00 28 	beq-    ffc07318 <erase.part.2+0x1a4>          <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
ffc072f4:	7f 83 e3 78 	mr      r3,r28                                 
ffc072f8:	38 80 00 03 	li      r4,3                                   
ffc072fc:	7f e5 fb 78 	mr      r5,r31                                 
ffc07300:	4b ff fb 45 	bl      ffc06e44 <rtems_termios_puts>          
          if (tty->column)                                            
ffc07304:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc07308:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0730c:	41 9e 00 0c 	beq-    cr7,ffc07318 <erase.part.2+0x1a4>      <== NEVER TAKEN
            tty->column--;                                            
ffc07310:	39 29 ff ff 	addi    r9,r9,-1                               
ffc07314:	91 3f 00 28 	stw     r9,40(r31)                             
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
ffc07318:	41 92 00 10 	beq-    cr4,ffc07328 <erase.part.2+0x1b4>      
        echo ('\n', tty);                                             
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
ffc0731c:	81 1f 00 20 	lwz     r8,32(r31)                             
ffc07320:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc07324:	40 9e fe 88 	bne+    cr7,ffc071ac <erase.part.2+0x38>       
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
ffc07328:	81 81 00 08 	lwz     r12,8(r1)                              
ffc0732c:	39 61 00 20 	addi    r11,r1,32                              
ffc07330:	7d 80 81 20 	mtcrf   8,r12                                  
ffc07334:	4b ff 92 80 	b       ffc005b4 <_restgpr_27_x>               
                                                                      

ffc13ad0 <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) {
ffc13ad0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc13ad4:	7c 08 02 a6 	mflr    r0                                     
ffc13ad8:	bf 61 00 14 	stmw    r27,20(r1)                             
ffc13adc:	7c 9e 23 78 	mr      r30,r4                                 
ffc13ae0:	7c 7f 1b 78 	mr      r31,r3                                 
ffc13ae4:	90 01 00 2c 	stw     r0,44(r1)                              
ffc13ae8:	7c bb 2b 78 	mr      r27,r5                                 
ffc13aec:	7c dd 33 78 	mr      r29,r6                                 
                                                                      
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);
ffc13af0:	89 23 00 02 	lbz     r9,2(r3)                               
ffc13af4:	89 43 00 0c 	lbz     r10,12(r3)                             
ffc13af8:	7d 49 50 50 	subf    r10,r9,r10                             
ffc13afc:	7c 84 54 30 	srw     r4,r4,r10                              
                                                                      
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);
ffc13b00:	7c 9c 50 30 	slw     r28,r4,r10                             
 fat_sector_offset_to_block_offset (const fat_fs_info_t *fs_info,     
                                    const uint32_t sector,            
                                    const uint32_t sector_offset)     
{                                                                     
  return sector_offset +                                              
           ((sector -                                                 
ffc13b04:	7f 9c f0 50 	subf    r28,r28,r30                            
              fat_block_num_to_sector_num (fs_info,                   
                  fat_sector_num_to_block_num (fs_info, sector)))     
            << fs_info->vol.sec_log2);                                
ffc13b08:	7f 9c 48 30 	slw     r28,r28,r9                             
                                                         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)
ffc13b0c:	89 23 00 89 	lbz     r9,137(r3)                             
ffc13b10:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc13b14:	41 9e 00 10 	beq-    cr7,ffc13b24 <fat_buf_access+0x54>     
ffc13b18:	81 23 00 84 	lwz     r9,132(r3)                             
ffc13b1c:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc13b20:	41 9e 00 5c 	beq-    cr7,ffc13b7c <fat_buf_access+0xac>     
    {                                                                 
        fat_buf_release(fs_info);                                     
ffc13b24:	7f e3 fb 78 	mr      r3,r31                                 
ffc13b28:	90 81 00 08 	stw     r4,8(r1)                               
ffc13b2c:	4b ff fd e5 	bl      ffc13910 <fat_buf_release>             
                                                                      
        if (op_type == FAT_OP_TYPE_READ)                              
ffc13b30:	2f 9b 00 01 	cmpwi   cr7,r27,1                              
ffc13b34:	80 7f 00 64 	lwz     r3,100(r31)                            
ffc13b38:	38 bf 00 8c 	addi    r5,r31,140                             
ffc13b3c:	80 81 00 08 	lwz     r4,8(r1)                               
ffc13b40:	40 be 00 0c 	bne+    cr7,ffc13b4c <fat_buf_access+0x7c>     
            sc = rtems_bdbuf_read(fs_info->vol.dd, blk, &fs_info->c.buf);
ffc13b44:	4b ff dc ad 	bl      ffc117f0 <rtems_bdbuf_read>            
ffc13b48:	48 00 00 08 	b       ffc13b50 <fat_buf_access+0x80>         
        else                                                          
            sc = rtems_bdbuf_get(fs_info->vol.dd, blk, &fs_info->c.buf);
ffc13b4c:	4b ff db cd 	bl      ffc11718 <rtems_bdbuf_get>             
        if (sc != RTEMS_SUCCESSFUL)                                   
ffc13b50:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13b54:	41 be 00 18 	beq+    cr7,ffc13b6c <fat_buf_access+0x9c>     <== ALWAYS TAKEN
            rtems_set_errno_and_return_minus_one(EIO);                
ffc13b58:	48 00 78 1d 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc13b5c:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc13b60:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc13b64:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc13b68:	48 00 00 28 	b       ffc13b90 <fat_buf_access+0xc0>         <== NOT EXECUTED
        fs_info->c.blk_num = sec_num;                                 
        fs_info->c.modified = 0;                                      
        fs_info->c.state = FAT_CACHE_ACTUAL;                          
ffc13b6c:	39 20 00 01 	li      r9,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;                                 
ffc13b70:	93 df 00 84 	stw     r30,132(r31)                           
        fs_info->c.modified = 0;                                      
ffc13b74:	98 7f 00 88 	stb     r3,136(r31)                            
        fs_info->c.state = FAT_CACHE_ACTUAL;                          
ffc13b78:	99 3f 00 89 	stb     r9,137(r31)                            
    }                                                                 
    *sec_buf = &fs_info->c.buf->buffer[blk_ofs];                      
ffc13b7c:	81 3f 00 8c 	lwz     r9,140(r31)                            
    return RC_OK;                                                     
ffc13b80:	38 60 00 00 	li      r3,0                                   
            rtems_set_errno_and_return_minus_one(EIO);                
        fs_info->c.blk_num = sec_num;                                 
        fs_info->c.modified = 0;                                      
        fs_info->c.state = FAT_CACHE_ACTUAL;                          
    }                                                                 
    *sec_buf = &fs_info->c.buf->buffer[blk_ofs];                      
ffc13b84:	81 29 00 1c 	lwz     r9,28(r9)                              
ffc13b88:	7f 89 e2 14 	add     r28,r9,r28                             
ffc13b8c:	93 9d 00 00 	stw     r28,0(r29)                             
    return RC_OK;                                                     
}                                                                     
ffc13b90:	39 61 00 28 	addi    r11,r1,40                              
ffc13b94:	4b fe da 58 	b       ffc015ec <_restgpr_27_x>               
                                                                      

ffc13910 <fat_buf_release>: return RC_OK; } int fat_buf_release(fat_fs_info_t *fs_info) {
ffc13910:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc13914:	7c 08 02 a6 	mflr    r0                                     
ffc13918:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc1391c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc13920:	90 01 00 2c 	stw     r0,44(r1)                              
    rtems_status_code sc = RTEMS_SUCCESSFUL;                          
                                                                      
    if (fs_info->c.state == FAT_CACHE_EMPTY)                          
ffc13924:	89 23 00 89 	lbz     r9,137(r3)                             
ffc13928:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1392c:	41 9e 01 98 	beq-    cr7,ffc13ac4 <fat_buf_release+0x1b4>   
        return RC_OK;                                                 
                                                                      
    if (fs_info->c.modified)                                          
ffc13930:	89 23 00 88 	lbz     r9,136(r3)                             
ffc13934:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc13938:	41 9e 01 60 	beq-    cr7,ffc13a98 <fat_buf_release+0x188>   
    {                                                                 
        uint32_t sec_num = fs_info->c.blk_num;                        
ffc1393c:	81 43 00 84 	lwz     r10,132(r3)                            
        bool     sec_of_fat = ((sec_num >= fs_info->vol.fat_loc) &&   
ffc13940:	39 20 00 00 	li      r9,0                                   
ffc13944:	a1 03 00 18 	lhz     r8,24(r3)                              
ffc13948:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
ffc1394c:	41 9c 00 14 	blt-    cr7,ffc13960 <fat_buf_release+0x50>    
ffc13950:	81 23 00 20 	lwz     r9,32(r3)                              
ffc13954:	7d 29 50 10 	subfc   r9,r9,r10                              
ffc13958:	7d 29 49 10 	subfe   r9,r9,r9                               
ffc1395c:	7d 29 00 d0 	neg     r9,r9                                  
        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)                       
ffc13960:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    uint32_t                              ino                         
    )                                                                 
{                                                                     
                                                                      
    return (ino >= fs_info->uino_base);                               
}                                                                     
ffc13964:	89 1f 00 02 	lbz     r8,2(r31)                              
ffc13968:	88 ff 00 0c 	lbz     r7,12(r31)                             
        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)                       
ffc1396c:	7d 3e 4b 78 	mr      r30,r9                                 
ffc13970:	41 9e 00 3c 	beq-    cr7,ffc139ac <fat_buf_release+0x9c>    
ffc13974:	89 3f 00 54 	lbz     r9,84(r31)                             
ffc13978:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1397c:	40 be 00 30 	bne+    cr7,ffc139ac <fat_buf_release+0x9c>    <== NEVER TAKEN
ffc13980:	7c e8 38 50 	subf    r7,r8,r7                               
            memcpy(fs_info->sec_buf,                                  
                   fs_info->c.buf->buffer + blk_ofs,                  
ffc13984:	81 3f 00 8c 	lwz     r9,140(r31)                            
ffc13988:	7d 46 3c 30 	srw     r6,r10,r7                              
        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,                                  
ffc1398c:	80 7f 00 90 	lwz     r3,144(r31)                            
                                                                      
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);
ffc13990:	7c c7 38 30 	slw     r7,r6,r7                               
ffc13994:	80 89 00 1c 	lwz     r4,28(r9)                              
 fat_sector_offset_to_block_offset (const fat_fs_info_t *fs_info,     
                                    const uint32_t sector,            
                                    const uint32_t sector_offset)     
{                                                                     
  return sector_offset +                                              
           ((sector -                                                 
ffc13998:	7d 47 50 50 	subf    r10,r7,r10                             
ffc1399c:	a0 bf 00 00 	lhz     r5,0(r31)                              
              fat_block_num_to_sector_num (fs_info,                   
                  fat_sector_num_to_block_num (fs_info, sector)))     
            << fs_info->vol.sec_log2);                                
ffc139a0:	7d 48 40 30 	slw     r8,r10,r8                              
ffc139a4:	7c 84 42 14 	add     r4,r4,r8                               
ffc139a8:	48 00 86 ad 	bl      ffc1c054 <memcpy>                      
                   fs_info->c.buf->buffer + blk_ofs,                  
                   fs_info->vol.bps);                                 
                                                                      
        sc = rtems_bdbuf_release_modified(fs_info->c.buf);            
ffc139ac:	80 7f 00 8c 	lwz     r3,140(r31)                            
ffc139b0:	4b ff e1 15 	bl      ffc11ac4 <rtems_bdbuf_release_modified>
        if (sc != RTEMS_SUCCESSFUL)                                   
ffc139b4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc139b8:	41 a2 00 08 	beq+    ffc139c0 <fat_buf_release+0xb0>        <== ALWAYS TAKEN
ffc139bc:	48 00 00 ec 	b       ffc13aa8 <fat_buf_release+0x198>       <== NOT EXECUTED
            rtems_set_errno_and_return_minus_one(EIO);                
        fs_info->c.modified = 0;                                      
                                                                      
        if (sec_of_fat && !fs_info->vol.mirror)                       
ffc139c0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
                   fs_info->vol.bps);                                 
                                                                      
        sc = rtems_bdbuf_release_modified(fs_info->c.buf);            
        if (sc != RTEMS_SUCCESSFUL)                                   
            rtems_set_errno_and_return_minus_one(EIO);                
        fs_info->c.modified = 0;                                      
ffc139c4:	98 7f 00 88 	stb     r3,136(r31)                            
                                                                      
        if (sec_of_fat && !fs_info->vol.mirror)                       
ffc139c8:	41 9e 00 f4 	beq-    cr7,ffc13abc <fat_buf_release+0x1ac>   
ffc139cc:	89 3f 00 54 	lbz     r9,84(r31)                             
ffc139d0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc139d4:	41 9e 00 b0 	beq-    cr7,ffc13a84 <fat_buf_release+0x174>   <== ALWAYS TAKEN
ffc139d8:	48 00 00 e4 	b       ffc13abc <fat_buf_release+0x1ac>       <== 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,
ffc139dc:	81 5f 00 1c 	lwz     r10,28(r31)                            
ffc139e0:	81 3f 00 84 	lwz     r9,132(r31)                            
ffc139e4:	7d 5e 51 d6 	mullw   r10,r30,r10                            
                                                                      
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);
ffc139e8:	88 7f 00 0c 	lbz     r3,12(r31)                             
ffc139ec:	7d 4a 4a 14 	add     r10,r10,r9                             
ffc139f0:	89 3f 00 02 	lbz     r9,2(r31)                              
ffc139f4:	7c 69 18 50 	subf    r3,r9,r3                               
ffc139f8:	7d 44 1c 30 	srw     r4,r10,r3                              
                                                                      
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);
ffc139fc:	7c 83 18 30 	slw     r3,r4,r3                               
 fat_sector_offset_to_block_offset (const fat_fs_info_t *fs_info,     
                                    const uint32_t sector,            
                                    const uint32_t sector_offset)     
{                                                                     
  return sector_offset +                                              
           ((sector -                                                 
ffc13a00:	7c 63 50 50 	subf    r3,r3,r10                              
                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                                      
ffc13a04:	7c 7d 48 31 	slw.    r29,r3,r9                              
ffc13a08:	40 82 00 24 	bne-    ffc13a2c <fat_buf_release+0x11c>       
                    && fs_info->vol.bps == fs_info->vol.bytes_per_block)
ffc13a0c:	a1 5f 00 00 	lhz     r10,0(r31)                             
ffc13a10:	a1 3f 00 0a 	lhz     r9,10(r31)                             
ffc13a14:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc13a18:	40 be 00 14 	bne+    cr7,ffc13a2c <fat_buf_release+0x11c>   
                {                                                     
                    sc = rtems_bdbuf_get(fs_info->vol.dd, blk, &bd);  
ffc13a1c:	80 7f 00 64 	lwz     r3,100(r31)                            
ffc13a20:	38 a1 00 08 	addi    r5,r1,8                                
ffc13a24:	4b ff dc f5 	bl      ffc11718 <rtems_bdbuf_get>             
ffc13a28:	48 00 00 10 	b       ffc13a38 <fat_buf_release+0x128>       
                }                                                     
                else                                                  
                {                                                     
                    sc = rtems_bdbuf_read(fs_info->vol.dd, blk, &bd); 
ffc13a2c:	80 7f 00 64 	lwz     r3,100(r31)                            
ffc13a30:	38 a1 00 08 	addi    r5,r1,8                                
ffc13a34:	4b ff dd bd 	bl      ffc117f0 <rtems_bdbuf_read>            
                }                                                     
                if ( sc != RTEMS_SUCCESSFUL)                          
ffc13a38:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13a3c:	41 be 00 08 	beq+    cr7,ffc13a44 <fat_buf_release+0x134>   <== ALWAYS TAKEN
ffc13a40:	48 00 00 2c 	b       ffc13a6c <fat_buf_release+0x15c>       <== NOT EXECUTED
                    rtems_set_errno_and_return_minus_one(ENOMEM);     
                memcpy(bd->buffer + blk_ofs, fs_info->sec_buf, fs_info->vol.bps);
ffc13a44:	81 21 00 08 	lwz     r9,8(r1)                               
ffc13a48:	80 9f 00 90 	lwz     r4,144(r31)                            
ffc13a4c:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc13a50:	a0 bf 00 00 	lhz     r5,0(r31)                              
ffc13a54:	7c 63 ea 14 	add     r3,r3,r29                              
ffc13a58:	48 00 85 fd 	bl      ffc1c054 <memcpy>                      
                sc = rtems_bdbuf_release_modified(bd);                
ffc13a5c:	80 61 00 08 	lwz     r3,8(r1)                               
ffc13a60:	4b ff e0 65 	bl      ffc11ac4 <rtems_bdbuf_release_modified>
                if ( sc != RTEMS_SUCCESSFUL)                          
ffc13a64:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13a68:	41 be 00 10 	beq+    cr7,ffc13a78 <fat_buf_release+0x168>   <== ALWAYS TAKEN
                    rtems_set_errno_and_return_minus_one(ENOMEM);     
ffc13a6c:	48 00 79 09 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc13a70:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc13a74:	48 00 00 3c 	b       ffc13ab0 <fat_buf_release+0x1a0>       <== NOT EXECUTED
                                                                      
        if (sec_of_fat && !fs_info->vol.mirror)                       
        {                                                             
            uint8_t i;                                                
                                                                      
            for (i = 1; i < fs_info->vol.fats; i++)                   
ffc13a78:	3b de 00 01 	addi    r30,r30,1                              
ffc13a7c:	57 de 06 3e 	clrlwi  r30,r30,24                             
ffc13a80:	48 00 00 08 	b       ffc13a88 <fat_buf_release+0x178>       
        sc = rtems_bdbuf_release_modified(fs_info->c.buf);            
        if (sc != RTEMS_SUCCESSFUL)                                   
            rtems_set_errno_and_return_minus_one(EIO);                
        fs_info->c.modified = 0;                                      
                                                                      
        if (sec_of_fat && !fs_info->vol.mirror)                       
ffc13a84:	3b c0 00 01 	li      r30,1                                  
        {                                                             
            uint8_t i;                                                
                                                                      
            for (i = 1; i < fs_info->vol.fats; i++)                   
ffc13a88:	89 3f 00 0d 	lbz     r9,13(r31)                             
ffc13a8c:	7f 89 f0 40 	cmplw   cr7,r9,r30                             
ffc13a90:	41 9d ff 4c 	bgt+    cr7,ffc139dc <fat_buf_release+0xcc>    
ffc13a94:	48 00 00 28 	b       ffc13abc <fat_buf_release+0x1ac>       
            }                                                         
        }                                                             
    }                                                                 
    else                                                              
    {                                                                 
        sc = rtems_bdbuf_release(fs_info->c.buf);                     
ffc13a98:	80 63 00 8c 	lwz     r3,140(r3)                             
ffc13a9c:	4b ff df 4d 	bl      ffc119e8 <rtems_bdbuf_release>         
        if (sc != RTEMS_SUCCESSFUL)                                   
ffc13aa0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13aa4:	41 be 00 18 	beq+    cr7,ffc13abc <fat_buf_release+0x1ac>   <== ALWAYS TAKEN
            rtems_set_errno_and_return_minus_one(EIO);                
ffc13aa8:	48 00 78 cd 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc13aac:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc13ab0:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc13ab4:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc13ab8:	48 00 00 10 	b       ffc13ac8 <fat_buf_release+0x1b8>       <== NOT EXECUTED
    }                                                                 
    fs_info->c.state = FAT_CACHE_EMPTY;                               
ffc13abc:	39 20 00 00 	li      r9,0                                   
ffc13ac0:	99 3f 00 89 	stb     r9,137(r31)                            
fat_buf_release(fat_fs_info_t *fs_info)                               
{                                                                     
    rtems_status_code sc = RTEMS_SUCCESSFUL;                          
                                                                      
    if (fs_info->c.state == FAT_CACHE_EMPTY)                          
        return RC_OK;                                                 
ffc13ac4:	38 60 00 00 	li      r3,0                                   
        if (sc != RTEMS_SUCCESSFUL)                                   
            rtems_set_errno_and_return_minus_one(EIO);                
    }                                                                 
    fs_info->c.state = FAT_CACHE_EMPTY;                               
    return RC_OK;                                                     
}                                                                     
ffc13ac8:	39 61 00 28 	addi    r11,r1,40                              
ffc13acc:	4b fe db 28 	b       ffc015f4 <_restgpr_29_x>               
                                                                      

ffc138b8 <fat_cluster_num_to_block_num>: 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)) )
ffc138b8:	2c 04 00 00 	cmpwi   r4,0                                   
ffc138bc:	40 82 00 28 	bne-    ffc138e4 <fat_cluster_num_to_block_num+0x2c>
ffc138c0:	89 23 00 0e 	lbz     r9,14(r3)                              
ffc138c4:	71 2a 00 03 	andi.   r10,r9,3                               
ffc138c8:	41 a2 00 1c 	beq+    ffc138e4 <fat_cluster_num_to_block_num+0x2c><== 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);
ffc138cc:	89 43 00 0c 	lbz     r10,12(r3)                             
ffc138d0:	89 23 00 02 	lbz     r9,2(r3)                               
ffc138d4:	80 63 00 20 	lwz     r3,32(r3)                              
ffc138d8:	7d 29 50 50 	subf    r9,r9,r10                              
ffc138dc:	7c 63 4c 30 	srw     r3,r3,r9                               
ffc138e0:	4e 80 00 20 	blr                                            
        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);
ffc138e4:	89 23 00 0c 	lbz     r9,12(r3)                              
                                                                      
    if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
        blk = fat_sector_num_to_block_num(fs_info, fs_info->vol.rdir_loc);
    else                                                              
    {                                                                 
        cln -= FAT_RSRVD_CLN;                                         
ffc138e8:	39 44 ff fe 	addi    r10,r4,-2                              
        blk = cln << (fs_info->vol.bpc_log2 - fs_info->vol.bytes_per_block_log2);
ffc138ec:	89 03 00 08 	lbz     r8,8(r3)                               
ffc138f0:	7d 09 40 50 	subf    r8,r9,r8                               
ffc138f4:	7d 4a 40 30 	slw     r10,r10,r8                             
ffc138f8:	89 03 00 02 	lbz     r8,2(r3)                               
ffc138fc:	80 63 00 34 	lwz     r3,52(r3)                              
ffc13900:	7d 28 48 50 	subf    r9,r8,r9                               
ffc13904:	7c 63 4c 30 	srw     r3,r3,r9                               
        blk += fat_sector_num_to_block_num(fs_info, fs_info->vol.data_fsec);
ffc13908:	7c 63 52 14 	add     r3,r3,r10                              
    }                                                                 
                                                                      
    return blk;                                                       
}                                                                     
ffc1390c:	4e 80 00 20 	blr                                            
                                                                      

ffc12bc8 <fat_cluster_num_to_sector_num>: 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)) )
ffc12bc8:	2c 04 00 00 	cmpwi   r4,0                                   
ffc12bcc:	40 82 00 18 	bne-    ffc12be4 <fat_cluster_num_to_sector_num+0x1c>
ffc12bd0:	89 23 00 0e 	lbz     r9,14(r3)                              
ffc12bd4:	71 2a 00 03 	andi.   r10,r9,3                               
ffc12bd8:	41 a2 00 0c 	beq+    ffc12be4 <fat_cluster_num_to_sector_num+0x1c><== NEVER TAKEN
        return fs_info->vol.rdir_loc;                                 
ffc12bdc:	80 63 00 20 	lwz     r3,32(r3)                              
ffc12be0:	4e 80 00 20 	blr                                            
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
ffc12be4:	89 23 00 05 	lbz     r9,5(r3)                               
ffc12be8:	39 44 ff fe 	addi    r10,r4,-2                              
ffc12bec:	7d 4a 48 30 	slw     r10,r10,r9                             
ffc12bf0:	81 23 00 34 	lwz     r9,52(r3)                              
ffc12bf4:	7c 6a 4a 14 	add     r3,r10,r9                              
            fs_info->vol.data_fsec);                                  
}                                                                     
ffc12bf8:	4e 80 00 20 	blr                                            
                                                                      

ffc13ce8 <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) {
ffc13ce8:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc13cec:	7c 08 02 a6 	mflr    r0                                     
ffc13cf0:	90 01 00 44 	stw     r0,68(r1)                              
  ssize_t             rc               = RC_OK;                       
  uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
ffc13cf4:	a1 23 00 06 	lhz     r9,6(r3)                               
     fat_fs_info_t                        *fs_info,                   
     const uint32_t                        start_cln,                 
     const uint32_t                        offset,                    
     const uint32_t                        count,                     
     const uint8_t                         pattern)                   
{                                                                     
ffc13cf8:	be e1 00 1c 	stmw    r23,28(r1)                             
ffc13cfc:	7c 7f 1b 78 	mr      r31,r3                                 
  ssize_t             rc               = RC_OK;                       
  uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
ffc13d00:	7d 25 48 50 	subf    r9,r5,r9                               
ffc13d04:	7f 86 48 40 	cmplw   cr7,r6,r9                              
     fat_fs_info_t                        *fs_info,                   
     const uint32_t                        start_cln,                 
     const uint32_t                        offset,                    
     const uint32_t                        count,                     
     const uint8_t                         pattern)                   
{                                                                     
ffc13d08:	7c bd 2b 78 	mr      r29,r5                                 
ffc13d0c:	7c f8 3b 78 	mr      r24,r7                                 
  ssize_t             rc               = RC_OK;                       
  uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
ffc13d10:	7c de 33 78 	mr      r30,r6                                 
ffc13d14:	40 9d 00 08 	ble-    cr7,ffc13d1c <fat_cluster_set+0x34>    <== ALWAYS TAKEN
ffc13d18:	7d 3e 4b 78 	mr      r30,r9                                 <== NOT EXECUTED
  uint32_t            cur_blk          = fat_cluster_num_to_block_num(fs_info, start_cln);
ffc13d1c:	7f e3 fb 78 	mr      r3,r31                                 
ffc13d20:	4b ff fb 99 	bl      ffc138b8 <fat_cluster_num_to_block_num>
  uint32_t            blocks_in_offset = offset >> fs_info->vol.bytes_per_block_log2;
ffc13d24:	8b 3f 00 0c 	lbz     r25,12(r31)                            
  uint32_t            ofs_blk          = offset - (blocks_in_offset << fs_info->vol.bytes_per_block_log2);
  ssize_t             bytes_written    = 0;                           
ffc13d28:	3b 40 00 00 	li      r26,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;
ffc13d2c:	7f bb cc 30 	srw     r27,r29,r25                            
  uint32_t            ofs_blk          = offset - (blocks_in_offset << fs_info->vol.bytes_per_block_log2);
ffc13d30:	7f 79 c8 30 	slw     r25,r27,r25                            
ffc13d34:	7f 39 e8 50 	subf    r25,r25,r29                            
  ssize_t             bytes_written    = 0;                           
  ssize_t             ret;                                            
                                                                      
  cur_blk += blocks_in_offset;                                        
ffc13d38:	7f 63 da 14 	add     r27,r3,r27                             
ffc13d3c:	3a e0 00 01 	li      r23,1                                  
ffc13d40:	48 00 00 9c 	b       ffc13ddc <fat_cluster_set+0xf4>        
                                                                      
  while (   (RC_OK == rc)                                             
         && (0 < bytes_to_write))                                     
  {                                                                   
    uint32_t c = MIN(bytes_to_write, (fs_info->vol.bytes_per_block - ofs_blk));
ffc13d44:	a1 5f 00 0a 	lhz     r10,10(r31)                            
ffc13d48:	7d 39 50 50 	subf    r9,r25,r10                             
ffc13d4c:	7f 89 f0 40 	cmplw   cr7,r9,r30                             
ffc13d50:	7d 3d 4b 78 	mr      r29,r9                                 
ffc13d54:	40 9d 00 08 	ble-    cr7,ffc13d5c <fat_cluster_set+0x74>    <== ALWAYS TAKEN
ffc13d58:	7f dd f3 78 	mr      r29,r30                                <== 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));
ffc13d5c:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc13d60:	7f bc eb 78 	mr      r28,r29                                
ffc13d64:	40 9d 00 08 	ble-    cr7,ffc13d6c <fat_cluster_set+0x84>    <== ALWAYS TAKEN
ffc13d68:	7d 3c 4b 78 	mr      r28,r9                                 <== NOT EXECUTED
    uint8_t            *blk_buf;                                      
    uint32_t            sec_num        = fat_block_num_to_sector_num(fs_info, start_blk);
                                                                      
    if (0 < bytes_to_write)                                           
ffc13d6c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
    uint32_t                              ino                         
    )                                                                 
{                                                                     
                                                                      
    return (ino >= fs_info->uino_base);                               
}                                                                     
ffc13d70:	89 3f 00 02 	lbz     r9,2(r31)                              
ffc13d74:	88 9f 00 0c 	lbz     r4,12(r31)                             
    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)                                           
ffc13d78:	41 9e 00 7c 	beq-    cr7,ffc13df4 <fat_cluster_set+0x10c>   <== NEVER TAKEN
    {                                                                 
        if (bytes_to_write == fs_info->vol.bytes_per_block)           
ffc13d7c:	7f 9c 50 00 	cmpw    cr7,r28,r10                            
                                                                      
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);
ffc13d80:	7c 89 20 50 	subf    r4,r9,r4                               
ffc13d84:	7f 64 20 30 	slw     r4,r27,r4                              
        {                                                             
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_GET, &blk_buf);
ffc13d88:	7f e3 fb 78 	mr      r3,r31                                 
ffc13d8c:	38 a0 00 02 	li      r5,2                                   
    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)           
ffc13d90:	41 9e 00 08 	beq-    cr7,ffc13d98 <fat_cluster_set+0xb0>    
        {                                                             
            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);
ffc13d94:	38 a0 00 01 	li      r5,1                                   
ffc13d98:	38 c1 00 08 	addi    r6,r1,8                                
ffc13d9c:	4b ff fd 35 	bl      ffc13ad0 <fat_buf_access>              
                                                                      
        if (RC_OK == rc)                                              
ffc13da0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13da4:	40 be 00 20 	bne+    cr7,ffc13dc4 <fat_cluster_set+0xdc>    <== NEVER TAKEN
        {                                                             
            memset(blk_buf + offset, pattern, bytes_to_write);        
ffc13da8:	80 61 00 08 	lwz     r3,8(r1)                               
ffc13dac:	7f 04 c3 78 	mr      r4,r24                                 
ffc13db0:	7f 85 e3 78 	mr      r5,r28                                 
ffc13db4:	7c 63 ca 14 	add     r3,r3,r25                              
ffc13db8:	48 00 83 91 	bl      ffc1c148 <memset>                      
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
ffc13dbc:	9a ff 00 88 	stb     r23,136(r31)                           
ffc13dc0:	48 00 00 34 	b       ffc13df4 <fat_cluster_set+0x10c>       
        fs_info,                                                      
        cur_blk,                                                      
        ofs_blk,                                                      
        c,                                                            
        pattern);                                                     
    if (c != ret)                                                     
ffc13dc4:	7f 9d 18 00 	cmpw    cr7,r29,r3                             
ffc13dc8:	40 be 00 24 	bne+    cr7,ffc13dec <fat_cluster_set+0x104>   <== NEVER TAKEN
      rc = -1;                                                        
    else                                                              
    {                                                                 
        bytes_to_write -= ret;                                        
ffc13dcc:	7f dd f0 50 	subf    r30,r29,r30                            
        bytes_written  += ret;                                        
ffc13dd0:	7f 5a ea 14 	add     r26,r26,r29                            
        ++cur_blk;                                                    
ffc13dd4:	3b 7b 00 01 	addi    r27,r27,1                              
ffc13dd8:	3b 20 00 00 	li      r25,0                                  
  ssize_t             ret;                                            
                                                                      
  cur_blk += blocks_in_offset;                                        
                                                                      
  while (   (RC_OK == rc)                                             
         && (0 < bytes_to_write))                                     
ffc13ddc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc13de0:	40 9e ff 64 	bne+    cr7,ffc13d44 <fat_cluster_set+0x5c>    
ffc13de4:	7f 43 d3 78 	mr      r3,r26                                 
ffc13de8:	48 00 00 14 	b       ffc13dfc <fat_cluster_set+0x114>       
        fs_info,                                                      
        cur_blk,                                                      
        ofs_blk,                                                      
        c,                                                            
        pattern);                                                     
    if (c != ret)                                                     
ffc13dec:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc13df0:	48 00 00 0c 	b       ffc13dfc <fat_cluster_set+0x114>       <== NOT EXECUTED
        }                                                             
    }                                                                 
    if (RC_OK != rc)                                                  
        return rc;                                                    
    else                                                              
        return bytes_to_write;                                        
ffc13df4:	7f 83 e3 78 	mr      r3,r28                                 
ffc13df8:	4b ff ff cc 	b       ffc13dc4 <fat_cluster_set+0xdc>        
  }                                                                   
  if (RC_OK != rc)                                                    
    return rc;                                                        
  else                                                                
    return bytes_written;                                             
}                                                                     
ffc13dfc:	39 61 00 40 	addi    r11,r1,64                              
ffc13e00:	4b fe d7 dc 	b       ffc015dc <_restgpr_23_x>               
                                                                      

ffc13e04 <fat_cluster_write>: const uint32_t start_cln, const uint32_t offset, const uint32_t count, const void *buff, const bool overwrite_cluster) {
ffc13e04:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc13e08:	7c 08 02 a6 	mflr    r0                                     
ffc13e0c:	7d 80 00 26 	mfcr    r12                                    
ffc13e10:	90 01 00 44 	stw     r0,68(r1)                              
    ssize_t             rc               = RC_OK;                     
    uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
ffc13e14:	a1 23 00 06 	lhz     r9,6(r3)                               
    const uint32_t                        start_cln,                  
    const uint32_t                        offset,                     
    const uint32_t                        count,                      
    const void                           *buff,                       
    const bool                            overwrite_cluster)          
{                                                                     
ffc13e18:	be e1 00 1c 	stmw    r23,28(r1)                             
ffc13e1c:	7c 7f 1b 78 	mr      r31,r3                                 
    ssize_t             rc               = RC_OK;                     
    uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
ffc13e20:	7d 25 48 50 	subf    r9,r5,r9                               
ffc13e24:	7f 86 48 40 	cmplw   cr7,r6,r9                              
    const uint32_t                        start_cln,                  
    const uint32_t                        offset,                     
    const uint32_t                        count,                      
    const void                           *buff,                       
    const bool                            overwrite_cluster)          
{                                                                     
ffc13e28:	91 81 00 18 	stw     r12,24(r1)                             
ffc13e2c:	7c bd 2b 78 	mr      r29,r5                                 
ffc13e30:	7c f8 3b 78 	mr      r24,r7                                 
ffc13e34:	7d 1c 43 78 	mr      r28,r8                                 
    ssize_t             rc               = RC_OK;                     
    uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
ffc13e38:	7c de 33 78 	mr      r30,r6                                 
ffc13e3c:	40 9d 00 08 	ble-    cr7,ffc13e44 <fat_cluster_write+0x40>  <== ALWAYS TAKEN
ffc13e40:	7d 3e 4b 78 	mr      r30,r9                                 <== NOT EXECUTED
    uint32_t            cur_blk          = fat_cluster_num_to_block_num(fs_info, start_cln);
ffc13e44:	7f e3 fb 78 	mr      r3,r31                                 
ffc13e48:	4b ff fa 71 	bl      ffc138b8 <fat_cluster_num_to_block_num>
    uint32_t            blocks_in_offset = (offset >> fs_info->vol.bytes_per_block_log2);
ffc13e4c:	8b 3f 00 0c 	lbz     r25,12(r31)                            
    uint32_t            ofs_blk          = offset - (blocks_in_offset << fs_info->vol.bytes_per_block_log2);
    ssize_t             bytes_written    = 0;                         
ffc13e50:	3b 60 00 00 	li      r27,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);
ffc13e54:	7f ba cc 30 	srw     r26,r29,r25                            
    uint32_t            ofs_blk          = offset - (blocks_in_offset << fs_info->vol.bytes_per_block_log2);
ffc13e58:	7f 59 c8 30 	slw     r25,r26,r25                            
ffc13e5c:	7f 39 e8 50 	subf    r25,r25,r29                            
    ssize_t             bytes_written    = 0;                         
    uint8_t             *buffer          = (uint8_t*)buff;            
    ssize_t             ret;                                          
    uint32_t            c;                                            
                                                                      
    cur_blk += blocks_in_offset;                                      
ffc13e60:	7f 43 d2 14 	add     r26,r3,r26                             
    uint8_t            *blk_buf;                                      
    uint32_t            sec_num        = fat_block_num_to_sector_num(fs_info, start_blk);
                                                                      
    if (0 < bytes_to_write)                                           
    {                                                                 
        if (   overwrite_block                                        
ffc13e64:	2e 1c 00 00 	cmpwi   cr4,r28,0                              
ffc13e68:	3a e0 00 01 	li      r23,1                                  
ffc13e6c:	48 00 00 a4 	b       ffc13f10 <fat_cluster_write+0x10c>     
    cur_blk += blocks_in_offset;                                      
                                                                      
    while (   (RC_OK == rc)                                           
           && (0 < bytes_to_write))                                   
    {                                                                 
      c = MIN(bytes_to_write, (fs_info->vol.bytes_per_block - ofs_blk));
ffc13e70:	a1 5f 00 0a 	lhz     r10,10(r31)                            
ffc13e74:	7d 39 50 50 	subf    r9,r25,r10                             
ffc13e78:	7f 89 f0 40 	cmplw   cr7,r9,r30                             
ffc13e7c:	7d 3d 4b 78 	mr      r29,r9                                 
ffc13e80:	40 9d 00 08 	ble-    cr7,ffc13e88 <fat_cluster_write+0x84>  
ffc13e84:	7f dd f3 78 	mr      r29,r30                                
    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));
ffc13e88:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc13e8c:	7f bc eb 78 	mr      r28,r29                                
ffc13e90:	40 9d 00 08 	ble-    cr7,ffc13e98 <fat_cluster_write+0x94>  <== ALWAYS TAKEN
ffc13e94:	7d 3c 4b 78 	mr      r28,r9                                 <== NOT EXECUTED
    uint8_t            *blk_buf;                                      
    uint32_t            sec_num        = fat_block_num_to_sector_num(fs_info, start_blk);
                                                                      
    if (0 < bytes_to_write)                                           
ffc13e98:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
    uint32_t                              ino                         
    )                                                                 
{                                                                     
                                                                      
    return (ino >= fs_info->uino_base);                               
}                                                                     
ffc13e9c:	89 3f 00 02 	lbz     r9,2(r31)                              
ffc13ea0:	88 9f 00 0c 	lbz     r4,12(r31)                             
    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)                                           
ffc13ea4:	41 9e 00 84 	beq-    cr7,ffc13f28 <fat_cluster_write+0x124> <== 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);
ffc13ea8:	7c 89 20 50 	subf    r4,r9,r4                               
ffc13eac:	7f 44 20 30 	slw     r4,r26,r4                              
    {                                                                 
        if (   overwrite_block                                        
            || (bytes_to_write == fs_info->vol.bytes_per_block))      
        {                                                             
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_GET, &blk_buf);
ffc13eb0:	7f e3 fb 78 	mr      r3,r31                                 
    uint8_t            *blk_buf;                                      
    uint32_t            sec_num        = fat_block_num_to_sector_num(fs_info, start_blk);
                                                                      
    if (0 < bytes_to_write)                                           
    {                                                                 
        if (   overwrite_block                                        
ffc13eb4:	40 92 00 10 	bne-    cr4,ffc13ec4 <fat_cluster_write+0xc0>  
            || (bytes_to_write == fs_info->vol.bytes_per_block))      
ffc13eb8:	7f 9c 50 00 	cmpw    cr7,r28,r10                            
        {                                                             
            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);
ffc13ebc:	38 a0 00 01 	li      r5,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))      
ffc13ec0:	40 9e 00 0c 	bne-    cr7,ffc13ecc <fat_cluster_write+0xc8>  
        {                                                             
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_GET, &blk_buf);
ffc13ec4:	38 a0 00 02 	li      r5,2                                   
ffc13ec8:	48 00 00 04 	b       ffc13ecc <fat_cluster_write+0xc8>      
        }                                                             
        else                                                          
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &blk_buf);
ffc13ecc:	38 c1 00 08 	addi    r6,r1,8                                
ffc13ed0:	4b ff fc 01 	bl      ffc13ad0 <fat_buf_access>              
                                                                      
        if (RC_OK == rc)                                              
ffc13ed4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13ed8:	40 be 00 20 	bne+    cr7,ffc13ef8 <fat_cluster_write+0xf4>  <== NEVER TAKEN
        {                                                             
            memcpy(blk_buf + offset, buf, bytes_to_write);            
ffc13edc:	80 61 00 08 	lwz     r3,8(r1)                               
ffc13ee0:	7c 98 da 14 	add     r4,r24,r27                             
ffc13ee4:	7f 85 e3 78 	mr      r5,r28                                 
ffc13ee8:	7c 63 ca 14 	add     r3,r3,r25                              
ffc13eec:	48 00 81 69 	bl      ffc1c054 <memcpy>                      
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
ffc13ef0:	9a ff 00 88 	stb     r23,136(r31)                           
ffc13ef4:	48 00 00 34 	b       ffc13f28 <fat_cluster_write+0x124>     
          cur_blk,                                                    
          ofs_blk,                                                    
          c,                                                          
          &buffer[bytes_written],                                     
          overwrite_cluster);                                         
      if (c != ret)                                                   
ffc13ef8:	7f 9d 18 00 	cmpw    cr7,r29,r3                             
ffc13efc:	40 be 00 24 	bne+    cr7,ffc13f20 <fat_cluster_write+0x11c> <== NEVER TAKEN
        rc = -1;                                                      
      else                                                            
      {                                                               
          bytes_to_write -= ret;                                      
ffc13f00:	7f dd f0 50 	subf    r30,r29,r30                            
          bytes_written  += ret;                                      
ffc13f04:	7f 7b ea 14 	add     r27,r27,r29                            
          ++cur_blk;                                                  
ffc13f08:	3b 5a 00 01 	addi    r26,r26,1                              
ffc13f0c:	3b 20 00 00 	li      r25,0                                  
    uint32_t            c;                                            
                                                                      
    cur_blk += blocks_in_offset;                                      
                                                                      
    while (   (RC_OK == rc)                                           
           && (0 < bytes_to_write))                                   
ffc13f10:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc13f14:	40 9e ff 5c 	bne+    cr7,ffc13e70 <fat_cluster_write+0x6c>  
ffc13f18:	7f 63 db 78 	mr      r3,r27                                 
ffc13f1c:	48 00 00 14 	b       ffc13f30 <fat_cluster_write+0x12c>     
          cur_blk,                                                    
          ofs_blk,                                                    
          c,                                                          
          &buffer[bytes_written],                                     
          overwrite_cluster);                                         
      if (c != ret)                                                   
ffc13f20:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc13f24:	48 00 00 0c 	b       ffc13f30 <fat_cluster_write+0x12c>     <== NOT EXECUTED
        }                                                             
    }                                                                 
    if (RC_OK != rc)                                                  
        return rc;                                                    
    else                                                              
        return bytes_to_write;                                        
ffc13f28:	7f 83 e3 78 	mr      r3,r28                                 
ffc13f2c:	4b ff ff cc 	b       ffc13ef8 <fat_cluster_write+0xf4>      
    }                                                                 
    if (RC_OK != rc)                                                  
      return rc;                                                      
    else                                                              
      return bytes_written;                                           
}                                                                     
ffc13f30:	81 81 00 18 	lwz     r12,24(r1)                             
ffc13f34:	39 61 00 40 	addi    r11,r1,64                              
ffc13f38:	7d 80 81 20 	mtcrf   8,r12                                  
ffc13f3c:	4b fe d6 a0 	b       ffc015dc <_restgpr_23_x>               
                                                                      

ffc1317c <fat_file_close>: int fat_file_close( fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd ) {
ffc1317c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc13180:	7c 08 02 a6 	mflr    r0                                     
ffc13184:	90 01 00 1c 	stw     r0,28(r1)                              
                                                                      
    /*                                                                
     * 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)                                        
ffc13188:	81 24 00 08 	lwz     r9,8(r4)                               
int                                                                   
fat_file_close(                                                       
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
ffc1318c:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc13190:	7c 9f 23 78 	mr      r31,r4                                 
                                                                      
    /*                                                                
     * 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)                                        
ffc13194:	2b 89 00 01 	cmplwi  cr7,r9,1                               
ffc13198:	40 9d 00 14 	ble-    cr7,ffc131ac <fat_file_close+0x30>     
    {                                                                 
        fat_fd->links_num--;                                          
ffc1319c:	39 29 ff ff 	addi    r9,r9,-1                               
ffc131a0:	91 24 00 08 	stw     r9,8(r4)                               
        return rc;                                                    
ffc131a4:	38 60 00 00 	li      r3,0                                   
ffc131a8:	48 00 00 90 	b       ffc13238 <fat_file_close+0xbc>         
    }                                                                 
                                                                      
    key = fat_construct_key(fs_info, &fat_fd->dir_pos.sname);         
                                                                      
    if (fat_fd->flags & FAT_FILE_REMOVED)                             
ffc131ac:	89 24 00 30 	lbz     r9,48(r4)                              
ffc131b0:	7c 7e 1b 78 	mr      r30,r3                                 
ffc131b4:	71 3d 00 01 	andi.   r29,r9,1                               
ffc131b8:	41 82 00 40 	beq-    ffc131f8 <fat_file_close+0x7c>         
    {                                                                 
        rc = fat_file_truncate(fs_info, fat_fd, 0);                   
ffc131bc:	38 a0 00 00 	li      r5,0                                   
ffc131c0:	4b ff fe a9 	bl      ffc13068 <fat_file_truncate>           
        if ( rc != RC_OK )                                            
ffc131c4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc131c8:	40 a2 00 70 	bne+    ffc13238 <fat_file_close+0xbc>         <== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
ffc131cc:	7f e3 fb 78 	mr      r3,r31                                 
ffc131d0:	48 00 33 59 	bl      ffc16528 <_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) )                
ffc131d4:	80 9f 00 0c 	lwz     r4,12(r31)                             
ffc131d8:	7f c3 f3 78 	mr      r3,r30                                 
ffc131dc:	48 00 17 e5 	bl      ffc149c0 <fat_ino_is_unique>           
ffc131e0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc131e4:	41 be 00 34 	beq+    cr7,ffc13218 <fat_file_close+0x9c>     <== ALWAYS TAKEN
            fat_free_unique_ino(fs_info, fat_fd->ino);                
ffc131e8:	80 9f 00 0c 	lwz     r4,12(r31)                             <== NOT EXECUTED
ffc131ec:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc131f0:	48 00 17 a5 	bl      ffc14994 <fat_free_unique_ino>         <== NOT EXECUTED
ffc131f4:	48 00 00 24 	b       ffc13218 <fat_file_close+0x9c>         <== NOT EXECUTED
                                                                      
        free(fat_fd);                                                 
    }                                                                 
    else                                                              
    {                                                                 
        if (fat_ino_is_unique(fs_info, fat_fd->ino))                  
ffc131f8:	80 84 00 0c 	lwz     r4,12(r4)                              
ffc131fc:	48 00 17 c5 	bl      ffc149c0 <fat_ino_is_unique>           
ffc13200:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13204:	41 9e 00 0c 	beq-    cr7,ffc13210 <fat_file_close+0x94>     
        {                                                             
            fat_fd->links_num = 0;                                    
ffc13208:	93 bf 00 08 	stw     r29,8(r31)                             
ffc1320c:	48 00 00 14 	b       ffc13220 <fat_file_close+0xa4>         
ffc13210:	7f e3 fb 78 	mr      r3,r31                                 
ffc13214:	48 00 33 15 	bl      ffc16528 <_Chain_Extract>              
        }                                                             
        else                                                          
        {                                                             
            _hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd);   
            free(fat_fd);                                             
ffc13218:	7f e3 fb 78 	mr      r3,r31                                 
ffc1321c:	4b ff 2a c1 	bl      ffc05cdc <free>                        
     * flush any modified "cached" buffer back to disk                
     */                                                               
    rc = fat_buf_release(fs_info);                                    
                                                                      
    return rc;                                                        
}                                                                     
ffc13220:	80 01 00 1c 	lwz     r0,28(r1)                              
        }                                                             
    }                                                                 
    /*                                                                
     * flush any modified "cached" buffer back to disk                
     */                                                               
    rc = fat_buf_release(fs_info);                                    
ffc13224:	7f c3 f3 78 	mr      r3,r30                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc13228:	bb a1 00 0c 	lmw     r29,12(r1)                             
ffc1322c:	7c 08 03 a6 	mtlr    r0                                     
ffc13230:	38 21 00 18 	addi    r1,r1,24                               
        }                                                             
    }                                                                 
    /*                                                                
     * flush any modified "cached" buffer back to disk                
     */                                                               
    rc = fat_buf_release(fs_info);                                    
ffc13234:	48 00 06 dc 	b       ffc13910 <fat_buf_release>             
                                                                      
    return rc;                                                        
}                                                                     
ffc13238:	39 61 00 18 	addi    r11,r1,24                              
ffc1323c:	4b fe e3 b8 	b       ffc015f4 <_restgpr_29_x>               
                                                                      

ffc13314 <fat_file_extend>: fat_file_fd_t *fat_fd, bool zero_fill, uint32_t new_length, uint32_t *a_length ) {
ffc13314:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc13318:	7c 08 02 a6 	mflr    r0                                     
    int            rc = RC_OK;                                        
    uint32_t       chain = 0;                                         
ffc1331c:	39 20 00 00 	li      r9,0                                   
    fat_file_fd_t                        *fat_fd,                     
    bool                                  zero_fill,                  
    uint32_t                              new_length,                 
    uint32_t                             *a_length                    
    )                                                                 
{                                                                     
ffc13320:	be e1 00 1c 	stmw    r23,28(r1)                             
ffc13324:	7c f8 3b 78 	mr      r24,r7                                 
ffc13328:	7c 9e 23 78 	mr      r30,r4                                 
ffc1332c:	90 01 00 44 	stw     r0,68(r1)                              
ffc13330:	7c dc 33 78 	mr      r28,r6                                 
    uint32_t       last_cl = 0;                                       
    uint32_t       bytes_remain = 0;                                  
    uint32_t       cls_added;                                         
    ssize_t        bytes_written;                                     
                                                                      
    *a_length = new_length;                                           
ffc13334:	90 d8 00 00 	stw     r6,0(r24)                              
    uint32_t                              new_length,                 
    uint32_t                             *a_length                    
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       chain = 0;                                         
ffc13338:	91 21 00 14 	stw     r9,20(r1)                              
    uint32_t       bytes2add = 0;                                     
    uint32_t       cls2add = 0;                                       
    uint32_t       old_last_cl;                                       
    uint32_t       last_cl = 0;                                       
ffc1333c:	91 21 00 0c 	stw     r9,12(r1)                              
    uint32_t       cls_added;                                         
    ssize_t        bytes_written;                                     
                                                                      
    *a_length = new_length;                                           
                                                                      
    if (new_length <= fat_fd->fat_file_size)                          
ffc13340:	81 24 00 18 	lwz     r9,24(r4)                              
ffc13344:	7f 86 48 40 	cmplw   cr7,r6,r9                              
ffc13348:	41 bd 00 0c 	bgt+    cr7,ffc13354 <fat_file_extend+0x40>    
        return RC_OK;                                                 
ffc1334c:	3b a0 00 00 	li      r29,0                                  
ffc13350:	48 00 02 04 	b       ffc13554 <fat_file_extend+0x240>       
                                                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
ffc13354:	81 44 00 20 	lwz     r10,32(r4)                             
ffc13358:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1335c:	7c b7 2b 78 	mr      r23,r5                                 
ffc13360:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
ffc13364:	40 be 00 20 	bne+    cr7,ffc13384 <fat_file_extend+0x70>    
ffc13368:	81 44 00 24 	lwz     r10,36(r4)                             
ffc1336c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc13370:	40 9e 00 14 	bne-    cr7,ffc13384 <fat_file_extend+0x70>    <== NEVER TAKEN
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
ffc13374:	89 43 00 0e 	lbz     r10,14(r3)                             
    *a_length = new_length;                                           
                                                                      
    if (new_length <= fat_fd->fat_file_size)                          
        return RC_OK;                                                 
                                                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
ffc13378:	71 48 00 03 	andi.   r8,r10,3                               
ffc1337c:	41 a2 00 08 	beq+    ffc13384 <fat_file_extend+0x70>        <== NEVER TAKEN
ffc13380:	48 00 00 c8 	b       ffc13448 <fat_file_extend+0x134>       
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
        rtems_set_errno_and_return_minus_one( ENOSPC );               
                                                                      
    bytes_remain = (fs_info->vol.bpc -                                
ffc13384:	a3 7f 00 06 	lhz     r27,6(r31)                             
    bytes2add = new_length - fat_fd->fat_file_size;                   
                                                                      
    if (bytes2add > bytes_remain)                                     
        bytes2add -= bytes_remain;                                    
    else                                                              
        bytes2add = 0;                                                
ffc13388:	3b 40 00 00 	li      r26,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))) &
ffc1338c:	39 5b ff ff 	addi    r10,r27,-1                             
ffc13390:	7d 59 48 38 	and     r25,r10,r9                             
                                                                      
    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 -                                
ffc13394:	7f 79 d8 50 	subf    r27,r25,r27                            
ffc13398:	7f 7b 50 38 	and     r27,r27,r10                            
                   (fat_fd->fat_file_size & (fs_info->vol.bpc - 1))) &
                   (fs_info->vol.bpc - 1);                            
                                                                      
    bytes2add = new_length - fat_fd->fat_file_size;                   
ffc1339c:	7d 49 e0 50 	subf    r10,r9,r28                             
                                                                      
    if (bytes2add > bytes_remain)                                     
ffc133a0:	7f 8a d8 40 	cmplw   cr7,r10,r27                            
ffc133a4:	40 9d 00 08 	ble-    cr7,ffc133ac <fat_file_extend+0x98>    
        bytes2add -= bytes_remain;                                    
ffc133a8:	7f 5b 50 50 	subf    r26,r27,r10                            
    else                                                              
        bytes2add = 0;                                                
                                                                      
    if (zero_fill && bytes_remain > 0) {                              
ffc133ac:	2f 97 00 00 	cmpwi   cr7,r23,0                              
ffc133b0:	41 9e 00 50 	beq-    cr7,ffc13400 <fat_file_extend+0xec>    
ffc133b4:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc133b8:	41 be 00 48 	beq+    cr7,ffc13400 <fat_file_extend+0xec>    
        uint32_t start = fat_fd->fat_file_size;                       
        uint32_t cl_start = start >> fs_info->vol.bpc_log2;           
ffc133bc:	88 bf 00 08 	lbz     r5,8(r31)                              
        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);     
ffc133c0:	7f e3 fb 78 	mr      r3,r31                                 
ffc133c4:	7f c4 f3 78 	mr      r4,r30                                 
ffc133c8:	7d 25 2c 30 	srw     r5,r9,r5                               
ffc133cc:	38 c1 00 08 	addi    r6,r1,8                                
ffc133d0:	4b ff f8 85 	bl      ffc12c54 <fat_file_lseek>              
        if (rc != RC_OK)                                              
ffc133d4:	7c 9d 23 79 	mr.     r29,r4                                 
ffc133d8:	40 a2 01 7c 	bne+    ffc13554 <fat_file_extend+0x240>       <== NEVER TAKEN
            return rc;                                                
                                                                      
        bytes_written = fat_cluster_set (fs_info, cur_cln, ofs, bytes_remain, 0);
ffc133dc:	80 81 00 08 	lwz     r4,8(r1)                               
ffc133e0:	7f e3 fb 78 	mr      r3,r31                                 
ffc133e4:	7f 25 cb 78 	mr      r5,r25                                 
ffc133e8:	7f 66 db 78 	mr      r6,r27                                 
ffc133ec:	38 e0 00 00 	li      r7,0                                   
ffc133f0:	48 00 08 f9 	bl      ffc13ce8 <fat_cluster_set>             
        if (bytes_remain != bytes_written)                            
            return -1;                                                
ffc133f4:	3b a0 ff ff 	li      r29,-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)                            
ffc133f8:	7f 9b 18 00 	cmpw    cr7,r27,r3                             
ffc133fc:	40 be 01 58 	bne+    cr7,ffc13554 <fat_file_extend+0x240>   <== 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)                                               
ffc13400:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc13404:	41 9e ff 48 	beq+    cr7,ffc1334c <fat_file_extend+0x38>    
        return RC_OK;                                                 
                                                                      
    cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1;         
ffc13408:	89 3f 00 08 	lbz     r9,8(r31)                              
ffc1340c:	3b 3a ff ff 	addi    r25,r26,-1                             
                                                                      
    rc = fat_scan_fat_for_free_clusters(fs_info, &chain, cls2add,     
ffc13410:	7f e3 fb 78 	mr      r3,r31                                 
     * file ) - return                                                
     */                                                               
    if (bytes2add == 0)                                               
        return RC_OK;                                                 
                                                                      
    cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1;         
ffc13414:	7f 39 4c 30 	srw     r25,r25,r9                             
ffc13418:	3b 39 00 01 	addi    r25,r25,1                              
                                                                      
    rc = fat_scan_fat_for_free_clusters(fs_info, &chain, cls2add,     
ffc1341c:	38 81 00 14 	addi    r4,r1,20                               
ffc13420:	7f 25 cb 78 	mr      r5,r25                                 
ffc13424:	38 c1 00 08 	addi    r6,r1,8                                
ffc13428:	38 e1 00 0c 	addi    r7,r1,12                               
ffc1342c:	7e e8 bb 78 	mr      r8,r23                                 
ffc13430:	48 00 68 a5 	bl      ffc19cd4 <fat_scan_fat_for_free_clusters>
                                        &cls_added, &last_cl, zero_fill);
                                                                      
    /* this means that low level I/O error occured */                 
    if (rc != RC_OK)                                                  
ffc13434:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc13438:	40 82 01 1c 	bne-    ffc13554 <fat_file_extend+0x240>       <== NEVER TAKEN
        return rc;                                                    
                                                                      
    /* this means that no space left on device */                     
    if ((cls_added == 0) && (bytes_remain == 0))                      
ffc1343c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc13440:	7f 6a 4b 79 	or.     r10,r27,r9                             
ffc13444:	40 a2 00 18 	bne+    ffc1345c <fat_file_extend+0x148>       <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(ENOSPC);                 
ffc13448:	48 00 7f 2d 	bl      ffc1b374 <__errno>                     
ffc1344c:	39 20 00 1c 	li      r9,28                                  
ffc13450:	91 23 00 00 	stw     r9,0(r3)                               
ffc13454:	3b a0 ff ff 	li      r29,-1                                 
ffc13458:	48 00 00 fc 	b       ffc13554 <fat_file_extend+0x240>       
                                                                      
    /*  check wether we satisfied request for 'cls2add' clusters */   
    if (cls2add != cls_added)                                         
ffc1345c:	7f 99 48 00 	cmpw    cr7,r25,r9                             
ffc13460:	41 9e 00 24 	beq-    cr7,ffc13484 <fat_file_extend+0x170>   <== ALWAYS TAKEN
    {                                                                 
        new_length -= bytes2add & (fs_info->vol.bpc - 1);             
ffc13464:	a1 5f 00 06 	lhz     r10,6(r31)                             <== NOT EXECUTED
        new_length -= (cls2add - cls_added) << fs_info->vol.bpc_log2; 
ffc13468:	7d 29 c8 50 	subf    r9,r9,r25                              <== 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);             
ffc1346c:	39 4a ff ff 	addi    r10,r10,-1                             <== NOT EXECUTED
ffc13470:	7f 5a 50 38 	and     r26,r26,r10                            <== NOT EXECUTED
        new_length -= (cls2add - cls_added) << fs_info->vol.bpc_log2; 
ffc13474:	89 5f 00 08 	lbz     r10,8(r31)                             <== 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);             
ffc13478:	7f 9a e0 50 	subf    r28,r26,r28                            <== NOT EXECUTED
        new_length -= (cls2add - cls_added) << fs_info->vol.bpc_log2; 
ffc1347c:	7d 29 50 30 	slw     r9,r9,r10                              <== NOT EXECUTED
ffc13480:	7f 89 e0 50 	subf    r28,r9,r28                             <== NOT EXECUTED
    }                                                                 
                                                                      
    /* add new chain to the end of existed */                         
    if ( fat_fd->fat_file_size == 0 )                                 
ffc13484:	80 de 00 18 	lwz     r6,24(r30)                             
ffc13488:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc1348c:	40 9e 00 18 	bne-    cr7,ffc134a4 <fat_file_extend+0x190>   
    {                                                                 
        fat_fd->map.disk_cln = fat_fd->cln = chain;                   
ffc13490:	81 21 00 14 	lwz     r9,20(r1)                              
        fat_fd->map.file_cln = 0;                                     
ffc13494:	90 de 00 34 	stw     r6,52(r30)                             
    }                                                                 
                                                                      
    /* add new chain to the end of existed */                         
    if ( fat_fd->fat_file_size == 0 )                                 
    {                                                                 
        fat_fd->map.disk_cln = fat_fd->cln = chain;                   
ffc13498:	91 3e 00 1c 	stw     r9,28(r30)                             
ffc1349c:	91 3e 00 38 	stw     r9,56(r30)                             
ffc134a0:	48 00 00 64 	b       ffc13504 <fat_file_extend+0x1f0>       
        fat_fd->map.file_cln = 0;                                     
    }                                                                 
    else                                                              
    {                                                                 
        if (fat_fd->map.last_cln != FAT_UNDEFINED_VALUE)              
ffc134a4:	81 3e 00 3c 	lwz     r9,60(r30)                             
ffc134a8:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc134ac:	41 9e 00 0c 	beq-    cr7,ffc134b8 <fat_file_extend+0x1a4>   <== NEVER TAKEN
        {                                                             
            old_last_cl = fat_fd->map.last_cln;                       
ffc134b0:	91 21 00 10 	stw     r9,16(r1)                              
ffc134b4:	48 00 00 2c 	b       ffc134e0 <fat_file_extend+0x1cc>       
        }                                                             
        else                                                          
        {                                                             
            rc = fat_file_ioctl(fs_info, fat_fd, F_CLU_NUM,           
ffc134b8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc134bc:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc134c0:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc134c4:	38 c6 ff ff 	addi    r6,r6,-1                               <== NOT EXECUTED
ffc134c8:	38 e1 00 10 	addi    r7,r1,16                               <== NOT EXECUTED
ffc134cc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc134d0:	4b ff fd 71 	bl      ffc13240 <fat_file_ioctl>              <== NOT EXECUTED
                                (fat_fd->fat_file_size - 1), &old_last_cl);
            if ( rc != RC_OK )                                        
ffc134d4:	7c 7b 1b 79 	mr.     r27,r3                                 <== NOT EXECUTED
ffc134d8:	41 a2 00 08 	beq+    ffc134e0 <fat_file_extend+0x1cc>       <== NOT EXECUTED
ffc134dc:	48 00 00 5c 	b       ffc13538 <fat_file_extend+0x224>       <== NOT EXECUTED
                fat_free_fat_clusters_chain(fs_info, chain);          
                return rc;                                            
            }                                                         
        }                                                             
                                                                      
        rc = fat_set_fat_cluster(fs_info, old_last_cl, chain);        
ffc134e0:	80 81 00 10 	lwz     r4,16(r1)                              
ffc134e4:	7f e3 fb 78 	mr      r3,r31                                 
ffc134e8:	80 a1 00 14 	lwz     r5,20(r1)                              
ffc134ec:	48 00 64 79 	bl      ffc19964 <fat_set_fat_cluster>         
        if ( rc != RC_OK )                                            
ffc134f0:	7c 7b 1b 79 	mr.     r27,r3                                 
        {                                                             
            fat_free_fat_clusters_chain(fs_info, chain);              
ffc134f4:	7f e3 fb 78 	mr      r3,r31                                 
                return rc;                                            
            }                                                         
        }                                                             
                                                                      
        rc = fat_set_fat_cluster(fs_info, old_last_cl, chain);        
        if ( rc != RC_OK )                                            
ffc134f8:	41 a2 00 08 	beq+    ffc13500 <fat_file_extend+0x1ec>       <== ALWAYS TAKEN
ffc134fc:	48 00 00 40 	b       ffc1353c <fat_file_extend+0x228>       <== NOT EXECUTED
        {                                                             
            fat_free_fat_clusters_chain(fs_info, chain);              
            return rc;                                                
        }                                                             
        fat_buf_release(fs_info);                                     
ffc13500:	48 00 04 11 	bl      ffc13910 <fat_buf_release>             
    }                                                                 
                                                                      
    /* update number of the last cluster of the file if it changed */ 
    if (cls_added != 0)                                               
ffc13504:	81 21 00 08 	lwz     r9,8(r1)                               
ffc13508:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1350c:	41 9e 00 40 	beq-    cr7,ffc1354c <fat_file_extend+0x238>   <== NEVER TAKEN
    {                                                                 
        fat_fd->map.last_cln = last_cl;                               
ffc13510:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc13514:	91 3e 00 3c 	stw     r9,60(r30)                             
        if (fat_fd->fat_file_type == FAT_DIRECTORY)                   
ffc13518:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc1351c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc13520:	40 be 00 2c 	bne+    cr7,ffc1354c <fat_file_extend+0x238>   
        {                                                             
            rc = fat_init_clusters_chain(fs_info, chain);             
ffc13524:	80 81 00 14 	lwz     r4,20(r1)                              
ffc13528:	7f e3 fb 78 	mr      r3,r31                                 
ffc1352c:	48 00 13 05 	bl      ffc14830 <fat_init_clusters_chain>     
            if ( rc != RC_OK )                                        
ffc13530:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc13534:	41 a2 00 18 	beq+    ffc1354c <fat_file_extend+0x238>       <== ALWAYS TAKEN
            {                                                         
                fat_free_fat_clusters_chain(fs_info, chain);          
ffc13538:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1353c:	80 81 00 14 	lwz     r4,20(r1)                              <== NOT EXECUTED
ffc13540:	7f 7d db 78 	mr      r29,r27                                <== NOT EXECUTED
ffc13544:	48 00 66 bd 	bl      ffc19c00 <fat_free_fat_clusters_chain> <== NOT EXECUTED
ffc13548:	48 00 00 0c 	b       ffc13554 <fat_file_extend+0x240>       <== NOT EXECUTED
                return rc;                                            
            }                                                         
        }                                                             
    }                                                                 
                                                                      
    *a_length = new_length;                                           
ffc1354c:	93 98 00 00 	stw     r28,0(r24)                             
    fat_fd->fat_file_size = new_length;                               
ffc13550:	93 9e 00 18 	stw     r28,24(r30)                            
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc13554:	39 61 00 40 	addi    r11,r1,64                              
ffc13558:	7f a3 eb 78 	mr      r3,r29                                 
ffc1355c:	4b fe e0 80 	b       ffc015dc <_restgpr_23_x>               
                                                                      

ffc13240 <fat_file_ioctl>: fat_file_ioctl( fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd, int cmd, ...) {
ffc13240:	94 21 ff d0 	stwu    r1,-48(r1)                             
    uint32_t      *ret;                                               
    va_list        ap;                                                
                                                                      
    va_start(ap, cmd);                                                
                                                                      
    switch (cmd)                                                      
ffc13244:	2f 85 00 01 	cmpwi   cr7,r5,1                               
    fat_file_fd_t                        *fat_fd,                     
    int                                   cmd,                        
    ...)                                                              
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = 0;                                       
ffc13248:	39 20 00 00 	li      r9,0                                   
fat_file_ioctl(                                                       
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd,                     
    int                                   cmd,                        
    ...)                                                              
{                                                                     
ffc1324c:	7c 08 02 a6 	mflr    r0                                     
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = 0;                                       
ffc13250:	91 21 00 14 	stw     r9,20(r1)                              
    uint32_t       cl_start = 0;                                      
    uint32_t       pos = 0;                                           
    uint32_t      *ret;                                               
    va_list        ap;                                                
                                                                      
    va_start(ap, cmd);                                                
ffc13254:	39 20 00 03 	li      r9,3                                   
ffc13258:	99 21 00 08 	stb     r9,8(r1)                               
ffc1325c:	39 21 00 38 	addi    r9,r1,56                               
ffc13260:	91 21 00 0c 	stw     r9,12(r1)                              
ffc13264:	39 21 00 10 	addi    r9,r1,16                               
fat_file_ioctl(                                                       
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd,                     
    int                                   cmd,                        
    ...)                                                              
{                                                                     
ffc13268:	90 01 00 34 	stw     r0,52(r1)                              
ffc1326c:	bf c1 00 28 	stmw    r30,40(r1)                             
ffc13270:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc13274:	90 e1 00 20 	stw     r7,32(r1)                              
    uint32_t       cl_start = 0;                                      
    uint32_t       pos = 0;                                           
    uint32_t      *ret;                                               
    va_list        ap;                                                
                                                                      
    va_start(ap, cmd);                                                
ffc13278:	91 21 00 10 	stw     r9,16(r1)                              
                                                                      
    switch (cmd)                                                      
ffc1327c:	40 be 00 80 	bne+    cr7,ffc132fc <fat_file_ioctl+0xbc>     <== 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 ) {                     
ffc13280:	81 24 00 18 	lwz     r9,24(r4)                              
                                                                      
    switch (cmd)                                                      
    {                                                                 
        case F_CLU_NUM:                                               
            pos = va_arg(ap, uint32_t);                               
            ret = va_arg(ap, uint32_t *);                             
ffc13284:	3b c0 00 05 	li      r30,5                                  
    va_start(ap, cmd);                                                
                                                                      
    switch (cmd)                                                      
    {                                                                 
        case F_CLU_NUM:                                               
            pos = va_arg(ap, uint32_t);                               
ffc13288:	7c ca 33 78 	mr      r10,r6                                 
            ret = va_arg(ap, uint32_t *);                             
ffc1328c:	9b c1 00 08 	stb     r30,8(r1)                              
                                                                      
            /* sanity check */                                        
            if ( pos >= fat_fd->fat_file_size ) {                     
ffc13290:	7f 86 48 40 	cmplw   cr7,r6,r9                              
                                                                      
    switch (cmd)                                                      
    {                                                                 
        case F_CLU_NUM:                                               
            pos = va_arg(ap, uint32_t);                               
            ret = va_arg(ap, uint32_t *);                             
ffc13294:	7c ff 3b 78 	mr      r31,r7                                 
                                                                      
            /* sanity check */                                        
            if ( pos >= fat_fd->fat_file_size ) {                     
ffc13298:	41 bc 00 10 	blt+    cr7,ffc132a8 <fat_file_ioctl+0x68>     <== ALWAYS TAKEN
                va_end(ap);                                           
                rtems_set_errno_and_return_minus_one( EIO );          
ffc1329c:	48 00 80 d9 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc132a0:	93 c3 00 00 	stw     r30,0(r3)                              <== NOT EXECUTED
ffc132a4:	48 00 00 64 	b       ffc13308 <fat_file_ioctl+0xc8>         <== NOT EXECUTED
            }                                                         
                                                                      
            if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                       
ffc132a8:	81 24 00 20 	lwz     r9,32(r4)                              
ffc132ac:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc132b0:	40 9e 00 28 	bne-    cr7,ffc132d8 <fat_file_ioctl+0x98>     
ffc132b4:	81 24 00 24 	lwz     r9,36(r4)                              
ffc132b8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc132bc:	40 9e 00 1c 	bne-    cr7,ffc132d8 <fat_file_ioctl+0x98>     <== NEVER TAKEN
                (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))        
ffc132c0:	89 03 00 0e 	lbz     r8,14(r3)                              
            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)) &&                       
ffc132c4:	71 07 00 03 	andi.   r7,r8,3                                
ffc132c8:	41 82 00 10 	beq-    ffc132d8 <fat_file_ioctl+0x98>         
                (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))        
            {                                                         
                /* cluster 0 (zero) reserved for root dir */          
                *ret  = 0;                                            
ffc132cc:	91 3f 00 00 	stw     r9,0(r31)                              
                rc = RC_OK;                                           
ffc132d0:	38 60 00 00 	li      r3,0                                   
                break;                                                
ffc132d4:	48 00 00 38 	b       ffc1330c <fat_file_ioctl+0xcc>         
            }                                                         
                                                                      
            cl_start = pos >> fs_info->vol.bpc_log2;                  
ffc132d8:	88 a3 00 08 	lbz     r5,8(r3)                               
                                                                      
            rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln); 
ffc132dc:	38 c1 00 14 	addi    r6,r1,20                               
ffc132e0:	7d 45 2c 30 	srw     r5,r10,r5                              
ffc132e4:	4b ff f9 71 	bl      ffc12c54 <fat_file_lseek>              
            if ( rc != RC_OK )                                        
ffc132e8:	7c 83 23 79 	mr.     r3,r4                                  
ffc132ec:	40 82 00 20 	bne-    ffc1330c <fat_file_ioctl+0xcc>         <== NEVER TAKEN
                break;                                                
                                                                      
            *ret = cur_cln;                                           
ffc132f0:	81 21 00 14 	lwz     r9,20(r1)                              
ffc132f4:	91 3f 00 00 	stw     r9,0(r31)                              
            break;                                                    
ffc132f8:	48 00 00 14 	b       ffc1330c <fat_file_ioctl+0xcc>         
                                                                      
        default:                                                      
            errno = EINVAL;                                           
ffc132fc:	48 00 80 79 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc13300:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc13304:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
            rc = -1;                                                  
ffc13308:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
            break;                                                    
    }                                                                 
    va_end(ap);                                                       
    return rc;                                                        
}                                                                     
ffc1330c:	39 61 00 30 	addi    r11,r1,48                              
ffc13310:	4b fe e2 e8 	b       ffc015f8 <_restgpr_30_x>               
                                                                      

ffc12c54 <fat_file_lseek>: fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd, uint32_t file_cln, uint32_t *disk_cln ) {
ffc12c54:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc12c58:	7c 08 02 a6 	mflr    r0                                     
ffc12c5c:	90 01 00 34 	stw     r0,52(r1)                              
    int rc = RC_OK;                                                   
                                                                      
    if (file_cln == fat_fd->map.file_cln)                             
ffc12c60:	81 24 00 34 	lwz     r9,52(r4)                              
    fat_fs_info_t                         *fs_info,                   
    fat_file_fd_t                         *fat_fd,                    
    uint32_t                               file_cln,                  
    uint32_t                              *disk_cln                   
    )                                                                 
{                                                                     
ffc12c64:	bf 41 00 18 	stmw    r26,24(r1)                             
ffc12c68:	7c 9f 23 78 	mr      r31,r4                                 
    int rc = RC_OK;                                                   
                                                                      
    if (file_cln == fat_fd->map.file_cln)                             
ffc12c6c:	7f 85 48 00 	cmpw    cr7,r5,r9                              
    fat_fs_info_t                         *fs_info,                   
    fat_file_fd_t                         *fat_fd,                    
    uint32_t                               file_cln,                  
    uint32_t                              *disk_cln                   
    )                                                                 
{                                                                     
ffc12c70:	7c be 2b 78 	mr      r30,r5                                 
ffc12c74:	7c dc 33 78 	mr      r28,r6                                 
    int rc = RC_OK;                                                   
                                                                      
    if (file_cln == fat_fd->map.file_cln)                             
ffc12c78:	40 be 00 10 	bne+    cr7,ffc12c88 <fat_file_lseek+0x34>     
        *disk_cln = fat_fd->map.disk_cln;                             
ffc12c7c:	81 24 00 38 	lwz     r9,56(r4)                              
ffc12c80:	91 26 00 00 	stw     r9,0(r6)                               
ffc12c84:	48 00 00 70 	b       ffc12cf4 <fat_file_lseek+0xa0>         
    {                                                                 
        uint32_t   cur_cln;                                           
        uint32_t   count;                                             
        uint32_t   i;                                                 
                                                                      
        if (file_cln > fat_fd->map.file_cln)                          
ffc12c88:	7f 85 48 40 	cmplw   cr7,r5,r9                              
ffc12c8c:	7c 7a 1b 78 	mr      r26,r3                                 
ffc12c90:	40 9d 00 14 	ble-    cr7,ffc12ca4 <fat_file_lseek+0x50>     
        {                                                             
            cur_cln = fat_fd->map.disk_cln;                           
ffc12c94:	81 44 00 38 	lwz     r10,56(r4)                             
            count = file_cln - fat_fd->map.file_cln;                  
ffc12c98:	7f 69 28 50 	subf    r27,r9,r5                              
        uint32_t   count;                                             
        uint32_t   i;                                                 
                                                                      
        if (file_cln > fat_fd->map.file_cln)                          
        {                                                             
            cur_cln = fat_fd->map.disk_cln;                           
ffc12c9c:	91 41 00 08 	stw     r10,8(r1)                              
ffc12ca0:	48 00 00 10 	b       ffc12cb0 <fat_file_lseek+0x5c>         
            count = file_cln - fat_fd->map.file_cln;                  
        }                                                             
        else                                                          
        {                                                             
            cur_cln = fat_fd->cln;                                    
ffc12ca4:	81 24 00 1c 	lwz     r9,28(r4)                              
ffc12ca8:	7c bb 2b 78 	mr      r27,r5                                 
ffc12cac:	91 21 00 08 	stw     r9,8(r1)                               
            count = file_cln;                                         
        }                                                             
                                                                      
        /* skip over the clusters */                                  
        for (i = 0; i < count; i++)                                   
ffc12cb0:	3b a0 00 00 	li      r29,0                                  
ffc12cb4:	48 00 00 28 	b       ffc12cdc <fat_file_lseek+0x88>         
        {                                                             
            rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);     
ffc12cb8:	7f 43 d3 78 	mr      r3,r26                                 
ffc12cbc:	38 a1 00 08 	addi    r5,r1,8                                
ffc12cc0:	48 00 6a e5 	bl      ffc197a4 <fat_get_fat_cluster>         
            if ( rc != RC_OK )                                        
ffc12cc4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc12cc8:	41 a2 00 10 	beq+    ffc12cd8 <fat_file_lseek+0x84>         <== ALWAYS TAKEN
                return rc;                                            
ffc12ccc:	7c 6b 1b 78 	mr      r11,r3                                 <== NOT EXECUTED
ffc12cd0:	7c 6a fe 70 	srawi   r10,r3,31                              <== NOT EXECUTED
ffc12cd4:	48 00 00 28 	b       ffc12cfc <fat_file_lseek+0xa8>         <== NOT EXECUTED
            cur_cln = fat_fd->cln;                                    
            count = file_cln;                                         
        }                                                             
                                                                      
        /* skip over the clusters */                                  
        for (i = 0; i < count; i++)                                   
ffc12cd8:	3b bd 00 01 	addi    r29,r29,1                              
ffc12cdc:	7f 9d d8 00 	cmpw    cr7,r29,r27                            
ffc12ce0:	80 81 00 08 	lwz     r4,8(r1)                               
ffc12ce4:	40 9e ff d4 	bne+    cr7,ffc12cb8 <fat_file_lseek+0x64>     
            if ( rc != RC_OK )                                        
                return rc;                                            
        }                                                             
                                                                      
        /* update cache */                                            
        fat_fd->map.file_cln = file_cln;                              
ffc12ce8:	93 df 00 34 	stw     r30,52(r31)                            
        fat_fd->map.disk_cln = cur_cln;                               
ffc12cec:	90 9f 00 38 	stw     r4,56(r31)                             
                                                                      
        *disk_cln = cur_cln;                                          
ffc12cf0:	90 9c 00 00 	stw     r4,0(r28)                              
    }                                                                 
    return RC_OK;                                                     
ffc12cf4:	39 40 00 00 	li      r10,0                                  
ffc12cf8:	39 60 00 00 	li      r11,0                                  
}                                                                     
ffc12cfc:	7d 64 5b 78 	mr      r4,r11                                 
ffc12d00:	39 61 00 30 	addi    r11,r1,48                              
ffc12d04:	7d 43 53 78 	mr      r3,r10                                 
ffc12d08:	4b fe e8 e0 	b       ffc015e8 <_restgpr_26_x>               
                                                                      

ffc12d0c <fat_file_open>: fat_file_open( fat_fs_info_t *fs_info, fat_dir_pos_t *dir_pos, fat_file_fd_t **fat_fd ) {
ffc12d0c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc12d10:	7c 08 02 a6 	mflr    r0                                     
ffc12d14:	7d 80 00 26 	mfcr    r12                                    
ffc12d18:	bf 21 00 0c 	stmw    r25,12(r1)                             
ffc12d1c:	7c 7d 1b 78 	mr      r29,r3                                 
ffc12d20:	7c 99 23 78 	mr      r25,r4                                 
ffc12d24:	90 01 00 2c 	stw     r0,44(r1)                              
ffc12d28:	7c bb 2b 78 	mr      r27,r5                                 
ffc12d2c:	91 81 00 08 	stw     r12,8(r1)                              
    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);                
ffc12d30:	4b ff fe cd 	bl      ffc12bfc <fat_construct_key>           
    uint32_t                               key1,                      
    uint32_t                               key2,                      
    fat_file_fd_t                          **ret                      
    )                                                                 
{                                                                     
    uint32_t          mod = (key1) % FAT_HASH_MODULE;                 
ffc12d34:	54 7c 07 fe 	clrlwi  r28,r3,31                              
    rtems_chain_node *the_node = rtems_chain_first(hash + mod);       
ffc12d38:	1f 9c 00 0c 	mulli   r28,r28,12                             
ffc12d3c:	81 3d 00 6c 	lwz     r9,108(r29)                            
ffc12d40:	7f 49 e2 14 	add     r26,r9,r28                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc12d44:	7f e9 e0 2e 	lwzx    r31,r9,r28                             
    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);                
ffc12d48:	7c 7e 1b 78 	mr      r30,r3                                 
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 ));            
ffc12d4c:	3b 5a 00 04 	addi    r26,r26,4                              
ffc12d50:	48 00 00 30 	b       ffc12d80 <fat_file_open+0x74>          
    rtems_chain_node *the_node = rtems_chain_first(hash + mod);       
                                                                      
    for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )          
    {                                                                 
        fat_file_fd_t *ffd = (fat_file_fd_t *)the_node;               
        uint32_t       ck =  fat_construct_key(fs_info, &ffd->dir_pos.sname);
ffc12d54:	7f a3 eb 78 	mr      r3,r29                                 
ffc12d58:	38 9f 00 20 	addi    r4,r31,32                              
ffc12d5c:	4b ff fe a1 	bl      ffc12bfc <fat_construct_key>           
                                                                      
        if ( (key1) == ck)                                            
ffc12d60:	7f 9e 18 00 	cmpw    cr7,r30,r3                             
ffc12d64:	40 be 00 18 	bne+    cr7,ffc12d7c <fat_file_open+0x70>      
    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;                                          
        lfat_fd->links_num++;                                         
ffc12d68:	81 3f 00 08 	lwz     r9,8(r31)                              
    /* 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;                                          
ffc12d6c:	93 fb 00 00 	stw     r31,0(r27)                             
        lfat_fd->links_num++;                                         
ffc12d70:	39 29 00 01 	addi    r9,r9,1                                
ffc12d74:	91 3f 00 08 	stw     r9,8(r31)                              
ffc12d78:	48 00 00 f0 	b       ffc12e68 <fat_file_open+0x15c>         
            {                                                         
                *ret = (void *)the_node;                              
                return 0;                                             
            }                                                         
        }                                                             
        the_node = the_node->next;                                    
ffc12d7c:	83 ff 00 00 	lwz     r31,0(r31)                             
    )                                                                 
{                                                                     
    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) ; )          
ffc12d80:	7f 9f d0 00 	cmpw    cr7,r31,r26                            
ffc12d84:	40 9e ff d0 	bne+    cr7,ffc12d54 <fat_file_open+0x48>      
ffc12d88:	48 00 00 e8 	b       ffc12e70 <fat_file_open+0x164>         
    {                                                                 
        fat_file_fd_t *ffd = (fat_file_fd_t *)the_node;               
        uint32_t       ck =  fat_construct_key(fs_info, &ffd->dir_pos.sname);
ffc12d8c:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc12d90:	38 9f 00 20 	addi    r4,r31,32                              <== NOT EXECUTED
ffc12d94:	4b ff fe 69 	bl      ffc12bfc <fat_construct_key>           <== NOT EXECUTED
                                                                      
        if ( (key1) == ck)                                            
ffc12d98:	7f 9e 18 00 	cmpw    cr7,r30,r3                             <== NOT EXECUTED
ffc12d9c:	40 be 00 14 	bne+    cr7,ffc12db0 <fat_file_open+0xa4>      <== NOT EXECUTED
        {                                                             
            if ( ((key2) == 0) || ((key2) == ffd->ino) )              
ffc12da0:	41 92 00 24 	beq-    cr4,ffc12dc4 <fat_file_open+0xb8>      <== NOT EXECUTED
ffc12da4:	81 3f 00 0c 	lwz     r9,12(r31)                             <== NOT EXECUTED
ffc12da8:	7f 9e 48 00 	cmpw    cr7,r30,r9                             <== NOT EXECUTED
ffc12dac:	41 9e 00 18 	beq-    cr7,ffc12dc4 <fat_file_open+0xb8>      <== NOT EXECUTED
            {                                                         
                *ret = (void *)the_node;                              
                return 0;                                             
            }                                                         
        }                                                             
        the_node = the_node->next;                                    
ffc12db0:	83 ff 00 00 	lwz     r31,0(r31)                             <== NOT EXECUTED
    )                                                                 
{                                                                     
    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) ; )          
ffc12db4:	7f 9f d0 00 	cmpw    cr7,r31,r26                            
ffc12db8:	40 9e ff d4 	bne+    cr7,ffc12d8c <fat_file_open+0x80>      <== NEVER TAKEN
                return 0;                                             
            }                                                         
        }                                                             
        the_node = the_node->next;                                    
    }                                                                 
    return -1;                                                        
ffc12dbc:	3b 40 ff ff 	li      r26,-1                                 
ffc12dc0:	48 00 00 08 	b       ffc12dc8 <fat_file_open+0xbc>          
        if ( (key1) == ck)                                            
        {                                                             
            if ( ((key2) == 0) || ((key2) == ffd->ino) )              
            {                                                         
                *ret = (void *)the_node;                              
                return 0;                                             
ffc12dc4:	3b 40 00 00 	li      r26,0                                  <== NOT EXECUTED
    }                                                                 
                                                                      
    /* access "removed-but-still-open" hash table */                  
    rc = _hash_search(fs_info, fs_info->rhash, key, key, &lfat_fd);   
                                                                      
    lfat_fd = (*fat_fd) = (fat_file_fd_t*)malloc(sizeof(fat_file_fd_t));
ffc12dc8:	38 60 00 44 	li      r3,68                                  
ffc12dcc:	4b ff 34 c1 	bl      ffc0628c <malloc>                      
    if ( lfat_fd == NULL )                                            
ffc12dd0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    }                                                                 
                                                                      
    /* access "removed-but-still-open" hash table */                  
    rc = _hash_search(fs_info, fs_info->rhash, key, key, &lfat_fd);   
                                                                      
    lfat_fd = (*fat_fd) = (fat_file_fd_t*)malloc(sizeof(fat_file_fd_t));
ffc12dd4:	90 7b 00 00 	stw     r3,0(r27)                              
ffc12dd8:	7c 7f 1b 78 	mr      r31,r3                                 
    if ( lfat_fd == NULL )                                            
ffc12ddc:	40 be 00 08 	bne+    cr7,ffc12de4 <fat_file_open+0xd8>      <== ALWAYS TAKEN
ffc12de0:	48 00 00 64 	b       ffc12e44 <fat_file_open+0x138>         <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one( ENOMEM );               
                                                                      
    memset(lfat_fd, 0, sizeof(fat_file_fd_t));                        
ffc12de4:	38 a0 00 44 	li      r5,68                                  
ffc12de8:	38 80 00 00 	li      r4,0                                   
ffc12dec:	48 00 93 5d 	bl      ffc1c148 <memset>                      
                                                                      
    lfat_fd->links_num = 1;                                           
ffc12df0:	39 20 00 01 	li      r9,1                                   
ffc12df4:	91 3f 00 08 	stw     r9,8(r31)                              
    lfat_fd->flags &= ~FAT_FILE_REMOVED;                              
    lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;                      
                                                                      
    lfat_fd->dir_pos = *dir_pos;                                      
                                                                      
    if ( rc != RC_OK )                                                
ffc12df8:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
        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;                              
ffc12dfc:	89 3f 00 30 	lbz     r9,48(r31)                             
ffc12e00:	55 29 00 3c 	rlwinm  r9,r9,0,0,30                           
ffc12e04:	99 3f 00 30 	stb     r9,48(r31)                             
    lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;                      
ffc12e08:	39 20 ff ff 	li      r9,-1                                  
ffc12e0c:	91 3f 00 3c 	stw     r9,60(r31)                             
                                                                      
    lfat_fd->dir_pos = *dir_pos;                                      
ffc12e10:	39 3f 00 20 	addi    r9,r31,32                              
ffc12e14:	7c b9 84 aa 	lswi    r5,r25,16                              
ffc12e18:	7c a9 85 aa 	stswi   r5,r9,16                               
                                                                      
    if ( rc != RC_OK )                                                
ffc12e1c:	41 9e 00 0c 	beq-    cr7,ffc12e28 <fat_file_open+0x11c>     <== NEVER TAKEN
        lfat_fd->ino = key;                                           
ffc12e20:	93 df 00 0c 	stw     r30,12(r31)                            
ffc12e24:	48 00 00 34 	b       ffc12e58 <fat_file_open+0x14c>         
    else                                                              
    {                                                                 
        lfat_fd->ino = fat_get_unique_ino(fs_info);                   
ffc12e28:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc12e2c:	48 00 1a 89 	bl      ffc148b4 <fat_get_unique_ino>          <== NOT EXECUTED
                                                                      
        if ( lfat_fd->ino == 0 )                                      
ffc12e30:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
                                                                      
    if ( rc != RC_OK )                                                
        lfat_fd->ino = key;                                           
    else                                                              
    {                                                                 
        lfat_fd->ino = fat_get_unique_ino(fs_info);                   
ffc12e34:	90 7f 00 0c 	stw     r3,12(r31)                             <== NOT EXECUTED
                                                                      
        if ( lfat_fd->ino == 0 )                                      
ffc12e38:	40 be 00 20 	bne+    cr7,ffc12e58 <fat_file_open+0x14c>     <== NOT EXECUTED
        {                                                             
            free((*fat_fd));                                          
ffc12e3c:	80 7b 00 00 	lwz     r3,0(r27)                              <== NOT EXECUTED
ffc12e40:	4b ff 2e 9d 	bl      ffc05cdc <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 );           
ffc12e44:	48 00 85 31 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc12e48:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc12e4c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc12e50:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc12e54:	48 00 00 34 	b       ffc12e88 <fat_file_open+0x17c>         <== 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);
ffc12e58:	80 7d 00 6c 	lwz     r3,108(r29)                            
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
ffc12e5c:	7f e4 fb 78 	mr      r4,r31                                 
ffc12e60:	7c 63 e2 14 	add     r3,r3,r28                              
ffc12e64:	4b ff 81 b9 	bl      ffc0b01c <_Chain_Append>               
    /*                                                                
     * other fields of fat-file descriptor will be initialized on upper
     * level                                                          
     */                                                               
                                                                      
    return RC_OK;                                                     
ffc12e68:	38 60 00 00 	li      r3,0                                   
ffc12e6c:	48 00 00 1c 	b       ffc12e88 <fat_file_open+0x17c>         
    uint32_t                               key2,                      
    fat_file_fd_t                          **ret                      
    )                                                                 
{                                                                     
    uint32_t          mod = (key1) % FAT_HASH_MODULE;                 
    rtems_chain_node *the_node = rtems_chain_first(hash + mod);       
ffc12e70:	81 3d 00 70 	lwz     r9,112(r29)                            
        fat_file_fd_t *ffd = (fat_file_fd_t *)the_node;               
        uint32_t       ck =  fat_construct_key(fs_info, &ffd->dir_pos.sname);
                                                                      
        if ( (key1) == ck)                                            
        {                                                             
            if ( ((key2) == 0) || ((key2) == ffd->ino) )              
ffc12e74:	2e 1e 00 00 	cmpwi   cr4,r30,0                              
    uint32_t                               key2,                      
    fat_file_fd_t                          **ret                      
    )                                                                 
{                                                                     
    uint32_t          mod = (key1) % FAT_HASH_MODULE;                 
    rtems_chain_node *the_node = rtems_chain_first(hash + mod);       
ffc12e78:	7f 49 e2 14 	add     r26,r9,r28                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc12e7c:	7f e9 e0 2e 	lwzx    r31,r9,r28                             
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 ));            
ffc12e80:	3b 5a 00 04 	addi    r26,r26,4                              
ffc12e84:	4b ff ff 30 	b       ffc12db4 <fat_file_open+0xa8>          
     * other fields of fat-file descriptor will be initialized on upper
     * level                                                          
     */                                                               
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc12e88:	81 81 00 08 	lwz     r12,8(r1)                              
ffc12e8c:	39 61 00 28 	addi    r11,r1,40                              
ffc12e90:	7d 80 81 20 	mtcrf   8,r12                                  
ffc12e94:	4b fe e7 50 	b       ffc015e4 <_restgpr_25_x>               
                                                                      

ffc12eac <fat_file_read>: fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, uint8_t *buf ) {
ffc12eac:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc12eb0:	7c 08 02 a6 	mflr    r0                                     
    int            rc = RC_OK;                                        
    ssize_t        ret = 0;                                           
    uint32_t       cmpltd = 0;                                        
    uint32_t       cur_cln = 0;                                       
ffc12eb4:	39 20 00 00 	li      r9,0                                   
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              start,                      
    uint32_t                              count,                      
    uint8_t                              *buf                         
)                                                                     
{                                                                     
ffc12eb8:	be c1 00 18 	stmw    r22,24(r1)                             
    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)                                                   
ffc12ebc:	7c de 33 79 	mr.     r30,r6                                 
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              start,                      
    uint32_t                              count,                      
    uint8_t                              *buf                         
)                                                                     
{                                                                     
ffc12ec0:	90 01 00 44 	stw     r0,68(r1)                              
    int            rc = RC_OK;                                        
    ssize_t        ret = 0;                                           
    uint32_t       cmpltd = 0;                                        
    uint32_t       cur_cln = 0;                                       
ffc12ec4:	91 21 00 08 	stw     r9,8(r1)                               
    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)                                                   
ffc12ec8:	41 82 01 8c 	beq-    ffc13054 <fat_file_read+0x1a8>         <== NEVER TAKEN
                                                                      
    /*                                                                
     * >= because start is offset and computed from 0 and file_size   
     * computed from 1                                                
     */                                                               
    if ( start >= fat_fd->fat_file_size )                             
ffc12ecc:	81 24 00 18 	lwz     r9,24(r4)                              
ffc12ed0:	7c 7f 1b 78 	mr      r31,r3                                 
ffc12ed4:	7c 9d 23 78 	mr      r29,r4                                 
ffc12ed8:	7f 85 48 40 	cmplw   cr7,r5,r9                              
ffc12edc:	7c bc 2b 78 	mr      r28,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;                                                
ffc12ee0:	38 60 00 00 	li      r3,0                                   
                                                                      
    /*                                                                
     * >= because start is offset and computed from 0 and file_size   
     * computed from 1                                                
     */                                                               
    if ( start >= fat_fd->fat_file_size )                             
ffc12ee4:	40 9c 01 7c 	bge-    cr7,ffc13060 <fat_file_read+0x1b4>     
        return FAT_EOF;                                               
                                                                      
    if ((count > fat_fd->fat_file_size) ||                            
ffc12ee8:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc12eec:	7c f7 3b 78 	mr      r23,r7                                 
ffc12ef0:	41 9d 00 10 	bgt-    cr7,ffc12f00 <fat_file_read+0x54>      <== NEVER TAKEN
        (start > fat_fd->fat_file_size - count))                      
ffc12ef4:	7d 5e 48 50 	subf    r10,r30,r9                             
     * computed from 1                                                
     */                                                               
    if ( start >= fat_fd->fat_file_size )                             
        return FAT_EOF;                                               
                                                                      
    if ((count > fat_fd->fat_file_size) ||                            
ffc12ef8:	7f 85 50 40 	cmplw   cr7,r5,r10                             
ffc12efc:	40 9d 00 08 	ble-    cr7,ffc12f04 <fat_file_read+0x58>      
        (start > fat_fd->fat_file_size - count))                      
        count = fat_fd->fat_file_size - start;                        
ffc12f00:	7f dc 48 50 	subf    r30,r28,r9                             
                                                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
ffc12f04:	81 3d 00 20 	lwz     r9,32(r29)                             
ffc12f08:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc12f0c:	40 9e 00 5c 	bne-    cr7,ffc12f68 <fat_file_read+0xbc>      
ffc12f10:	81 3d 00 24 	lwz     r9,36(r29)                             
ffc12f14:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc12f18:	40 9e 00 50 	bne-    cr7,ffc12f68 <fat_file_read+0xbc>      <== NEVER TAKEN
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
ffc12f1c:	89 3f 00 0e 	lbz     r9,14(r31)                             
                                                                      
    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)) &&                               
ffc12f20:	71 2a 00 03 	andi.   r10,r9,3                               
ffc12f24:	41 a2 00 44 	beq+    ffc12f68 <fat_file_read+0xbc>          
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
    {                                                                 
        sec = fat_cluster_num_to_sector_num(fs_info, fat_fd->cln);    
ffc12f28:	80 9d 00 1c 	lwz     r4,28(r29)                             
ffc12f2c:	7f e3 fb 78 	mr      r3,r31                                 
ffc12f30:	4b ff fc 99 	bl      ffc12bc8 <fat_cluster_num_to_sector_num>
        sec += (start >> fs_info->vol.sec_log2);                      
ffc12f34:	88 9f 00 02 	lbz     r4,2(r31)                              
        byte = start & (fs_info->vol.bps - 1);                        
ffc12f38:	a0 bf 00 00 	lhz     r5,0(r31)                              
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, count, buf);        
ffc12f3c:	7f c6 f3 78 	mr      r6,r30                                 
                                                                      
    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);                      
ffc12f40:	7f 84 24 30 	srw     r4,r28,r4                              
        byte = start & (fs_info->vol.bps - 1);                        
ffc12f44:	38 a5 ff ff 	addi    r5,r5,-1                               
                                                                      
    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);                      
ffc12f48:	7c 83 22 14 	add     r4,r3,r4                               
        byte = start & (fs_info->vol.bps - 1);                        
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, count, buf);        
ffc12f4c:	7f 85 28 38 	and     r5,r28,r5                              
ffc12f50:	7f e3 fb 78 	mr      r3,r31                                 
ffc12f54:	7e e7 bb 78 	mr      r7,r23                                 
ffc12f58:	48 00 0c 41 	bl      ffc13b98 <_fat_block_read>             
        if ( ret < 0 )                                                
ffc12f5c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc12f60:	40 a0 01 00 	bge+    ffc13060 <fat_file_read+0x1b4>         <== ALWAYS TAKEN
ffc12f64:	48 00 00 f8 	b       ffc1305c <fat_file_read+0x1b0>         <== NOT EXECUTED
            return -1;                                                
                                                                      
        return ret;                                                   
    }                                                                 
                                                                      
    cl_start = start >> fs_info->vol.bpc_log2;                        
ffc12f68:	8b 1f 00 08 	lbz     r24,8(r31)                             
    save_ofs = ofs = start & (fs_info->vol.bpc - 1);                  
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
ffc12f6c:	3a c1 00 08 	addi    r22,r1,8                               
ffc12f70:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
        return ret;                                                   
    }                                                                 
                                                                      
    cl_start = start >> fs_info->vol.bpc_log2;                        
    save_ofs = ofs = start & (fs_info->vol.bpc - 1);                  
ffc12f74:	a3 7f 00 06 	lhz     r27,6(r31)                             
            return -1;                                                
                                                                      
        return ret;                                                   
    }                                                                 
                                                                      
    cl_start = start >> fs_info->vol.bpc_log2;                        
ffc12f78:	7f 98 c4 30 	srw     r24,r28,r24                            
    save_ofs = ofs = start & (fs_info->vol.bpc - 1);                  
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
ffc12f7c:	7f a4 eb 78 	mr      r4,r29                                 
ffc12f80:	7f 05 c3 78 	mr      r5,r24                                 
ffc12f84:	7e c6 b3 78 	mr      r6,r22                                 
ffc12f88:	4b ff fc cd 	bl      ffc12c54 <fat_file_lseek>              
    if (rc != RC_OK)                                                  
ffc12f8c:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc12f90:	7c 83 23 78 	mr      r3,r4                                  
ffc12f94:	40 9e 00 cc 	bne-    cr7,ffc13060 <fat_file_read+0x1b4>     <== NEVER TAKEN
                                                                      
        return ret;                                                   
    }                                                                 
                                                                      
    cl_start = start >> fs_info->vol.bpc_log2;                        
    save_ofs = ofs = start & (fs_info->vol.bpc - 1);                  
ffc12f98:	3b 7b ff ff 	addi    r27,r27,-1                             
ffc12f9c:	7f 9c d8 38 	and     r28,r28,r27                            
ffc12fa0:	7f 99 e3 78 	mr      r25,r28                                
ffc12fa4:	3b 40 00 00 	li      r26,0                                  
ffc12fa8:	3b 60 00 00 	li      r27,0                                  
ffc12fac:	48 00 00 7c 	b       ffc13028 <fat_file_read+0x17c>         
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    while (count > 0)                                                 
    {                                                                 
        c = MIN(count, (fs_info->vol.bpc - ofs));                     
ffc12fb0:	a3 5f 00 06 	lhz     r26,6(r31)                             
ffc12fb4:	7f 59 d0 50 	subf    r26,r25,r26                            
ffc12fb8:	7f 9a f0 40 	cmplw   cr7,r26,r30                            
ffc12fbc:	40 9d 00 08 	ble-    cr7,ffc12fc4 <fat_file_read+0x118>     
ffc12fc0:	7f da f3 78 	mr      r26,r30                                
                                                                      
        sec = fat_cluster_num_to_sector_num(fs_info, cur_cln);        
ffc12fc4:	80 81 00 08 	lwz     r4,8(r1)                               
ffc12fc8:	7f e3 fb 78 	mr      r3,r31                                 
ffc12fcc:	4b ff fb fd 	bl      ffc12bc8 <fat_cluster_num_to_sector_num>
        sec += (ofs >> fs_info->vol.sec_log2);                        
ffc12fd0:	88 9f 00 02 	lbz     r4,2(r31)                              
        byte = ofs & (fs_info->vol.bps - 1);                          
ffc12fd4:	a0 bf 00 00 	lhz     r5,0(r31)                              
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, c, buf + cmpltd);   
ffc12fd8:	7f 46 d3 78 	mr      r6,r26                                 
    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);                        
ffc12fdc:	7f 24 24 30 	srw     r4,r25,r4                              
        byte = ofs & (fs_info->vol.bps - 1);                          
ffc12fe0:	38 a5 ff ff 	addi    r5,r5,-1                               
    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);                        
ffc12fe4:	7c 83 22 14 	add     r4,r3,r4                               
        byte = ofs & (fs_info->vol.bps - 1);                          
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, c, buf + cmpltd);   
ffc12fe8:	7f 25 28 38 	and     r5,r25,r5                              
ffc12fec:	7f e3 fb 78 	mr      r3,r31                                 
ffc12ff0:	7c f7 da 14 	add     r7,r23,r27                             
ffc12ff4:	48 00 0b a5 	bl      ffc13b98 <_fat_block_read>             
        if ( ret < 0 )                                                
ffc12ff8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12ffc:	41 9c 00 60 	blt-    cr7,ffc1305c <fat_file_read+0x1b0>     <== NEVER TAKEN
            return -1;                                                
                                                                      
        count -= c;                                                   
ffc13000:	7f da f0 50 	subf    r30,r26,r30                            
        cmpltd += c;                                                  
ffc13004:	7f 7b d2 14 	add     r27,r27,r26                            
        save_cln = cur_cln;                                           
ffc13008:	83 41 00 08 	lwz     r26,8(r1)                              
        rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);         
ffc1300c:	7f e3 fb 78 	mr      r3,r31                                 
ffc13010:	7f 44 d3 78 	mr      r4,r26                                 
ffc13014:	7e c5 b3 78 	mr      r5,r22                                 
ffc13018:	48 00 67 8d 	bl      ffc197a4 <fat_get_fat_cluster>         
        if ( rc != RC_OK )                                            
            return rc;                                                
                                                                      
        ofs = 0;                                                      
ffc1301c:	3b 20 00 00 	li      r25,0                                  
                                                                      
        count -= c;                                                   
        cmpltd += c;                                                  
        save_cln = cur_cln;                                           
        rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);         
        if ( rc != RC_OK )                                            
ffc13020:	2c 03 00 00 	cmpwi   r3,0                                   
ffc13024:	40 82 00 3c 	bne-    ffc13060 <fat_file_read+0x1b4>         <== NEVER TAKEN
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    while (count > 0)                                                 
ffc13028:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc1302c:	40 9e ff 84 	bne+    cr7,ffc12fb0 <fat_file_read+0x104>     
    }                                                                 
                                                                      
    /* 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);
ffc13030:	89 3f 00 08 	lbz     r9,8(r31)                              
ffc13034:	3b 9c ff ff 	addi    r28,r28,-1                             
ffc13038:	7f 9c da 14 	add     r28,r28,r27                            
    fat_fd->map.disk_cln = save_cln;                                  
ffc1303c:	93 5d 00 38 	stw     r26,56(r29)                            
    }                                                                 
                                                                      
    /* 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);
ffc13040:	7f 9c 4c 30 	srw     r28,r28,r9                             
        ofs = 0;                                                      
    }                                                                 
                                                                      
    /* update cache */                                                
    /* XXX: check this - I'm not sure :( */                           
    fat_fd->map.file_cln = cl_start +                                 
ffc13044:	7f 1c c2 14 	add     r24,r28,r24                            
ffc13048:	93 1d 00 34 	stw     r24,52(r29)                            
                           ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
    fat_fd->map.disk_cln = save_cln;                                  
                                                                      
    return cmpltd;                                                    
ffc1304c:	7f 63 db 78 	mr      r3,r27                                 
ffc13050:	48 00 00 10 	b       ffc13060 <fat_file_read+0x1b4>         
    uint32_t       byte = 0;                                          
    uint32_t       c = 0;                                             
                                                                      
    /* it couldn't be removed - otherwise cache update will be broken */
    if (count == 0)                                                   
        return cmpltd;                                                
ffc13054:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc13058:	48 00 00 08 	b       ffc13060 <fat_file_read+0x1b4>         <== NOT EXECUTED
        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;                                                
ffc1305c:	38 60 ff ff 	li      r3,-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;                                                    
}                                                                     
ffc13060:	39 61 00 40 	addi    r11,r1,64                              
ffc13064:	4b fe e5 74 	b       ffc015d8 <_restgpr_22_x>               
                                                                      

ffc13808 <fat_file_size>: int fat_file_size( fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd ) {
ffc13808:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc1380c:	7c 08 02 a6 	mflr    r0                                     
ffc13810:	90 01 00 2c 	stw     r0,44(r1)                              
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = fat_fd->cln;                             
ffc13814:	81 24 00 1c 	lwz     r9,28(r4)                              
int                                                                   
fat_file_size(                                                        
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
ffc13818:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc1381c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc13820:	7c 9f 23 78 	mr      r31,r4                                 
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = fat_fd->cln;                             
ffc13824:	91 21 00 08 	stw     r9,8(r1)                               
    uint32_t       save_cln = 0;                                      
                                                                      
    /* Have we requested root dir size for FAT12/16? */               
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
ffc13828:	81 24 00 20 	lwz     r9,32(r4)                              
ffc1382c:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc13830:	40 be 00 28 	bne+    cr7,ffc13858 <fat_file_size+0x50>      
ffc13834:	81 24 00 24 	lwz     r9,36(r4)                              
ffc13838:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1383c:	40 9e 00 1c 	bne-    cr7,ffc13858 <fat_file_size+0x50>      <== NEVER TAKEN
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
ffc13840:	89 23 00 0e 	lbz     r9,14(r3)                              
    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)) &&                               
ffc13844:	71 2a 00 03 	andi.   r10,r9,3                               
ffc13848:	41 a2 00 10 	beq+    ffc13858 <fat_file_size+0x50>          <== ALWAYS TAKEN
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
    {                                                                 
        fat_fd->fat_file_size = fs_info->vol.rdir_size;               
ffc1384c:	81 23 00 2c 	lwz     r9,44(r3)                              <== NOT EXECUTED
ffc13850:	91 24 00 18 	stw     r9,24(r4)                              <== NOT EXECUTED
ffc13854:	48 00 00 58 	b       ffc138ac <fat_file_size+0xa4>          <== NOT EXECUTED
        return rc;                                                    
    }                                                                 
                                                                      
    fat_fd->fat_file_size = 0;                                        
ffc13858:	39 20 00 00 	li      r9,0                                   
ffc1385c:	91 3f 00 18 	stw     r9,24(r31)                             
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
ffc13860:	48 00 00 30 	b       ffc13890 <fat_file_size+0x88>          
    {                                                                 
        save_cln = cur_cln;                                           
        rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);         
ffc13864:	7f c3 f3 78 	mr      r3,r30                                 
ffc13868:	7f a4 eb 78 	mr      r4,r29                                 
ffc1386c:	38 a1 00 08 	addi    r5,r1,8                                
ffc13870:	48 00 5f 35 	bl      ffc197a4 <fat_get_fat_cluster>         
        if ( rc != RC_OK )                                            
ffc13874:	2c 03 00 00 	cmpwi   r3,0                                   
ffc13878:	40 82 00 38 	bne-    ffc138b0 <fat_file_size+0xa8>          <== NEVER TAKEN
            return rc;                                                
                                                                      
        fat_fd->fat_file_size += fs_info->vol.bpc;                    
ffc1387c:	a1 5e 00 06 	lhz     r10,6(r30)                             
ffc13880:	81 3f 00 18 	lwz     r9,24(r31)                             
ffc13884:	7d 29 52 14 	add     r9,r9,r10                              
ffc13888:	91 3f 00 18 	stw     r9,24(r31)                             
                                                                      
    fat_fd->fat_file_size = 0;                                        
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
    {                                                                 
        save_cln = cur_cln;                                           
ffc1388c:	7f a9 eb 78 	mr      r9,r29                                 
        return rc;                                                    
    }                                                                 
                                                                      
    fat_fd->fat_file_size = 0;                                        
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
ffc13890:	81 5e 00 10 	lwz     r10,16(r30)                            
ffc13894:	83 a1 00 08 	lwz     r29,8(r1)                              
ffc13898:	7f a8 50 38 	and     r8,r29,r10                             
ffc1389c:	81 5e 00 14 	lwz     r10,20(r30)                            
ffc138a0:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc138a4:	41 9c ff c0 	blt+    cr7,ffc13864 <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;                                  
ffc138a8:	91 3f 00 3c 	stw     r9,60(r31)                             
ffc138ac:	38 60 00 00 	li      r3,0                                   
    return rc;                                                        
}                                                                     
ffc138b0:	39 61 00 28 	addi    r11,r1,40                              
ffc138b4:	4b fe dd 40 	b       ffc015f4 <_restgpr_29_x>               
                                                                      

ffc13068 <fat_file_truncate>: fat_file_truncate( fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd, uint32_t new_length ) {
ffc13068:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc1306c:	7c 08 02 a6 	mflr    r0                                     
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = 0;                                       
ffc13070:	39 20 00 00 	li      r9,0                                   
fat_file_truncate(                                                    
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              new_length                  
    )                                                                 
{                                                                     
ffc13074:	90 01 00 2c 	stw     r0,44(r1)                              
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = 0;                                       
ffc13078:	91 21 00 0c 	stw     r9,12(r1)                              
    uint32_t       cl_start = 0;                                      
    uint32_t       new_last_cln = FAT_UNDEFINED_VALUE;                
ffc1307c:	39 20 ff ff 	li      r9,-1                                  
ffc13080:	91 21 00 08 	stw     r9,8(r1)                               
                                                                      
                                                                      
    if ( new_length >= fat_fd->fat_file_size )                        
ffc13084:	81 24 00 18 	lwz     r9,24(r4)                              
fat_file_truncate(                                                    
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              new_length                  
    )                                                                 
{                                                                     
ffc13088:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc1308c:	7c 9e 23 78 	mr      r30,r4                                 
    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 )                        
ffc13090:	7f 85 48 40 	cmplw   cr7,r5,r9                              
ffc13094:	41 bc 00 0c 	blt+    cr7,ffc130a0 <fat_file_truncate+0x38>  
        return rc;                                                    
ffc13098:	38 60 00 00 	li      r3,0                                   
ffc1309c:	48 00 00 d8 	b       ffc13174 <fat_file_truncate+0x10c>     
                                                                      
    assert(fat_fd->fat_file_size);                                    
ffc130a0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc130a4:	40 be 00 24 	bne+    cr7,ffc130c8 <fat_file_truncate+0x60>  <== ALWAYS TAKEN
ffc130a8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc130ac:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc130b0:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc130b4:	38 63 b9 de 	addi    r3,r3,-17954                           <== NOT EXECUTED
ffc130b8:	38 80 02 d1 	li      r4,721                                 <== NOT EXECUTED
ffc130bc:	38 a5 b9 cc 	addi    r5,r5,-17972                           <== NOT EXECUTED
ffc130c0:	38 c6 ba 26 	addi    r6,r6,-17882                           <== NOT EXECUTED
ffc130c4:	4b ff 2a 59 	bl      ffc05b1c <__assert_func>               <== NOT EXECUTED
                                                                      
    cl_start = (new_length + fs_info->vol.bpc - 1) >> fs_info->vol.bpc_log2;
ffc130c8:	a3 e3 00 06 	lhz     r31,6(r3)                              
ffc130cc:	7c 7d 1b 78 	mr      r29,r3                                 
ffc130d0:	89 43 00 08 	lbz     r10,8(r3)                              
ffc130d4:	3b ff ff ff 	addi    r31,r31,-1                             
ffc130d8:	7f ff 2a 14 	add     r31,r31,r5                             
ffc130dc:	7f ff 54 30 	srw     r31,r31,r10                            
                                                                      
    if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size) 
ffc130e0:	7f ea 50 30 	slw     r10,r31,r10                            
ffc130e4:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc130e8:	40 bc ff b0 	bge-    cr7,ffc13098 <fat_file_truncate+0x30>  
        return RC_OK;                                                 
                                                                      
    if (cl_start != 0)                                                
ffc130ec:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc130f0:	40 9e 00 24 	bne-    cr7,ffc13114 <fat_file_truncate+0xac>  
        if (rc != RC_OK)                                              
            return rc;                                                
                                                                      
    }                                                                 
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
ffc130f4:	7f a3 eb 78 	mr      r3,r29                                 
ffc130f8:	7f c4 f3 78 	mr      r4,r30                                 
ffc130fc:	7f e5 fb 78 	mr      r5,r31                                 
ffc13100:	38 c1 00 0c 	addi    r6,r1,12                               
ffc13104:	4b ff fb 51 	bl      ffc12c54 <fat_file_lseek>              
    if (rc != RC_OK)                                                  
ffc13108:	7c 83 23 79 	mr.     r3,r4                                  
ffc1310c:	40 a2 00 68 	bne+    ffc13174 <fat_file_truncate+0x10c>     <== NEVER TAKEN
ffc13110:	48 00 00 1c 	b       ffc1312c <fat_file_truncate+0xc4>      
    if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size) 
        return RC_OK;                                                 
                                                                      
    if (cl_start != 0)                                                
    {                                                                 
        rc = fat_file_lseek(fs_info, fat_fd, cl_start - 1, &new_last_cln);
ffc13114:	38 bf ff ff 	addi    r5,r31,-1                              
ffc13118:	38 c1 00 08 	addi    r6,r1,8                                
ffc1311c:	4b ff fb 39 	bl      ffc12c54 <fat_file_lseek>              
        if (rc != RC_OK)                                              
ffc13120:	7c 83 23 79 	mr.     r3,r4                                  
ffc13124:	41 82 ff d0 	beq+    ffc130f4 <fat_file_truncate+0x8c>      <== ALWAYS TAKEN
ffc13128:	48 00 00 4c 	b       ffc13174 <fat_file_truncate+0x10c>     <== NOT EXECUTED
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    rc = fat_free_fat_clusters_chain(fs_info, cur_cln);               
ffc1312c:	80 81 00 0c 	lwz     r4,12(r1)                              
ffc13130:	7f a3 eb 78 	mr      r3,r29                                 
ffc13134:	48 00 6a cd 	bl      ffc19c00 <fat_free_fat_clusters_chain> 
    if (rc != RC_OK)                                                  
ffc13138:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1313c:	40 82 00 38 	bne-    ffc13174 <fat_file_truncate+0x10c>     <== NEVER TAKEN
        return rc;                                                    
                                                                      
    if (cl_start != 0)                                                
ffc13140:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc13144:	41 9e ff 54 	beq+    cr7,ffc13098 <fat_file_truncate+0x30>  
    {                                                                 
        rc = fat_set_fat_cluster(fs_info, new_last_cln, FAT_GENFAT_EOC);
ffc13148:	80 81 00 08 	lwz     r4,8(r1)                               
ffc1314c:	7f a3 eb 78 	mr      r3,r29                                 
ffc13150:	38 a0 ff ff 	li      r5,-1                                  
ffc13154:	48 00 68 11 	bl      ffc19964 <fat_set_fat_cluster>         
        if ( rc != RC_OK )                                            
ffc13158:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1315c:	40 82 00 18 	bne-    ffc13174 <fat_file_truncate+0x10c>     <== NEVER TAKEN
            return rc;                                                
        fat_fd->map.file_cln = cl_start - 1;                          
        fat_fd->map.disk_cln = new_last_cln;                          
ffc13160:	81 21 00 08 	lwz     r9,8(r1)                               
    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;                          
ffc13164:	3b ff ff ff 	addi    r31,r31,-1                             
ffc13168:	93 fe 00 34 	stw     r31,52(r30)                            
        fat_fd->map.disk_cln = new_last_cln;                          
ffc1316c:	91 3e 00 38 	stw     r9,56(r30)                             
        fat_fd->map.last_cln = new_last_cln;                          
ffc13170:	91 3e 00 3c 	stw     r9,60(r30)                             
    }                                                                 
    return RC_OK;                                                     
}                                                                     
ffc13174:	39 61 00 28 	addi    r11,r1,40                              
ffc13178:	4b fe e4 7c 	b       ffc015f4 <_restgpr_29_x>               
                                                                      

ffc13560 <fat_file_write>: 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 )
ffc13560:	2c 06 00 00 	cmpwi   r6,0                                   
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              start,                      
    uint32_t                              count,                      
    const uint8_t                        *buf                         
    )                                                                 
{                                                                     
ffc13564:	94 21 ff b0 	stwu    r1,-80(r1)                             
ffc13568:	7c 08 02 a6 	mflr    r0                                     
    int            rc = RC_OK;                                        
    ssize_t        ret;                                               
    uint32_t       cmpltd = 0;                                        
    uint32_t       byte;                                              
    uint32_t       c = 0;                                             
ffc1356c:	39 20 00 00 	li      r9,0                                   
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              start,                      
    uint32_t                              count,                      
    const uint8_t                        *buf                         
    )                                                                 
{                                                                     
ffc13570:	be 61 00 1c 	stmw    r19,28(r1)                             
ffc13574:	7c bc 2b 78 	mr      r28,r5                                 
ffc13578:	7c 9e 23 78 	mr      r30,r4                                 
ffc1357c:	90 01 00 54 	stw     r0,84(r1)                              
    int            rc = RC_OK;                                        
    ssize_t        ret;                                               
    uint32_t       cmpltd = 0;                                        
    uint32_t       byte;                                              
    uint32_t       c = 0;                                             
ffc13580:	91 21 00 0c 	stw     r9,12(r1)                              
    bool           zero_fill = start > fat_fd->fat_file_size;         
ffc13584:	80 a4 00 18 	lwz     r5,24(r4)                              
    uint32_t       file_cln_initial = fat_fd->map.file_cln;           
ffc13588:	82 84 00 34 	lwz     r20,52(r4)                             
    uint32_t       cln;                                               
                                                                      
                                                                      
    if ( count == 0 )                                                 
ffc1358c:	41 82 01 f4 	beq-    ffc13780 <fat_file_write+0x220>        <== NEVER TAKEN
        return cmpltd;                                                
                                                                      
    if (start >= fat_fd->size_limit)                                  
ffc13590:	83 e4 00 14 	lwz     r31,20(r4)                             
ffc13594:	7f 9c f8 40 	cmplw   cr7,r28,r31                            
ffc13598:	41 bc 00 18 	blt+    cr7,ffc135b0 <fat_file_write+0x50>     <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EFBIG);                  
ffc1359c:	48 00 7d d9 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc135a0:	39 20 00 1b 	li      r9,27                                  <== NOT EXECUTED
ffc135a4:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc135a8:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
ffc135ac:	48 00 01 f8 	b       ffc137a4 <fat_file_write+0x244>        <== NOT EXECUTED
                                                                      
    if (count > fat_fd->size_limit - start)                           
ffc135b0:	7f fc f8 50 	subf    r31,r28,r31                            
ffc135b4:	7f 9f 30 40 	cmplw   cr7,r31,r6                             
ffc135b8:	7c 7d 1b 78 	mr      r29,r3                                 
ffc135bc:	7c f5 3b 78 	mr      r21,r7                                 
ffc135c0:	40 9d 00 08 	ble-    cr7,ffc135c8 <fat_file_write+0x68>     <== NEVER TAKEN
ffc135c4:	7c df 33 78 	mr      r31,r6                                 
        count = fat_fd->size_limit - start;                           
                                                                      
    rc = fat_file_extend(fs_info, fat_fd, zero_fill, start + count, &c);
ffc135c8:	7f 7f e2 14 	add     r27,r31,r28                            
ffc135cc:	7c bc 28 10 	subfc   r5,r28,r5                              
ffc135d0:	7c a5 29 10 	subfe   r5,r5,r5                               
ffc135d4:	7f a3 eb 78 	mr      r3,r29                                 
ffc135d8:	7f c4 f3 78 	mr      r4,r30                                 
ffc135dc:	7c a5 00 d0 	neg     r5,r5                                  
ffc135e0:	7f 66 db 78 	mr      r6,r27                                 
ffc135e4:	38 e1 00 0c 	addi    r7,r1,12                               
ffc135e8:	4b ff fd 2d 	bl      ffc13314 <fat_file_extend>             
    if (RC_OK == rc)                                                  
ffc135ec:	7c 69 1b 79 	mr.     r9,r3                                  
ffc135f0:	40 82 01 b4 	bne-    ffc137a4 <fat_file_write+0x244>        
    {                                                                 
        /*                                                            
         * check whether there was enough room on device to locate    
         * file of 'start + count' bytes                              
         */                                                           
        if (c != (start + count))                                     
ffc135f4:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc135f8:	7f 89 d8 00 	cmpw    cr7,r9,r27                             
ffc135fc:	41 9e 00 08 	beq-    cr7,ffc13604 <fat_file_write+0xa4>     <== ALWAYS TAKEN
            count = c - start;                                        
ffc13600:	7f fc 48 50 	subf    r31,r28,r9                             <== 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));
ffc13604:	81 5e 00 20 	lwz     r10,32(r30)                            
ffc13608:	39 20 00 00 	li      r9,0                                   
         */                                                           
        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))
ffc1360c:	89 1d 00 0e 	lbz     r8,14(r29)                             
 */                                                                   
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));
ffc13610:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
ffc13614:	40 be 00 1c 	bne+    cr7,ffc13630 <fat_file_write+0xd0>     
ffc13618:	81 5e 00 24 	lwz     r10,36(r30)                            
ffc1361c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc13620:	40 9e 00 10 	bne-    cr7,ffc13630 <fat_file_write+0xd0>     <== NEVER TAKEN
ffc13624:	55 09 07 be 	clrlwi  r9,r8,30                               
ffc13628:	7d 29 00 d0 	neg     r9,r9                                  
ffc1362c:	55 29 0f fe 	rlwinm  r9,r9,1,31,31                          
         */                                                           
        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))
ffc13630:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc13634:	8b 5d 00 08 	lbz     r26,8(r29)                             
ffc13638:	41 9e 00 48 	beq-    cr7,ffc13680 <fat_file_write+0x120>    
        {                                                             
            cln = fat_fd->cln;                                        
            cln += (start >> fs_info->vol.bpc_log2);                  
            byte = start & (fs_info->vol.bpc -1);                     
ffc1363c:	a0 bd 00 06 	lhz     r5,6(r29)                              
                                                                      
        /* 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);                  
ffc13640:	57 5a 06 3e 	clrlwi  r26,r26,24                             
            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;                                        
ffc13644:	81 3e 00 1c 	lwz     r9,28(r30)                             
            cln += (start >> fs_info->vol.bpc_log2);                  
ffc13648:	7f 84 d4 30 	srw     r4,r28,r26                             
            byte = start & (fs_info->vol.bpc -1);                     
ffc1364c:	38 a5 ff ff 	addi    r5,r5,-1                               
                                                                      
            ret = fat_cluster_write(fs_info,                          
ffc13650:	7c 84 4a 14 	add     r4,r4,r9                               
ffc13654:	7f a3 eb 78 	mr      r3,r29                                 
ffc13658:	7f 85 28 38 	and     r5,r28,r5                              
ffc1365c:	7f e6 fb 78 	mr      r6,r31                                 
ffc13660:	7e a7 ab 78 	mr      r7,r21                                 
ffc13664:	39 00 00 00 	li      r8,0                                   
ffc13668:	48 00 07 9d 	bl      ffc13e04 <fat_cluster_write>           
                                      byte,                           
                                      count,                          
                                      buf,                            
                                      false);                         
            if (0 > ret)                                              
              rc = -1;                                                
ffc1366c:	39 20 ff ff 	li      r9,-1                                  
                                      cln,                            
                                      byte,                           
                                      count,                          
                                      buf,                            
                                      false);                         
            if (0 > ret)                                              
ffc13670:	2c 03 00 00 	cmpwi   r3,0                                   
ffc13674:	41 80 01 30 	blt-    ffc137a4 <fat_file_write+0x244>        <== NEVER TAKEN
              rc = -1;                                                
            else                                                      
              cmpltd = ret;                                           
ffc13678:	7c 7b 1b 78 	mr      r27,r3                                 
ffc1367c:	48 00 01 24 	b       ffc137a0 <fat_file_write+0x240>        
     const uint8_t                        *buf,                       
     const uint32_t                        file_cln_initial)          
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cmpltd = 0;                                        
    uint32_t       cur_cln = 0;                                       
ffc13680:	7c 39 0b 78 	mr      r25,r1                                 
ffc13684:	95 39 00 08 	stwu    r9,8(r25)                              
    uint32_t       save_cln = 0; /* FIXME: This might be incorrect, cf. below */
    uint32_t       start_cln = start >> fs_info->vol.bpc_log2;        
ffc13688:	57 5a 06 3e 	clrlwi  r26,r26,24                             
ffc1368c:	7f 98 d4 30 	srw     r24,r28,r26                            
    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);        
ffc13690:	7f a3 eb 78 	mr      r3,r29                                 
ffc13694:	7f c4 f3 78 	mr      r4,r30                                 
ffc13698:	7f 05 c3 78 	mr      r5,r24                                 
ffc1369c:	7f 26 cb 78 	mr      r6,r25                                 
ffc136a0:	4b ff f5 b5 	bl      ffc12c54 <fat_file_lseek>              
    if (RC_OK == rc)                                                  
ffc136a4:	7c 9b 23 79 	mr.     r27,r4                                 
ffc136a8:	40 82 00 c8 	bne-    ffc13770 <fat_file_write+0x210>        <== NEVER TAKEN
    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);
ffc136ac:	7f 1a d0 30 	slw     r26,r24,r26                            
    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;                         
ffc136b0:	81 3e 00 1c 	lwz     r9,28(r30)                             
ffc136b4:	82 e1 00 08 	lwz     r23,8(r1)                              
    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);
ffc136b8:	7f 9a e0 50 	subf    r28,r26,r28                            
ffc136bc:	7f 85 e3 78 	mr      r5,r28                                 
    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;                         
ffc136c0:	7e e9 b8 50 	subf    r23,r9,r23                             
    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;                         
ffc136c4:	3a 60 00 00 	li      r19,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 */
ffc136c8:	3a c0 00 00 	li      r22,0                                  
     const uint32_t                        count,                     
     const uint8_t                        *buf,                       
     const uint32_t                        file_cln_initial)          
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cmpltd = 0;                                        
ffc136cc:	3b 40 00 00 	li      r26,0                                  
ffc136d0:	48 00 00 60 	b       ffc13730 <fat_file_write+0x1d0>        
    {                                                                 
        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));    
ffc136d4:	a0 dd 00 06 	lhz     r6,6(r29)                              
ffc136d8:	7c c5 30 50 	subf    r6,r5,r6                               
ffc136dc:	7f 86 f8 40 	cmplw   cr7,r6,r31                             
ffc136e0:	40 9d 00 08 	ble-    cr7,ffc136e8 <fat_file_write+0x188>    
ffc136e4:	7f e6 fb 78 	mr      r6,r31                                 
                                                                      
            if (file_cln_initial < file_cln_cnt)                      
ffc136e8:	7f 94 b8 40 	cmplw   cr7,r20,r23                            
ffc136ec:	40 9c 00 08 	bge-    cr7,ffc136f4 <fat_file_write+0x194>    
                overwrite_cluster = true;                             
ffc136f0:	3a 60 00 01 	li      r19,1                                  
                                                                      
            ret = fat_cluster_write(fs_info,                          
ffc136f4:	80 81 00 08 	lwz     r4,8(r1)                               
ffc136f8:	7f a3 eb 78 	mr      r3,r29                                 
ffc136fc:	7c f5 d2 14 	add     r7,r21,r26                             
ffc13700:	7e 68 9b 78 	mr      r8,r19                                 
ffc13704:	48 00 07 01 	bl      ffc13e04 <fat_cluster_write>           
                                      cur_cln,                        
                                      ofs_cln,                        
                                      c,                              
                                      &buf[cmpltd],                   
                                      overwrite_cluster);             
            if (0 > ret)                                              
ffc13708:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1370c:	40 a0 00 7c 	bge+    ffc13788 <fat_file_write+0x228>        <== ALWAYS TAKEN
ffc13710:	48 00 00 2c 	b       ffc1373c <fat_file_write+0x1dc>        <== NOT EXECUTED
                ++file_cln_cnt;                                       
                bytes_to_write -= ret;                                
                cmpltd += ret;                                        
                save_cln = cur_cln;                                   
                if (0 < bytes_to_write)                               
                  rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);
ffc13714:	7f a3 eb 78 	mr      r3,r29                                 
ffc13718:	7e c4 b3 78 	mr      r4,r22                                 
ffc1371c:	7f 25 cb 78 	mr      r5,r25                                 
ffc13720:	48 00 60 85 	bl      ffc197a4 <fat_get_fat_cluster>         
                                                                      
    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)                                       
ffc13724:	2c 03 00 00 	cmpwi   r3,0                                   
ffc13728:	40 82 00 1c 	bne-    ffc13744 <fat_file_write+0x1e4>        <== NEVER TAKEN
ffc1372c:	38 a0 00 00 	li      r5,0                                   
               && (bytes_to_write > 0))                               
ffc13730:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc13734:	40 9e ff a0 	bne+    cr7,ffc136d4 <fat_file_write+0x174>    
ffc13738:	48 00 00 10 	b       ffc13748 <fat_file_write+0x1e8>        
                                      cur_cln,                        
                                      ofs_cln,                        
                                      c,                              
                                      &buf[cmpltd],                   
                                      overwrite_cluster);             
            if (0 > ret)                                              
ffc1373c:	3b 60 ff ff 	li      r27,-1                                 <== NOT EXECUTED
ffc13740:	48 00 00 08 	b       ffc13748 <fat_file_write+0x1e8>        <== NOT EXECUTED
                                                                      
    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)                                       
ffc13744:	7c 7b 1b 78 	mr      r27,r3                                 <== NOT EXECUTED
        fat_fd->map.file_cln = start_cln +                            
                               ((ofs_cln_save + cmpltd - 1) >> fs_info->vol.bpc_log2);
        fat_fd->map.disk_cln = save_cln;                              
    }                                                                 
                                                                      
    if (RC_OK != rc)                                                  
ffc13748:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
        }                                                             
                                                                      
        /* 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);
ffc1374c:	89 3d 00 08 	lbz     r9,8(r29)                              
ffc13750:	3b 9c ff ff 	addi    r28,r28,-1                             
        fat_fd->map.disk_cln = save_cln;                              
ffc13754:	92 de 00 38 	stw     r22,56(r30)                            
        }                                                             
                                                                      
        /* 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);
ffc13758:	7f 9c d2 14 	add     r28,r28,r26                            
ffc1375c:	7f 9c 4c 30 	srw     r28,r28,r9                             
            }                                                         
        }                                                             
                                                                      
        /* update cache */                                            
        /* XXX: check this - I'm not sure :( */                       
        fat_fd->map.file_cln = start_cln +                            
ffc13760:	7f 1c c2 14 	add     r24,r28,r24                            
ffc13764:	93 1e 00 34 	stw     r24,52(r30)                            
                               ((ofs_cln_save + cmpltd - 1) >> fs_info->vol.bpc_log2);
        fat_fd->map.disk_cln = save_cln;                              
    }                                                                 
                                                                      
    if (RC_OK != rc)                                                  
ffc13768:	40 9e 00 08 	bne-    cr7,ffc13770 <fat_file_write+0x210>    <== NEVER TAKEN
      return rc;                                                      
    else                                                              
      return cmpltd;                                                  
ffc1376c:	7f 5b d3 78 	mr      r27,r26                                
                                                       fat_fd,        
                                                       start,         
                                                       count,         
                                                       buf,           
                                                       file_cln_initial);
            if (0 > ret)                                              
ffc13770:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
              rc = -1;                                                
ffc13774:	39 20 ff ff 	li      r9,-1                                  
                                                       fat_fd,        
                                                       start,         
                                                       count,         
                                                       buf,           
                                                       file_cln_initial);
            if (0 > ret)                                              
ffc13778:	41 9c 00 2c 	blt-    cr7,ffc137a4 <fat_file_write+0x244>    <== NEVER TAKEN
ffc1377c:	48 00 00 24 	b       ffc137a0 <fat_file_write+0x240>        
    uint32_t       file_cln_initial = fat_fd->map.file_cln;           
    uint32_t       cln;                                               
                                                                      
                                                                      
    if ( count == 0 )                                                 
        return cmpltd;                                                
ffc13780:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc13784:	48 00 00 20 	b       ffc137a4 <fat_file_write+0x244>        <== NOT EXECUTED
            {                                                         
                ++file_cln_cnt;                                       
                bytes_to_write -= ret;                                
                cmpltd += ret;                                        
                save_cln = cur_cln;                                   
                if (0 < bytes_to_write)                               
ffc13788:	7f e3 f8 51 	subf.   r31,r3,r31                             
            if (RC_OK == rc)                                          
            {                                                         
                ++file_cln_cnt;                                       
                bytes_to_write -= ret;                                
                cmpltd += ret;                                        
                save_cln = cur_cln;                                   
ffc1378c:	82 c1 00 08 	lwz     r22,8(r1)                              
            if (0 > ret)                                              
              rc = -1;                                                
                                                                      
            if (RC_OK == rc)                                          
            {                                                         
                ++file_cln_cnt;                                       
ffc13790:	3a f7 00 01 	addi    r23,r23,1                              
                bytes_to_write -= ret;                                
                cmpltd += ret;                                        
ffc13794:	7f 5a 1a 14 	add     r26,r26,r3                             
                save_cln = cur_cln;                                   
                if (0 < bytes_to_write)                               
ffc13798:	41 82 ff 94 	beq+    ffc1372c <fat_file_write+0x1cc>        
ffc1379c:	4b ff ff 78 	b       ffc13714 <fat_file_write+0x1b4>        
        }                                                             
    }                                                                 
    if (RC_OK != rc)                                                  
        return rc;                                                    
    else                                                              
        return cmpltd;                                                
ffc137a0:	7f 69 db 78 	mr      r9,r27                                 
}                                                                     
ffc137a4:	39 61 00 50 	addi    r11,r1,80                              
ffc137a8:	7d 23 4b 78 	mr      r3,r9                                  
ffc137ac:	4b fe de 20 	b       ffc015cc <_restgpr_19_x>               
                                                                      

ffc19c00 <fat_free_fat_clusters_chain>: int fat_free_fat_clusters_chain( fat_fs_info_t *fs_info, uint32_t chain ) {
ffc19c00:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc19c04:	7c 08 02 a6 	mflr    r0                                     
    int            rc = RC_OK, rc1 = RC_OK;                           
    uint32_t       cur_cln = chain;                                   
    uint32_t       next_cln = 0;                                      
ffc19c08:	39 20 00 00 	li      r9,0                                   
int                                                                   
fat_free_fat_clusters_chain(                                          
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              chain                       
    )                                                                 
{                                                                     
ffc19c0c:	bf 21 00 1c 	stmw    r25,28(r1)                             
    int            rc = RC_OK, rc1 = RC_OK;                           
    uint32_t       cur_cln = chain;                                   
    uint32_t       next_cln = 0;                                      
ffc19c10:	7c 3c 0b 78 	mr      r28,r1                                 
int                                                                   
fat_free_fat_clusters_chain(                                          
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              chain                       
    )                                                                 
{                                                                     
ffc19c14:	7c 7f 1b 78 	mr      r31,r3                                 
ffc19c18:	90 01 00 3c 	stw     r0,60(r1)                              
ffc19c1c:	7c 9a 23 78 	mr      r26,r4                                 
    int            rc = RC_OK, rc1 = RC_OK;                           
    uint32_t       cur_cln = chain;                                   
ffc19c20:	7c 9d 23 78 	mr      r29,r4                                 
    uint32_t       next_cln = 0;                                      
ffc19c24:	95 3c 00 08 	stwu    r9,8(r28)                              
    uint32_t       freed_cls_cnt = 0;                                 
ffc19c28:	3b c0 00 00 	li      r30,0                                  
fat_free_fat_clusters_chain(                                          
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              chain                       
    )                                                                 
{                                                                     
    int            rc = RC_OK, rc1 = RC_OK;                           
ffc19c2c:	3b 60 00 00 	li      r27,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)      
ffc19c30:	48 00 00 60 	b       ffc19c90 <fat_free_fat_clusters_chain+0x90>
    {                                                                 
        rc = fat_get_fat_cluster(fs_info, cur_cln, &next_cln);        
ffc19c34:	7f e3 fb 78 	mr      r3,r31                                 
ffc19c38:	7f a4 eb 78 	mr      r4,r29                                 
ffc19c3c:	7f 85 e3 78 	mr      r5,r28                                 
ffc19c40:	4b ff fb 65 	bl      ffc197a4 <fat_get_fat_cluster>         
        if ( rc != RC_OK )                                            
ffc19c44:	7c 79 1b 79 	mr.     r25,r3                                 
ffc19c48:	41 a2 00 24 	beq+    ffc19c6c <fat_free_fat_clusters_chain+0x6c><== ALWAYS TAKEN
        {                                                             
              if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)        
ffc19c4c:	81 3f 00 44 	lwz     r9,68(r31)                             <== NOT EXECUTED
ffc19c50:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              <== NOT EXECUTED
ffc19c54:	41 9e 00 0c 	beq-    cr7,ffc19c60 <fat_free_fat_clusters_chain+0x60><== NOT EXECUTED
                fs_info->vol.free_cls += freed_cls_cnt;               
ffc19c58:	7f de 4a 14 	add     r30,r30,r9                             <== NOT EXECUTED
ffc19c5c:	93 df 00 44 	stw     r30,68(r31)                            <== NOT EXECUTED
                                                                      
            fat_buf_release(fs_info);                                 
ffc19c60:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc19c64:	4b ff 9c ad 	bl      ffc13910 <fat_buf_release>             <== NOT EXECUTED
ffc19c68:	48 00 00 60 	b       ffc19cc8 <fat_free_fat_clusters_chain+0xc8><== NOT EXECUTED
            return rc;                                                
        }                                                             
                                                                      
        rc = fat_set_fat_cluster(fs_info, cur_cln, FAT_GENFAT_FREE);  
ffc19c6c:	7f e3 fb 78 	mr      r3,r31                                 
ffc19c70:	7f a4 eb 78 	mr      r4,r29                                 
ffc19c74:	38 a0 00 00 	li      r5,0                                   
ffc19c78:	4b ff fc ed 	bl      ffc19964 <fat_set_fat_cluster>         
        if ( rc != RC_OK )                                            
ffc19c7c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc19c80:	41 82 00 08 	beq-    ffc19c88 <fat_free_fat_clusters_chain+0x88><== ALWAYS TAKEN
ffc19c84:	7c 7b 1b 78 	mr      r27,r3                                 <== NOT EXECUTED
            rc1 = rc;                                                 
                                                                      
        freed_cls_cnt++;                                              
        cur_cln = next_cln;                                           
ffc19c88:	83 a1 00 08 	lwz     r29,8(r1)                              
                                                                      
        rc = fat_set_fat_cluster(fs_info, cur_cln, FAT_GENFAT_FREE);  
        if ( rc != RC_OK )                                            
            rc1 = rc;                                                 
                                                                      
        freed_cls_cnt++;                                              
ffc19c8c:	3b de 00 01 	addi    r30,r30,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)      
ffc19c90:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc19c94:	7f aa 48 38 	and     r10,r29,r9                             
ffc19c98:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc19c9c:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc19ca0:	41 9c ff 94 	blt+    cr7,ffc19c34 <fat_free_fat_clusters_chain+0x34>
        freed_cls_cnt++;                                              
        cur_cln = next_cln;                                           
    }                                                                 
                                                                      
        fs_info->vol.next_cl = chain;                                 
        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)             
ffc19ca4:	81 3f 00 44 	lwz     r9,68(r31)                             
                                                                      
        freed_cls_cnt++;                                              
        cur_cln = next_cln;                                           
    }                                                                 
                                                                      
        fs_info->vol.next_cl = chain;                                 
ffc19ca8:	93 5f 00 4c 	stw     r26,76(r31)                            
        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)             
ffc19cac:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc19cb0:	41 9e 00 0c 	beq-    cr7,ffc19cbc <fat_free_fat_clusters_chain+0xbc><== ALWAYS TAKEN
            fs_info->vol.free_cls += freed_cls_cnt;                   
ffc19cb4:	7f de 4a 14 	add     r30,r30,r9                             <== NOT EXECUTED
ffc19cb8:	93 df 00 44 	stw     r30,68(r31)                            <== NOT EXECUTED
                                                                      
    fat_buf_release(fs_info);                                         
ffc19cbc:	7f e3 fb 78 	mr      r3,r31                                 
ffc19cc0:	4b ff 9c 51 	bl      ffc13910 <fat_buf_release>             
ffc19cc4:	7f 79 db 78 	mr      r25,r27                                
    if (rc1 != RC_OK)                                                 
        return rc1;                                                   
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc19cc8:	39 61 00 38 	addi    r11,r1,56                              
ffc19ccc:	7f 23 cb 78 	mr      r3,r25                                 
ffc19cd0:	4b fe 79 14 	b       ffc015e4 <_restgpr_25_x>               
                                                                      

ffc14994 <fat_free_unique_ino>: fat_free_unique_ino( fat_fs_info_t *fs_info, uint32_t ino ) { FAT_SET_UNIQ_INO_FREE((ino - fs_info->uino_base), fs_info->uino);
ffc14994:	81 23 00 80 	lwz     r9,128(r3)                             <== NOT EXECUTED
ffc14998:	39 00 ff fe 	li      r8,-2                                  <== NOT EXECUTED
ffc1499c:	81 43 00 74 	lwz     r10,116(r3)                            <== NOT EXECUTED
ffc149a0:	7c 89 20 50 	subf    r4,r9,r4                               <== NOT EXECUTED
ffc149a4:	54 89 e8 fe 	rlwinm  r9,r4,29,3,31                          <== NOT EXECUTED
ffc149a8:	54 84 07 7e 	clrlwi  r4,r4,29                               <== NOT EXECUTED
ffc149ac:	5d 04 20 3e 	rotlw   r4,r8,r4                               <== NOT EXECUTED
ffc149b0:	7d 0a 48 ae 	lbzx    r8,r10,r9                              <== NOT EXECUTED
ffc149b4:	7c 88 40 38 	and     r8,r4,r8                               <== NOT EXECUTED
ffc149b8:	7d 0a 49 ae 	stbx    r8,r10,r9                              <== NOT EXECUTED
ffc149bc:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc197a4 <fat_get_fat_cluster>: uint8_t *sec_buf; uint32_t sec = 0; uint32_t ofs = 0; /* sanity check */ if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
ffc197a4:	2b 84 00 01 	cmplwi  cr7,r4,1                               
fat_get_fat_cluster(                                                  
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              cln,                        
    uint32_t                             *ret_val                     
    )                                                                 
{                                                                     
ffc197a8:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc197ac:	7c 08 02 a6 	mflr    r0                                     
ffc197b0:	bf 21 00 1c 	stmw    r25,28(r1)                             
ffc197b4:	7c 9f 23 78 	mr      r31,r4                                 
ffc197b8:	90 01 00 3c 	stw     r0,60(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)) )           
ffc197bc:	40 9d 01 84 	ble-    cr7,ffc19940 <fat_get_fat_cluster+0x19c><== NEVER TAKEN
ffc197c0:	81 23 00 38 	lwz     r9,56(r3)                              
ffc197c4:	7c 7d 1b 78 	mr      r29,r3                                 
ffc197c8:	39 29 00 01 	addi    r9,r9,1                                
ffc197cc:	7f 84 48 40 	cmplw   cr7,r4,r9                              
ffc197d0:	40 bd 00 08 	ble+    cr7,ffc197d8 <fat_get_fat_cluster+0x34><== ALWAYS TAKEN
ffc197d4:	48 00 01 6c 	b       ffc19940 <fat_get_fat_cluster+0x19c>   <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
ffc197d8:	89 23 00 0e 	lbz     r9,14(r3)                              
ffc197dc:	7c be 2b 78 	mr      r30,r5                                 
ffc197e0:	71 27 00 01 	andi.   r7,r9,1                                
ffc197e4:	41 82 00 10 	beq-    ffc197f4 <fat_get_fat_cluster+0x50>    
ffc197e8:	54 8a f8 7e 	rlwinm  r10,r4,31,1,31                         
ffc197ec:	7d 4a 22 14 	add     r10,r10,r4                             
ffc197f0:	48 00 00 18 	b       ffc19808 <fat_get_fat_cluster+0x64>    
ffc197f4:	55 28 07 bc 	rlwinm  r8,r9,0,30,30                          
ffc197f8:	71 06 00 ff 	andi.   r6,r8,255                              
ffc197fc:	54 8a 10 3a 	rlwinm  r10,r4,2,0,29                          
ffc19800:	41 82 00 08 	beq-    ffc19808 <fat_get_fat_cluster+0x64>    
ffc19804:	54 8a 08 3c 	rlwinm  r10,r4,1,0,30                          
          fs_info->vol.afat_loc;                                      
    ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
ffc19808:	2f 87 00 00 	cmpwi   cr7,r7,0                               
                                                                      
    /* sanity check */                                                
    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) +
ffc1980c:	8b 5d 00 02 	lbz     r26,2(r29)                             
ffc19810:	81 1d 00 58 	lwz     r8,88(r29)                             
ffc19814:	7d 4a d4 30 	srw     r10,r10,r26                            
ffc19818:	7f 4a 42 14 	add     r26,r10,r8                             
          fs_info->vol.afat_loc;                                      
    ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
ffc1981c:	41 9e 00 10 	beq-    cr7,ffc1982c <fat_get_fat_cluster+0x88>
ffc19820:	57 fb f8 7e 	rlwinm  r27,r31,31,1,31                        
ffc19824:	7f 7b fa 14 	add     r27,r27,r31                            
ffc19828:	48 00 00 18 	b       ffc19840 <fat_get_fat_cluster+0x9c>    
ffc1982c:	55 29 07 bc 	rlwinm  r9,r9,0,30,30                          
ffc19830:	71 2a 00 ff 	andi.   r10,r9,255                             
ffc19834:	57 fb 10 3a 	rlwinm  r27,r31,2,0,29                         
ffc19838:	41 82 00 08 	beq-    ffc19840 <fat_get_fat_cluster+0x9c>    
ffc1983c:	57 fb 08 3c 	rlwinm  r27,r31,1,0,30                         
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
ffc19840:	7f a3 eb 78 	mr      r3,r29                                 
    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);
ffc19844:	a3 3d 00 00 	lhz     r25,0(r29)                             
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
ffc19848:	7f 44 d3 78 	mr      r4,r26                                 
ffc1984c:	38 a0 00 01 	li      r5,1                                   
ffc19850:	38 c1 00 08 	addi    r6,r1,8                                
ffc19854:	4b ff a2 7d 	bl      ffc13ad0 <fat_buf_access>              
    if (rc != RC_OK)                                                  
ffc19858:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc1985c:	40 82 00 fc 	bne-    ffc19958 <fat_get_fat_cluster+0x1b4>   <== NEVER TAKEN
        return rc;                                                    
                                                                      
    switch ( fs_info->vol.type )                                      
ffc19860:	89 5d 00 0e 	lbz     r10,14(r29)                            
    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);
ffc19864:	39 39 ff ff 	addi    r9,r25,-1                              
ffc19868:	7f 69 48 38 	and     r9,r27,r9                              
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    switch ( fs_info->vol.type )                                      
ffc1986c:	2f 8a 00 02 	cmpwi   cr7,r10,2                              
ffc19870:	41 9e 00 98 	beq-    cr7,ffc19908 <fat_get_fat_cluster+0x164>
ffc19874:	2f 8a 00 04 	cmpwi   cr7,r10,4                              
ffc19878:	41 9e 00 a8 	beq-    cr7,ffc19920 <fat_get_fat_cluster+0x17c>
ffc1987c:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
ffc19880:	40 be 00 c0 	bne+    cr7,ffc19940 <fat_get_fat_cluster+0x19c><== NEVER TAKEN
            /*                                                        
             * we are enforced in complex computations for FAT12 to escape CPU
             * align problems for some architectures                  
             */                                                       
            *ret_val = (*(sec_buf + ofs));                            
            if ( ofs == (fs_info->vol.bps - 1) )                      
ffc19884:	a0 fd 00 00 	lhz     r7,0(r29)                              
        case FAT_FAT12:                                               
            /*                                                        
             * we are enforced in complex computations for FAT12 to escape CPU
             * align problems for some architectures                  
             */                                                       
            *ret_val = (*(sec_buf + ofs));                            
ffc19888:	81 01 00 08 	lwz     r8,8(r1)                               
            if ( ofs == (fs_info->vol.bps - 1) )                      
ffc1988c:	38 e7 ff ff 	addi    r7,r7,-1                               
ffc19890:	7f 89 38 00 	cmpw    cr7,r9,r7                              
        case FAT_FAT12:                                               
            /*                                                        
             * we are enforced in complex computations for FAT12 to escape CPU
             * align problems for some architectures                  
             */                                                       
            *ret_val = (*(sec_buf + ofs));                            
ffc19894:	7d 48 48 ae 	lbzx    r10,r8,r9                              
ffc19898:	91 5e 00 00 	stw     r10,0(r30)                             
            if ( ofs == (fs_info->vol.bps - 1) )                      
ffc1989c:	40 be 00 3c 	bne+    cr7,ffc198d8 <fat_get_fat_cluster+0x134><== ALWAYS TAKEN
            {                                                         
                rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
ffc198a0:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc198a4:	38 9a 00 01 	addi    r4,r26,1                               <== NOT EXECUTED
ffc198a8:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc198ac:	38 c1 00 08 	addi    r6,r1,8                                <== NOT EXECUTED
ffc198b0:	4b ff a2 21 	bl      ffc13ad0 <fat_buf_access>              <== NOT EXECUTED
                                    &sec_buf);                        
                if (rc != RC_OK)                                      
ffc198b4:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc198b8:	40 82 00 9c 	bne-    ffc19954 <fat_get_fat_cluster+0x1b0>   <== NOT EXECUTED
                    return rc;                                        
                                                                      
                *ret_val |= *sec_buf << 8;                            
ffc198bc:	81 21 00 08 	lwz     r9,8(r1)                               <== NOT EXECUTED
ffc198c0:	89 49 00 00 	lbz     r10,0(r9)                              <== NOT EXECUTED
ffc198c4:	81 3e 00 00 	lwz     r9,0(r30)                              <== NOT EXECUTED
ffc198c8:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         <== NOT EXECUTED
ffc198cc:	7d 29 53 78 	or      r9,r9,r10                              <== NOT EXECUTED
ffc198d0:	91 3e 00 00 	stw     r9,0(r30)                              <== NOT EXECUTED
ffc198d4:	48 00 00 18 	b       ffc198ec <fat_get_fat_cluster+0x148>   <== NOT EXECUTED
            }                                                         
            else                                                      
            {                                                         
                *ret_val |= *(sec_buf + ofs + 1) << 8;                
ffc198d8:	7d 28 4a 14 	add     r9,r8,r9                               
ffc198dc:	89 29 00 01 	lbz     r9,1(r9)                               
ffc198e0:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc198e4:	7d 2a 53 78 	or      r10,r9,r10                             
ffc198e8:	91 5e 00 00 	stw     r10,0(r30)                             
            }                                                         
                                                                      
            if ( FAT_CLUSTER_IS_ODD(cln) )                            
ffc198ec:	73 e6 00 01 	andi.   r6,r31,1                               
ffc198f0:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc198f4:	41 82 00 0c 	beq-    ffc19900 <fat_get_fat_cluster+0x15c>   
                *ret_val = (*ret_val) >> FAT12_SHIFT;                 
ffc198f8:	55 29 e1 3e 	rlwinm  r9,r9,28,4,31                          
ffc198fc:	48 00 00 3c 	b       ffc19938 <fat_get_fat_cluster+0x194>   
            else                                                      
                *ret_val = (*ret_val) & FAT_FAT12_MASK;               
ffc19900:	55 29 05 3e 	clrlwi  r9,r9,20                               
ffc19904:	48 00 00 34 	b       ffc19938 <fat_get_fat_cluster+0x194>   
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *ret_val = *((uint16_t   *)(sec_buf + ofs));              
ffc19908:	81 41 00 08 	lwz     r10,8(r1)                              
ffc1990c:	7d 2a 4a 2e 	lhzx    r9,r10,r9                              
            *ret_val = CF_LE_W(*ret_val);                             
ffc19910:	55 2a c2 3e 	rlwinm  r10,r9,24,8,31                         
ffc19914:	55 29 44 2e 	rlwinm  r9,r9,8,16,23                          
ffc19918:	7d 49 4b 78 	or      r9,r10,r9                              
ffc1991c:	48 00 00 1c 	b       ffc19938 <fat_get_fat_cluster+0x194>   
            break;                                                    
                                                                      
        case FAT_FAT32:                                               
            *ret_val = *((uint32_t   *)(sec_buf + ofs));              
ffc19920:	81 41 00 08 	lwz     r10,8(r1)                              
ffc19924:	7d 4a 48 2e 	lwzx    r10,r10,r9                             
ffc19928:	51 49 46 3e 	rlwimi  r9,r10,8,24,31                         
ffc1992c:	51 49 c4 2e 	rlwimi  r9,r10,24,16,23                        
ffc19930:	51 49 42 1e 	rlwimi  r9,r10,8,8,15                          
ffc19934:	51 49 c0 0e 	rlwimi  r9,r10,24,0,7                          
            *ret_val = CF_LE_L(*ret_val);                             
ffc19938:	91 3e 00 00 	stw     r9,0(r30)                              
            break;                                                    
ffc1993c:	48 00 00 1c 	b       ffc19958 <fat_get_fat_cluster+0x1b4>   
                                                                      
        default:                                                      
            rtems_set_errno_and_return_minus_one(EIO);                
ffc19940:	48 00 1a 35 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc19944:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc19948:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1994c:	3b 80 ff ff 	li      r28,-1                                 <== NOT EXECUTED
ffc19950:	48 00 00 08 	b       ffc19958 <fat_get_fat_cluster+0x1b4>   <== 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)                                      
ffc19954:	7c 7c 1b 78 	mr      r28,r3                                 <== NOT EXECUTED
            rtems_set_errno_and_return_minus_one(EIO);                
            break;                                                    
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc19958:	39 61 00 38 	addi    r11,r1,56                              
ffc1995c:	7f 83 e3 78 	mr      r3,r28                                 
ffc19960:	4b fe 7c 84 	b       ffc015e4 <_restgpr_25_x>               
                                                                      

ffc148b4 <fat_get_unique_ino>: * 0 means FAILED !!! * */ uint32_t fat_get_unique_ino(fat_fs_info_t *fs_info) {
ffc148b4:	94 21 ff e8 	stwu    r1,-24(r1)                             <== NOT EXECUTED
ffc148b8:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc148bc:	bf a1 00 0c 	stmw    r29,12(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))
ffc148c0:	3f a0 0f ff 	lis     r29,4095                               <== NOT EXECUTED
 *     0 means FAILED !!!                                             
 *                                                                    
 */                                                                   
uint32_t                                                              
fat_get_unique_ino(fat_fs_info_t *fs_info)                            
{                                                                     
ffc148c4:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
ffc148c8:	90 01 00 1c 	stw     r0,28(r1)                              <== NOT EXECUTED
    uint32_t                j = 0;                                    
    bool                    resrc_unsuff = false;                     
                                                                      
    while (!resrc_unsuff)                                             
    {                                                                 
        for (j = 0; j < fs_info->uino_pool_size; j++)                 
ffc148cc:	3b c0 00 00 	li      r30,0                                  <== 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))
ffc148d0:	63 bd ff ff 	ori     r29,r29,65535                          <== NOT EXECUTED
fat_get_unique_ino(fat_fs_info_t *fs_info)                            
{                                                                     
    uint32_t                j = 0;                                    
    bool                    resrc_unsuff = false;                     
                                                                      
    while (!resrc_unsuff)                                             
ffc148d4:	48 00 00 a4 	b       ffc14978 <fat_get_unique_ino+0xc4>     <== NOT EXECUTED
    {                                                                 
        for (j = 0; j < fs_info->uino_pool_size; j++)                 
        {                                                             
            if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino)) 
ffc148d8:	81 3f 00 78 	lwz     r9,120(r31)                            <== NOT EXECUTED
ffc148dc:	81 5f 00 74 	lwz     r10,116(r31)                           <== NOT EXECUTED
ffc148e0:	55 27 e8 fe 	rlwinm  r7,r9,29,3,31                          <== NOT EXECUTED
ffc148e4:	7c ca 3a 14 	add     r6,r10,r7                              <== NOT EXECUTED
ffc148e8:	7d 4a 38 ae 	lbzx    r10,r10,r7                             <== NOT EXECUTED
ffc148ec:	55 27 07 7e 	clrlwi  r7,r9,29                               <== NOT EXECUTED
ffc148f0:	7d 45 3e 30 	sraw    r5,r10,r7                              <== NOT EXECUTED
ffc148f4:	70 a3 00 01 	andi.   r3,r5,1                                <== NOT EXECUTED
ffc148f8:	40 a2 00 24 	bne+    ffc1491c <fat_get_unique_ino+0x68>     <== NOT EXECUTED
            {                                                         
                FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino); 
ffc148fc:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc14900:	7d 27 38 30 	slw     r7,r9,r7                               <== NOT EXECUTED
ffc14904:	7c ea 53 78 	or      r10,r7,r10                             <== NOT EXECUTED
ffc14908:	99 46 00 00 	stb     r10,0(r6)                              <== NOT EXECUTED
                return (fs_info->uino_base + fs_info->index);         
ffc1490c:	80 7f 00 78 	lwz     r3,120(r31)                            <== NOT EXECUTED
ffc14910:	81 3f 00 80 	lwz     r9,128(r31)                            <== NOT EXECUTED
ffc14914:	7c 63 4a 14 	add     r3,r3,r9                               <== NOT EXECUTED
ffc14918:	48 00 00 74 	b       ffc1498c <fat_get_unique_ino+0xd8>     <== NOT EXECUTED
            }                                                         
            fs_info->index++;                                         
ffc1491c:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
            if (fs_info->index >= fs_info->uino_pool_size)            
ffc14920:	7f 89 40 40 	cmplw   cr7,r9,r8                              <== NOT EXECUTED
ffc14924:	40 9c 00 0c 	bge-    cr7,ffc14930 <fat_get_unique_ino+0x7c> <== NOT EXECUTED
            if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino)) 
            {                                                         
                FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino); 
                return (fs_info->uino_base + fs_info->index);         
            }                                                         
            fs_info->index++;                                         
ffc14928:	91 3f 00 78 	stw     r9,120(r31)                            <== NOT EXECUTED
ffc1492c:	48 00 00 08 	b       ffc14934 <fat_get_unique_ino+0x80>     <== NOT EXECUTED
            if (fs_info->index >= fs_info->uino_pool_size)            
                fs_info->index = 0;                                   
ffc14930:	93 df 00 78 	stw     r30,120(r31)                           <== NOT EXECUTED
    uint32_t                j = 0;                                    
    bool                    resrc_unsuff = false;                     
                                                                      
    while (!resrc_unsuff)                                             
    {                                                                 
        for (j = 0; j < fs_info->uino_pool_size; j++)                 
ffc14934:	38 84 00 01 	addi    r4,r4,1                                <== NOT EXECUTED
ffc14938:	42 00 ff a0 	bdnz+   ffc148d8 <fat_get_unique_ino+0x24>     <== 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))
ffc1493c:	81 3f 00 80 	lwz     r9,128(r31)                            <== NOT EXECUTED
ffc14940:	54 84 08 3c 	rlwinm  r4,r4,1,0,30                           <== NOT EXECUTED
ffc14944:	7d 29 e8 50 	subf    r9,r9,r29                              <== NOT EXECUTED
ffc14948:	7f 84 48 40 	cmplw   cr7,r4,r9                              <== NOT EXECUTED
ffc1494c:	41 9c 00 0c 	blt-    cr7,ffc14958 <fat_get_unique_ino+0xa4> <== NOT EXECUTED
                resrc_unsuff = true;                                  
        }                                                             
        else                                                          
            resrc_unsuff = true;                                      
    }                                                                 
    return 0;                                                         
ffc14950:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc14954:	48 00 00 38 	b       ffc1498c <fat_get_unique_ino+0xd8>     <== NOT EXECUTED
                fs_info->index = 0;                                   
        }                                                             
                                                                      
        if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base))
        {                                                             
            fs_info->uino_pool_size <<= 1;                            
ffc14958:	90 9f 00 7c 	stw     r4,124(r31)                            <== NOT EXECUTED
            fs_info->uino = realloc(fs_info->uino, fs_info->uino_pool_size);
ffc1495c:	80 7f 00 74 	lwz     r3,116(r31)                            <== NOT EXECUTED
ffc14960:	4b ff 24 3d 	bl      ffc06d9c <realloc>                     <== NOT EXECUTED
            if (fs_info->uino != NULL)                                
ffc14964:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
        }                                                             
                                                                      
        if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base))
        {                                                             
            fs_info->uino_pool_size <<= 1;                            
            fs_info->uino = realloc(fs_info->uino, fs_info->uino_pool_size);
ffc14968:	90 7f 00 74 	stw     r3,116(r31)                            <== NOT EXECUTED
            if (fs_info->uino != NULL)                                
ffc1496c:	41 9e ff e4 	beq+    cr7,ffc14950 <fat_get_unique_ino+0x9c> <== NOT EXECUTED
                fs_info->index = fs_info->uino_pool_size;             
ffc14970:	81 3f 00 7c 	lwz     r9,124(r31)                            <== NOT EXECUTED
ffc14974:	91 3f 00 78 	stw     r9,120(r31)                            <== NOT EXECUTED
    uint32_t                j = 0;                                    
    bool                    resrc_unsuff = false;                     
                                                                      
    while (!resrc_unsuff)                                             
    {                                                                 
        for (j = 0; j < fs_info->uino_pool_size; j++)                 
ffc14978:	81 1f 00 7c 	lwz     r8,124(r31)                            <== NOT EXECUTED
ffc1497c:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
                FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino); 
                return (fs_info->uino_base + fs_info->index);         
            }                                                         
            fs_info->index++;                                         
            if (fs_info->index >= fs_info->uino_pool_size)            
                fs_info->index = 0;                                   
ffc14980:	39 28 00 01 	addi    r9,r8,1                                <== NOT EXECUTED
ffc14984:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc14988:	4b ff ff b0 	b       ffc14938 <fat_get_unique_ino+0x84>     <== NOT EXECUTED
        }                                                             
        else                                                          
            resrc_unsuff = true;                                      
    }                                                                 
    return 0;                                                         
}                                                                     
ffc1498c:	39 61 00 18 	addi    r11,r1,24                              <== NOT EXECUTED
ffc14990:	4b fe cc 64 	b       ffc015f4 <_restgpr_29_x>               <== NOT EXECUTED
                                                                      

ffc14830 <fat_init_clusters_chain>: int fat_init_clusters_chain( fat_fs_info_t *fs_info, uint32_t start_cln ) {
ffc14830:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc14834:	7c 08 02 a6 	mflr    r0                                     
ffc14838:	bf c1 00 18 	stmw    r30,24(r1)                             
    int                     rc = RC_OK;                               
    ssize_t                 ret = 0;                                  
    uint32_t                cur_cln = start_cln;                      
ffc1483c:	7c 3e 0b 78 	mr      r30,r1                                 
int                                                                   
fat_init_clusters_chain(                                              
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              start_cln                   
    )                                                                 
{                                                                     
ffc14840:	7c 7f 1b 78 	mr      r31,r3                                 
ffc14844:	90 01 00 24 	stw     r0,36(r1)                              
    int                     rc = RC_OK;                               
    ssize_t                 ret = 0;                                  
    uint32_t                cur_cln = start_cln;                      
ffc14848:	94 9e 00 08 	stwu    r4,8(r30)                              
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
ffc1484c:	48 00 00 3c 	b       ffc14888 <fat_init_clusters_chain+0x58>
    {                                                                 
        ret = fat_cluster_set(fs_info, cur_cln, 0, fs_info->vol.bpc, 0);
ffc14850:	a0 df 00 06 	lhz     r6,6(r31)                              
ffc14854:	7f e3 fb 78 	mr      r3,r31                                 
ffc14858:	38 a0 00 00 	li      r5,0                                   
ffc1485c:	38 e0 00 00 	li      r7,0                                   
ffc14860:	4b ff f4 89 	bl      ffc13ce8 <fat_cluster_set>             
        if ( ret != fs_info->vol.bpc )                                
ffc14864:	a1 3f 00 06 	lhz     r9,6(r31)                              
ffc14868:	7f 83 48 00 	cmpw    cr7,r3,r9                              
ffc1486c:	40 9e 00 3c 	bne-    cr7,ffc148a8 <fat_init_clusters_chain+0x78><== NEVER TAKEN
        {                                                             
            return -1;                                                
        }                                                             
                                                                      
        rc  = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);        
ffc14870:	80 81 00 08 	lwz     r4,8(r1)                               
ffc14874:	7f e3 fb 78 	mr      r3,r31                                 
ffc14878:	7f c5 f3 78 	mr      r5,r30                                 
ffc1487c:	48 00 4f 29 	bl      ffc197a4 <fat_get_fat_cluster>         
        if ( rc != RC_OK )                                            
ffc14880:	2c 03 00 00 	cmpwi   r3,0                                   
ffc14884:	40 82 00 28 	bne-    ffc148ac <fat_init_clusters_chain+0x7c><== 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)      
ffc14888:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc1488c:	80 81 00 08 	lwz     r4,8(r1)                               
ffc14890:	7c 8a 48 38 	and     r10,r4,r9                              
ffc14894:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc14898:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc1489c:	41 9c ff b4 	blt+    cr7,ffc14850 <fat_init_clusters_chain+0x20>
            return rc;                                                
        }                                                             
                                                                      
    }                                                                 
                                                                      
    return rc;                                                        
ffc148a0:	38 60 00 00 	li      r3,0                                   
ffc148a4:	48 00 00 08 	b       ffc148ac <fat_init_clusters_chain+0x7c>
    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;                                                
ffc148a8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
        }                                                             
                                                                      
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc148ac:	39 61 00 20 	addi    r11,r1,32                              
ffc148b0:	4b fe cd 48 	b       ffc015f8 <_restgpr_30_x>               
                                                                      

ffc13f40 <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) {
ffc13f40:	94 21 ff 28 	stwu    r1,-216(r1)                            
ffc13f44:	7c 08 02 a6 	mflr    r0                                     
    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;                                 
ffc13f48:	39 20 00 00 	li      r9,0                                   
 *     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)      
{                                                                     
ffc13f4c:	bd c1 00 90 	stmw    r14,144(r1)                            
ffc13f50:	7c 7f 1b 78 	mr      r31,r3                                 
    ssize_t             ret = 0;                                      
    struct stat         stat_buf;                                     
    int                 i = 0;                                        
    rtems_bdbuf_buffer *block = NULL;                                 
                                                                      
    vol->fd = open(device, O_RDWR);                                   
ffc13f54:	7c 83 23 78 	mr      r3,r4                                  
ffc13f58:	38 80 00 02 	li      r4,2                                   
 *     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)      
{                                                                     
ffc13f5c:	90 01 00 dc 	stw     r0,220(r1)                             
    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;                                 
ffc13f60:	91 21 00 5c 	stw     r9,92(r1)                              
                                                                      
    vol->fd = open(device, O_RDWR);                                   
ffc13f64:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc13f68:	4b ff 2b 8d 	bl      ffc06af4 <open>                        
    if (vol->fd < 0)                                                  
ffc13f6c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    ssize_t             ret = 0;                                      
    struct stat         stat_buf;                                     
    int                 i = 0;                                        
    rtems_bdbuf_buffer *block = NULL;                                 
                                                                      
    vol->fd = open(device, O_RDWR);                                   
ffc13f70:	90 7f 00 60 	stw     r3,96(r31)                             
    if (vol->fd < 0)                                                  
ffc13f74:	40 bc 00 08 	bge+    cr7,ffc13f7c <fat_init_volume_info+0x3c><== ALWAYS TAKEN
ffc13f78:	48 00 00 1c 	b       ffc13f94 <fat_init_volume_info+0x54>   <== NOT EXECUTED
    {                                                                 
        rtems_set_errno_and_return_minus_one(ENXIO);                  
    }                                                                 
                                                                      
    rc = fstat(vol->fd, &stat_buf);                                   
ffc13f7c:	38 81 00 08 	addi    r4,r1,8                                
ffc13f80:	4b ff 1e 2d 	bl      ffc05dac <fstat>                       
    if (rc != 0)                                                      
ffc13f84:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13f88:	80 7f 00 60 	lwz     r3,96(r31)                             
ffc13f8c:	41 be 00 14 	beq+    cr7,ffc13fa0 <fat_init_volume_info+0x60><== ALWAYS TAKEN
    {                                                                 
        close(vol->fd);                                               
ffc13f90:	4b ff 1c c5 	bl      ffc05c54 <close>                       <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one(ENXIO);                  
ffc13f94:	48 00 73 e1 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc13f98:	39 20 00 06 	li      r9,6                                   <== NOT EXECUTED
ffc13f9c:	48 00 06 54 	b       ffc145f0 <fat_init_volume_info+0x6b0>  <== NOT EXECUTED
    }                                                                 
                                                                      
    /* Must be a block device. */                                     
    if (!S_ISBLK(stat_buf.st_mode))                                   
ffc13fa0:	81 21 00 14 	lwz     r9,20(r1)                              
ffc13fa4:	55 29 04 26 	rlwinm  r9,r9,0,16,19                          
ffc13fa8:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc13fac:	41 be 00 08 	beq+    cr7,ffc13fb4 <fat_init_volume_info+0x74><== ALWAYS TAKEN
ffc13fb0:	4b ff ff e0 	b       ffc13f90 <fat_init_volume_info+0x50>   <== 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);                   
ffc13fb4:	3c 80 40 04 	lis     r4,16388                               
ffc13fb8:	60 84 42 09 	ori     r4,r4,16905                            
ffc13fbc:	38 bf 00 64 	addi    r5,r31,100                             
ffc13fc0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc13fc4:	48 00 15 61 	bl      ffc15524 <ioctl>                       
        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) {                                                    
ffc13fc8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13fcc:	41 be 00 0c 	beq+    cr7,ffc13fd8 <fat_init_volume_info+0x98><== ALWAYS TAKEN
        close(vol->fd);                                               
ffc13fd0:	80 7f 00 60 	lwz     r3,96(r31)                             <== NOT EXECUTED
ffc13fd4:	4b ff ff bc 	b       ffc13f90 <fat_init_volume_info+0x50>   <== NOT EXECUTED
        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);                       
ffc13fd8:	80 7f 00 64 	lwz     r3,100(r31)                            
ffc13fdc:	38 80 00 00 	li      r4,0                                   
ffc13fe0:	38 a1 00 5c 	addi    r5,r1,92                               
ffc13fe4:	4b ff d8 0d 	bl      ffc117f0 <rtems_bdbuf_read>            
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc13fe8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13fec:	41 be 00 08 	beq+    cr7,ffc13ff4 <fat_init_volume_info+0xb4><== ALWAYS TAKEN
ffc13ff0:	48 00 00 cc 	b       ffc140bc <fat_init_volume_info+0x17c>  <== NOT EXECUTED
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one( EIO);                   
    }                                                                 
                                                                      
    memcpy( boot_rec, block->buffer, FAT_MAX_BPB_SIZE);               
ffc13ff4:	80 61 00 5c 	lwz     r3,92(r1)                              
ffc13ff8:	81 23 00 1c 	lwz     r9,28(r3)                              
ffc13ffc:	89 09 00 0c 	lbz     r8,12(r9)                              
ffc14000:	89 89 00 0b 	lbz     r12,11(r9)                             
ffc14004:	89 69 00 0e 	lbz     r11,14(r9)                             
ffc14008:	88 c9 00 11 	lbz     r6,17(r9)                              
ffc1400c:	88 e9 00 17 	lbz     r7,23(r9)                              
ffc14010:	88 09 00 0f 	lbz     r0,15(r9)                              
ffc14014:	88 a9 00 12 	lbz     r5,18(r9)                              
ffc14018:	89 49 00 25 	lbz     r10,37(r9)                             
ffc1401c:	88 89 00 31 	lbz     r4,49(r9)                              
ffc14020:	91 01 00 6c 	stw     r8,108(r1)                             
ffc14024:	89 09 00 16 	lbz     r8,22(r9)                              
ffc14028:	8b c9 00 0d 	lbz     r30,13(r9)                             
ffc1402c:	8b 89 00 10 	lbz     r28,16(r9)                             
ffc14030:	8a 49 00 13 	lbz     r18,19(r9)                             
ffc14034:	8a 29 00 14 	lbz     r17,20(r9)                             
ffc14038:	8a a9 00 20 	lbz     r21,32(r9)                             
ffc1403c:	8a 69 00 21 	lbz     r19,33(r9)                             
ffc14040:	8a 89 00 22 	lbz     r20,34(r9)                             
ffc14044:	8a c9 00 23 	lbz     r22,35(r9)                             
ffc14048:	89 e9 00 24 	lbz     r15,36(r9)                             
ffc1404c:	89 c9 00 26 	lbz     r14,38(r9)                             
ffc14050:	8a 09 00 27 	lbz     r16,39(r9)                             
ffc14054:	8b a9 00 28 	lbz     r29,40(r9)                             
ffc14058:	8b 29 00 2c 	lbz     r25,44(r9)                             
ffc1405c:	8a e9 00 2d 	lbz     r23,45(r9)                             
ffc14060:	8b 09 00 2e 	lbz     r24,46(r9)                             
ffc14064:	8b 49 00 2f 	lbz     r26,47(r9)                             
ffc14068:	8b 69 00 30 	lbz     r27,48(r9)                             
ffc1406c:	91 41 00 68 	stw     r10,104(r1)                            
                                                                      
    sc = rtems_bdbuf_release( block);                                 
ffc14070:	90 01 00 8c 	stw     r0,140(r1)                             
ffc14074:	90 81 00 70 	stw     r4,112(r1)                             
ffc14078:	90 a1 00 78 	stw     r5,120(r1)                             
ffc1407c:	90 c1 00 74 	stw     r6,116(r1)                             
ffc14080:	90 e1 00 80 	stw     r7,128(r1)                             
ffc14084:	91 01 00 7c 	stw     r8,124(r1)                             
ffc14088:	91 61 00 84 	stw     r11,132(r1)                            
ffc1408c:	91 81 00 88 	stw     r12,136(r1)                            
ffc14090:	4b ff d9 59 	bl      ffc119e8 <rtems_bdbuf_release>         
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc14094:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc14098:	80 01 00 8c 	lwz     r0,140(r1)                             
ffc1409c:	80 81 00 70 	lwz     r4,112(r1)                             
ffc140a0:	80 a1 00 78 	lwz     r5,120(r1)                             
ffc140a4:	80 c1 00 74 	lwz     r6,116(r1)                             
ffc140a8:	80 e1 00 80 	lwz     r7,128(r1)                             
ffc140ac:	81 01 00 7c 	lwz     r8,124(r1)                             
ffc140b0:	81 61 00 84 	lwz     r11,132(r1)                            
ffc140b4:	81 81 00 88 	lwz     r12,136(r1)                            
ffc140b8:	41 be 00 18 	beq+    cr7,ffc140d0 <fat_init_volume_info+0x190><== ALWAYS TAKEN
    {                                                                 
        close(vol->fd);                                               
ffc140bc:	80 7f 00 60 	lwz     r3,96(r31)                             <== NOT EXECUTED
ffc140c0:	4b ff 1b 95 	bl      ffc05c54 <close>                       <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one( EIO );                  
ffc140c4:	48 00 72 b1 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc140c8:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc140cc:	48 00 05 24 	b       ffc145f0 <fat_init_volume_info+0x6b0>  <== NOT EXECUTED
    }                                                                 
                                                                      
    /* Evaluate boot record */                                        
    vol->bps = FAT_GET_BR_BYTES_PER_SECTOR(boot_rec);                 
ffc140d0:	81 41 00 6c 	lwz     r10,108(r1)                            
ffc140d4:	55 49 40 2e 	rlwinm  r9,r10,8,0,23                          
ffc140d8:	7d 2c 63 78 	or      r12,r9,r12                             
                                                                      
    if ( (vol->bps != 512)  &&                                        
ffc140dc:	2f 8c 02 00 	cmpwi   cr7,r12,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);                 
ffc140e0:	b1 9f 00 00 	sth     r12,0(r31)                             
                                                                      
    if ( (vol->bps != 512)  &&                                        
ffc140e4:	41 9e 00 20 	beq-    cr7,ffc14104 <fat_init_volume_info+0x1c4><== ALWAYS TAKEN
ffc140e8:	2f 8c 04 00 	cmpwi   cr7,r12,1024                           <== NOT EXECUTED
ffc140ec:	41 9e 00 18 	beq-    cr7,ffc14104 <fat_init_volume_info+0x1c4><== NOT EXECUTED
         (vol->bps != 1024) &&                                        
ffc140f0:	2f 8c 08 00 	cmpwi   cr7,r12,2048                           <== NOT EXECUTED
ffc140f4:	41 9e 00 10 	beq-    cr7,ffc14104 <fat_init_volume_info+0x1c4><== NOT EXECUTED
         (vol->bps != 2048) &&                                        
ffc140f8:	2f 8c 10 00 	cmpwi   cr7,r12,4096                           <== NOT EXECUTED
ffc140fc:	41 be 00 08 	beq+    cr7,ffc14104 <fat_init_volume_info+0x1c4><== NOT EXECUTED
ffc14100:	48 00 02 e0 	b       ffc143e0 <fat_init_volume_info+0x4a0>  <== 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;
ffc14104:	39 20 00 00 	li      r9,0                                   
ffc14108:	99 3f 00 03 	stb     r9,3(r31)                              
ffc1410c:	55 83 ba 7e 	rlwinm  r3,r12,23,9,31                         
ffc14110:	48 00 00 14 	b       ffc14124 <fat_init_volume_info+0x1e4>  
         i >>= 1, vol->sec_mul++);                                    
ffc14114:	89 3f 00 03 	lbz     r9,3(r31)                              <== NOT EXECUTED
ffc14118:	7c 63 0e 70 	srawi   r3,r3,1                                <== NOT EXECUTED
ffc1411c:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc14120:	99 3f 00 03 	stb     r9,3(r31)                              <== 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;
ffc14124:	70 69 00 01 	andi.   r9,r3,1                                
ffc14128:	41 82 ff ec 	beq+    ffc14114 <fat_init_volume_info+0x1d4>  <== NEVER TAKEN
         i >>= 1, vol->sec_mul++);                                    
    for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0;               
ffc1412c:	39 20 00 00 	li      r9,0                                   
ffc14130:	99 3f 00 02 	stb     r9,2(r31)                              
ffc14134:	7d 89 63 78 	mr      r9,r12                                 
ffc14138:	48 00 00 10 	b       ffc14148 <fat_init_volume_info+0x208>  
         i >>= 1, vol->sec_log2++);                                   
ffc1413c:	38 63 00 01 	addi    r3,r3,1                                
ffc14140:	98 7f 00 02 	stb     r3,2(r31)                              
ffc14144:	7d 29 0e 70 	srawi   r9,r9,1                                
        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;               
ffc14148:	71 2a 00 01 	andi.   r10,r9,1                               
ffc1414c:	88 7f 00 02 	lbz     r3,2(r31)                              
ffc14150:	41 82 ff ec 	beq+    ffc1413c <fat_init_volume_info+0x1fc>  
    vol->spc = FAT_GET_BR_SECTORS_PER_CLUSTER(boot_rec);              
    /*                                                                
     * "sectors per cluster" of zero is invalid                       
     * (and would hang the following loop)                            
     */                                                               
    if (vol->spc == 0)                                                
ffc14154:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    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;                                  
ffc14158:	b1 9f 00 0a 	sth     r12,10(r31)                            
    vol->bytes_per_block_log2 = vol->sec_log2;                        
ffc1415c:	54 6a 06 3e 	clrlwi  r10,r3,24                              
    vol->sectors_per_block = 1;                                       
ffc14160:	39 20 00 01 	li      r9,1                                   
         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;                                  
    vol->bytes_per_block_log2 = vol->sec_log2;                        
ffc14164:	99 5f 00 0c 	stb     r10,12(r31)                            
    vol->sectors_per_block = 1;                                       
ffc14168:	99 3f 00 09 	stb     r9,9(r31)                              
                                                                      
    vol->spc = FAT_GET_BR_SECTORS_PER_CLUSTER(boot_rec);              
ffc1416c:	9b df 00 04 	stb     r30,4(r31)                             
    /*                                                                
     * "sectors per cluster" of zero is invalid                       
     * (and would hang the following loop)                            
     */                                                               
    if (vol->spc == 0)                                                
ffc14170:	40 be 00 08 	bne+    cr7,ffc14178 <fat_init_volume_info+0x238><== ALWAYS TAKEN
ffc14174:	48 00 02 6c 	b       ffc143e0 <fat_init_volume_info+0x4a0>  <== NOT EXECUTED
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    for (vol->spc_log2 = 0, i = vol->spc; (i & 1) == 0;               
ffc14178:	39 20 00 00 	li      r9,0                                   
ffc1417c:	99 3f 00 05 	stb     r9,5(r31)                              
ffc14180:	7f c9 f3 78 	mr      r9,r30                                 
ffc14184:	48 00 00 10 	b       ffc14194 <fat_init_volume_info+0x254>  
         i >>= 1, vol->spc_log2++);                                   
ffc14188:	38 63 00 01 	addi    r3,r3,1                                
ffc1418c:	98 7f 00 05 	stb     r3,5(r31)                              
ffc14190:	7d 29 0e 70 	srawi   r9,r9,1                                
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    for (vol->spc_log2 = 0, i = vol->spc; (i & 1) == 0;               
ffc14194:	71 23 00 01 	andi.   r3,r9,1                                
ffc14198:	88 7f 00 05 	lbz     r3,5(r31)                              
ffc1419c:	41 82 ff ec 	beq+    ffc14188 <fat_init_volume_info+0x248>  
         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)
ffc141a0:	54 63 06 3e 	clrlwi  r3,r3,24                               
ffc141a4:	7d 83 18 30 	slw     r3,r12,r3                              
ffc141a8:	54 69 04 3e 	clrlwi  r9,r3,16                               
ffc141ac:	2b 89 80 00 	cmplwi  cr7,r9,32768                           
ffc141b0:	b1 3f 00 06 	sth     r9,6(r31)                              
ffc141b4:	40 bd 00 08 	ble+    cr7,ffc141bc <fat_init_volume_info+0x27c><== ALWAYS TAKEN
ffc141b8:	48 00 02 28 	b       ffc143e0 <fat_init_volume_info+0x4a0>  <== NOT EXECUTED
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;               
ffc141bc:	39 20 00 00 	li      r9,0                                   
ffc141c0:	99 3f 00 08 	stb     r9,8(r31)                              
ffc141c4:	54 63 04 3e 	clrlwi  r3,r3,16                               
ffc141c8:	48 00 00 14 	b       ffc141dc <fat_init_volume_info+0x29c>  
         i >>= 1, vol->bpc_log2++);                                   
ffc141cc:	89 3f 00 08 	lbz     r9,8(r31)                              
ffc141d0:	7c 63 0e 70 	srawi   r3,r3,1                                
ffc141d4:	39 29 00 01 	addi    r9,r9,1                                
ffc141d8:	99 3f 00 08 	stb     r9,8(r31)                              
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;               
ffc141dc:	70 69 00 01 	andi.   r9,r3,1                                
ffc141e0:	41 82 ff ec 	beq+    ffc141cc <fat_init_volume_info+0x28c>  
         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);         
                                                                      
    vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);        
ffc141e4:	54 a5 40 2e 	rlwinm  r5,r5,8,0,23                           
    }                                                                 
                                                                      
    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);                         
ffc141e8:	9b 9f 00 0d 	stb     r28,13(r31)                            
    vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);         
                                                                      
    vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);        
ffc141ec:	7c a6 33 78 	or      r6,r5,r6                               
                                                                      
    /* calculate the count of sectors occupied by the root directory */
    vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
ffc141f0:	39 2c ff ff 	addi    r9,r12,-1                              
         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);         
                                                                      
    vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);        
ffc141f4:	b0 df 00 24 	sth     r6,36(r31)                             
                                                                      
    /* calculate the count of sectors occupied by the root directory */
    vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
ffc141f8:	54 c6 28 34 	rlwinm  r6,r6,5,0,26                           
ffc141fc:	7c c6 4a 14 	add     r6,r6,r9                               
ffc14200:	7d 86 63 d6 	divw    r12,r6,r12                             
                     vol->bps;                                        
                                                                      
    vol->rdir_size = vol->rdir_secs << vol->sec_log2;                 
                                                                      
    if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)                 
ffc14204:	54 e7 40 2e 	rlwinm  r7,r7,8,0,23                           
    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)) /
ffc14208:	91 9f 00 28 	stw     r12,40(r31)                            
                     vol->bps;                                        
                                                                      
    vol->rdir_size = vol->rdir_secs << vol->sec_log2;                 
ffc1420c:	7d 89 50 30 	slw     r9,r12,r10                             
                                                                      
    if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)                 
ffc14210:	7c e8 43 78 	or      r8,r7,r8                               
                                                                      
    /* calculate the count of sectors occupied by the root directory */
    vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
                     vol->bps;                                        
                                                                      
    vol->rdir_size = vol->rdir_secs << vol->sec_log2;                 
ffc14214:	91 3f 00 2c 	stw     r9,44(r31)                             
                                                                      
    if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)                 
ffc14218:	7d 09 07 35 	extsh.  r9,r8                                  
                                                                      
    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);         
ffc1421c:	54 00 40 2e 	rlwinm  r0,r0,8,0,23                           
ffc14220:	7c 0b 5b 78 	or      r11,r0,r11                             
ffc14224:	b1 7f 00 18 	sth     r11,24(r31)                            
    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)                 
ffc14228:	41 82 00 10 	beq-    ffc14238 <fat_init_volume_info+0x2f8>  
        vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);       
ffc1422c:	55 28 04 3e 	clrlwi  r8,r9,16                               
ffc14230:	91 1f 00 1c 	stw     r8,28(r31)                             
ffc14234:	48 00 00 24 	b       ffc14258 <fat_init_volume_info+0x318>  
    else                                                              
        vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);     
ffc14238:	81 01 00 68 	lwz     r8,104(r1)                             
ffc1423c:	55 ce 80 1e 	rlwinm  r14,r14,16,0,15                        
ffc14240:	56 10 c0 0e 	rlwinm  r16,r16,24,0,7                         
ffc14244:	55 0a 40 2e 	rlwinm  r10,r8,8,0,23                          
ffc14248:	7d 4a 73 78 	or      r10,r10,r14                            
ffc1424c:	7d 4f 7b 78 	or      r15,r10,r15                            
ffc14250:	7d f0 83 78 	or      r16,r15,r16                            
ffc14254:	92 1f 00 1c 	stw     r16,28(r31)                            
                                                                      
    vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length +     
ffc14258:	81 3f 00 1c 	lwz     r9,28(r31)                             
                     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)             
ffc1425c:	56 31 40 2e 	rlwinm  r17,r17,8,0,23                         
ffc14260:	7e 32 93 78 	or      r18,r17,r18                            
    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 +     
ffc14264:	7f 9c 49 d6 	mullw   r28,r28,r9                             
                     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)             
ffc14268:	7e 49 07 35 	extsh.  r9,r18                                 
    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 +     
ffc1426c:	7f 8b e2 14 	add     r28,r11,r28                            
ffc14270:	7d 8c e2 14 	add     r12,r12,r28                            
                     vol->rdir_secs;                                  
                                                                      
    /* for  FAT12/16 root dir starts at(sector) */                    
    vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;       
ffc14274:	93 9f 00 20 	stw     r28,32(r31)                            
    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 +     
ffc14278:	91 9f 00 34 	stw     r12,52(r31)                            
                     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)             
ffc1427c:	41 82 00 10 	beq-    ffc1428c <fat_init_volume_info+0x34c>  
        vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);     
ffc14280:	55 32 04 3e 	clrlwi  r18,r9,16                              
ffc14284:	92 5f 00 30 	stw     r18,48(r31)                            
ffc14288:	48 00 00 20 	b       ffc142a8 <fat_init_volume_info+0x368>  
    else                                                              
        vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec);     
ffc1428c:	56 73 40 2e 	rlwinm  r19,r19,8,0,23                         
ffc14290:	56 94 80 1e 	rlwinm  r20,r20,16,0,15                        
ffc14294:	7e 74 a3 78 	or      r20,r19,r20                            
ffc14298:	7e 95 ab 78 	or      r21,r20,r21                            
ffc1429c:	56 d6 c0 0e 	rlwinm  r22,r22,24,0,7                         
ffc142a0:	7e b6 b3 78 	or      r22,r21,r22                            
ffc142a4:	92 df 00 30 	stw     r22,48(r31)                            
                                                                      
    data_secs = vol->tot_secs - vol->data_fsec;                       
ffc142a8:	81 3f 00 30 	lwz     r9,48(r31)                             
ffc142ac:	7d 8c 48 50 	subf    r12,r12,r9                             
                                                                      
    vol->data_cls = data_secs / vol->spc;                             
ffc142b0:	7f cc f3 96 	divwu   r30,r12,r30                            
                                                                      
    /* determine FAT type at least */                                 
    if ( vol->data_cls < FAT_FAT12_MAX_CLN)                           
ffc142b4:	2b 9e 0f f4 	cmplwi  cr7,r30,4084                           
    else                                                              
        vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec);     
                                                                      
    data_secs = vol->tot_secs - vol->data_fsec;                       
                                                                      
    vol->data_cls = data_secs / vol->spc;                             
ffc142b8:	93 df 00 38 	stw     r30,56(r31)                            
                                                                      
    /* determine FAT type at least */                                 
    if ( vol->data_cls < FAT_FAT12_MAX_CLN)                           
ffc142bc:	41 9d 00 1c 	bgt-    cr7,ffc142d8 <fat_init_volume_info+0x398>
    {                                                                 
        vol->type = FAT_FAT12;                                        
ffc142c0:	39 20 00 01 	li      r9,1                                   
ffc142c4:	99 3f 00 0e 	stb     r9,14(r31)                             
        vol->mask = FAT_FAT12_MASK;                                   
ffc142c8:	39 20 0f ff 	li      r9,4095                                
ffc142cc:	91 3f 00 10 	stw     r9,16(r31)                             
        vol->eoc_val = FAT_FAT12_EOC;                                 
ffc142d0:	39 20 0f f8 	li      r9,4088                                
ffc142d4:	48 00 00 44 	b       ffc14318 <fat_init_volume_info+0x3d8>  
    }                                                                 
    else                                                              
    {                                                                 
        if ( vol->data_cls < FAT_FAT16_MAX_CLN)                       
ffc142d8:	2b 9e ff f4 	cmplwi  cr7,r30,65524                          
ffc142dc:	41 9d 00 20 	bgt-    cr7,ffc142fc <fat_init_volume_info+0x3bc>
        {                                                             
            vol->type = FAT_FAT16;                                    
ffc142e0:	39 20 00 02 	li      r9,2                                   
ffc142e4:	99 3f 00 0e 	stb     r9,14(r31)                             
            vol->mask = FAT_FAT16_MASK;                               
ffc142e8:	39 20 00 00 	li      r9,0                                   
ffc142ec:	61 29 ff ff 	ori     r9,r9,65535                            
ffc142f0:	91 3f 00 10 	stw     r9,16(r31)                             
            vol->eoc_val = FAT_FAT16_EOC;                             
ffc142f4:	39 20 00 00 	li      r9,0                                   
ffc142f8:	48 00 00 1c 	b       ffc14314 <fat_init_volume_info+0x3d4>  
        }                                                             
        else                                                          
        {                                                             
            vol->type = FAT_FAT32;                                    
ffc142fc:	39 20 00 04 	li      r9,4                                   
ffc14300:	99 3f 00 0e 	stb     r9,14(r31)                             
            vol->mask = FAT_FAT32_MASK;                               
ffc14304:	3d 20 0f ff 	lis     r9,4095                                
ffc14308:	61 29 ff ff 	ori     r9,r9,65535                            
ffc1430c:	91 3f 00 10 	stw     r9,16(r31)                             
            vol->eoc_val = FAT_FAT32_EOC;                             
ffc14310:	3d 20 0f ff 	lis     r9,4095                                
ffc14314:	61 29 ff f8 	ori     r9,r9,65528                            
ffc14318:	91 3f 00 14 	stw     r9,20(r31)                             
        }                                                             
    }                                                                 
                                                                      
    if (vol->type == FAT_FAT32)                                       
ffc1431c:	89 3f 00 0e 	lbz     r9,14(r31)                             
ffc14320:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc14324:	40 be 01 60 	bne+    cr7,ffc14484 <fat_init_volume_info+0x544>
    {                                                                 
        vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec);       
                                                                      
        vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
ffc14328:	57 a9 00 30 	rlwinm  r9,r29,0,0,24                          
ffc1432c:	55 29 06 3e 	clrlwi  r9,r9,24                               
        if (vol->mirror)                                              
ffc14330:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
    if (vol->type == FAT_FAT32)                                       
    {                                                                 
        vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec);       
                                                                      
        vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
ffc14334:	99 3f 00 54 	stb     r9,84(r31)                             
        }                                                             
    }                                                                 
                                                                      
    if (vol->type == FAT_FAT32)                                       
    {                                                                 
        vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec);       
ffc14338:	56 f7 40 2e 	rlwinm  r23,r23,8,0,23                         
ffc1433c:	57 18 80 1e 	rlwinm  r24,r24,16,0,15                        
ffc14340:	7e f8 c3 78 	or      r24,r23,r24                            
ffc14344:	7f 19 cb 78 	or      r25,r24,r25                            
ffc14348:	57 5a c0 0e 	rlwinm  r26,r26,24,0,7                         
ffc1434c:	7f 3a d3 78 	or      r26,r25,r26                            
ffc14350:	93 5f 00 3c 	stw     r26,60(r31)                            
                                                                      
        vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
        if (vol->mirror)                                              
ffc14354:	41 9e 00 10 	beq-    cr7,ffc14364 <fat_init_volume_info+0x424><== ALWAYS TAKEN
            vol->afat = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_FAT_NUM;
ffc14358:	57 bd 07 3e 	clrlwi  r29,r29,28                             <== NOT EXECUTED
ffc1435c:	9b bf 00 5c 	stb     r29,92(r31)                            <== NOT EXECUTED
ffc14360:	48 00 00 08 	b       ffc14368 <fat_init_volume_info+0x428>  <== NOT EXECUTED
        else                                                          
            vol->afat = 0;                                            
ffc14364:	99 3f 00 5c 	stb     r9,92(r31)                             
                                                                      
        vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec);    
ffc14368:	54 84 40 2e 	rlwinm  r4,r4,8,0,23                           
ffc1436c:	7c 84 db 78 	or      r4,r4,r27                              
        if( vol->info_sec == 0 )                                      
ffc14370:	2f 84 00 00 	cmpwi   cr7,r4,0                               
        if (vol->mirror)                                              
            vol->afat = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_FAT_NUM;
        else                                                          
            vol->afat = 0;                                            
                                                                      
        vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec);    
ffc14374:	b0 9f 00 40 	sth     r4,64(r31)                             
        if( vol->info_sec == 0 )                                      
ffc14378:	40 be 00 08 	bne+    cr7,ffc14380 <fat_init_volume_info+0x440><== ALWAYS TAKEN
ffc1437c:	48 00 00 64 	b       ffc143e0 <fat_init_volume_info+0x4a0>  <== NOT EXECUTED
            close(vol->fd);                                           
            rtems_set_errno_and_return_minus_one( EINVAL );           
        }                                                             
        else                                                          
        {                                                             
            ret = _fat_block_read(fs_info, vol->info_sec , 0,         
ffc14380:	7f e3 fb 78 	mr      r3,r31                                 
ffc14384:	38 a0 00 00 	li      r5,0                                   
ffc14388:	38 c0 00 04 	li      r6,4                                   
ffc1438c:	38 e1 00 50 	addi    r7,r1,80                               
ffc14390:	4b ff f8 09 	bl      ffc13b98 <_fat_block_read>             
                                  FAT_FSI_LEADSIG_SIZE, fs_info_sector);
            if ( ret < 0 )                                            
ffc14394:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc14398:	40 bc 00 08 	bge+    cr7,ffc143a0 <fat_init_volume_info+0x460><== ALWAYS TAKEN
ffc1439c:	48 00 00 7c 	b       ffc14418 <fat_init_volume_info+0x4d8>  <== NOT EXECUTED
            {                                                         
                close(vol->fd);                                       
                return -1;                                            
            }                                                         
                                                                      
            if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) !=      
ffc143a0:	89 41 00 51 	lbz     r10,81(r1)                             
 *     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);                                  
ffc143a4:	7f e3 fb 78 	mr      r3,r31                                 
            {                                                         
                close(vol->fd);                                       
                return -1;                                            
            }                                                         
                                                                      
            if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) !=      
ffc143a8:	89 21 00 52 	lbz     r9,82(r1)                              
ffc143ac:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc143b0:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc143b4:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc143b8:	89 21 00 50 	lbz     r9,80(r1)                              
ffc143bc:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc143c0:	89 21 00 53 	lbz     r9,83(r1)                              
ffc143c4:	55 29 c0 0e 	rlwinm  r9,r9,24,0,7                           
ffc143c8:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc143cc:	3d 20 41 61 	lis     r9,16737                               
ffc143d0:	61 29 52 52 	ori     r9,r9,21074                            
ffc143d4:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc143d8:	41 be 00 1c 	beq+    cr7,ffc143f4 <fat_init_volume_info+0x4b4><== 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);                                  
ffc143dc:	4b ff f5 35 	bl      ffc13910 <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);                                       
ffc143e0:	80 7f 00 60 	lwz     r3,96(r31)                             <== NOT EXECUTED
ffc143e4:	4b ff 18 71 	bl      ffc05c54 <close>                       <== NOT EXECUTED
                rtems_set_errno_and_return_minus_one( EINVAL );       
ffc143e8:	48 00 6f 8d 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc143ec:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc143f0:	48 00 02 00 	b       ffc145f0 <fat_init_volume_info+0x6b0>  <== NOT EXECUTED
            }                                                         
            else                                                      
            {                                                         
                ret = _fat_block_read(fs_info, vol->info_sec , FAT_FSI_INFO,
ffc143f4:	a0 9f 00 40 	lhz     r4,64(r31)                             
ffc143f8:	38 a0 01 e4 	li      r5,484                                 
ffc143fc:	38 c0 00 0c 	li      r6,12                                  
ffc14400:	38 e1 00 50 	addi    r7,r1,80                               
ffc14404:	4b ff f7 95 	bl      ffc13b98 <_fat_block_read>             
                                      FAT_USEFUL_INFO_SIZE, fs_info_sector);
                if ( ret < 0 )                                        
ffc14408:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1440c:	40 bc 00 18 	bge+    cr7,ffc14424 <fat_init_volume_info+0x4e4><== 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);                                  
ffc14410:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc14414:	4b ff f4 fd 	bl      ffc13910 <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);                                   
ffc14418:	80 7f 00 60 	lwz     r3,96(r31)                             <== NOT EXECUTED
ffc1441c:	4b ff 18 39 	bl      ffc05c54 <close>                       <== NOT EXECUTED
ffc14420:	48 00 01 d4 	b       ffc145f4 <fat_init_volume_info+0x6b4>  <== NOT EXECUTED
                    return -1;                                        
                }                                                     
                                                                      
                vol->free_cls_in_fs_info =                            
                  FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);  
ffc14424:	89 41 00 55 	lbz     r10,85(r1)                             
ffc14428:	89 21 00 56 	lbz     r9,86(r1)                              
ffc1442c:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc14430:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc14434:	7d 49 4b 78 	or      r9,r10,r9                              
ffc14438:	89 41 00 54 	lbz     r10,84(r1)                             
ffc1443c:	7d 29 53 78 	or      r9,r9,r10                              
ffc14440:	89 41 00 57 	lbz     r10,87(r1)                             
ffc14444:	55 4a c0 0e 	rlwinm  r10,r10,24,0,7                         
ffc14448:	7d 29 53 78 	or      r9,r9,r10                              
                vol->free_cls = vol->free_cls_in_fs_info;             
                vol->next_cl_in_fs_info =                             
                  FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);   
ffc1444c:	89 41 00 59 	lbz     r10,89(r1)                             
                    _fat_block_release(fs_info);                      
                    close(vol->fd);                                   
                    return -1;                                        
                }                                                     
                                                                      
                vol->free_cls_in_fs_info =                            
ffc14450:	91 3f 00 48 	stw     r9,72(r31)                             
                  FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);  
                vol->free_cls = vol->free_cls_in_fs_info;             
                vol->next_cl_in_fs_info =                             
                  FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);   
ffc14454:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
                    return -1;                                        
                }                                                     
                                                                      
                vol->free_cls_in_fs_info =                            
                  FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);  
                vol->free_cls = vol->free_cls_in_fs_info;             
ffc14458:	91 3f 00 44 	stw     r9,68(r31)                             
                vol->next_cl_in_fs_info =                             
                  FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);   
ffc1445c:	89 21 00 5a 	lbz     r9,90(r1)                              
ffc14460:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc14464:	7d 49 4b 78 	or      r9,r10,r9                              
ffc14468:	89 41 00 58 	lbz     r10,88(r1)                             
ffc1446c:	7d 29 53 78 	or      r9,r9,r10                              
ffc14470:	89 41 00 5b 	lbz     r10,91(r1)                             
ffc14474:	55 4a c0 0e 	rlwinm  r10,r10,24,0,7                         
ffc14478:	7d 29 53 78 	or      r9,r9,r10                              
                }                                                     
                                                                      
                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 =                             
ffc1447c:	91 3f 00 50 	stw     r9,80(r31)                             
ffc14480:	48 00 00 1c 	b       ffc1449c <fat_init_volume_info+0x55c>  
            }                                                         
        }                                                             
    }                                                                 
    else                                                              
    {                                                                 
        vol->rdir_cl = 0;                                             
ffc14484:	39 20 00 00 	li      r9,0                                   
ffc14488:	91 3f 00 3c 	stw     r9,60(r31)                             
        vol->mirror = 0;                                              
ffc1448c:	99 3f 00 54 	stb     r9,84(r31)                             
        vol->afat = 0;                                                
ffc14490:	99 3f 00 5c 	stb     r9,92(r31)                             
        vol->free_cls = FAT_UNDEFINED_VALUE;                          
ffc14494:	39 20 ff ff 	li      r9,-1                                  
ffc14498:	91 3f 00 44 	stw     r9,68(r31)                             
        vol->next_cl = FAT_UNDEFINED_VALUE;                           
ffc1449c:	91 3f 00 4c 	stw     r9,76(r31)                             
 *     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);                                  
ffc144a0:	7f e3 fb 78 	mr      r3,r31                                 
ffc144a4:	4b ff f4 6d 	bl      ffc13910 <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;       
ffc144a8:	89 5f 00 5c 	lbz     r10,92(r31)                            
ffc144ac:	81 3f 00 1c 	lwz     r9,28(r31)                             
                                                                      
    /* set up collection of fat-files fd */                           
    fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
ffc144b0:	38 60 00 02 	li      r3,2                                   
ffc144b4:	38 80 00 0c 	li      r4,12                                  
        vol->next_cl = FAT_UNDEFINED_VALUE;                           
    }                                                                 
                                                                      
    _fat_block_release(fs_info);                                      
                                                                      
    vol->afat_loc = vol->fat_loc + vol->fat_length * vol->afat;       
ffc144b8:	7d 2a 49 d6 	mullw   r9,r10,r9                              
ffc144bc:	a1 5f 00 18 	lhz     r10,24(r31)                            
ffc144c0:	7d 29 52 14 	add     r9,r9,r10                              
ffc144c4:	91 3f 00 58 	stw     r9,88(r31)                             
                                                                      
    /* set up collection of fat-files fd */                           
    fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
ffc144c8:	4b ff 17 31 	bl      ffc05bf8 <calloc>                      
    if ( fs_info->vhash == NULL )                                     
ffc144cc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    _fat_block_release(fs_info);                                      
                                                                      
    vol->afat_loc = vol->fat_loc + vol->fat_length * vol->afat;       
                                                                      
    /* set up collection of fat-files fd */                           
    fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
ffc144d0:	90 7f 00 6c 	stw     r3,108(r31)                            
    if ( fs_info->vhash == NULL )                                     
ffc144d4:	41 9e 00 48 	beq-    cr7,ffc1451c <fat_init_volume_info+0x5dc><== 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 );                        
ffc144d8:	39 23 00 04 	addi    r9,r3,4                                
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc144dc:	90 63 00 08 	stw     r3,8(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 );                        
ffc144e0:	39 43 00 10 	addi    r10,r3,16                              
                                                                      
  head->next = tail;                                                  
ffc144e4:	91 23 00 00 	stw     r9,0(r3)                               
  head->previous = NULL;                                              
ffc144e8:	3b c0 00 00 	li      r30,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 );                        
ffc144ec:	39 23 00 0c 	addi    r9,r3,12                               
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc144f0:	93 c3 00 04 	stw     r30,4(r3)                              
    }                                                                 
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
        rtems_chain_initialize_empty(fs_info->vhash + i);             
                                                                      
    fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
ffc144f4:	38 80 00 0c 	li      r4,12                                  
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc144f8:	91 43 00 0c 	stw     r10,12(r3)                             
  head->previous = NULL;                                              
ffc144fc:	93 c3 00 10 	stw     r30,16(r3)                             
  tail->previous = head;                                              
ffc14500:	91 23 00 14 	stw     r9,20(r3)                              
ffc14504:	38 60 00 02 	li      r3,2                                   
ffc14508:	4b ff 16 f1 	bl      ffc05bf8 <calloc>                      
    if ( fs_info->rhash == NULL )                                     
ffc1450c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    }                                                                 
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
        rtems_chain_initialize_empty(fs_info->vhash + i);             
                                                                      
    fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
ffc14510:	90 7f 00 70 	stw     r3,112(r31)                            
    if ( fs_info->rhash == NULL )                                     
ffc14514:	40 be 00 14 	bne+    cr7,ffc14528 <fat_init_volume_info+0x5e8><== ALWAYS TAKEN
ffc14518:	48 00 00 70 	b       ffc14588 <fat_init_volume_info+0x648>  <== 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);                                               
ffc1451c:	80 7f 00 60 	lwz     r3,96(r31)                             <== NOT EXECUTED
ffc14520:	4b ff 17 35 	bl      ffc05c54 <close>                       <== NOT EXECUTED
ffc14524:	48 00 00 c4 	b       ffc145e8 <fat_init_volume_info+0x6a8>  <== 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 );                        
ffc14528:	39 23 00 04 	addi    r9,r3,4                                
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc1452c:	93 c3 00 04 	stw     r30,4(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 );                        
ffc14530:	39 43 00 10 	addi    r10,r3,16                              
                                                                      
  head->next = tail;                                                  
ffc14534:	91 23 00 00 	stw     r9,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 );                        
ffc14538:	39 23 00 0c 	addi    r9,r3,12                               
        rtems_chain_initialize_empty(fs_info->rhash + i);             
                                                                      
    fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE;                
    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));
ffc1453c:	38 80 00 01 	li      r4,1                                   
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc14540:	91 23 00 14 	stw     r9,20(r3)                              
        rtems_set_errno_and_return_minus_one( ENOMEM );               
    }                                                                 
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
        rtems_chain_initialize_empty(fs_info->rhash + i);             
                                                                      
    fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE;                
ffc14544:	39 20 01 00 	li      r9,256                                 
ffc14548:	90 63 00 08 	stw     r3,8(r3)                               
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc1454c:	91 43 00 0c 	stw     r10,12(r3)                             
  head->previous = NULL;                                              
ffc14550:	93 c3 00 10 	stw     r30,16(r3)                             
    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));
ffc14554:	38 60 01 00 	li      r3,256                                 
        rtems_set_errno_and_return_minus_one( ENOMEM );               
    }                                                                 
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
        rtems_chain_initialize_empty(fs_info->rhash + i);             
                                                                      
    fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE;                
ffc14558:	91 3f 00 7c 	stw     r9,124(r31)                            
    fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4;        
ffc1455c:	89 5f 00 03 	lbz     r10,3(r31)                             
ffc14560:	81 3f 00 30 	lwz     r9,48(r31)                             
    fs_info->index = 0;                                               
ffc14564:	93 df 00 78 	stw     r30,120(r31)                           
    }                                                                 
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
        rtems_chain_initialize_empty(fs_info->rhash + i);             
                                                                      
    fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE;                
    fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4;        
ffc14568:	7d 29 50 30 	slw     r9,r9,r10                              
ffc1456c:	55 29 20 36 	rlwinm  r9,r9,4,0,27                           
ffc14570:	91 3f 00 80 	stw     r9,128(r31)                            
    fs_info->index = 0;                                               
    fs_info->uino = (char *)calloc(fs_info->uino_pool_size, sizeof(char));
ffc14574:	4b ff 16 85 	bl      ffc05bf8 <calloc>                      
    if ( fs_info->uino == NULL )                                      
ffc14578:	2f 83 00 00 	cmpwi   cr7,r3,0                               
        rtems_chain_initialize_empty(fs_info->rhash + i);             
                                                                      
    fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE;                
    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));
ffc1457c:	90 7f 00 74 	stw     r3,116(r31)                            
    if ( fs_info->uino == NULL )                                      
ffc14580:	40 be 00 30 	bne+    cr7,ffc145b0 <fat_init_volume_info+0x670><== ALWAYS TAKEN
ffc14584:	48 00 00 14 	b       ffc14598 <fat_init_volume_info+0x658>  <== 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);                                               
ffc14588:	80 7f 00 60 	lwz     r3,96(r31)                             <== NOT EXECUTED
ffc1458c:	4b ff 16 c9 	bl      ffc05c54 <close>                       <== NOT EXECUTED
        free(fs_info->vhash);                                         
ffc14590:	80 7f 00 6c 	lwz     r3,108(r31)                            <== NOT EXECUTED
ffc14594:	48 00 00 50 	b       ffc145e4 <fat_init_volume_info+0x6a4>  <== 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);                                               
ffc14598:	80 7f 00 60 	lwz     r3,96(r31)                             <== NOT EXECUTED
ffc1459c:	4b ff 16 b9 	bl      ffc05c54 <close>                       <== NOT EXECUTED
        free(fs_info->vhash);                                         
ffc145a0:	80 7f 00 6c 	lwz     r3,108(r31)                            <== NOT EXECUTED
ffc145a4:	4b ff 17 39 	bl      ffc05cdc <free>                        <== NOT EXECUTED
        free(fs_info->rhash);                                         
ffc145a8:	80 7f 00 70 	lwz     r3,112(r31)                            <== NOT EXECUTED
ffc145ac:	48 00 00 38 	b       ffc145e4 <fat_init_volume_info+0x6a4>  <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one( ENOMEM );               
    }                                                                 
    fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t));  
ffc145b0:	a0 7f 00 00 	lhz     r3,0(r31)                              
ffc145b4:	38 80 00 01 	li      r4,1                                   
ffc145b8:	4b ff 16 41 	bl      ffc05bf8 <calloc>                      
    if (fs_info->sec_buf == NULL)                                     
ffc145bc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
        close(vol->fd);                                               
        free(fs_info->vhash);                                         
        free(fs_info->rhash);                                         
        rtems_set_errno_and_return_minus_one( ENOMEM );               
    }                                                                 
    fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t));  
ffc145c0:	90 7f 00 90 	stw     r3,144(r31)                            
    if (fs_info->sec_buf == NULL)                                     
ffc145c4:	40 be 00 38 	bne+    cr7,ffc145fc <fat_init_volume_info+0x6bc><== ALWAYS TAKEN
    {                                                                 
        close(vol->fd);                                               
ffc145c8:	80 7f 00 60 	lwz     r3,96(r31)                             <== NOT EXECUTED
ffc145cc:	4b ff 16 89 	bl      ffc05c54 <close>                       <== NOT EXECUTED
        free(fs_info->vhash);                                         
ffc145d0:	80 7f 00 6c 	lwz     r3,108(r31)                            <== NOT EXECUTED
ffc145d4:	4b ff 17 09 	bl      ffc05cdc <free>                        <== NOT EXECUTED
        free(fs_info->rhash);                                         
ffc145d8:	80 7f 00 70 	lwz     r3,112(r31)                            <== NOT EXECUTED
ffc145dc:	4b ff 17 01 	bl      ffc05cdc <free>                        <== NOT EXECUTED
        free(fs_info->uino);                                          
ffc145e0:	80 7f 00 74 	lwz     r3,116(r31)                            <== NOT EXECUTED
ffc145e4:	4b ff 16 f9 	bl      ffc05cdc <free>                        <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one( ENOMEM );               
ffc145e8:	48 00 6d 8d 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc145ec:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc145f0:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc145f4:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc145f8:	48 00 00 68 	b       ffc14660 <fat_init_volume_info+0x720>  <== 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;                           
ffc145fc:	89 3f 00 04 	lbz     r9,4(r31)                              
ffc14600:	81 5f 00 34 	lwz     r10,52(r31)                            
ffc14604:	39 29 ff ff 	addi    r9,r9,-1                               
    /*                                                                
     * 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)                       
ffc14608:	7d 23 50 39 	and.    r3,r9,r10                              
ffc1460c:	41 a2 00 0c 	beq+    ffc14618 <fat_init_volume_info+0x6d8>  <== ALWAYS TAKEN
            vol->bytes_per_block_log2 = vol->bpc_log2;                
            vol->sectors_per_block = vol->spc;                        
        }                                                             
    }                                                                 
                                                                      
    return RC_OK;                                                     
ffc14610:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc14614:	48 00 00 4c 	b       ffc14660 <fat_init_volume_info+0x720>  <== NOT EXECUTED
     * 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)))
ffc14618:	89 5f 00 0e 	lbz     r10,14(r31)                            
ffc1461c:	2f 8a 00 04 	cmpwi   cr7,r10,4                              
ffc14620:	41 9e 00 10 	beq-    cr7,ffc14630 <fat_init_volume_info+0x6f0>
      return bytes_written;                                           
}                                                                     
                                                                      
static bool is_cluster_aligned(const fat_vol_t *vol, uint32_t sec_num)
{                                                                     
    return (sec_num & (vol->spc - 1)) == 0;                           
ffc14624:	81 5f 00 20 	lwz     r10,32(r31)                            
     * 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)))
ffc14628:	7d 28 50 39 	and.    r8,r9,r10                              
ffc1462c:	40 a2 ff e4 	bne-    ffc14610 <fat_init_volume_info+0x6d0>  <== NEVER TAKEN
    {                                                                 
        sc = rtems_bdbuf_set_block_size (vol->dd, vol->bpc, true);    
ffc14630:	80 7f 00 64 	lwz     r3,100(r31)                            
ffc14634:	38 a0 00 01 	li      r5,1                                   
ffc14638:	a0 9f 00 06 	lhz     r4,6(r31)                              
ffc1463c:	4b ff d8 49 	bl      ffc11e84 <rtems_bdbuf_set_block_size>  
        if (sc == RTEMS_SUCCESSFUL)                                   
ffc14640:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc14644:	40 be ff cc 	bne-    cr7,ffc14610 <fat_init_volume_info+0x6d0><== NEVER TAKEN
        {                                                             
            vol->bytes_per_block = vol->bpc;                          
ffc14648:	a1 3f 00 06 	lhz     r9,6(r31)                              
ffc1464c:	b1 3f 00 0a 	sth     r9,10(r31)                             
            vol->bytes_per_block_log2 = vol->bpc_log2;                
ffc14650:	89 3f 00 08 	lbz     r9,8(r31)                              
ffc14654:	99 3f 00 0c 	stb     r9,12(r31)                             
            vol->sectors_per_block = vol->spc;                        
ffc14658:	89 3f 00 04 	lbz     r9,4(r31)                              
ffc1465c:	99 3f 00 09 	stb     r9,9(r31)                              
        }                                                             
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc14660:	39 61 00 d8 	addi    r11,r1,216                             
ffc14664:	4b fe cf 54 	b       ffc015b8 <_restgpr_14_x>               
                                                                      

ffc19cd4 <fat_scan_fat_for_free_clusters>: uint32_t count, uint32_t *cls_added, uint32_t *last_cl, bool zero_fill ) {
ffc19cd4:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc19cd8:	7d 80 00 26 	mfcr    r12                                    
ffc19cdc:	7c 08 02 a6 	mflr    r0                                     
    int            rc = RC_OK;                                        
    uint32_t       cl4find = 2;                                       
    uint32_t       next_cln = 0;                                      
ffc19ce0:	39 20 00 00 	li      r9,0                                   
    uint32_t                              count,                      
    uint32_t                             *cls_added,                  
    uint32_t                             *last_cl,                    
    bool                                  zero_fill                   
    )                                                                 
{                                                                     
ffc19ce4:	be a1 00 1c 	stmw    r21,28(r1)                             
    uint32_t       i = 2;                                             
    ssize_t        bytes_written;                                     
                                                                      
    *cls_added = 0;                                                   
                                                                      
    if (count == 0)                                                   
ffc19ce8:	7c b6 2b 79 	mr.     r22,r5                                 
    uint32_t                              count,                      
    uint32_t                             *cls_added,                  
    uint32_t                             *last_cl,                    
    bool                                  zero_fill                   
    )                                                                 
{                                                                     
ffc19cec:	7c 7f 1b 78 	mr      r31,r3                                 
ffc19cf0:	90 01 00 4c 	stw     r0,76(r1)                              
ffc19cf4:	7c dd 33 78 	mr      r29,r6                                 
ffc19cf8:	91 81 00 18 	stw     r12,24(r1)                             
    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;          
ffc19cfc:	82 e3 00 38 	lwz     r23,56(r3)                             
    bool                                  zero_fill                   
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cl4find = 2;                                       
    uint32_t       next_cln = 0;                                      
ffc19d00:	91 21 00 08 	stw     r9,8(r1)                               
    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;                                                   
ffc19d04:	91 26 00 00 	stw     r9,0(r6)                               
                                                                      
    if (count == 0)                                                   
ffc19d08:	41 82 01 cc 	beq-    ffc19ed4 <fat_scan_fat_for_free_clusters+0x200><== NEVER TAKEN
        return rc;                                                    
                                                                      
    if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)                  
ffc19d0c:	83 c3 00 4c 	lwz     r30,76(r3)                             
ffc19d10:	7c 9b 23 78 	mr      r27,r4                                 
ffc19d14:	7c f8 3b 78 	mr      r24,r7                                 
ffc19d18:	2f 9e ff ff 	cmpwi   cr7,r30,-1                             
ffc19d1c:	40 be 00 08 	bne+    cr7,ffc19d24 <fat_scan_fat_for_free_clusters+0x50>
    uint32_t                             *last_cl,                    
    bool                                  zero_fill                   
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cl4find = 2;                                       
ffc19d20:	3b c0 00 02 	li      r30,2                                  
    uint32_t       next_cln = 0;                                      
    uint32_t       save_cln = 0;                                      
    uint32_t       data_cls_val = fs_info->vol.data_cls + 2;          
ffc19d24:	3a f7 00 02 	addi    r23,r23,2                              
ffc19d28:	3b 20 00 02 	li      r25,2                                  
ffc19d2c:	3b 40 00 00 	li      r26,0                                  
                rc = fat_set_fat_cluster(fs_info, save_cln, cl4find); 
                if ( rc != RC_OK )                                    
                    goto cleanup;                                     
            }                                                         
                                                                      
            if (zero_fill)                                            
ffc19d30:	2e 08 00 00 	cmpwi   cr4,r8,0                               
ffc19d34:	48 00 01 3c 	b       ffc19e70 <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);        
ffc19d38:	7f e3 fb 78 	mr      r3,r31                                 
ffc19d3c:	7f c4 f3 78 	mr      r4,r30                                 
ffc19d40:	38 a1 00 08 	addi    r5,r1,8                                
ffc19d44:	4b ff fa 61 	bl      ffc197a4 <fat_get_fat_cluster>         
        if ( rc != RC_OK )                                            
ffc19d48:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc19d4c:	41 a2 00 20 	beq+    ffc19d6c <fat_scan_fat_for_free_clusters+0x98><== ALWAYS TAKEN
        {                                                             
            if (*cls_added != 0)                                      
ffc19d50:	81 3d 00 00 	lwz     r9,0(r29)                              <== NOT EXECUTED
ffc19d54:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc19d58:	41 be 01 88 	beq+    cr7,ffc19ee0 <fat_scan_fat_for_free_clusters+0x20c><== NOT EXECUTED
                fat_free_fat_clusters_chain(fs_info, (*chain));       
ffc19d5c:	80 9b 00 00 	lwz     r4,0(r27)                              <== NOT EXECUTED
ffc19d60:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc19d64:	4b ff fe 9d 	bl      ffc19c00 <fat_free_fat_clusters_chain> <== NOT EXECUTED
ffc19d68:	48 00 01 78 	b       ffc19ee0 <fat_scan_fat_for_free_clusters+0x20c><== NOT EXECUTED
            return rc;                                                
        }                                                             
                                                                      
        if (next_cln == FAT_GENFAT_FREE)                              
ffc19d6c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc19d70:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc19d74:	40 9e 00 e8 	bne-    cr7,ffc19e5c <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)                                      
ffc19d78:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc19d7c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc19d80:	40 9e 00 28 	bne-    cr7,ffc19da8 <fat_scan_fat_for_free_clusters+0xd4>
            {                                                         
                *chain = cl4find;                                     
ffc19d84:	93 db 00 00 	stw     r30,0(r27)                             
                rc = fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_EOC);
ffc19d88:	7f e3 fb 78 	mr      r3,r31                                 
ffc19d8c:	7f c4 f3 78 	mr      r4,r30                                 
ffc19d90:	38 a0 ff ff 	li      r5,-1                                  
ffc19d94:	4b ff fb d1 	bl      ffc19964 <fat_set_fat_cluster>         
                if ( rc != RC_OK )                                    
ffc19d98:	2c 03 00 00 	cmpwi   r3,0                                   
ffc19d9c:	40 82 01 40 	bne-    ffc19edc <fat_scan_fat_for_free_clusters+0x208><== NEVER TAKEN
                rc = fat_set_fat_cluster(fs_info, save_cln, cl4find); 
                if ( rc != RC_OK )                                    
                    goto cleanup;                                     
            }                                                         
                                                                      
            if (zero_fill)                                            
ffc19da0:	41 b2 00 4c 	beq+    cr4,ffc19dec <fat_scan_fat_for_free_clusters+0x118>
ffc19da4:	48 00 00 64 	b       ffc19e08 <fat_scan_fat_for_free_clusters+0x134>
                }                                                     
            }                                                         
            else                                                      
            {                                                         
                /* set EOC value to new allocated cluster */          
                rc = fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_EOC);
ffc19da8:	7f e3 fb 78 	mr      r3,r31                                 
ffc19dac:	7f c4 f3 78 	mr      r4,r30                                 
ffc19db0:	38 a0 ff ff 	li      r5,-1                                  
ffc19db4:	4b ff fb b1 	bl      ffc19964 <fat_set_fat_cluster>         
                if ( rc != RC_OK )                                    
ffc19db8:	7c 75 1b 79 	mr.     r21,r3                                 
                {                                                     
                    /* cleanup activity */                            
                    fat_free_fat_clusters_chain(fs_info, (*chain));   
ffc19dbc:	7f e3 fb 78 	mr      r3,r31                                 
            }                                                         
            else                                                      
            {                                                         
                /* set EOC value to new allocated cluster */          
                rc = fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_EOC);
                if ( rc != RC_OK )                                    
ffc19dc0:	41 a2 00 14 	beq+    ffc19dd4 <fat_scan_fat_for_free_clusters+0x100><== ALWAYS TAKEN
                {                                                     
                    /* cleanup activity */                            
                    fat_free_fat_clusters_chain(fs_info, (*chain));   
ffc19dc4:	80 9b 00 00 	lwz     r4,0(r27)                              <== NOT EXECUTED
                }                                                     
            }                                                         
            else                                                      
            {                                                         
                /* set EOC value to new allocated cluster */          
                rc = fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_EOC);
ffc19dc8:	7e bc ab 78 	mr      r28,r21                                <== NOT EXECUTED
                if ( rc != RC_OK )                                    
                {                                                     
                    /* cleanup activity */                            
                    fat_free_fat_clusters_chain(fs_info, (*chain));   
ffc19dcc:	4b ff fe 35 	bl      ffc19c00 <fat_free_fat_clusters_chain> <== NOT EXECUTED
ffc19dd0:	48 00 01 10 	b       ffc19ee0 <fat_scan_fat_for_free_clusters+0x20c><== NOT EXECUTED
                    return rc;                                        
                }                                                     
                                                                      
                rc = fat_set_fat_cluster(fs_info, save_cln, cl4find); 
ffc19dd4:	7f 44 d3 78 	mr      r4,r26                                 
ffc19dd8:	7f c5 f3 78 	mr      r5,r30                                 
ffc19ddc:	4b ff fb 89 	bl      ffc19964 <fat_set_fat_cluster>         
                if ( rc != RC_OK )                                    
ffc19de0:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc19de4:	41 82 ff bc 	beq+    ffc19da0 <fat_scan_fat_for_free_clusters+0xcc><== ALWAYS TAKEN
ffc19de8:	48 00 00 c0 	b       ffc19ea8 <fat_scan_fat_for_free_clusters+0x1d4><== NOT EXECUTED
                    goto cleanup;                                     
                }                                                     
            }                                                         
                                                                      
            save_cln = cl4find;                                       
            (*cls_added)++;                                           
ffc19dec:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc19df0:	39 29 00 01 	addi    r9,r9,1                                
                                                                      
            /* have we satisfied request ? */                         
            if (*cls_added == count)                                  
ffc19df4:	7f 89 b0 00 	cmpw    cr7,r9,r22                             
                    goto cleanup;                                     
                }                                                     
            }                                                         
                                                                      
            save_cln = cl4find;                                       
            (*cls_added)++;                                           
ffc19df8:	91 3d 00 00 	stw     r9,0(r29)                              
                                                                      
            /* have we satisfied request ? */                         
            if (*cls_added == count)                                  
ffc19dfc:	41 9e 00 34 	beq-    cr7,ffc19e30 <fat_scan_fat_for_free_clusters+0x15c>
ffc19e00:	7f da f3 78 	mr      r26,r30                                
ffc19e04:	48 00 00 58 	b       ffc19e5c <fat_scan_fat_for_free_clusters+0x188>
                    goto cleanup;                                     
            }                                                         
                                                                      
            if (zero_fill)                                            
            {                                                         
                bytes_written = fat_cluster_set (fs_info, cl4find, 0, fs_info->vol.bpc, 0);
ffc19e08:	a0 df 00 06 	lhz     r6,6(r31)                              
ffc19e0c:	7f e3 fb 78 	mr      r3,r31                                 
ffc19e10:	7f c4 f3 78 	mr      r4,r30                                 
ffc19e14:	38 a0 00 00 	li      r5,0                                   
ffc19e18:	38 e0 00 00 	li      r7,0                                   
ffc19e1c:	4b ff 9e cd 	bl      ffc13ce8 <fat_cluster_set>             
                if (fs_info->vol.bpc != bytes_written)                
ffc19e20:	a1 3f 00 06 	lhz     r9,6(r31)                              
ffc19e24:	7f 89 18 00 	cmpw    cr7,r9,r3                              
ffc19e28:	41 9e ff c4 	beq+    cr7,ffc19dec <fat_scan_fat_for_free_clusters+0x118><== ALWAYS TAKEN
ffc19e2c:	48 00 00 78 	b       ffc19ea4 <fat_scan_fat_for_free_clusters+0x1d0><== NOT EXECUTED
                                                                      
            /* have we satisfied request ? */                         
            if (*cls_added == count)                                  
            {                                                         
                    fs_info->vol.next_cl = save_cln;                  
                    if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE) 
ffc19e30:	81 3f 00 44 	lwz     r9,68(r31)                             
            (*cls_added)++;                                           
                                                                      
            /* have we satisfied request ? */                         
            if (*cls_added == count)                                  
            {                                                         
                    fs_info->vol.next_cl = save_cln;                  
ffc19e34:	93 df 00 4c 	stw     r30,76(r31)                            
                    if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE) 
ffc19e38:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc19e3c:	41 9e 00 10 	beq-    cr7,ffc19e4c <fat_scan_fat_for_free_clusters+0x178><== ALWAYS TAKEN
                        fs_info->vol.free_cls -= (*cls_added);        
ffc19e40:	81 5d 00 00 	lwz     r10,0(r29)                             <== NOT EXECUTED
ffc19e44:	7d 2a 48 50 	subf    r9,r10,r9                              <== NOT EXECUTED
ffc19e48:	91 3f 00 44 	stw     r9,68(r31)                             <== NOT EXECUTED
                *last_cl = save_cln;                                  
ffc19e4c:	93 d8 00 00 	stw     r30,0(r24)                             
                fat_buf_release(fs_info);                             
ffc19e50:	7f e3 fb 78 	mr      r3,r31                                 
ffc19e54:	4b ff 9a bd 	bl      ffc13910 <fat_buf_release>             
ffc19e58:	48 00 00 88 	b       ffc19ee0 <fat_scan_fat_for_free_clusters+0x20c>
                return rc;                                            
            }                                                         
        }                                                             
        i++;                                                          
        cl4find++;                                                    
ffc19e5c:	3b de 00 01 	addi    r30,r30,1                              
        if (cl4find >= data_cls_val)                                  
ffc19e60:	7f 9e b8 40 	cmplw   cr7,r30,r23                            
                *last_cl = save_cln;                                  
                fat_buf_release(fs_info);                             
                return rc;                                            
            }                                                         
        }                                                             
        i++;                                                          
ffc19e64:	3b 39 00 01 	addi    r25,r25,1                              
        cl4find++;                                                    
        if (cl4find >= data_cls_val)                                  
ffc19e68:	41 9c 00 08 	blt-    cr7,ffc19e70 <fat_scan_fat_for_free_clusters+0x19c><== ALWAYS TAKEN
            cl4find = 2;                                              
ffc19e6c:	3b c0 00 02 	li      r30,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)                                          
ffc19e70:	7f 99 b8 40 	cmplw   cr7,r25,r23                            
ffc19e74:	41 9c fe c4 	blt+    cr7,ffc19d38 <fat_scan_fat_for_free_clusters+0x64><== 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)             
ffc19e78:	81 3f 00 44 	lwz     r9,68(r31)                             <== NOT EXECUTED
        cl4find++;                                                    
        if (cl4find >= data_cls_val)                                  
            cl4find = 2;                                              
    }                                                                 
                                                                      
        fs_info->vol.next_cl = save_cln;                              
ffc19e7c:	93 5f 00 4c 	stw     r26,76(r31)                            <== NOT EXECUTED
        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)             
ffc19e80:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              <== NOT EXECUTED
ffc19e84:	41 9e 00 10 	beq-    cr7,ffc19e94 <fat_scan_fat_for_free_clusters+0x1c0><== NOT EXECUTED
            fs_info->vol.free_cls -= (*cls_added);                    
ffc19e88:	81 5d 00 00 	lwz     r10,0(r29)                             <== NOT EXECUTED
ffc19e8c:	7d 2a 48 50 	subf    r9,r10,r9                              <== NOT EXECUTED
ffc19e90:	91 3f 00 44 	stw     r9,68(r31)                             <== NOT EXECUTED
                                                                      
    *last_cl = save_cln;                                              
ffc19e94:	93 58 00 00 	stw     r26,0(r24)                             <== NOT EXECUTED
    fat_buf_release(fs_info);                                         
ffc19e98:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc19e9c:	4b ff 9a 75 	bl      ffc13910 <fat_buf_release>             <== NOT EXECUTED
ffc19ea0:	48 00 00 34 	b       ffc19ed4 <fat_scan_fat_for_free_clusters+0x200><== 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;                                          
ffc19ea4:	3b 40 ff ff 	li      r26,-1                                 <== NOT EXECUTED
    return RC_OK;                                                     
                                                                      
cleanup:                                                              
                                                                      
    /* cleanup activity */                                            
    fat_free_fat_clusters_chain(fs_info, (*chain));                   
ffc19ea8:	80 9b 00 00 	lwz     r4,0(r27)                              <== NOT EXECUTED
ffc19eac:	7f e3 fb 78 	mr      r3,r31                                 <== 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;                                                        
ffc19eb0:	7f 5c d3 78 	mr      r28,r26                                <== NOT EXECUTED
    return RC_OK;                                                     
                                                                      
cleanup:                                                              
                                                                      
    /* cleanup activity */                                            
    fat_free_fat_clusters_chain(fs_info, (*chain));                   
ffc19eb4:	4b ff fd 4d 	bl      ffc19c00 <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);           
ffc19eb8:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc19ebc:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc19ec0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc19ec4:	4b ff fa a1 	bl      ffc19964 <fat_set_fat_cluster>         <== NOT EXECUTED
    fat_buf_release(fs_info);                                         
ffc19ec8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc19ecc:	4b ff 9a 45 	bl      ffc13910 <fat_buf_release>             <== NOT EXECUTED
ffc19ed0:	48 00 00 10 	b       ffc19ee0 <fat_scan_fat_for_free_clusters+0x20c><== NOT EXECUTED
    ssize_t        bytes_written;                                     
                                                                      
    *cls_added = 0;                                                   
                                                                      
    if (count == 0)                                                   
        return rc;                                                    
ffc19ed4:	3b 80 00 00 	li      r28,0                                  <== NOT EXECUTED
ffc19ed8:	48 00 00 08 	b       ffc19ee0 <fat_scan_fat_for_free_clusters+0x20c><== NOT EXECUTED
             * wouldn't work properly                                 
             */                                                       
            if (*cls_added == 0)                                      
            {                                                         
                *chain = cl4find;                                     
                rc = fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_EOC);
ffc19edc:	7c 7c 1b 78 	mr      r28,r3                                 <== 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;                                                        
}                                                                     
ffc19ee0:	81 81 00 18 	lwz     r12,24(r1)                             
ffc19ee4:	39 61 00 48 	addi    r11,r1,72                              
ffc19ee8:	7f 83 e3 78 	mr      r3,r28                                 
ffc19eec:	7d 80 81 20 	mtcrf   8,r12                                  
ffc19ef0:	4b fe 76 e4 	b       ffc015d4 <_restgpr_21_x>               
                                                                      

ffc13c34 <fat_sector_write>: fat_fs_info_t *fs_info, uint32_t start, uint32_t offset, uint32_t count, const void *buff) {
ffc13c34:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc13c38:	7c 08 02 a6 	mflr    r0                                     
ffc13c3c:	bf 01 00 18 	stmw    r24,24(r1)                             
ffc13c40:	7c 7e 1b 78 	mr      r30,r3                                 
ffc13c44:	7c dd 33 78 	mr      r29,r6                                 
ffc13c48:	90 01 00 3c 	stw     r0,60(r1)                              
ffc13c4c:	7c f9 3b 78 	mr      r25,r7                                 
    int                 rc = RC_OK;                                   
    ssize_t             cmpltd = 0;                                   
    uint32_t            sec_num = start;                              
    uint32_t            ofs = offset;                                 
ffc13c50:	7c ba 2b 78 	mr      r26,r5                                 
    uint32_t                              count,                      
    const void                           *buff)                       
{                                                                     
    int                 rc = RC_OK;                                   
    ssize_t             cmpltd = 0;                                   
    uint32_t            sec_num = start;                              
ffc13c54:	7c 9b 23 78 	mr      r27,r4                                 
    uint32_t                              offset,                     
    uint32_t                              count,                      
    const void                           *buff)                       
{                                                                     
    int                 rc = RC_OK;                                   
    ssize_t             cmpltd = 0;                                   
ffc13c58:	3b 80 00 00 	li      r28,0                                  
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
ffc13c5c:	3b 00 00 01 	li      r24,1                                  
    uint32_t            sec_num = start;                              
    uint32_t            ofs = offset;                                 
    uint8_t            *sec_buf;                                      
    uint32_t            c = 0;                                        
                                                                      
    while(count > 0)                                                  
ffc13c60:	48 00 00 6c 	b       ffc13ccc <fat_sector_write+0x98>       
    {                                                                 
        c = MIN(count, (fs_info->vol.bps - ofs));                     
ffc13c64:	a3 fe 00 00 	lhz     r31,0(r30)                             
ffc13c68:	7f fa f8 50 	subf    r31,r26,r31                            
ffc13c6c:	7f 9f e8 40 	cmplw   cr7,r31,r29                            
ffc13c70:	40 9d 00 08 	ble-    cr7,ffc13c78 <fat_sector_write+0x44>   
ffc13c74:	7f bf eb 78 	mr      r31,r29                                
                                                                      
        if (c == fs_info->vol.bytes_per_block)                        
ffc13c78:	a1 3e 00 0a 	lhz     r9,10(r30)                             
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_GET, &sec_buf);
ffc13c7c:	7f c3 f3 78 	mr      r3,r30                                 
ffc13c80:	7f 64 db 78 	mr      r4,r27                                 
                                                                      
    while(count > 0)                                                  
    {                                                                 
        c = MIN(count, (fs_info->vol.bps - ofs));                     
                                                                      
        if (c == fs_info->vol.bytes_per_block)                        
ffc13c84:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_GET, &sec_buf);
ffc13c88:	38 a0 00 02 	li      r5,2                                   
                                                                      
    while(count > 0)                                                  
    {                                                                 
        c = MIN(count, (fs_info->vol.bps - ofs));                     
                                                                      
        if (c == fs_info->vol.bytes_per_block)                        
ffc13c8c:	41 9e 00 08 	beq-    cr7,ffc13c94 <fat_sector_write+0x60>   <== NEVER TAKEN
            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);
ffc13c90:	38 a0 00 01 	li      r5,1                                   
ffc13c94:	38 c1 00 08 	addi    r6,r1,8                                
ffc13c98:	4b ff fe 39 	bl      ffc13ad0 <fat_buf_access>              
        if (rc != RC_OK)                                              
ffc13c9c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13ca0:	40 9e 00 38 	bne-    cr7,ffc13cd8 <fat_sector_write+0xa4>   <== NEVER TAKEN
            return -1;                                                
                                                                      
        memcpy((sec_buf + ofs), (buff + cmpltd), c);                  
ffc13ca4:	80 61 00 08 	lwz     r3,8(r1)                               
ffc13ca8:	7c 99 e2 14 	add     r4,r25,r28                             
ffc13cac:	7f e5 fb 78 	mr      r5,r31                                 
ffc13cb0:	7c 63 d2 14 	add     r3,r3,r26                              
ffc13cb4:	48 00 83 a1 	bl      ffc1c054 <memcpy>                      
ffc13cb8:	9b 1e 00 88 	stb     r24,136(r30)                           
                                                                      
        fat_buf_mark_modified(fs_info);                               
                                                                      
        count -= c;                                                   
ffc13cbc:	7f bf e8 50 	subf    r29,r31,r29                            
        cmpltd +=c;                                                   
ffc13cc0:	7f 9f e2 14 	add     r28,r31,r28                            
        sec_num++;                                                    
ffc13cc4:	3b 7b 00 01 	addi    r27,r27,1                              
        ofs = 0;                                                      
ffc13cc8:	3b 40 00 00 	li      r26,0                                  
    uint32_t            sec_num = start;                              
    uint32_t            ofs = offset;                                 
    uint8_t            *sec_buf;                                      
    uint32_t            c = 0;                                        
                                                                      
    while(count > 0)                                                  
ffc13ccc:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc13cd0:	40 9e ff 94 	bne+    cr7,ffc13c64 <fat_sector_write+0x30>   
ffc13cd4:	48 00 00 08 	b       ffc13cdc <fat_sector_write+0xa8>       
        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;                                                
ffc13cd8:	3b 80 ff ff 	li      r28,-1                                 <== NOT EXECUTED
        cmpltd +=c;                                                   
        sec_num++;                                                    
        ofs = 0;                                                      
    }                                                                 
    return cmpltd;                                                    
}                                                                     
ffc13cdc:	39 61 00 38 	addi    r11,r1,56                              
ffc13ce0:	7f 83 e3 78 	mr      r3,r28                                 
ffc13ce4:	4b fe d8 fc 	b       ffc015e0 <_restgpr_24_x>               
                                                                      

ffc19964 <fat_set_fat_cluster>: 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)) )
ffc19964:	2b 84 00 01 	cmplwi  cr7,r4,1                               
fat_set_fat_cluster(                                                  
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              cln,                        
    uint32_t                              in_val                      
    )                                                                 
{                                                                     
ffc19968:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc1996c:	7c 08 02 a6 	mflr    r0                                     
    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;                               
ffc19970:	39 20 00 00 	li      r9,0                                   
fat_set_fat_cluster(                                                  
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              cln,                        
    uint32_t                              in_val                      
    )                                                                 
{                                                                     
ffc19974:	bf 41 00 18 	stmw    r26,24(r1)                             
ffc19978:	7c 9e 23 78 	mr      r30,r4                                 
ffc1997c:	90 01 00 34 	stw     r0,52(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;                               
ffc19980:	91 21 00 08 	stw     r9,8(r1)                               
                                                                      
    /* sanity check */                                                
    if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )           
ffc19984:	40 9d 02 64 	ble-    cr7,ffc19be8 <fat_set_fat_cluster+0x284><== NEVER TAKEN
ffc19988:	81 23 00 38 	lwz     r9,56(r3)                              
ffc1998c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc19990:	39 29 00 01 	addi    r9,r9,1                                
ffc19994:	7f 84 48 40 	cmplw   cr7,r4,r9                              
ffc19998:	40 bd 00 08 	ble+    cr7,ffc199a0 <fat_set_fat_cluster+0x3c><== ALWAYS TAKEN
ffc1999c:	48 00 02 4c 	b       ffc19be8 <fat_set_fat_cluster+0x284>   <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
ffc199a0:	89 23 00 0e 	lbz     r9,14(r3)                              
ffc199a4:	7c bc 2b 78 	mr      r28,r5                                 
ffc199a8:	71 28 00 01 	andi.   r8,r9,1                                
ffc199ac:	41 82 00 10 	beq-    ffc199bc <fat_set_fat_cluster+0x58>    
ffc199b0:	54 9b f8 7e 	rlwinm  r27,r4,31,1,31                         
ffc199b4:	7f 7b 22 14 	add     r27,r27,r4                             
ffc199b8:	48 00 00 18 	b       ffc199d0 <fat_set_fat_cluster+0x6c>    
ffc199bc:	55 2a 07 bc 	rlwinm  r10,r9,0,30,30                         
ffc199c0:	71 47 00 ff 	andi.   r7,r10,255                             
ffc199c4:	54 9b 10 3a 	rlwinm  r27,r4,2,0,29                          
ffc199c8:	41 82 00 08 	beq-    ffc199d0 <fat_set_fat_cluster+0x6c>    
ffc199cc:	54 9b 08 3c 	rlwinm  r27,r4,1,0,30                          
          fs_info->vol.afat_loc;                                      
    ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
ffc199d0:	2f 88 00 00 	cmpwi   cr7,r8,0                               
                                                                      
    /* sanity check */                                                
    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) +
ffc199d4:	89 5f 00 02 	lbz     r10,2(r31)                             
ffc199d8:	7f 7b 54 30 	srw     r27,r27,r10                            
ffc199dc:	81 5f 00 58 	lwz     r10,88(r31)                            
ffc199e0:	7f 7b 52 14 	add     r27,r27,r10                            
          fs_info->vol.afat_loc;                                      
    ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
ffc199e4:	41 9e 00 10 	beq-    cr7,ffc199f4 <fat_set_fat_cluster+0x90>
ffc199e8:	57 dd f8 7e 	rlwinm  r29,r30,31,1,31                        
ffc199ec:	7f bd f2 14 	add     r29,r29,r30                            
ffc199f0:	48 00 00 18 	b       ffc19a08 <fat_set_fat_cluster+0xa4>    
ffc199f4:	55 29 07 bc 	rlwinm  r9,r9,0,30,30                          
ffc199f8:	71 2a 00 ff 	andi.   r10,r9,255                             
ffc199fc:	57 dd 10 3a 	rlwinm  r29,r30,2,0,29                         
ffc19a00:	41 82 00 08 	beq-    ffc19a08 <fat_set_fat_cluster+0xa4>    
ffc19a04:	57 dd 08 3c 	rlwinm  r29,r30,1,0,30                         
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
ffc19a08:	7f e3 fb 78 	mr      r3,r31                                 
    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);
ffc19a0c:	a3 5f 00 00 	lhz     r26,0(r31)                             
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
ffc19a10:	7f 64 db 78 	mr      r4,r27                                 
ffc19a14:	38 a0 00 01 	li      r5,1                                   
ffc19a18:	38 c1 00 08 	addi    r6,r1,8                                
ffc19a1c:	4b ff a0 b5 	bl      ffc13ad0 <fat_buf_access>              
    if (rc != RC_OK)                                                  
ffc19a20:	2c 03 00 00 	cmpwi   r3,0                                   
ffc19a24:	40 82 01 d4 	bne-    ffc19bf8 <fat_set_fat_cluster+0x294>   <== 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);
ffc19a28:	39 3a ff ff 	addi    r9,r26,-1                              
ffc19a2c:	7f a9 48 38 	and     r9,r29,r9                              
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    switch ( fs_info->vol.type )                                      
ffc19a30:	8b bf 00 0e 	lbz     r29,14(r31)                            
ffc19a34:	2f 9d 00 02 	cmpwi   cr7,r29,2                              
ffc19a38:	41 9e 01 50 	beq-    cr7,ffc19b88 <fat_set_fat_cluster+0x224>
ffc19a3c:	2f 9d 00 04 	cmpwi   cr7,r29,4                              
ffc19a40:	41 9e 01 60 	beq-    cr7,ffc19ba0 <fat_set_fat_cluster+0x23c>
ffc19a44:	2f 9d 00 01 	cmpwi   cr7,r29,1                              
ffc19a48:	40 be 01 a0 	bne+    cr7,ffc19be8 <fat_set_fat_cluster+0x284><== NEVER TAKEN
    {                                                                 
        case FAT_FAT12:                                               
            if ( FAT_CLUSTER_IS_ODD(cln) )                            
ffc19a4c:	73 c7 00 01 	andi.   r7,r30,1                               
ffc19a50:	81 41 00 08 	lwz     r10,8(r1)                              
ffc19a54:	41 82 00 90 	beq-    ffc19ae4 <fat_set_fat_cluster+0x180>   
            {                                                         
                fat16_clv = ((uint16_t  )in_val) << FAT_FAT12_SHIFT;  
                *(sec_buf + ofs) &= 0x0F;                             
ffc19a58:	7d 0a 48 ae 	lbzx    r8,r10,r9                              
    switch ( fs_info->vol.type )                                      
    {                                                                 
        case FAT_FAT12:                                               
            if ( FAT_CLUSTER_IS_ODD(cln) )                            
            {                                                         
                fat16_clv = ((uint16_t  )in_val) << FAT_FAT12_SHIFT;  
ffc19a5c:	57 9c 24 36 	rlwinm  r28,r28,4,16,27                        
                *(sec_buf + ofs) &= 0x0F;                             
ffc19a60:	55 08 07 3e 	clrlwi  r8,r8,28                               
ffc19a64:	7d 0a 49 ae 	stbx    r8,r10,r9                              
                                                                      
                *(sec_buf + ofs) |= (uint8_t)(fat16_clv & 0x00F0);    
ffc19a68:	81 41 00 08 	lwz     r10,8(r1)                              
ffc19a6c:	7d 0a 48 ae 	lbzx    r8,r10,r9                              
ffc19a70:	7f 88 43 78 	or      r8,r28,r8                              
ffc19a74:	7d 0a 49 ae 	stbx    r8,r10,r9                              
                                                                      
                fat_buf_mark_modified(fs_info);                       
                                                                      
                if ( ofs == (fs_info->vol.bps - 1) )                  
ffc19a78:	a1 5f 00 00 	lhz     r10,0(r31)                             
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
ffc19a7c:	9b bf 00 88 	stb     r29,136(r31)                           
ffc19a80:	39 4a ff ff 	addi    r10,r10,-1                             
ffc19a84:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc19a88:	40 be 00 3c 	bne+    cr7,ffc19ac4 <fat_set_fat_cluster+0x160><== ALWAYS TAKEN
                {                                                     
                    rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
ffc19a8c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc19a90:	38 9b 00 01 	addi    r4,r27,1                               <== NOT EXECUTED
ffc19a94:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc19a98:	38 c1 00 08 	addi    r6,r1,8                                <== NOT EXECUTED
ffc19a9c:	4b ff a0 35 	bl      ffc13ad0 <fat_buf_access>              <== NOT EXECUTED
                                        &sec_buf);                    
                    if (rc != RC_OK)                                  
ffc19aa0:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc19aa4:	40 82 01 54 	bne-    ffc19bf8 <fat_set_fat_cluster+0x294>   <== NOT EXECUTED
                        return rc;                                    
                                                                      
                     *sec_buf &= 0x00;                                
ffc19aa8:	81 21 00 08 	lwz     r9,8(r1)                               <== NOT EXECUTED
                                                                      
                     *sec_buf |= (uint8_t)((fat16_clv & 0xFF00)>>8);  
ffc19aac:	57 9c c2 3e 	rlwinm  r28,r28,24,8,31                        <== 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;                                
ffc19ab0:	98 69 00 00 	stb     r3,0(r9)                               <== NOT EXECUTED
                                                                      
                     *sec_buf |= (uint8_t)((fat16_clv & 0xFF00)>>8);  
ffc19ab4:	81 21 00 08 	lwz     r9,8(r1)                               <== NOT EXECUTED
ffc19ab8:	89 49 00 00 	lbz     r10,0(r9)                              <== NOT EXECUTED
ffc19abc:	7f 8a 53 78 	or      r10,r28,r10                            <== NOT EXECUTED
ffc19ac0:	48 00 00 90 	b       ffc19b50 <fat_set_fat_cluster+0x1ec>   <== NOT EXECUTED
                                                                      
                     fat_buf_mark_modified(fs_info);                  
                }                                                     
                else                                                  
                {                                                     
                    *(sec_buf + ofs + 1) &= 0x00;                     
ffc19ac4:	81 41 00 08 	lwz     r10,8(r1)                              
ffc19ac8:	39 29 00 01 	addi    r9,r9,1                                
                                                                      
                    *(sec_buf + ofs + 1) |= (uint8_t  )((fat16_clv & 0xFF00)>>8);
ffc19acc:	57 9c c2 3e 	rlwinm  r28,r28,24,8,31                        
                                                                      
                     fat_buf_mark_modified(fs_info);                  
                }                                                     
                else                                                  
                {                                                     
                    *(sec_buf + ofs + 1) &= 0x00;                     
ffc19ad0:	7c 6a 49 ae 	stbx    r3,r10,r9                              
                                                                      
                    *(sec_buf + ofs + 1) |= (uint8_t  )((fat16_clv & 0xFF00)>>8);
ffc19ad4:	81 41 00 08 	lwz     r10,8(r1)                              
ffc19ad8:	7d 0a 48 ae 	lbzx    r8,r10,r9                              
ffc19adc:	7d 08 e3 78 	or      r8,r8,r28                              
ffc19ae0:	48 00 00 a0 	b       ffc19b80 <fat_set_fat_cluster+0x21c>   
                }                                                     
            }                                                         
            else                                                      
            {                                                         
                fat16_clv = ((uint16_t  )in_val) & FAT_FAT12_MASK;    
                *(sec_buf + ofs) &= 0x00;                             
ffc19ae4:	7c 6a 49 ae 	stbx    r3,r10,r9                              
                    *(sec_buf + ofs + 1) |= (uint8_t  )((fat16_clv & 0xFF00)>>8);
                }                                                     
            }                                                         
            else                                                      
            {                                                         
                fat16_clv = ((uint16_t  )in_val) & FAT_FAT12_MASK;    
ffc19ae8:	57 9c 05 3e 	clrlwi  r28,r28,20                             
ffc19aec:	57 9e 04 3e 	clrlwi  r30,r28,16                             
                *(sec_buf + ofs) &= 0x00;                             
                                                                      
                *(sec_buf + ofs) |= (uint8_t)(fat16_clv & 0x00FF);    
ffc19af0:	81 41 00 08 	lwz     r10,8(r1)                              
ffc19af4:	7d 0a 48 ae 	lbzx    r8,r10,r9                              
ffc19af8:	7d 1c e3 78 	or      r28,r8,r28                             
ffc19afc:	7f 8a 49 ae 	stbx    r28,r10,r9                             
                                                                      
                fat_buf_mark_modified(fs_info);                       
                                                                      
                if ( ofs == (fs_info->vol.bps - 1) )                  
ffc19b00:	a1 5f 00 00 	lhz     r10,0(r31)                             
ffc19b04:	9b bf 00 88 	stb     r29,136(r31)                           
ffc19b08:	39 4a ff ff 	addi    r10,r10,-1                             
ffc19b0c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc19b10:	40 be 00 4c 	bne+    cr7,ffc19b5c <fat_set_fat_cluster+0x1f8><== ALWAYS TAKEN
                {                                                     
                    rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
ffc19b14:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc19b18:	38 9b 00 01 	addi    r4,r27,1                               <== NOT EXECUTED
ffc19b1c:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc19b20:	38 c1 00 08 	addi    r6,r1,8                                <== NOT EXECUTED
ffc19b24:	4b ff 9f ad 	bl      ffc13ad0 <fat_buf_access>              <== NOT EXECUTED
                                        &sec_buf);                    
                    if (rc != RC_OK)                                  
ffc19b28:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc19b2c:	40 82 00 cc 	bne-    ffc19bf8 <fat_set_fat_cluster+0x294>   <== NOT EXECUTED
                        return rc;                                    
                                                                      
                    *sec_buf &= 0xF0;                                 
ffc19b30:	81 21 00 08 	lwz     r9,8(r1)                               <== NOT EXECUTED
                                                                      
                    *sec_buf |= (uint8_t)((fat16_clv & 0xFF00)>>8);   
ffc19b34:	57 de c2 3e 	rlwinm  r30,r30,24,8,31                        <== NOT EXECUTED
                    rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
                                        &sec_buf);                    
                    if (rc != RC_OK)                                  
                        return rc;                                    
                                                                      
                    *sec_buf &= 0xF0;                                 
ffc19b38:	89 49 00 00 	lbz     r10,0(r9)                              <== NOT EXECUTED
ffc19b3c:	55 4a 00 36 	rlwinm  r10,r10,0,0,27                         <== NOT EXECUTED
ffc19b40:	99 49 00 00 	stb     r10,0(r9)                              <== NOT EXECUTED
                                                                      
                    *sec_buf |= (uint8_t)((fat16_clv & 0xFF00)>>8);   
ffc19b44:	81 21 00 08 	lwz     r9,8(r1)                               <== NOT EXECUTED
ffc19b48:	89 49 00 00 	lbz     r10,0(r9)                              <== NOT EXECUTED
ffc19b4c:	7f ca 53 78 	or      r10,r30,r10                            <== NOT EXECUTED
ffc19b50:	99 49 00 00 	stb     r10,0(r9)                              <== NOT EXECUTED
ffc19b54:	9b bf 00 88 	stb     r29,136(r31)                           <== NOT EXECUTED
ffc19b58:	48 00 00 a0 	b       ffc19bf8 <fat_set_fat_cluster+0x294>   <== NOT EXECUTED
                                                                      
                    fat_buf_mark_modified(fs_info);                   
                }                                                     
                else                                                  
                {                                                     
                    *(sec_buf + ofs + 1) &= 0xF0;                     
ffc19b5c:	81 41 00 08 	lwz     r10,8(r1)                              
ffc19b60:	39 29 00 01 	addi    r9,r9,1                                
                                                                      
                    *(sec_buf + ofs+1) |= (uint8_t)((fat16_clv & 0xFF00)>>8);
ffc19b64:	57 de c2 3e 	rlwinm  r30,r30,24,8,31                        
                                                                      
                    fat_buf_mark_modified(fs_info);                   
                }                                                     
                else                                                  
                {                                                     
                    *(sec_buf + ofs + 1) &= 0xF0;                     
ffc19b68:	7d 0a 48 ae 	lbzx    r8,r10,r9                              
ffc19b6c:	55 08 00 36 	rlwinm  r8,r8,0,0,27                           
ffc19b70:	7d 0a 49 ae 	stbx    r8,r10,r9                              
                                                                      
                    *(sec_buf + ofs+1) |= (uint8_t)((fat16_clv & 0xFF00)>>8);
ffc19b74:	81 41 00 08 	lwz     r10,8(r1)                              
ffc19b78:	7d 0a 48 ae 	lbzx    r8,r10,r9                              
ffc19b7c:	7d 08 f3 78 	or      r8,r8,r30                              
ffc19b80:	7d 0a 49 ae 	stbx    r8,r10,r9                              
ffc19b84:	48 00 00 74 	b       ffc19bf8 <fat_set_fat_cluster+0x294>   
            }                                                         
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *((uint16_t   *)(sec_buf + ofs)) =                        
                    (uint16_t  )(CT_LE_W(in_val));                    
ffc19b88:	57 8a 42 2e 	rlwinm  r10,r28,8,8,23                         
ffc19b8c:	57 9c c6 3e 	rlwinm  r28,r28,24,24,31                       
ffc19b90:	7d 5c e3 78 	or      r28,r10,r28                            
                }                                                     
            }                                                         
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *((uint16_t   *)(sec_buf + ofs)) =                        
ffc19b94:	81 41 00 08 	lwz     r10,8(r1)                              
ffc19b98:	7f 8a 4b 2e 	sthx    r28,r10,r9                             
ffc19b9c:	48 00 00 40 	b       ffc19bdc <fat_set_fat_cluster+0x278>   
                    (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));           
ffc19ba0:	57 9c 01 3e 	clrlwi  r28,r28,4                              
ffc19ba4:	53 87 46 3e 	rlwimi  r7,r28,8,24,31                         
ffc19ba8:	53 87 c4 2e 	rlwimi  r7,r28,24,16,23                        
ffc19bac:	53 87 42 1e 	rlwimi  r7,r28,8,8,15                          
ffc19bb0:	53 87 c0 0e 	rlwimi  r7,r28,24,0,7                          
ffc19bb4:	3d 00 f0 00 	lis     r8,-4096                               
                                                                      
            *((uint32_t *)(sec_buf + ofs)) &= CT_LE_L(0xF0000000);    
ffc19bb8:	81 41 00 08 	lwz     r10,8(r1)                              
ffc19bbc:	51 06 46 3e 	rlwimi  r6,r8,8,24,31                          
ffc19bc0:	51 06 c4 2e 	rlwimi  r6,r8,24,16,23                         
ffc19bc4:	51 06 42 1e 	rlwimi  r6,r8,8,8,15                           
ffc19bc8:	51 06 c0 0e 	rlwimi  r6,r8,24,0,7                           
ffc19bcc:	7d 0a 48 2e 	lwzx    r8,r10,r9                              
ffc19bd0:	7c c8 40 38 	and     r8,r6,r8                               
                                                                      
            *((uint32_t *)(sec_buf + ofs)) |= fat32_clv;              
ffc19bd4:	7d 08 3b 78 	or      r8,r8,r7                               
ffc19bd8:	7d 0a 49 2e 	stwx    r8,r10,r9                              
ffc19bdc:	39 20 00 01 	li      r9,1                                   
ffc19be0:	99 3f 00 88 	stb     r9,136(r31)                            
ffc19be4:	48 00 00 14 	b       ffc19bf8 <fat_set_fat_cluster+0x294>   
                                                                      
            fat_buf_mark_modified(fs_info);                           
            break;                                                    
                                                                      
        default:                                                      
            rtems_set_errno_and_return_minus_one(EIO);                
ffc19be8:	48 00 17 8d 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc19bec:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc19bf0:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc19bf4:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
            break;                                                    
                                                                      
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc19bf8:	39 61 00 30 	addi    r11,r1,48                              
ffc19bfc:	4b fe 79 ec 	b       ffc015e8 <_restgpr_26_x>               
                                                                      

ffc14764 <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) {
ffc14764:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc14768:	7c 08 02 a6 	mflr    r0                                     
ffc1476c:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc14770:	7c 7f 1b 78 	mr      r31,r3                                 
ffc14774:	90 01 00 1c 	stw     r0,28(r1)                              
    int            rc = RC_OK;                                        
    int            i = 0;                                             
                                                                      
    rc = fat_sync(fs_info);                                           
ffc14778:	4b ff fe f1 	bl      ffc14668 <fat_sync>                    
    if ( rc != RC_OK )                                                
ffc1477c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc14780:	41 a2 00 08 	beq+    ffc14788 <fat_shutdown_drive+0x24>     <== ALWAYS TAKEN
        rc = -1;                                                      
ffc14784:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
ffc14788:	3b c0 00 00 	li      r30,0                                  
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
    {                                                                 
        rtems_chain_node    *node = NULL;                             
        rtems_chain_control *the_chain = fs_info->vhash + i;          
ffc1478c:	83 9f 00 6c 	lwz     r28,108(r31)                           
ffc14790:	7f 9c f2 14 	add     r28,r28,r30                            
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
ffc14794:	48 00 00 08 	b       ffc1479c <fat_shutdown_drive+0x38>     
            free(node);                                               
ffc14798:	4b ff 15 45 	bl      ffc05cdc <free>                        
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
ffc1479c:	7f 83 e3 78 	mr      r3,r28                                 
ffc147a0:	4b ff 68 ad 	bl      ffc0b04c <_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 )         
ffc147a4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc147a8:	40 9e ff f0 	bne+    cr7,ffc14798 <fat_shutdown_drive+0x34> 
                                                                      
    rc = fat_sync(fs_info);                                           
    if ( rc != RC_OK )                                                
        rc = -1;                                                      
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
ffc147ac:	2f 9e 00 0c 	cmpwi   cr7,r30,12                             
ffc147b0:	3b de 00 0c 	addi    r30,r30,12                             
ffc147b4:	40 be ff d8 	bne-    cr7,ffc1478c <fat_shutdown_drive+0x28> 
ffc147b8:	3b c0 00 00 	li      r30,0                                  
    }                                                                 
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
    {                                                                 
        rtems_chain_node    *node = NULL;                             
        rtems_chain_control *the_chain = fs_info->rhash + i;          
ffc147bc:	83 9f 00 70 	lwz     r28,112(r31)                           
ffc147c0:	7f 9c f2 14 	add     r28,r28,r30                            
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
ffc147c4:	48 00 00 08 	b       ffc147cc <fat_shutdown_drive+0x68>     
            free(node);                                               
ffc147c8:	4b ff 15 15 	bl      ffc05cdc <free>                        <== NOT EXECUTED
ffc147cc:	7f 83 e3 78 	mr      r3,r28                                 
ffc147d0:	4b ff 68 7d 	bl      ffc0b04c <_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 )         
ffc147d4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc147d8:	40 9e ff f0 	bne+    cr7,ffc147c8 <fat_shutdown_drive+0x64> <== NEVER TAKEN
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
            free(node);                                               
    }                                                                 
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
ffc147dc:	2f 9e 00 0c 	cmpwi   cr7,r30,12                             
ffc147e0:	3b de 00 0c 	addi    r30,r30,12                             
ffc147e4:	40 be ff d8 	bne-    cr7,ffc147bc <fat_shutdown_drive+0x58> 
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
            free(node);                                               
    }                                                                 
                                                                      
    free(fs_info->vhash);                                             
ffc147e8:	80 7f 00 6c 	lwz     r3,108(r31)                            
ffc147ec:	4b ff 14 f1 	bl      ffc05cdc <free>                        
    free(fs_info->rhash);                                             
ffc147f0:	80 7f 00 70 	lwz     r3,112(r31)                            
ffc147f4:	4b ff 14 e9 	bl      ffc05cdc <free>                        
                                                                      
    free(fs_info->uino);                                              
ffc147f8:	80 7f 00 74 	lwz     r3,116(r31)                            
ffc147fc:	4b ff 14 e1 	bl      ffc05cdc <free>                        
    free(fs_info->sec_buf);                                           
ffc14800:	80 7f 00 90 	lwz     r3,144(r31)                            
ffc14804:	4b ff 14 d9 	bl      ffc05cdc <free>                        
    close(fs_info->vol.fd);                                           
ffc14808:	80 7f 00 60 	lwz     r3,96(r31)                             
ffc1480c:	4b ff 14 49 	bl      ffc05c54 <close>                       
                                                                      
    if (rc)                                                           
ffc14810:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc14814:	41 be 00 10 	beq+    cr7,ffc14824 <fat_shutdown_drive+0xc0> <== ALWAYS TAKEN
        errno = EIO;                                                  
ffc14818:	48 00 6b 5d 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc1481c:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc14820:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    return rc;                                                        
}                                                                     
ffc14824:	39 61 00 18 	addi    r11,r1,24                              
ffc14828:	7f a3 eb 78 	mr      r3,r29                                 
ffc1482c:	4b fe cd c4 	b       ffc015f0 <_restgpr_28_x>               
                                                                      

ffc14668 <fat_sync>: return RC_OK; } int fat_sync(fat_fs_info_t *fs_info) {
ffc14668:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc1466c:	7c 08 02 a6 	mflr    r0                                     
ffc14670:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc14674:	7c 7f 1b 78 	mr      r31,r3                                 
ffc14678:	90 01 00 2c 	stw     r0,44(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)                               
ffc1467c:	89 23 00 0e 	lbz     r9,14(r3)                              
ffc14680:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc14684:	41 9e 00 0c 	beq-    cr7,ffc14690 <fat_sync+0x28>           
 *     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;                                       
ffc14688:	3b c0 00 00 	li      r30,0                                  
ffc1468c:	48 00 00 a0 	b       ffc1472c <fat_sync+0xc4>               
                                                                      
    if (fs_info->vol.type == FAT_FAT32)                               
    {                                                                 
        uint32_t free_count = fs_info->vol.free_cls;                  
ffc14690:	81 23 00 44 	lwz     r9,68(r3)                              
 *     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;                                       
ffc14694:	3b c0 00 00 	li      r30,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;                    
                                                                      
        if (free_count != fs_info->vol.free_cls_in_fs_info)           
ffc14698:	81 43 00 48 	lwz     r10,72(r3)                             
    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;                    
ffc1469c:	83 a3 00 4c 	lwz     r29,76(r3)                             
                                                                      
        if (free_count != fs_info->vol.free_cls_in_fs_info)           
ffc146a0:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc146a4:	41 9e 00 34 	beq-    cr7,ffc146d8 <fat_sync+0x70>           <== ALWAYS TAKEN
  uint32_t value                                                      
)                                                                     
{                                                                     
  uint32_t   swapped;                                                 
                                                                      
  __asm__ volatile("rlwimi %0,%1,8,24,31;"                            
ffc146a8:	51 2a 46 3e 	rlwimi  r10,r9,8,24,31                         <== NOT EXECUTED
ffc146ac:	51 2a c4 2e 	rlwimi  r10,r9,24,16,23                        <== NOT EXECUTED
ffc146b0:	51 2a 42 1e 	rlwimi  r10,r9,8,8,15                          <== NOT EXECUTED
ffc146b4:	51 2a c0 0e 	rlwimi  r10,r9,24,0,7                          <== NOT EXECUTED
        {                                                             
            uint32_t le_free_count = CT_LE_L(free_count);             
ffc146b8:	7c 27 0b 78 	mr      r7,r1                                  <== NOT EXECUTED
                                                                      
            fs_info->vol.free_cls_in_fs_info = free_count;            
ffc146bc:	91 23 00 48 	stw     r9,72(r3)                              <== NOT EXECUTED
                                                                      
            ret1 = fat_sector_write(fs_info,                          
ffc146c0:	38 a0 01 e8 	li      r5,488                                 <== 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);             
ffc146c4:	95 47 00 08 	stwu    r10,8(r7)                              <== NOT EXECUTED
                                                                      
            fs_info->vol.free_cls_in_fs_info = free_count;            
                                                                      
            ret1 = fat_sector_write(fs_info,                          
ffc146c8:	38 c0 00 04 	li      r6,4                                   <== NOT EXECUTED
ffc146cc:	a0 83 00 40 	lhz     r4,64(r3)                              <== NOT EXECUTED
ffc146d0:	4b ff f5 65 	bl      ffc13c34 <fat_sector_write>            <== NOT EXECUTED
ffc146d4:	7c 7e 1b 78 	mr      r30,r3                                 <== 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)             
ffc146d8:	81 3f 00 50 	lwz     r9,80(r31)                             
ffc146dc:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc146e0:	41 9e 00 6c 	beq-    cr7,ffc1474c <fat_sync+0xe4>           <== NEVER TAKEN
ffc146e4:	53 a9 46 3e 	rlwimi  r9,r29,8,24,31                         
ffc146e8:	53 a9 c4 2e 	rlwimi  r9,r29,24,16,23                        
ffc146ec:	53 a9 42 1e 	rlwimi  r9,r29,8,8,15                          
ffc146f0:	53 a9 c0 0e 	rlwimi  r9,r29,24,0,7                          
        {                                                             
            uint32_t le_next_free = CT_LE_L(next_free);               
ffc146f4:	7c 27 0b 78 	mr      r7,r1                                  
                                                                      
            fs_info->vol.next_cl_in_fs_info = next_free;              
ffc146f8:	93 bf 00 50 	stw     r29,80(r31)                            
                                                                      
            ret2 = fat_sector_write(fs_info,                          
ffc146fc:	7f e3 fb 78 	mr      r3,r31                                 
                                    &le_free_count);                  
        }                                                             
                                                                      
        if (next_free != fs_info->vol.next_cl_in_fs_info)             
        {                                                             
            uint32_t le_next_free = CT_LE_L(next_free);               
ffc14700:	95 27 00 08 	stwu    r9,8(r7)                               
                                                                      
            fs_info->vol.next_cl_in_fs_info = next_free;              
                                                                      
            ret2 = fat_sector_write(fs_info,                          
ffc14704:	38 a0 01 ec 	li      r5,492                                 
ffc14708:	38 c0 00 04 	li      r6,4                                   
ffc1470c:	a0 9f 00 40 	lhz     r4,64(r31)                             
ffc14710:	4b ff f5 25 	bl      ffc13c34 <fat_sector_write>            
                                    sizeof(le_next_free),             
                                    &le_next_free);                   
        }                                                             
    }                                                                 
                                                                      
    if ( (ret1 < 0) || (ret2 < 0) )                                   
ffc14714:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc14718:	40 bc 00 0c 	bge+    cr7,ffc14724 <fat_sync+0xbc>           <== ALWAYS TAKEN
{                                                                     
    int rc = RC_OK;                                                   
                                                                      
    rc = fat_fat32_update_fsinfo_sector(fs_info);                     
    if ( rc != RC_OK )                                                
        rc = -1;                                                      
ffc1471c:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc14720:	48 00 00 0c 	b       ffc1472c <fat_sync+0xc4>               <== NOT EXECUTED
                                    sizeof(le_next_free),             
                                    &le_next_free);                   
        }                                                             
    }                                                                 
                                                                      
    if ( (ret1 < 0) || (ret2 < 0) )                                   
ffc14724:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc14728:	48 00 00 28 	b       ffc14750 <fat_sync+0xe8>               
                                                                      
    rc = fat_fat32_update_fsinfo_sector(fs_info);                     
    if ( rc != RC_OK )                                                
        rc = -1;                                                      
                                                                      
    fat_buf_release(fs_info);                                         
ffc1472c:	7f e3 fb 78 	mr      r3,r31                                 
ffc14730:	4b ff f1 e1 	bl      ffc13910 <fat_buf_release>             
                                                                      
    if (rtems_bdbuf_syncdev(fs_info->vol.dd) != RTEMS_SUCCESSFUL)     
ffc14734:	80 7f 00 64 	lwz     r3,100(r31)                            
ffc14738:	4b ff d5 31 	bl      ffc11c68 <rtems_bdbuf_syncdev>         
ffc1473c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc14740:	41 be 00 18 	beq+    cr7,ffc14758 <fat_sync+0xf0>           <== ALWAYS TAKEN
        rc = -1;                                                      
ffc14744:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc14748:	48 00 00 10 	b       ffc14758 <fat_sync+0xf0>               <== NOT EXECUTED
                                    sizeof(le_next_free),             
                                    &le_next_free);                   
        }                                                             
    }                                                                 
                                                                      
    if ( (ret1 < 0) || (ret2 < 0) )                                   
ffc1474c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc14750:	40 9c ff 38 	bge+    cr7,ffc14688 <fat_sync+0x20>           <== ALWAYS TAKEN
ffc14754:	4b ff ff c8 	b       ffc1471c <fat_sync+0xb4>               <== NOT EXECUTED
                                                                      
    if (rtems_bdbuf_syncdev(fs_info->vol.dd) != RTEMS_SUCCESSFUL)     
        rc = -1;                                                      
                                                                      
    return rc;                                                        
}                                                                     
ffc14758:	39 61 00 28 	addi    r11,r1,40                              
ffc1475c:	7f c3 f3 78 	mr      r3,r30                                 
ffc14760:	4b fe ce 94 	b       ffc015f4 <_restgpr_29_x>               
                                                                      

ffc33128 <fchdir>: /** * compatible with SVr4, 4.4BSD and X/OPEN - Change Directory */ int fchdir( int fd ) {
ffc33128:	94 21 ff 88 	stwu    r1,-120(r1)                            
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
  struct stat st;                                                     
  rtems_filesystem_location_info_t loc;                               
                                                                      
  st.st_mode = 0;                                                     
ffc3312c:	39 20 00 00 	li      r9,0                                   
                                                                      
/**                                                                   
 *  compatible with SVr4, 4.4BSD and X/OPEN - Change Directory        
 */                                                                   
int fchdir( int fd )                                                  
{                                                                     
ffc33130:	7c 08 02 a6 	mflr    r0                                     
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
  struct stat st;                                                     
  rtems_filesystem_location_info_t loc;                               
                                                                      
  st.st_mode = 0;                                                     
ffc33134:	91 21 00 14 	stw     r9,20(r1)                              
  st.st_uid = 0;                                                      
ffc33138:	b1 21 00 1a 	sth     r9,26(r1)                              
  st.st_gid = 0;                                                      
ffc3313c:	b1 21 00 1c 	sth     r9,28(r1)                              
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc33140:	3d 20 00 00 	lis     r9,0                                   
ffc33144:	81 29 33 78 	lwz     r9,13176(r9)                           
                                                                      
/**                                                                   
 *  compatible with SVr4, 4.4BSD and X/OPEN - Change Directory        
 */                                                                   
int fchdir( int fd )                                                  
{                                                                     
ffc33148:	90 01 00 7c 	stw     r0,124(r1)                             
                                                                      
  st.st_mode = 0;                                                     
  st.st_uid = 0;                                                      
  st.st_gid = 0;                                                      
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc3314c:	7f 83 48 40 	cmplw   cr7,r3,r9                              
                                                                      
/**                                                                   
 *  compatible with SVr4, 4.4BSD and X/OPEN - Change Directory        
 */                                                                   
int fchdir( int fd )                                                  
{                                                                     
ffc33150:	bf a1 00 6c 	stmw    r29,108(r1)                            
                                                                      
  st.st_mode = 0;                                                     
  st.st_uid = 0;                                                      
  st.st_gid = 0;                                                      
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc33154:	41 bc 00 08 	blt+    cr7,ffc3315c <fchdir+0x34>             
ffc33158:	48 00 00 20 	b       ffc33178 <fchdir+0x50>                 
  iop = rtems_libio_iop( fd );                                        
ffc3315c:	3d 20 00 00 	lis     r9,0                                   
ffc33160:	83 c9 34 64 	lwz     r30,13412(r9)                          
ffc33164:	1c 63 00 38 	mulli   r3,r3,56                               
ffc33168:	7f de 1a 14 	add     r30,r30,r3                             
  rtems_libio_check_is_open( iop );                                   
ffc3316c:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc33170:	71 2a 01 00 	andi.   r10,r9,256                             
ffc33174:	40 a2 00 18 	bne+    ffc3318c <fchdir+0x64>                 
ffc33178:	48 00 45 81 	bl      ffc376f8 <__errno>                     
ffc3317c:	39 20 00 09 	li      r9,9                                   
ffc33180:	91 23 00 00 	stw     r9,0(r3)                               
ffc33184:	3b e0 ff ff 	li      r31,-1                                 
ffc33188:	48 00 00 a0 	b       ffc33228 <fchdir+0x100>                
  if ( rv == 0 ) {                                                    
    rv = rtems_filesystem_chdir( &loc );                              
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc3318c:	80 7e 00 28 	lwz     r3,40(r30)                             
  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 );     
ffc33190:	3b be 00 14 	addi    r29,r30,20                             
  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 );                               
ffc33194:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc33198:	81 29 00 00 	lwz     r9,0(r9)                               
ffc3319c:	7d 29 03 a6 	mtctr   r9                                     
ffc331a0:	4e 80 04 21 	bctrl                                          
ffc331a4:	81 3e 00 24 	lwz     r9,36(r30)                             
ffc331a8:	7f a3 eb 78 	mr      r3,r29                                 
ffc331ac:	81 29 00 18 	lwz     r9,24(r9)                              
ffc331b0:	38 81 00 08 	addi    r4,r1,8                                
ffc331b4:	7d 29 03 a6 	mtctr   r9                                     
ffc331b8:	4e 80 04 21 	bctrl                                          
  if ( rv == 0 ) {                                                    
ffc331bc:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc331c0:	40 a2 00 40 	bne+    ffc33200 <fchdir+0xd8>                 <== NEVER TAKEN
    bool access_ok = rtems_filesystem_check_access(                   
ffc331c4:	80 81 00 14 	lwz     r4,20(r1)                              
ffc331c8:	38 60 00 01 	li      r3,1                                   
ffc331cc:	a0 a1 00 1a 	lhz     r5,26(r1)                              
ffc331d0:	a0 c1 00 1c 	lhz     r6,28(r1)                              
ffc331d4:	4b fd c0 09 	bl      ffc0f1dc <rtems_filesystem_check_access>
      st.st_mode,                                                     
      st.st_uid,                                                      
      st.st_gid                                                       
    );                                                                
                                                                      
    if ( access_ok ) {                                                
ffc331d8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc331dc:	41 9e 00 14 	beq-    cr7,ffc331f0 <fchdir+0xc8>             
      rtems_filesystem_location_clone( &loc, &iop->pathinfo );        
ffc331e0:	38 61 00 50 	addi    r3,r1,80                               
ffc331e4:	7f a4 eb 78 	mr      r4,r29                                 
ffc331e8:	4b fd b9 2d 	bl      ffc0eb14 <rtems_filesystem_location_clone>
ffc331ec:	48 00 00 14 	b       ffc33200 <fchdir+0xd8>                 
    } else {                                                          
      errno = EACCES;                                                 
ffc331f0:	48 00 45 09 	bl      ffc376f8 <__errno>                     
ffc331f4:	39 20 00 0d 	li      r9,13                                  
ffc331f8:	91 23 00 00 	stw     r9,0(r3)                               
      rv = -1;                                                        
ffc331fc:	3b e0 ff ff 	li      r31,-1                                 
  if ( rv == 0 ) {                                                    
    rv = rtems_filesystem_chdir( &loc );                              
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc33200:	80 7e 00 28 	lwz     r3,40(r30)                             
  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 );                             
ffc33204:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc33208:	81 29 00 04 	lwz     r9,4(r9)                               
ffc3320c:	7d 29 03 a6 	mtctr   r9                                     
ffc33210:	4e 80 04 21 	bctrl                                          
      rv = -1;                                                        
    }                                                                 
  }                                                                   
  rtems_filesystem_instance_unlock( &iop->pathinfo );                 
                                                                      
  if ( rv == 0 ) {                                                    
ffc33214:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc33218:	40 be 00 10 	bne+    cr7,ffc33228 <fchdir+0x100>            
    rv = rtems_filesystem_chdir( &loc );                              
ffc3321c:	38 61 00 50 	addi    r3,r1,80                               
ffc33220:	4b ff 0d ad 	bl      ffc23fcc <rtems_filesystem_chdir>      
ffc33224:	7c 7f 1b 78 	mr      r31,r3                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc33228:	39 61 00 78 	addi    r11,r1,120                             
ffc3322c:	7f e3 fb 78 	mr      r3,r31                                 
ffc33230:	48 02 05 c4 	b       ffc537f4 <_restgpr_29_x>               
                                                                      

ffc245f8 <fchmod>: int fchmod( int fd, mode_t mode ) { int rv; rtems_libio_t *iop; rtems_libio_check_fd( fd );
ffc245f8:	3d 20 00 00 	lis     r9,0                                   
                                                                      
/**                                                                   
 *  POSIX 1003.1b 5.6.4 - Change File Modes                           
 */                                                                   
int fchmod( int fd, mode_t mode )                                     
{                                                                     
ffc245fc:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc24600:	7c 08 02 a6 	mflr    r0                                     
  int rv;                                                             
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc24604:	81 29 33 78 	lwz     r9,13176(r9)                           
                                                                      
/**                                                                   
 *  POSIX 1003.1b 5.6.4 - Change File Modes                           
 */                                                                   
int fchmod( int fd, mode_t mode )                                     
{                                                                     
ffc24608:	90 01 00 1c 	stw     r0,28(r1)                              
  int rv;                                                             
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc2460c:	7f 83 48 40 	cmplw   cr7,r3,r9                              
                                                                      
/**                                                                   
 *  POSIX 1003.1b 5.6.4 - Change File Modes                           
 */                                                                   
int fchmod( int fd, mode_t mode )                                     
{                                                                     
ffc24610:	bf c1 00 10 	stmw    r30,16(r1)                             
  int rv;                                                             
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc24614:	41 bc 00 08 	blt+    cr7,ffc2461c <fchmod+0x24>             
ffc24618:	48 00 00 20 	b       ffc24638 <fchmod+0x40>                 
  iop = rtems_libio_iop( fd );                                        
ffc2461c:	3d 20 00 00 	lis     r9,0                                   
ffc24620:	83 e9 34 64 	lwz     r31,13412(r9)                          
ffc24624:	1c 63 00 38 	mulli   r3,r3,56                               
ffc24628:	7f ff 1a 14 	add     r31,r31,r3                             
  rtems_libio_check_is_open(iop);                                     
ffc2462c:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc24630:	71 2a 01 00 	andi.   r10,r9,256                             
ffc24634:	40 a2 00 10 	bne+    ffc24644 <fchmod+0x4c>                 
ffc24638:	48 01 30 c1 	bl      ffc376f8 <__errno>                     
ffc2463c:	39 20 00 09 	li      r9,9                                   
ffc24640:	48 00 00 68 	b       ffc246a8 <fchmod+0xb0>                 
                                                                      
  if (iop->pathinfo.mt_entry->writeable) {                            
ffc24644:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc24648:	89 23 00 29 	lbz     r9,41(r3)                              
ffc2464c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc24650:	41 9e 00 50 	beq-    cr7,ffc246a0 <fchmod+0xa8>             <== 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 );                               
ffc24654:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc24658:	81 29 00 00 	lwz     r9,0(r9)                               
ffc2465c:	90 81 00 08 	stw     r4,8(r1)                               
ffc24660:	7d 29 03 a6 	mtctr   r9                                     
ffc24664:	4e 80 04 21 	bctrl                                          
    rtems_filesystem_instance_lock( &iop->pathinfo );                 
    rv = (*iop->pathinfo.mt_entry->ops->fchmod_h)( &iop->pathinfo, mode );
ffc24668:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc2466c:	38 7f 00 14 	addi    r3,r31,20                              
ffc24670:	80 81 00 08 	lwz     r4,8(r1)                               
ffc24674:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc24678:	81 29 00 20 	lwz     r9,32(r9)                              
ffc2467c:	7d 29 03 a6 	mtctr   r9                                     
ffc24680:	4e 80 04 21 	bctrl                                          
ffc24684:	7c 7e 1b 78 	mr      r30,r3                                 
    errno = EROFS;                                                    
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc24688:	80 7f 00 28 	lwz     r3,40(r31)                             
  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 );                             
ffc2468c:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc24690:	81 29 00 04 	lwz     r9,4(r9)                               
ffc24694:	7d 29 03 a6 	mtctr   r9                                     
ffc24698:	4e 80 04 21 	bctrl                                          
ffc2469c:	48 00 00 14 	b       ffc246b0 <fchmod+0xb8>                 
  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;                                                    
ffc246a0:	48 01 30 59 	bl      ffc376f8 <__errno>                     <== NOT EXECUTED
ffc246a4:	39 20 00 1e 	li      r9,30                                  <== NOT EXECUTED
ffc246a8:	91 23 00 00 	stw     r9,0(r3)                               
    rv = -1;                                                          
ffc246ac:	3b c0 ff ff 	li      r30,-1                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc246b0:	39 61 00 18 	addi    r11,r1,24                              
ffc246b4:	7f c3 f3 78 	mr      r3,r30                                 
ffc246b8:	48 02 f1 40 	b       ffc537f8 <_restgpr_30_x>               
                                                                      

ffc246bc <fchown>: int fchown( int fd, uid_t owner, gid_t group ) { int rv = 0; rtems_libio_t *iop; rtems_libio_check_fd( fd );
ffc246bc:	3d 20 00 00 	lis     r9,0                                   
                                                                      
/**                                                                   
 *  POSIX 1003.1b 5.6.5 - Change Owner and Group of a File            
 */                                                                   
int fchown( int fd, uid_t owner, gid_t group )                        
{                                                                     
ffc246c0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc246c4:	7c 08 02 a6 	mflr    r0                                     
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc246c8:	81 29 33 78 	lwz     r9,13176(r9)                           
                                                                      
/**                                                                   
 *  POSIX 1003.1b 5.6.5 - Change Owner and Group of a File            
 */                                                                   
int fchown( int fd, uid_t owner, gid_t group )                        
{                                                                     
ffc246cc:	90 01 00 1c 	stw     r0,28(r1)                              
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc246d0:	7f 83 48 40 	cmplw   cr7,r3,r9                              
                                                                      
/**                                                                   
 *  POSIX 1003.1b 5.6.5 - Change Owner and Group of a File            
 */                                                                   
int fchown( int fd, uid_t owner, gid_t group )                        
{                                                                     
ffc246d4:	bf c1 00 10 	stmw    r30,16(r1)                             
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc246d8:	41 bc 00 08 	blt+    cr7,ffc246e0 <fchown+0x24>             
ffc246dc:	48 00 00 20 	b       ffc246fc <fchown+0x40>                 
  iop = rtems_libio_iop( fd );                                        
ffc246e0:	3d 20 00 00 	lis     r9,0                                   
ffc246e4:	83 e9 34 64 	lwz     r31,13412(r9)                          
ffc246e8:	1c 63 00 38 	mulli   r3,r3,56                               
ffc246ec:	7f ff 1a 14 	add     r31,r31,r3                             
  rtems_libio_check_is_open(iop);                                     
ffc246f0:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc246f4:	71 2a 01 00 	andi.   r10,r9,256                             
ffc246f8:	40 a2 00 10 	bne+    ffc24708 <fchown+0x4c>                 
ffc246fc:	48 01 2f fd 	bl      ffc376f8 <__errno>                     
ffc24700:	39 20 00 09 	li      r9,9                                   
ffc24704:	48 00 00 70 	b       ffc24774 <fchown+0xb8>                 
                                                                      
  if (iop->pathinfo.mt_entry->writeable) {                            
ffc24708:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc2470c:	89 23 00 29 	lbz     r9,41(r3)                              
ffc24710:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc24714:	41 9e 00 58 	beq-    cr7,ffc2476c <fchown+0xb0>             <== 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 );                               
ffc24718:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc2471c:	81 29 00 00 	lwz     r9,0(r9)                               
ffc24720:	90 81 00 08 	stw     r4,8(r1)                               
ffc24724:	7d 29 03 a6 	mtctr   r9                                     
ffc24728:	90 a1 00 0c 	stw     r5,12(r1)                              
ffc2472c:	4e 80 04 21 	bctrl                                          
    rtems_filesystem_instance_lock( &iop->pathinfo );                 
    rv = (*iop->pathinfo.mt_entry->ops->chown_h)(                     
ffc24730:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc24734:	38 7f 00 14 	addi    r3,r31,20                              
ffc24738:	80 81 00 08 	lwz     r4,8(r1)                               
ffc2473c:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc24740:	80 a1 00 0c 	lwz     r5,12(r1)                              
ffc24744:	81 29 00 24 	lwz     r9,36(r9)                              
ffc24748:	7d 29 03 a6 	mtctr   r9                                     
ffc2474c:	4e 80 04 21 	bctrl                                          
ffc24750:	7c 7e 1b 78 	mr      r30,r3                                 
    errno = EROFS;                                                    
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc24754:	80 7f 00 28 	lwz     r3,40(r31)                             
  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 );                             
ffc24758:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc2475c:	81 29 00 04 	lwz     r9,4(r9)                               
ffc24760:	7d 29 03 a6 	mtctr   r9                                     
ffc24764:	4e 80 04 21 	bctrl                                          
ffc24768:	48 00 00 14 	b       ffc2477c <fchown+0xc0>                 
      owner,                                                          
      group                                                           
    );                                                                
    rtems_filesystem_instance_unlock( &iop->pathinfo );               
  } else {                                                            
    errno = EROFS;                                                    
ffc2476c:	48 01 2f 8d 	bl      ffc376f8 <__errno>                     <== NOT EXECUTED
ffc24770:	39 20 00 1e 	li      r9,30                                  <== NOT EXECUTED
ffc24774:	91 23 00 00 	stw     r9,0(r3)                               
    rv = -1;                                                          
ffc24778:	3b c0 ff ff 	li      r30,-1                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc2477c:	39 61 00 18 	addi    r11,r1,24                              
ffc24780:	7f c3 f3 78 	mr      r3,r30                                 
ffc24784:	48 02 f0 74 	b       ffc537f8 <_restgpr_30_x>               
                                                                      

ffc30f48 <fcntl>: int fcntl( int fd, int cmd, ... ) {
ffc30f48:	94 21 ff c0 	stwu    r1,-64(r1)                             
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
ffc30f4c:	39 20 00 02 	li      r9,2                                   
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
ffc30f50:	7c 08 02 a6 	mflr    r0                                     
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
ffc30f54:	99 21 00 08 	stb     r9,8(r1)                               
ffc30f58:	39 21 00 48 	addi    r9,r1,72                               
ffc30f5c:	91 21 00 0c 	stw     r9,12(r1)                              
ffc30f60:	39 21 00 10 	addi    r9,r1,16                               
ffc30f64:	91 21 00 10 	stw     r9,16(r1)                              
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc30f68:	3d 20 00 00 	lis     r9,0                                   
ffc30f6c:	81 29 27 78 	lwz     r9,10104(r9)                           
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
ffc30f70:	90 01 00 44 	stw     r0,68(r1)                              
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc30f74:	7f 83 48 40 	cmplw   cr7,r3,r9                              
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
ffc30f78:	bf 61 00 2c 	stmw    r27,44(r1)                             
ffc30f7c:	90 a1 00 18 	stw     r5,24(r1)                              
ffc30f80:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc30f84:	90 e1 00 20 	stw     r7,32(r1)                              
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc30f88:	41 bc 00 08 	blt+    cr7,ffc30f90 <fcntl+0x48>              
ffc30f8c:	48 00 00 20 	b       ffc30fac <fcntl+0x64>                  
  iop = rtems_libio_iop( fd );                                        
ffc30f90:	3d 20 00 00 	lis     r9,0                                   
ffc30f94:	1c 63 00 38 	mulli   r3,r3,56                               
ffc30f98:	83 c9 28 24 	lwz     r30,10276(r9)                          
ffc30f9c:	7f de 1a 14 	add     r30,r30,r3                             
  rtems_libio_check_is_open(iop);                                     
ffc30fa0:	80 7e 00 10 	lwz     r3,16(r30)                             
ffc30fa4:	70 69 01 00 	andi.   r9,r3,256                              
ffc30fa8:	40 a2 00 10 	bne+    ffc30fb8 <fcntl+0x70>                  
ffc30fac:	4b ff 02 21 	bl      ffc211cc <__errno>                     
ffc30fb0:	39 20 00 09 	li      r9,9                                   
ffc30fb4:	48 00 01 d4 	b       ffc31188 <fcntl+0x240>                 
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
ffc30fb8:	2b 84 00 09 	cmplwi  cr7,r4,9                               
ffc30fbc:	7c 9c 23 78 	mr      r28,r4                                 
ffc30fc0:	41 9d 01 c0 	bgt-    cr7,ffc31180 <fcntl+0x238>             
ffc30fc4:	3d 20 ff c3 	lis     r9,-61                                 
ffc30fc8:	39 29 70 30 	addi    r9,r9,28720                            
ffc30fcc:	54 8a 10 3a 	rlwinm  r10,r4,2,0,29                          
ffc30fd0:	7d 49 50 2e 	lwzx    r10,r9,r10                             
ffc30fd4:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc30fd8:	7d 29 03 a6 	mtctr   r9                                     
ffc30fdc:	4e 80 04 20 	bctr                                           
    case F_DUPFD:        /* dup */                                    
      fd2 = va_arg( ap, int );                                        
ffc30fe0:	89 21 00 08 	lbz     r9,8(r1)                               
ffc30fe4:	2b 89 00 07 	cmplwi  cr7,r9,7                               
ffc30fe8:	41 9d 00 10 	bgt-    cr7,ffc30ff8 <fcntl+0xb0>              <== NEVER TAKEN
ffc30fec:	39 29 00 01 	addi    r9,r9,1                                
ffc30ff0:	99 21 00 08 	stb     r9,8(r1)                               
ffc30ff4:	48 00 00 10 	b       ffc31004 <fcntl+0xbc>                  
ffc30ff8:	81 21 00 0c 	lwz     r9,12(r1)                              <== NOT EXECUTED
ffc30ffc:	39 29 00 04 	addi    r9,r9,4                                <== NOT EXECUTED
ffc31000:	91 21 00 0c 	stw     r9,12(r1)                              <== NOT EXECUTED
                                                                      
  /*                                                                  
   * FIXME: We ignore the start value fd2 for the file descriptor search.  This
   * is not POSIX conform.                                            
   */                                                                 
  rtems_libio_t *diop = rtems_libio_allocate();                       
ffc31004:	4b fd 7f 31 	bl      ffc08f34 <rtems_libio_allocate>        
                                                                      
  if (diop != NULL) {                                                 
ffc31008:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc3100c:	41 82 01 b4 	beq-    ffc311c0 <fcntl+0x278>                 
    int oflag = rtems_libio_to_fcntl_flags( iop->flags );             
ffc31010:	80 7e 00 10 	lwz     r3,16(r30)                             
ffc31014:	4b fd 7e d5 	bl      ffc08ee8 <rtems_libio_to_fcntl_flags>  
                                                                      
    oflag &= ~O_CREAT;                                                
    diop->flags |= rtems_libio_fcntl_flags( oflag );                  
ffc31018:	83 7d 00 10 	lwz     r27,16(r29)                            
  rtems_libio_t *diop = rtems_libio_allocate();                       
                                                                      
  if (diop != NULL) {                                                 
    int oflag = rtems_libio_to_fcntl_flags( iop->flags );             
                                                                      
    oflag &= ~O_CREAT;                                                
ffc3101c:	54 7f 05 ea 	rlwinm  r31,r3,0,23,21                         
    diop->flags |= rtems_libio_fcntl_flags( oflag );                  
ffc31020:	7f e3 fb 78 	mr      r3,r31                                 
ffc31024:	4b fd 7e 81 	bl      ffc08ea4 <rtems_libio_fcntl_flags>     
ffc31028:	7c 63 db 78 	or      r3,r3,r27                              
ffc3102c:	90 7d 00 10 	stw     r3,16(r29)                             
  int cmd,                                                            
  int arg                                                             
)                                                                     
{                                                                     
  return fcntl( fd, cmd, arg );                                       
}                                                                     
ffc31030:	80 7e 00 28 	lwz     r3,40(r30)                             
  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 );                               
ffc31034:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc31038:	81 29 00 00 	lwz     r9,0(r9)                               
ffc3103c:	7d 29 03 a6 	mtctr   r9                                     
ffc31040:	4e 80 04 21 	bctrl                                          
                                                                      
    oflag &= ~O_CREAT;                                                
    diop->flags |= rtems_libio_fcntl_flags( oflag );                  
                                                                      
    rtems_filesystem_instance_lock( &iop->pathinfo );                 
    rtems_filesystem_location_clone( &diop->pathinfo, &iop->pathinfo );
ffc31044:	38 9e 00 14 	addi    r4,r30,20                              
ffc31048:	38 7d 00 14 	addi    r3,r29,20                              
ffc3104c:	4b fe 68 89 	bl      ffc178d4 <rtems_filesystem_location_clone>
  int cmd,                                                            
  int arg                                                             
)                                                                     
{                                                                     
  return fcntl( fd, cmd, arg );                                       
}                                                                     
ffc31050:	80 7e 00 28 	lwz     r3,40(r30)                             
  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 );                             
ffc31054:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc31058:	81 29 00 04 	lwz     r9,4(r9)                               
ffc3105c:	7d 29 03 a6 	mtctr   r9                                     
ffc31060:	4e 80 04 21 	bctrl                                          
    /*                                                                
     * 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 );  
ffc31064:	81 3d 00 24 	lwz     r9,36(r29)                             
ffc31068:	7f e5 fb 78 	mr      r5,r31                                 
ffc3106c:	81 29 00 00 	lwz     r9,0(r9)                               
ffc31070:	7f a3 eb 78 	mr      r3,r29                                 
ffc31074:	38 80 00 00 	li      r4,0                                   
ffc31078:	38 c0 00 00 	li      r6,0                                   
ffc3107c:	7d 29 03 a6 	mtctr   r9                                     
ffc31080:	4e 80 04 21 	bctrl                                          
    if ( rv == 0 ) {                                                  
ffc31084:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc31088:	40 82 00 24 	bne-    ffc310ac <fcntl+0x164>                 <== NEVER TAKEN
      rv = diop - rtems_libio_iops;                                   
ffc3108c:	3d 20 00 00 	lis     r9,0                                   
ffc31090:	83 e9 28 24 	lwz     r31,10276(r9)                          
ffc31094:	3d 20 b6 db 	lis     r9,-18725                              
ffc31098:	61 29 6d b7 	ori     r9,r9,28087                            
ffc3109c:	7f ff e8 50 	subf    r31,r31,r29                            
ffc310a0:	7f ff 1e 70 	srawi   r31,r31,3                              
ffc310a4:	7f ff 49 d6 	mullw   r31,r31,r9                             
ffc310a8:	48 00 00 e8 	b       ffc31190 <fcntl+0x248>                 
    } else {                                                          
      rtems_libio_free( diop );                                       
ffc310ac:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc310b0:	4b fd 7e f5 	bl      ffc08fa4 <rtems_libio_free>            <== NOT EXECUTED
ffc310b4:	48 00 00 dc 	b       ffc31190 <fcntl+0x248>                 <== 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);          
ffc310b8:	54 7f af fe 	rlwinm  r31,r3,21,31,31                        
ffc310bc:	48 00 00 dc 	b       ffc31198 <fcntl+0x250>                 
       *  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 ) )                                        
ffc310c0:	89 41 00 08 	lbz     r10,8(r1)                              
ffc310c4:	2b 8a 00 07 	cmplwi  cr7,r10,7                              
ffc310c8:	41 9d 00 1c 	bgt-    cr7,ffc310e4 <fcntl+0x19c>             <== NEVER TAKEN
ffc310cc:	81 21 00 10 	lwz     r9,16(r1)                              
ffc310d0:	55 48 10 3a 	rlwinm  r8,r10,2,0,29                          
ffc310d4:	39 4a 00 01 	addi    r10,r10,1                              
ffc310d8:	7d 29 42 14 	add     r9,r9,r8                               
ffc310dc:	99 41 00 08 	stb     r10,8(r1)                              
ffc310e0:	48 00 00 10 	b       ffc310f0 <fcntl+0x1a8>                 
ffc310e4:	81 21 00 0c 	lwz     r9,12(r1)                              <== NOT EXECUTED
ffc310e8:	39 49 00 04 	addi    r10,r9,4                               <== NOT EXECUTED
ffc310ec:	91 41 00 0c 	stw     r10,12(r1)                             <== NOT EXECUTED
ffc310f0:	81 29 00 00 	lwz     r9,0(r9)                               
ffc310f4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc310f8:	41 9e 00 0c 	beq-    cr7,ffc31104 <fcntl+0x1bc>             
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
ffc310fc:	60 63 08 00 	ori     r3,r3,2048                             
ffc31100:	48 00 00 08 	b       ffc31108 <fcntl+0x1c0>                 
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
ffc31104:	54 63 05 66 	rlwinm  r3,r3,0,21,19                          
ffc31108:	90 7e 00 10 	stw     r3,16(r30)                             
ffc3110c:	48 00 00 60 	b       ffc3116c <fcntl+0x224>                 
      break;                                                          
                                                                      
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
ffc31110:	4b fd 7d d9 	bl      ffc08ee8 <rtems_libio_to_fcntl_flags>  
ffc31114:	7c 7f 1b 78 	mr      r31,r3                                 
ffc31118:	48 00 00 78 	b       ffc31190 <fcntl+0x248>                 
      break;                                                          
                                                                      
    case F_SETFL:                                                     
      flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );           
ffc3111c:	89 41 00 08 	lbz     r10,8(r1)                              
ffc31120:	2b 8a 00 07 	cmplwi  cr7,r10,7                              
ffc31124:	41 9d 00 1c 	bgt-    cr7,ffc31140 <fcntl+0x1f8>             <== NEVER TAKEN
ffc31128:	81 21 00 10 	lwz     r9,16(r1)                              
ffc3112c:	55 48 10 3a 	rlwinm  r8,r10,2,0,29                          
ffc31130:	39 4a 00 01 	addi    r10,r10,1                              
ffc31134:	7d 29 42 14 	add     r9,r9,r8                               
ffc31138:	99 41 00 08 	stb     r10,8(r1)                              
ffc3113c:	48 00 00 10 	b       ffc3114c <fcntl+0x204>                 
ffc31140:	81 21 00 0c 	lwz     r9,12(r1)                              <== NOT EXECUTED
ffc31144:	39 49 00 04 	addi    r10,r9,4                               <== NOT EXECUTED
ffc31148:	91 41 00 0c 	stw     r10,12(r1)                             <== NOT EXECUTED
ffc3114c:	80 69 00 00 	lwz     r3,0(r9)                               
ffc31150:	4b fd 7d 55 	bl      ffc08ea4 <rtems_libio_fcntl_flags>     
                                                                      
      /*                                                              
       *  XXX If we are turning on append, should we seek to the end? 
       */                                                             
                                                                      
      iop->flags = (iop->flags & ~mask) | (flags & mask);             
ffc31154:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc31158:	70 63 02 01 	andi.   r3,r3,513                              
ffc3115c:	39 40 fd fe 	li      r10,-514                               
ffc31160:	7d 49 48 38 	and     r9,r10,r9                              
ffc31164:	7c 69 4b 78 	or      r9,r3,r9                               
ffc31168:	91 3e 00 10 	stw     r9,16(r30)                             
{                                                                     
  rtems_libio_t *iop;                                                 
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
ffc3116c:	3b e0 00 00 	li      r31,0                                  
ffc31170:	48 00 00 28 	b       ffc31198 <fcntl+0x250>                 
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    case F_GETOWN:       /*  for sockets. */                          
      errno = ENOTSUP;                                                
ffc31174:	4b ff 00 59 	bl      ffc211cc <__errno>                     
ffc31178:	39 20 00 86 	li      r9,134                                 
ffc3117c:	48 00 00 0c 	b       ffc31188 <fcntl+0x240>                 
      ret = -1;                                                       
      break;                                                          
                                                                      
    default:                                                          
      errno = EINVAL;                                                 
ffc31180:	4b ff 00 4d 	bl      ffc211cc <__errno>                     
ffc31184:	39 20 00 16 	li      r9,22                                  
ffc31188:	91 23 00 00 	stw     r9,0(r3)                               
ffc3118c:	48 00 00 34 	b       ffc311c0 <fcntl+0x278>                 
  /*                                                                  
   *  If we got this far successfully, then we give the optional      
   *  filesystem specific handler a chance to process this.           
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
ffc31190:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc31194:	41 9c 00 30 	blt-    cr7,ffc311c4 <fcntl+0x27c>             <== NEVER TAKEN
    int err = (*iop->pathinfo.handlers->fcntl_h)( iop, cmd );         
ffc31198:	81 3e 00 24 	lwz     r9,36(r30)                             
ffc3119c:	7f c3 f3 78 	mr      r3,r30                                 
ffc311a0:	7f 84 e3 78 	mr      r4,r28                                 
ffc311a4:	81 29 00 28 	lwz     r9,40(r9)                              
ffc311a8:	7d 29 03 a6 	mtctr   r9                                     
ffc311ac:	4e 80 04 21 	bctrl                                          
    if (err) {                                                        
ffc311b0:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc311b4:	41 a2 00 10 	beq+    ffc311c4 <fcntl+0x27c>                 <== ALWAYS TAKEN
      errno = err;                                                    
ffc311b8:	4b ff 00 15 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc311bc:	93 c3 00 00 	stw     r30,0(r3)                              <== NOT EXECUTED
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open(iop);                                     
ffc311c0:	3b e0 ff ff 	li      r31,-1                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
ffc311c4:	39 61 00 40 	addi    r11,r1,64                              
ffc311c8:	7f e3 fb 78 	mr      r3,r31                                 
ffc311cc:	4b fd 03 90 	b       ffc0155c <_restgpr_27_x>               
                                                                      

ffc0e8d0 <fifo_open>: int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) {
ffc0e8d0:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0e8d4:	7c 08 02 a6 	mflr    r0                                     
ffc0e8d8:	bf 61 00 1c 	stmw    r27,28(r1)                             
                                                                      
static int pipe_lock(void)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
ffc0e8dc:	3f e0 00 00 	lis     r31,0                                  
                                                                      
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
ffc0e8e0:	7c 7d 1b 78 	mr      r29,r3                                 
                                                                      
static int pipe_lock(void)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
ffc0e8e4:	81 3f 29 a4 	lwz     r9,10660(r31)                          
                                                                      
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
ffc0e8e8:	7c 9c 23 78 	mr      r28,r4                                 
ffc0e8ec:	90 01 00 34 	stw     r0,52(r1)                              
                                                                      
static int pipe_lock(void)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
ffc0e8f0:	3b df 29 a4 	addi    r30,r31,10660                          
ffc0e8f4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e8f8:	41 9e 00 24 	beq-    cr7,ffc0e91c <fifo_open+0x4c>          
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
    sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc0e8fc:	3d 20 00 00 	lis     r9,0                                   
ffc0e900:	80 69 29 a4 	lwz     r3,10660(r9)                           
ffc0e904:	38 80 00 00 	li      r4,0                                   
ffc0e908:	38 a0 00 00 	li      r5,0                                   
ffc0e90c:	4b ff b5 25 	bl      ffc09e30 <rtems_semaphore_obtain>      
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
ffc0e910:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e914:	41 be 03 68 	beq+    cr7,ffc0ec7c <fifo_open+0x3ac>         <== ALWAYS TAKEN
ffc0e918:	48 00 00 5c 	b       ffc0e974 <fifo_open+0xa4>              <== NOT EXECUTED
 */                                                                   
#include <rtems/userenv.h>                                            
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
ffc0e91c:	3d 20 00 00 	lis     r9,0                                   
ffc0e920:	80 69 27 ec 	lwz     r3,10220(r9)                           
ffc0e924:	38 80 00 00 	li      r4,0                                   
ffc0e928:	38 a0 00 00 	li      r5,0                                   
ffc0e92c:	4b ff b5 05 	bl      ffc09e30 <rtems_semaphore_obtain>      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
ffc0e930:	81 3f 29 a4 	lwz     r9,10660(r31)                          
  free(pipe);                                                         
}                                                                     
                                                                      
static int pipe_lock(void)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc0e934:	3b e0 00 00 	li      r31,0                                  
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
ffc0e938:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e93c:	40 be 00 24 	bne+    cr7,ffc0e960 <fifo_open+0x90>          <== NEVER TAKEN
      sc = rtems_semaphore_create(                                    
ffc0e940:	3c 60 50 49 	lis     r3,20553                               
ffc0e944:	60 63 50 45 	ori     r3,r3,20549                            
ffc0e948:	38 80 00 01 	li      r4,1                                   
ffc0e94c:	38 a0 00 54 	li      r5,84                                  
ffc0e950:	38 c0 00 00 	li      r6,0                                   
ffc0e954:	7f c7 f3 78 	mr      r7,r30                                 
ffc0e958:	4b ff b2 55 	bl      ffc09bac <rtems_semaphore_create>      
ffc0e95c:	7c 7f 1b 78 	mr      r31,r3                                 
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
ffc0e960:	3d 20 00 00 	lis     r9,0                                   
ffc0e964:	80 69 27 ec 	lwz     r3,10220(r9)                           
ffc0e968:	4b ff b5 ed 	bl      ffc09f54 <rtems_semaphore_release>     
    }                                                                 
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
ffc0e96c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0e970:	41 be ff 8c 	beq-    cr7,ffc0e8fc <fifo_open+0x2c>          
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
    return 0;                                                         
  } else {                                                            
    return -ENOMEM;                                                   
ffc0e974:	3b c0 ff f4 	li      r30,-12                                
ffc0e978:	48 00 03 28 	b       ffc0eca0 <fifo_open+0x3d0>             
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
ffc0e97c:	38 60 00 34 	li      r3,52                                  
ffc0e980:	4b ff 6f e1 	bl      ffc05960 <malloc>                      
  if (pipe == NULL)                                                   
ffc0e984:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0e988:	41 82 03 04 	beq-    ffc0ec8c <fifo_open+0x3bc>             <== NEVER TAKEN
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
ffc0e98c:	38 80 00 00 	li      r4,0                                   
ffc0e990:	38 a0 00 34 	li      r5,52                                  
ffc0e994:	48 00 3c 09 	bl      ffc1259c <memset>                      
                                                                      
  pipe->Size = PIPE_BUF;                                              
ffc0e998:	39 20 02 00 	li      r9,512                                 
ffc0e99c:	91 3f 00 04 	stw     r9,4(r31)                              
  pipe->Buffer = malloc(pipe->Size);                                  
ffc0e9a0:	38 60 02 00 	li      r3,512                                 
ffc0e9a4:	4b ff 6f bd 	bl      ffc05960 <malloc>                      
  if (! pipe->Buffer)                                                 
ffc0e9a8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  if (pipe == NULL)                                                   
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
                                                                      
  pipe->Size = PIPE_BUF;                                              
  pipe->Buffer = malloc(pipe->Size);                                  
ffc0e9ac:	90 7f 00 00 	stw     r3,0(r31)                              
  if (! pipe->Buffer)                                                 
ffc0e9b0:	41 9e 00 a4 	beq-    cr7,ffc0ea54 <fifo_open+0x184>         <== NEVER TAKEN
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
        rtems_build_name ('P', 'I', 'r', c),                          
ffc0e9b4:	3f c0 00 00 	lis     r30,0                                  
ffc0e9b8:	88 7e 22 14 	lbz     r3,8724(r30)                           
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
ffc0e9bc:	38 80 00 00 	li      r4,0                                   
ffc0e9c0:	38 a0 00 00 	li      r5,0                                   
ffc0e9c4:	64 63 50 49 	oris    r3,r3,20553                            
ffc0e9c8:	60 63 72 00 	ori     r3,r3,29184                            
ffc0e9cc:	38 df 00 2c 	addi    r6,r31,44                              
ffc0e9d0:	48 00 10 ad 	bl      ffc0fa7c <rtems_barrier_create>        
ffc0e9d4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e9d8:	40 9e 00 74 	bne-    cr7,ffc0ea4c <fifo_open+0x17c>         
        rtems_build_name ('P', 'I', 'r', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->readBarrier) != RTEMS_SUCCESSFUL)                      
    goto err_rbar;                                                    
  if (rtems_barrier_create(                                           
        rtems_build_name ('P', 'I', 'w', c),                          
ffc0e9dc:	88 7e 22 14 	lbz     r3,8724(r30)                           
  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(                                           
ffc0e9e0:	38 80 00 00 	li      r4,0                                   
ffc0e9e4:	38 a0 00 00 	li      r5,0                                   
ffc0e9e8:	64 63 50 49 	oris    r3,r3,20553                            
ffc0e9ec:	60 63 77 00 	ori     r3,r3,30464                            
ffc0e9f0:	38 df 00 30 	addi    r6,r31,48                              
ffc0e9f4:	48 00 10 89 	bl      ffc0fa7c <rtems_barrier_create>        
ffc0e9f8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e9fc:	40 9e 00 48 	bne-    cr7,ffc0ea44 <fifo_open+0x174>         
        rtems_build_name ('P', 'I', 'w', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->writeBarrier) != RTEMS_SUCCESSFUL)                     
    goto err_wbar;                                                    
  if (rtems_semaphore_create(                                         
        rtems_build_name ('P', 'I', 's', c), 1,                       
ffc0ea00:	88 7e 22 14 	lbz     r3,8724(r30)                           
  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(                                         
ffc0ea04:	38 80 00 01 	li      r4,1                                   
ffc0ea08:	38 a0 00 10 	li      r5,16                                  
ffc0ea0c:	64 63 50 49 	oris    r3,r3,20553                            
ffc0ea10:	60 63 73 00 	ori     r3,r3,29440                            
ffc0ea14:	38 c0 00 00 	li      r6,0                                   
ffc0ea18:	38 ff 00 28 	addi    r7,r31,40                              
ffc0ea1c:	4b ff b1 91 	bl      ffc09bac <rtems_semaphore_create>      
ffc0ea20:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ea24:	40 9e 00 18 	bne-    cr7,ffc0ea3c <fifo_open+0x16c>         
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
ffc0ea28:	89 3e 22 14 	lbz     r9,8724(r30)                           
ffc0ea2c:	2f 89 00 7a 	cmpwi   cr7,r9,122                             
ffc0ea30:	40 be 02 64 	bne+    cr7,ffc0ec94 <fifo_open+0x3c4>         
    c = 'a';                                                          
ffc0ea34:	39 20 00 61 	li      r9,97                                  
ffc0ea38:	48 00 02 60 	b       ffc0ec98 <fifo_open+0x3c8>             
  return 0;                                                           
                                                                      
err_sem:                                                              
  rtems_barrier_delete(pipe->writeBarrier);                           
ffc0ea3c:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0ea40:	48 00 11 09 	bl      ffc0fb48 <rtems_barrier_delete>        
err_wbar:                                                             
  rtems_barrier_delete(pipe->readBarrier);                            
ffc0ea44:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc0ea48:	48 00 11 01 	bl      ffc0fb48 <rtems_barrier_delete>        
err_rbar:                                                             
  free(pipe->Buffer);                                                 
ffc0ea4c:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc0ea50:	4b ff 6a 59 	bl      ffc054a8 <free>                        
err_buf:                                                              
  free(pipe);                                                         
ffc0ea54:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ea58:	4b ff 6a 51 	bl      ffc054a8 <free>                        
ffc0ea5c:	48 00 02 30 	b       ffc0ec8c <fifo_open+0x3bc>             
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc0ea60:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0ea64:	38 80 00 00 	li      r4,0                                   
ffc0ea68:	38 a0 00 00 	li      r5,0                                   
ffc0ea6c:	4b ff b3 c5 	bl      ffc09e30 <rtems_semaphore_obtain>      
    err = -EINTR;                                                     
ffc0ea70:	3b c0 ff fc 	li      r30,-4                                 
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc0ea74:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ea78:	40 9e 00 08 	bne-    cr7,ffc0ea80 <fifo_open+0x1b0>         <== NEVER TAKEN
ffc0ea7c:	3b c0 00 00 	li      r30,0                                  
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
ffc0ea80:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc0ea84:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ea88:	40 be 00 1c 	bne+    cr7,ffc0eaa4 <fifo_open+0x1d4>         
    if (err)                                                          
ffc0ea8c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0ea90:	41 be 00 10 	beq+    cr7,ffc0eaa0 <fifo_open+0x1d0>         <== ALWAYS TAKEN
      pipe_free(pipe);                                                
ffc0ea94:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0ea98:	4b ff fd 2d 	bl      ffc0e7c4 <pipe_free>                   <== NOT EXECUTED
ffc0ea9c:	48 00 00 08 	b       ffc0eaa4 <fifo_open+0x1d4>             <== NOT EXECUTED
    else                                                              
      *pipep = pipe;                                                  
ffc0eaa0:	93 fd 00 00 	stw     r31,0(r29)                             
#ifdef RTEMS_DEBUG                                                    
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc =                                                                
#endif                                                                
   rtems_semaphore_release(pipe_semaphore);                           
ffc0eaa4:	3d 20 00 00 	lis     r9,0                                   
ffc0eaa8:	80 69 29 a4 	lwz     r3,10660(r9)                           
ffc0eaac:	4b ff b4 a9 	bl      ffc09f54 <rtems_semaphore_release>     
  pipe_control_t *pipe;                                               
  unsigned int prevCounter;                                           
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
ffc0eab0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0eab4:	40 9e 01 ec 	bne-    cr7,ffc0eca0 <fifo_open+0x3d0>         
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
ffc0eab8:	81 3c 00 10 	lwz     r9,16(r28)                             
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
    return err;                                                       
  pipe = *pipep;                                                      
ffc0eabc:	83 fd 00 00 	lwz     r31,0(r29)                             
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
ffc0eac0:	55 29 07 7c 	rlwinm  r9,r9,0,29,30                          
ffc0eac4:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc0eac8:	41 9e 00 a0 	beq-    cr7,ffc0eb68 <fifo_open+0x298>         
ffc0eacc:	2f 89 00 06 	cmpwi   cr7,r9,6                               
ffc0ead0:	41 9e 01 34 	beq-    cr7,ffc0ec04 <fifo_open+0x334>         
ffc0ead4:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc0ead8:	40 be 01 84 	bne+    cr7,ffc0ec5c <fifo_open+0x38c>         <== NEVER TAKEN
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
ffc0eadc:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc0eae0:	39 29 00 01 	addi    r9,r9,1                                
ffc0eae4:	91 3f 00 20 	stw     r9,32(r31)                             
      if (pipe->Readers ++ == 0)                                      
ffc0eae8:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0eaec:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0eaf0:	39 49 00 01 	addi    r10,r9,1                               
ffc0eaf4:	91 5f 00 10 	stw     r10,16(r31)                            
ffc0eaf8:	40 be 00 10 	bne+    cr7,ffc0eb08 <fifo_open+0x238>         <== NEVER TAKEN
        PIPE_WAKEUPWRITERS(pipe);                                     
ffc0eafc:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0eb00:	38 81 00 08 	addi    r4,r1,8                                
ffc0eb04:	48 00 10 e5 	bl      ffc0fbe8 <rtems_barrier_release>       
                                                                      
      if (pipe->Writers == 0) {                                       
ffc0eb08:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0eb0c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0eb10:	40 9e 01 4c 	bne-    cr7,ffc0ec5c <fifo_open+0x38c>         
        /* Not an error */                                            
        if (LIBIO_NODELAY(iop))                                       
ffc0eb14:	81 3c 00 10 	lwz     r9,16(r28)                             
ffc0eb18:	71 2a 00 01 	andi.   r10,r9,1                               
ffc0eb1c:	40 82 01 40 	bne-    ffc0ec5c <fifo_open+0x38c>             
          break;                                                      
                                                                      
        prevCounter = pipe->writerCounter;                            
ffc0eb20:	83 7f 00 24 	lwz     r27,36(r31)                            
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
ffc0eb24:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0eb28:	4b ff b4 2d 	bl      ffc09f54 <rtems_semaphore_release>     
          if (! PIPE_READWAIT(pipe))                                  
ffc0eb2c:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc0eb30:	38 80 00 00 	li      r4,0                                   
ffc0eb34:	48 00 11 25 	bl      ffc0fc58 <rtems_barrier_wait>          
ffc0eb38:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0eb3c:	40 9e 01 2c 	bne-    cr7,ffc0ec68 <fifo_open+0x398>         <== NEVER TAKEN
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
ffc0eb40:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0eb44:	38 80 00 00 	li      r4,0                                   
ffc0eb48:	38 a0 00 00 	li      r5,0                                   
ffc0eb4c:	4b ff b2 e5 	bl      ffc09e30 <rtems_semaphore_obtain>      
ffc0eb50:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0eb54:	40 9e 01 14 	bne-    cr7,ffc0ec68 <fifo_open+0x398>         <== NEVER TAKEN
            goto out_error;                                           
        } while (prevCounter == pipe->writerCounter);                 
ffc0eb58:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc0eb5c:	7f 9b 48 00 	cmpw    cr7,r27,r9                             
ffc0eb60:	41 9e ff c4 	beq+    cr7,ffc0eb24 <fifo_open+0x254>         <== NEVER TAKEN
ffc0eb64:	48 00 00 f8 	b       ffc0ec5c <fifo_open+0x38c>             
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
ffc0eb68:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc0eb6c:	39 29 00 01 	addi    r9,r9,1                                
ffc0eb70:	91 3f 00 24 	stw     r9,36(r31)                             
                                                                      
      if (pipe->Writers ++ == 0)                                      
ffc0eb74:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0eb78:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0eb7c:	39 49 00 01 	addi    r10,r9,1                               
ffc0eb80:	91 5f 00 14 	stw     r10,20(r31)                            
ffc0eb84:	40 be 00 10 	bne+    cr7,ffc0eb94 <fifo_open+0x2c4>         <== NEVER TAKEN
        PIPE_WAKEUPREADERS(pipe);                                     
ffc0eb88:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc0eb8c:	38 81 00 08 	addi    r4,r1,8                                
ffc0eb90:	48 00 10 59 	bl      ffc0fbe8 <rtems_barrier_release>       
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
ffc0eb94:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0eb98:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0eb9c:	40 9e 00 c0 	bne-    cr7,ffc0ec5c <fifo_open+0x38c>         
ffc0eba0:	81 3c 00 10 	lwz     r9,16(r28)                             
ffc0eba4:	71 2a 00 01 	andi.   r10,r9,1                               
ffc0eba8:	41 a2 00 14 	beq+    ffc0ebbc <fifo_open+0x2ec>             
	PIPE_UNLOCK(pipe);                                                   
ffc0ebac:	80 7f 00 28 	lwz     r3,40(r31)                             
        err = -ENXIO;                                                 
ffc0ebb0:	3b c0 ff fa 	li      r30,-6                                 
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
	PIPE_UNLOCK(pipe);                                                   
ffc0ebb4:	4b ff b3 a1 	bl      ffc09f54 <rtems_semaphore_release>     
        err = -ENXIO;                                                 
        goto out_error;                                               
ffc0ebb8:	48 00 00 b4 	b       ffc0ec6c <fifo_open+0x39c>             
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
ffc0ebbc:	83 7f 00 20 	lwz     r27,32(r31)                            
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
ffc0ebc0:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0ebc4:	4b ff b3 91 	bl      ffc09f54 <rtems_semaphore_release>     
          if (! PIPE_WRITEWAIT(pipe))                                 
ffc0ebc8:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0ebcc:	38 80 00 00 	li      r4,0                                   
ffc0ebd0:	48 00 10 89 	bl      ffc0fc58 <rtems_barrier_wait>          
ffc0ebd4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ebd8:	40 9e 00 90 	bne-    cr7,ffc0ec68 <fifo_open+0x398>         <== NEVER TAKEN
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
ffc0ebdc:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0ebe0:	38 80 00 00 	li      r4,0                                   
ffc0ebe4:	38 a0 00 00 	li      r5,0                                   
ffc0ebe8:	4b ff b2 49 	bl      ffc09e30 <rtems_semaphore_obtain>      
ffc0ebec:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ebf0:	40 9e 00 78 	bne-    cr7,ffc0ec68 <fifo_open+0x398>         <== NEVER TAKEN
            goto out_error;                                           
        } while (prevCounter == pipe->readerCounter);                 
ffc0ebf4:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc0ebf8:	7f 9b 48 00 	cmpw    cr7,r27,r9                             
ffc0ebfc:	41 9e ff c4 	beq+    cr7,ffc0ebc0 <fifo_open+0x2f0>         <== NEVER TAKEN
ffc0ec00:	48 00 00 5c 	b       ffc0ec5c <fifo_open+0x38c>             
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
ffc0ec04:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc0ec08:	39 29 00 01 	addi    r9,r9,1                                
ffc0ec0c:	91 3f 00 20 	stw     r9,32(r31)                             
      if (pipe->Readers ++ == 0)                                      
ffc0ec10:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0ec14:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ec18:	39 49 00 01 	addi    r10,r9,1                               
ffc0ec1c:	91 5f 00 10 	stw     r10,16(r31)                            
ffc0ec20:	40 be 00 10 	bne+    cr7,ffc0ec30 <fifo_open+0x360>         <== NEVER TAKEN
        PIPE_WAKEUPWRITERS(pipe);                                     
ffc0ec24:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0ec28:	38 81 00 08 	addi    r4,r1,8                                
ffc0ec2c:	48 00 0f bd 	bl      ffc0fbe8 <rtems_barrier_release>       
      pipe->writerCounter ++;                                         
ffc0ec30:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc0ec34:	39 29 00 01 	addi    r9,r9,1                                
ffc0ec38:	91 3f 00 24 	stw     r9,36(r31)                             
      if (pipe->Writers ++ == 0)                                      
ffc0ec3c:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0ec40:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ec44:	39 49 00 01 	addi    r10,r9,1                               
ffc0ec48:	91 5f 00 14 	stw     r10,20(r31)                            
ffc0ec4c:	40 be 00 10 	bne+    cr7,ffc0ec5c <fifo_open+0x38c>         <== NEVER TAKEN
        PIPE_WAKEUPREADERS(pipe);                                     
ffc0ec50:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc0ec54:	38 81 00 08 	addi    r4,r1,8                                
ffc0ec58:	48 00 0f 91 	bl      ffc0fbe8 <rtems_barrier_release>       
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
ffc0ec5c:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0ec60:	4b ff b2 f5 	bl      ffc09f54 <rtems_semaphore_release>     
  return 0;                                                           
ffc0ec64:	48 00 00 3c 	b       ffc0eca0 <fifo_open+0x3d0>             
        /* Not an error */                                            
        if (LIBIO_NODELAY(iop))                                       
          break;                                                      
                                                                      
        prevCounter = pipe->writerCounter;                            
        err = -EINTR;                                                 
ffc0ec68:	3b c0 ff fc 	li      r30,-4                                 <== NOT EXECUTED
                                                                      
  PIPE_UNLOCK(pipe);                                                  
  return 0;                                                           
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
ffc0ec6c:	7f a3 eb 78 	mr      r3,r29                                 
ffc0ec70:	7f 84 e3 78 	mr      r4,r28                                 
ffc0ec74:	4b ff fb a1 	bl      ffc0e814 <pipe_release>                
  return err;                                                         
ffc0ec78:	48 00 00 28 	b       ffc0eca0 <fifo_open+0x3d0>             
                                                                      
  err = pipe_lock();                                                  
  if (err)                                                            
    return err;                                                       
                                                                      
  pipe = *pipep;                                                      
ffc0ec7c:	83 fd 00 00 	lwz     r31,0(r29)                             
  if (pipe == NULL) {                                                 
ffc0ec80:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0ec84:	40 9e fd dc 	bne+    cr7,ffc0ea60 <fifo_open+0x190>         
ffc0ec88:	4b ff fc f4 	b       ffc0e97c <fifo_open+0xac>              
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
ffc0ec8c:	3b c0 ff f4 	li      r30,-12                                
ffc0ec90:	4b ff fe 14 	b       ffc0eaa4 <fifo_open+0x1d4>             
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
ffc0ec94:	39 29 00 01 	addi    r9,r9,1                                
ffc0ec98:	99 3e 22 14 	stb     r9,8724(r30)                           
ffc0ec9c:	4b ff fd c4 	b       ffc0ea60 <fifo_open+0x190>             
  return 0;                                                           
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
  return err;                                                         
}                                                                     
ffc0eca0:	39 61 00 30 	addi    r11,r1,48                              
ffc0eca4:	7f c3 f3 78 	mr      r3,r30                                 
ffc0eca8:	48 01 0a d8 	b       ffc1f780 <_restgpr_27_x>               
                                                                      

ffc0ac38 <fpathconf>: { long return_value; rtems_libio_t *iop; const rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd);
ffc0ac38:	3d 20 00 00 	lis     r9,0                                   
 */                                                                   
long fpathconf(                                                       
  int   fd,                                                           
  int   name                                                          
)                                                                     
{                                                                     
ffc0ac3c:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0ac40:	7c 08 02 a6 	mflr    r0                                     
  long                                    return_value;               
  rtems_libio_t                          *iop;                        
  const rtems_filesystem_limits_and_options_t *the_limits;            
                                                                      
  rtems_libio_check_fd(fd);                                           
ffc0ac44:	81 29 26 dc 	lwz     r9,9948(r9)                            
 */                                                                   
long fpathconf(                                                       
  int   fd,                                                           
  int   name                                                          
)                                                                     
{                                                                     
ffc0ac48:	90 01 00 0c 	stw     r0,12(r1)                              
  long                                    return_value;               
  rtems_libio_t                          *iop;                        
  const rtems_filesystem_limits_and_options_t *the_limits;            
                                                                      
  rtems_libio_check_fd(fd);                                           
ffc0ac4c:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc0ac50:	41 bc 00 08 	blt+    cr7,ffc0ac58 <fpathconf+0x20>          
ffc0ac54:	48 00 00 20 	b       ffc0ac74 <fpathconf+0x3c>              
  iop = rtems_libio_iop(fd);                                          
ffc0ac58:	3d 20 00 00 	lis     r9,0                                   
ffc0ac5c:	81 29 27 88 	lwz     r9,10120(r9)                           
ffc0ac60:	1c 63 00 38 	mulli   r3,r3,56                               
ffc0ac64:	7c 69 1a 14 	add     r3,r9,r3                               
  rtems_libio_check_is_open(iop);                                     
ffc0ac68:	81 23 00 10 	lwz     r9,16(r3)                              
ffc0ac6c:	71 2a 01 00 	andi.   r10,r9,256                             
ffc0ac70:	40 a2 00 10 	bne+    ffc0ac80 <fpathconf+0x48>              <== ALWAYS TAKEN
ffc0ac74:	48 00 16 e1 	bl      ffc0c354 <__errno>                     
ffc0ac78:	39 20 00 09 	li      r9,9                                   
ffc0ac7c:	48 00 00 98 	b       ffc0ad14 <fpathconf+0xdc>              
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = iop->pathinfo.mt_entry->pathconf_limits_and_options;   
                                                                      
  switch ( name ) {                                                   
ffc0ac80:	2b 84 00 0b 	cmplwi  cr7,r4,11                              
                                                                      
  /*                                                                  
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = iop->pathinfo.mt_entry->pathconf_limits_and_options;   
ffc0ac84:	81 23 00 28 	lwz     r9,40(r3)                              
ffc0ac88:	81 29 00 2c 	lwz     r9,44(r9)                              
                                                                      
  switch ( name ) {                                                   
ffc0ac8c:	41 9d 00 80 	bgt-    cr7,ffc0ad0c <fpathconf+0xd4>          
ffc0ac90:	3d 40 ff c1 	lis     r10,-63                                
ffc0ac94:	39 4a 2e 8c 	addi    r10,r10,11916                          
ffc0ac98:	54 84 10 3a 	rlwinm  r4,r4,2,0,29                           
ffc0ac9c:	7d 0a 20 2e 	lwzx    r8,r10,r4                              
ffc0aca0:	7d 48 52 14 	add     r10,r8,r10                             
ffc0aca4:	7d 49 03 a6 	mtctr   r10                                    
ffc0aca8:	4e 80 04 20 	bctr                                           
    case _PC_LINK_MAX:                                                
      return_value = the_limits->link_max;                            
ffc0acac:	80 69 00 00 	lwz     r3,0(r9)                               
      break;                                                          
ffc0acb0:	48 00 00 6c 	b       ffc0ad1c <fpathconf+0xe4>              
    case _PC_MAX_CANON:                                               
      return_value = the_limits->max_canon;                           
ffc0acb4:	80 69 00 04 	lwz     r3,4(r9)                               
      break;                                                          
ffc0acb8:	48 00 00 64 	b       ffc0ad1c <fpathconf+0xe4>              
    case _PC_MAX_INPUT:                                               
      return_value = the_limits->max_input;                           
ffc0acbc:	80 69 00 08 	lwz     r3,8(r9)                               
      break;                                                          
ffc0acc0:	48 00 00 5c 	b       ffc0ad1c <fpathconf+0xe4>              
    case _PC_NAME_MAX:                                                
      return_value = the_limits->name_max;                            
ffc0acc4:	80 69 00 0c 	lwz     r3,12(r9)                              
      break;                                                          
ffc0acc8:	48 00 00 54 	b       ffc0ad1c <fpathconf+0xe4>              
    case _PC_PATH_MAX:                                                
      return_value = the_limits->path_max;                            
ffc0accc:	80 69 00 10 	lwz     r3,16(r9)                              
      break;                                                          
ffc0acd0:	48 00 00 4c 	b       ffc0ad1c <fpathconf+0xe4>              
    case _PC_PIPE_BUF:                                                
      return_value = the_limits->pipe_buf;                            
ffc0acd4:	80 69 00 14 	lwz     r3,20(r9)                              
      break;                                                          
ffc0acd8:	48 00 00 44 	b       ffc0ad1c <fpathconf+0xe4>              
    case _PC_CHOWN_RESTRICTED:                                        
      return_value = the_limits->posix_chown_restrictions;            
ffc0acdc:	80 69 00 1c 	lwz     r3,28(r9)                              
      break;                                                          
ffc0ace0:	48 00 00 3c 	b       ffc0ad1c <fpathconf+0xe4>              
    case _PC_NO_TRUNC:                                                
      return_value = the_limits->posix_no_trunc;                      
ffc0ace4:	80 69 00 20 	lwz     r3,32(r9)                              
      break;                                                          
ffc0ace8:	48 00 00 34 	b       ffc0ad1c <fpathconf+0xe4>              
    case _PC_VDISABLE:                                                
      return_value = the_limits->posix_vdisable;                      
ffc0acec:	80 69 00 2c 	lwz     r3,44(r9)                              
      break;                                                          
ffc0acf0:	48 00 00 2c 	b       ffc0ad1c <fpathconf+0xe4>              
    case _PC_ASYNC_IO:                                                
      return_value = the_limits->posix_async_io;                      
ffc0acf4:	80 69 00 18 	lwz     r3,24(r9)                              
      break;                                                          
ffc0acf8:	48 00 00 24 	b       ffc0ad1c <fpathconf+0xe4>              
    case _PC_PRIO_IO:                                                 
      return_value = the_limits->posix_prio_io;                       
ffc0acfc:	80 69 00 24 	lwz     r3,36(r9)                              
      break;                                                          
ffc0ad00:	48 00 00 1c 	b       ffc0ad1c <fpathconf+0xe4>              
    case _PC_SYNC_IO:                                                 
      return_value = the_limits->posix_sync_io;                       
ffc0ad04:	80 69 00 28 	lwz     r3,40(r9)                              
      break;                                                          
ffc0ad08:	48 00 00 14 	b       ffc0ad1c <fpathconf+0xe4>              
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc0ad0c:	48 00 16 49 	bl      ffc0c354 <__errno>                     
ffc0ad10:	39 20 00 16 	li      r9,22                                  
ffc0ad14:	91 23 00 00 	stw     r9,0(r3)                               
ffc0ad18:	38 60 ff ff 	li      r3,-1                                  
      break;                                                          
  }                                                                   
                                                                      
  return return_value;                                                
}                                                                     
ffc0ad1c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0ad20:	38 21 00 08 	addi    r1,r1,8                                
ffc0ad24:	7c 08 03 a6 	mtlr    r0                                     
ffc0ad28:	4e 80 00 20 	blr                                            
                                                                      

ffc0455c <free>: #include <stdlib.h> void free( void *ptr ) {
ffc0455c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc04560:	7c 08 02 a6 	mflr    r0                                     
  MSBUMP(free_calls, 1);                                              
ffc04564:	3d 20 00 00 	lis     r9,0                                   
#include <stdlib.h>                                                   
                                                                      
void free(                                                            
  void *ptr                                                           
)                                                                     
{                                                                     
ffc04568:	90 01 00 14 	stw     r0,20(r1)                              
  MSBUMP(free_calls, 1);                                              
ffc0456c:	39 29 2b 20 	addi    r9,r9,11040                            
#include <stdlib.h>                                                   
                                                                      
void free(                                                            
  void *ptr                                                           
)                                                                     
{                                                                     
ffc04570:	bf c1 00 08 	stmw    r30,8(r1)                              
  MSBUMP(free_calls, 1);                                              
                                                                      
  if ( !ptr )                                                         
ffc04574:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
void free(                                                            
  void *ptr                                                           
)                                                                     
{                                                                     
  MSBUMP(free_calls, 1);                                              
ffc04578:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0457c:	39 4a 00 01 	addi    r10,r10,1                              
ffc04580:	91 49 00 0c 	stw     r10,12(r9)                             
                                                                      
  if ( !ptr )                                                         
ffc04584:	41 82 00 a0 	beq-    ffc04624 <free+0xc8>                   
    return;                                                           
                                                                      
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
ffc04588:	3d 20 00 00 	lis     r9,0                                   
ffc0458c:	81 29 28 4c 	lwz     r9,10316(r9)                           
ffc04590:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc04594:	40 be 00 28 	bne+    cr7,ffc045bc <free+0x60>               <== NEVER TAKEN
       !malloc_is_system_state_OK() ) {                               
ffc04598:	48 00 02 15 	bl      ffc047ac <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()) &&                    
ffc0459c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc045a0:	40 be 00 1c 	bne+    cr7,ffc045bc <free+0x60>               
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
ffc045a4:	80 01 00 14 	lwz     r0,20(r1)                              
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
       !malloc_is_system_state_OK() ) {                               
      malloc_deferred_free(ptr);                                      
ffc045a8:	7f e3 fb 78 	mr      r3,r31                                 
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
ffc045ac:	bb c1 00 08 	lmw     r30,8(r1)                              
ffc045b0:	7c 08 03 a6 	mtlr    r0                                     
ffc045b4:	38 21 00 10 	addi    r1,r1,16                               
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
       !malloc_is_system_state_OK() ) {                               
      malloc_deferred_free(ptr);                                      
ffc045b8:	48 00 02 5c 	b       ffc04814 <malloc_deferred_free>        
  }                                                                   
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
ffc045bc:	3d 20 00 00 	lis     r9,0                                   
ffc045c0:	81 29 27 c4 	lwz     r9,10180(r9)                           
ffc045c4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc045c8:	41 9e 00 14 	beq-    cr7,ffc045dc <free+0x80>               
    (*rtems_malloc_statistics_helpers->at_free)(ptr);                 
ffc045cc:	81 29 00 08 	lwz     r9,8(r9)                               
ffc045d0:	7f e3 fb 78 	mr      r3,r31                                 
ffc045d4:	7d 29 03 a6 	mtctr   r9                                     
ffc045d8:	4e 80 04 21 	bctrl                                          
                                                                      
  if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {            
ffc045dc:	3f c0 00 00 	lis     r30,0                                  
ffc045e0:	80 7e 27 50 	lwz     r3,10064(r30)                          
ffc045e4:	7f e4 fb 78 	mr      r4,r31                                 
ffc045e8:	48 00 60 09 	bl      ffc0a5f0 <_Protected_heap_Free>        
ffc045ec:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc045f0:	40 be 00 34 	bne+    cr7,ffc04624 <free+0xc8>               
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
ffc045f4:	80 01 00 14 	lwz     r0,20(r1)                              
   */                                                                 
  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",
ffc045f8:	3c 60 ff c2 	lis     r3,-62                                 
      ptr,                                                            
      RTEMS_Malloc_Heap->area_begin,                                  
ffc045fc:	81 3e 27 50 	lwz     r9,10064(r30)                          
   */                                                                 
  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",
ffc04600:	7f e4 fb 78 	mr      r4,r31                                 
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
ffc04604:	7c 08 03 a6 	mtlr    r0                                     
ffc04608:	bb c1 00 08 	lmw     r30,8(r1)                              
   */                                                                 
  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",
ffc0460c:	80 a9 00 18 	lwz     r5,24(r9)                              
ffc04610:	38 63 be 50 	addi    r3,r3,-16816                           
ffc04614:	80 c9 00 1c 	lwz     r6,28(r9)                              
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
ffc04618:	38 21 00 10 	addi    r1,r1,16                               
   */                                                                 
  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",
ffc0461c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04620:	48 00 0d fc 	b       ffc0541c <printk>                      
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
ffc04624:	39 61 00 10 	addi    r11,r1,16                              
ffc04628:	4b ff bf 98 	b       ffc005c0 <_restgpr_30_x>               
                                                                      

ffc1a3f8 <fstat>: int fstat( int fd, struct stat *sbuf ) {
ffc1a3f8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1a3fc:	7c 08 02 a6 	mflr    r0                                     
ffc1a400:	bf c1 00 08 	stmw    r30,8(r1)                              
  rtems_libio_t *iop;                                                 
                                                                      
  /*                                                                  
   *  Check to see if we were passed a valid pointer.                 
   */                                                                 
  if ( !sbuf )                                                        
ffc1a404:	7c 9e 23 79 	mr.     r30,r4                                 
                                                                      
int fstat(                                                            
  int          fd,                                                    
  struct stat *sbuf                                                   
)                                                                     
{                                                                     
ffc1a408:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_libio_t *iop;                                                 
                                                                      
  /*                                                                  
   *  Check to see if we were passed a valid pointer.                 
   */                                                                 
  if ( !sbuf )                                                        
ffc1a40c:	40 a2 00 10 	bne+    ffc1a41c <fstat+0x24>                  <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EFAULT );                   
ffc1a410:	4b ff 54 29 	bl      ffc0f838 <__errno>                     <== NOT EXECUTED
ffc1a414:	39 20 00 0e 	li      r9,14                                  <== NOT EXECUTED
ffc1a418:	48 00 00 38 	b       ffc1a450 <fstat+0x58>                  <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Now process the stat() request.                                 
   */                                                                 
  iop = rtems_libio_iop( fd );                                        
ffc1a41c:	3d 20 00 00 	lis     r9,0                                   
ffc1a420:	81 29 27 58 	lwz     r9,10072(r9)                           
ffc1a424:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc1a428:	40 9c 00 20 	bge-    cr7,ffc1a448 <fstat+0x50>              
ffc1a42c:	3d 20 00 00 	lis     r9,0                                   
ffc1a430:	83 e9 28 08 	lwz     r31,10248(r9)                          
ffc1a434:	1c 63 00 38 	mulli   r3,r3,56                               
ffc1a438:	7f ff 1a 14 	add     r31,r31,r3                             
  rtems_libio_check_fd( fd );                                         
  rtems_libio_check_is_open(iop);                                     
ffc1a43c:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc1a440:	71 2a 01 00 	andi.   r10,r9,256                             
ffc1a444:	40 a2 00 14 	bne+    ffc1a458 <fstat+0x60>                  
ffc1a448:	4b ff 53 f1 	bl      ffc0f838 <__errno>                     
ffc1a44c:	39 20 00 09 	li      r9,9                                   
ffc1a450:	91 23 00 00 	stw     r9,0(r3)                               
ffc1a454:	48 00 00 3c 	b       ffc1a490 <fstat+0x98>                  
                                                                      
  /*                                                                  
   *  Zero out the stat structure so the various support              
   *  versions of stat don't have to.                                 
   */                                                                 
  memset( sbuf, 0, sizeof(struct stat) );                             
ffc1a458:	7f c3 f3 78 	mr      r3,r30                                 
ffc1a45c:	38 80 00 00 	li      r4,0                                   
ffc1a460:	38 a0 00 48 	li      r5,72                                  
ffc1a464:	4b ff 61 cd 	bl      ffc10630 <memset>                      
                                                                      
  return (*iop->pathinfo.handlers->fstat_h)( &iop->pathinfo, sbuf );  
ffc1a468:	81 3f 00 24 	lwz     r9,36(r31)                             
}                                                                     
ffc1a46c:	80 01 00 14 	lwz     r0,20(r1)                              
   *  Zero out the stat structure so the various support              
   *  versions of stat don't have to.                                 
   */                                                                 
  memset( sbuf, 0, sizeof(struct stat) );                             
                                                                      
  return (*iop->pathinfo.handlers->fstat_h)( &iop->pathinfo, sbuf );  
ffc1a470:	38 7f 00 14 	addi    r3,r31,20                              
ffc1a474:	81 29 00 18 	lwz     r9,24(r9)                              
ffc1a478:	7f c4 f3 78 	mr      r4,r30                                 
}                                                                     
ffc1a47c:	7c 08 03 a6 	mtlr    r0                                     
ffc1a480:	bb c1 00 08 	lmw     r30,8(r1)                              
   *  Zero out the stat structure so the various support              
   *  versions of stat don't have to.                                 
   */                                                                 
  memset( sbuf, 0, sizeof(struct stat) );                             
                                                                      
  return (*iop->pathinfo.handlers->fstat_h)( &iop->pathinfo, sbuf );  
ffc1a484:	7d 29 03 a6 	mtctr   r9                                     
}                                                                     
ffc1a488:	38 21 00 10 	addi    r1,r1,16                               
   *  Zero out the stat structure so the various support              
   *  versions of stat don't have to.                                 
   */                                                                 
  memset( sbuf, 0, sizeof(struct stat) );                             
                                                                      
  return (*iop->pathinfo.handlers->fstat_h)( &iop->pathinfo, sbuf );  
ffc1a48c:	4e 80 04 20 	bctr                                           
}                                                                     
ffc1a490:	39 61 00 10 	addi    r11,r1,16                              
ffc1a494:	38 60 ff ff 	li      r3,-1                                  
ffc1a498:	4b fe 61 28 	b       ffc005c0 <_restgpr_30_x>               
                                                                      

ffc04124 <get_disk_entry>: rtems_device_major_number major = 0; rtems_device_minor_number minor = 0; rtems_filesystem_split_dev_t(dev, major, minor); if (major < disktab_size && disktab != NULL) {
ffc04124:	3d 20 00 00 	lis     r9,0                                   
ffc04128:	39 49 28 48 	addi    r10,r9,10312                           
ffc0412c:	81 29 28 48 	lwz     r9,10312(r9)                           
ffc04130:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc04134:	40 9c 00 64 	bge-    cr7,ffc04198 <get_disk_entry+0x74>     <== NEVER TAKEN
ffc04138:	81 2a 00 04 	lwz     r9,4(r10)                              
ffc0413c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04140:	41 9e 00 58 	beq-    cr7,ffc04198 <get_disk_entry+0x74>     <== NEVER TAKEN
    rtems_disk_device_table *dtab = disktab + major;                  
ffc04144:	54 63 18 38 	rlwinm  r3,r3,3,0,28                           
ffc04148:	7d 49 1a 14 	add     r10,r9,r3                              
                                                                      
    if (minor < dtab->size && dtab->minor != NULL) {                  
ffc0414c:	81 4a 00 04 	lwz     r10,4(r10)                             
ffc04150:	7f 84 50 40 	cmplw   cr7,r4,r10                             
ffc04154:	40 9c 00 44 	bge-    cr7,ffc04198 <get_disk_entry+0x74>     <== NEVER TAKEN
ffc04158:	7d 29 18 2e 	lwzx    r9,r9,r3                               
ffc0415c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04160:	41 9e 00 38 	beq-    cr7,ffc04198 <get_disk_entry+0x74>     <== NEVER TAKEN
      rtems_disk_device *dd = dtab->minor [minor];                    
ffc04164:	54 84 10 3a 	rlwinm  r4,r4,2,0,29                           
ffc04168:	7c 69 20 2e 	lwzx    r3,r9,r4                               
                                                                      
      if (dd != NULL && !lookup_only) {                               
ffc0416c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04170:	4d 9e 00 20 	beqlr   cr7                                    
ffc04174:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc04178:	4c 9e 00 20 	bnelr   cr7                                    
        if (!dd->deleted) {                                           
ffc0417c:	89 23 00 40 	lbz     r9,64(r3)                              
ffc04180:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04184:	40 9e 00 14 	bne-    cr7,ffc04198 <get_disk_entry+0x74>     
          ++dd->uses;                                                 
ffc04188:	81 23 00 14 	lwz     r9,20(r3)                              
ffc0418c:	39 29 00 01 	addi    r9,r9,1                                
ffc04190:	91 23 00 14 	stw     r9,20(r3)                              
ffc04194:	4e 80 00 20 	blr                                            
                                                                      
      return dd;                                                      
    }                                                                 
  }                                                                   
                                                                      
  return NULL;                                                        
ffc04198:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc0419c:	4e 80 00 20 	blr                                            
                                                                      

ffc05790 <get_sector.part.0>: * NOTES: * get_sector() operates with device via bdbuf library, * and does not support devices with sector size other than 512 bytes */ static rtems_status_code get_sector(int fd,
ffc05790:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc05794:	7c 08 02 a6 	mflr    r0                                     
ffc05798:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc0579c:	7c 7c 1b 78 	mr      r28,r3                                 
    new_off = lseek(fd, off, SEEK_SET);                               
    if (new_off != off) {                                             
        return RTEMS_IO_ERROR;                                        
    }                                                                 
                                                                      
    s = (rtems_sector_data_t *) malloc(sizeof(rtems_sector_data_t) + RTEMS_IDE_SECTOR_SIZE);
ffc057a0:	38 60 02 04 	li      r3,516                                 
 * NOTES:                                                             
 *      get_sector() operates with device via bdbuf library,          
 *      and does not support devices with sector size other than 512 bytes
 */                                                                   
static rtems_status_code                                              
get_sector(int fd,                                                    
ffc057a4:	90 01 00 1c 	stw     r0,28(r1)                              
ffc057a8:	7c 9d 23 78 	mr      r29,r4                                 
ffc057ac:	7c be 2b 78 	mr      r30,r5                                 
    new_off = lseek(fd, off, SEEK_SET);                               
    if (new_off != off) {                                             
        return RTEMS_IO_ERROR;                                        
    }                                                                 
                                                                      
    s = (rtems_sector_data_t *) malloc(sizeof(rtems_sector_data_t) + RTEMS_IDE_SECTOR_SIZE);
ffc057b0:	48 00 16 45 	bl      ffc06df4 <malloc>                      
    if (s == NULL)                                                    
ffc057b4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc057b8:	41 82 00 3c 	beq-    ffc057f4 <get_sector.part.0+0x64>      <== NEVER TAKEN
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
    }                                                                 
                                                                      
    n = read(fd, s->data, RTEMS_IDE_SECTOR_SIZE);                     
ffc057bc:	7f 83 e3 78 	mr      r3,r28                                 
ffc057c0:	38 9f 00 04 	addi    r4,r31,4                               
ffc057c4:	38 a0 02 00 	li      r5,512                                 
ffc057c8:	48 00 21 3d 	bl      ffc07904 <read>                        
    if (n != RTEMS_IDE_SECTOR_SIZE)                                   
ffc057cc:	2f 83 02 00 	cmpwi   cr7,r3,512                             
ffc057d0:	41 9e 00 14 	beq-    cr7,ffc057e4 <get_sector.part.0+0x54>  <== ALWAYS TAKEN
    {                                                                 
        free(s);                                                      
ffc057d4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc057d8:	48 00 0f 55 	bl      ffc0672c <free>                        <== NOT EXECUTED
        return RTEMS_IO_ERROR;                                        
ffc057dc:	38 60 00 1b 	li      r3,27                                  <== NOT EXECUTED
ffc057e0:	48 00 00 18 	b       ffc057f8 <get_sector.part.0+0x68>      <== NOT EXECUTED
    }                                                                 
                                                                      
    s->sector_num = sector_num;                                       
ffc057e4:	93 bf 00 00 	stw     r29,0(r31)                             
                                                                      
    *sector = s;                                                      
                                                                      
    return RTEMS_SUCCESSFUL;                                          
ffc057e8:	38 60 00 00 	li      r3,0                                   
        return RTEMS_IO_ERROR;                                        
    }                                                                 
                                                                      
    s->sector_num = sector_num;                                       
                                                                      
    *sector = s;                                                      
ffc057ec:	93 fe 00 00 	stw     r31,0(r30)                             
ffc057f0:	48 00 00 08 	b       ffc057f8 <get_sector.part.0+0x68>      
    }                                                                 
                                                                      
    s = (rtems_sector_data_t *) malloc(sizeof(rtems_sector_data_t) + RTEMS_IDE_SECTOR_SIZE);
    if (s == NULL)                                                    
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
ffc057f4:	38 60 00 1a 	li      r3,26                                  <== NOT EXECUTED
    s->sector_num = sector_num;                                       
                                                                      
    *sector = s;                                                      
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc057f8:	39 61 00 18 	addi    r11,r1,24                              
ffc057fc:	4b ff af ec 	b       ffc007e8 <_restgpr_28_x>               
                                                                      

ffc311ec <getdents>: rtems_filesystem_node_types_t type; /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd );
ffc311ec:	3d 20 00 00 	lis     r9,0                                   
int getdents(                                                         
  int   dd_fd,                                                        
  char *dd_buf,                                                       
  int   dd_len                                                        
)                                                                     
{                                                                     
ffc311f0:	7c 08 02 a6 	mflr    r0                                     
  rtems_filesystem_node_types_t type;                                 
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
ffc311f4:	81 29 27 78 	lwz     r9,10104(r9)                           
int getdents(                                                         
  int   dd_fd,                                                        
  char *dd_buf,                                                       
  int   dd_len                                                        
)                                                                     
{                                                                     
ffc311f8:	7c 2b 0b 78 	mr      r11,r1                                 
ffc311fc:	94 21 ff e8 	stwu    r1,-24(r1)                             
  rtems_filesystem_node_types_t type;                                 
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
ffc31200:	7f 83 48 40 	cmplw   cr7,r3,r9                              
int getdents(                                                         
  int   dd_fd,                                                        
  char *dd_buf,                                                       
  int   dd_len                                                        
)                                                                     
{                                                                     
ffc31204:	4b fd 03 1d 	bl      ffc01520 <_savegpr_31>                 
ffc31208:	90 01 00 1c 	stw     r0,28(r1)                              
  rtems_filesystem_node_types_t type;                                 
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
ffc3120c:	3b e0 00 00 	li      r31,0                                  
ffc31210:	40 9c 00 14 	bge-    cr7,ffc31224 <getdents+0x38>           <== NEVER TAKEN
ffc31214:	3d 20 00 00 	lis     r9,0                                   
ffc31218:	1c 63 00 38 	mulli   r3,r3,56                               
ffc3121c:	83 e9 28 24 	lwz     r31,10276(r9)                          
ffc31220:	7f ff 1a 14 	add     r31,r31,r3                             
                                                                      
  /*                                                                  
   *  Make sure we are working on a directory                         
   */                                                                 
  type = rtems_filesystem_node_type( &iop->pathinfo );                
ffc31224:	38 7f 00 14 	addi    r3,r31,20                              
ffc31228:	90 81 00 08 	stw     r4,8(r1)                               
ffc3122c:	90 a1 00 0c 	stw     r5,12(r1)                              
ffc31230:	4b fd 9b 65 	bl      ffc0ad94 <rtems_filesystem_node_type>  
  if ( type != RTEMS_FILESYSTEM_DIRECTORY )                           
ffc31234:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc31238:	80 81 00 08 	lwz     r4,8(r1)                               
ffc3123c:	80 a1 00 0c 	lwz     r5,12(r1)                              
ffc31240:	40 9e 00 28 	bne-    cr7,ffc31268 <getdents+0x7c>           
                                                                      
  /*                                                                  
   *  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  );   
ffc31244:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc31248:	7f e3 fb 78 	mr      r3,r31                                 
}                                                                     
ffc3124c:	80 01 00 1c 	lwz     r0,28(r1)                              
                                                                      
  /*                                                                  
   *  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  );   
ffc31250:	81 29 00 08 	lwz     r9,8(r9)                               
}                                                                     
ffc31254:	7c 08 03 a6 	mtlr    r0                                     
ffc31258:	83 e1 00 14 	lwz     r31,20(r1)                             
                                                                      
  /*                                                                  
   *  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  );   
ffc3125c:	7d 29 03 a6 	mtctr   r9                                     
}                                                                     
ffc31260:	38 21 00 18 	addi    r1,r1,24                               
                                                                      
  /*                                                                  
   *  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  );   
ffc31264:	4e 80 04 20 	bctr                                           
  /*                                                                  
   *  Make sure we are working on a directory                         
   */                                                                 
  type = rtems_filesystem_node_type( &iop->pathinfo );                
  if ( type != RTEMS_FILESYSTEM_DIRECTORY )                           
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
ffc31268:	4b fe ff 65 	bl      ffc211cc <__errno>                     
ffc3126c:	39 20 00 14 	li      r9,20                                  
ffc31270:	91 23 00 00 	stw     r9,0(r3)                               
  /*                                                                  
   *  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  );   
}                                                                     
ffc31274:	39 61 00 18 	addi    r11,r1,24                              
ffc31278:	38 60 ff ff 	li      r3,-1                                  
ffc3127c:	4b fd 02 f0 	b       ffc0156c <_restgpr_31_x>               
                                                                      

ffc0462c <gettimeofday>: */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) {
ffc0462c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc04630:	7c 08 02 a6 	mflr    r0                                     
ffc04634:	bf a1 00 1c 	stmw    r29,28(r1)                             
  /* struct timezone* tzp = (struct timezone*) __tz; */               
  if ( !tp )                                                          
ffc04638:	7c 7d 1b 79 	mr.     r29,r3                                 
 */                                                                   
int gettimeofday(                                                     
  struct timeval  *tp,                                                
  void * __tz __attribute__((unused))                                 
)                                                                     
{                                                                     
ffc0463c:	90 01 00 2c 	stw     r0,44(r1)                              
  /* struct timezone* tzp = (struct timezone*) __tz; */               
  if ( !tp )                                                          
ffc04640:	40 a2 00 18 	bne+    ffc04658 <gettimeofday+0x2c>           <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EFAULT );                   
ffc04644:	48 00 b1 f5 	bl      ffc0f838 <__errno>                     <== NOT EXECUTED
ffc04648:	39 20 00 0e 	li      r9,14                                  <== NOT EXECUTED
ffc0464c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc04650:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc04654:	48 00 00 64 	b       ffc046b8 <gettimeofday+0x8c>           <== NOT EXECUTED
)                                                                     
{                                                                     
  Timestamp_Control  snapshot_as_timestamp;                           
  Timestamp_Control *snapshot_as_timestamp_ptr;                       
                                                                      
  snapshot_as_timestamp_ptr =                                         
ffc04658:	3c 80 00 00 	lis     r4,0                                   
ffc0465c:	38 84 2b e0 	addi    r4,r4,11232                            
ffc04660:	38 61 00 08 	addi    r3,r1,8                                
ffc04664:	48 00 52 01 	bl      ffc09864 <_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);            
ffc04668:	3c c0 3b 9a 	lis     r6,15258                               
  struct timeval  *tp,                                                
  struct timezone *tzp                                                
)                                                                     
{                                                                     
  return gettimeofday( tp, tzp );                                     
}                                                                     
ffc0466c:	83 e3 00 04 	lwz     r31,4(r3)                              
ffc04670:	38 a0 00 00 	li      r5,0                                   
ffc04674:	83 c3 00 00 	lwz     r30,0(r3)                              
ffc04678:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc0467c:	7f e4 fb 78 	mr      r4,r31                                 
ffc04680:	7f c3 f3 78 	mr      r3,r30                                 
ffc04684:	48 01 4a 3d 	bl      ffc190c0 <__divdi3>                    
  _timeval->tv_usec = (suseconds_t) ((*_timestamp % 1000000000U) / 1000U);
ffc04688:	3c c0 3b 9a 	lis     r6,15258                               
static inline void _Timestamp64_implementation_To_timeval(            
  const Timestamp64_Control *_timestamp,                              
  struct timeval            *_timeval                                 
)                                                                     
{                                                                     
  _timeval->tv_sec = (time_t) (*_timestamp / 1000000000U);            
ffc0468c:	90 9d 00 00 	stw     r4,0(r29)                              
  _timeval->tv_usec = (suseconds_t) ((*_timestamp % 1000000000U) / 1000U);
ffc04690:	38 a0 00 00 	li      r5,0                                   
ffc04694:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc04698:	7f c3 f3 78 	mr      r3,r30                                 
ffc0469c:	7f e4 fb 78 	mr      r4,r31                                 
ffc046a0:	48 01 4e 45 	bl      ffc194e4 <__moddi3>                    
ffc046a4:	38 a0 00 00 	li      r5,0                                   
ffc046a8:	38 c0 03 e8 	li      r6,1000                                
ffc046ac:	48 01 4a 15 	bl      ffc190c0 <__divdi3>                    
   *  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;                                                           
ffc046b0:	38 60 00 00 	li      r3,0                                   
ffc046b4:	90 9d 00 04 	stw     r4,4(r29)                              
}                                                                     
ffc046b8:	39 61 00 28 	addi    r11,r1,40                              
ffc046bc:	4b ff bf 00 	b       ffc005bc <_restgpr_29_x>               
                                                                      

ffc24d54 <init_etc_passwd_group>: void init_etc_passwd_group(void) { FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted)
ffc24d54:	3d 20 00 00 	lis     r9,0                                   
ffc24d58:	89 49 5c cc 	lbz     r10,23756(r9)                          
ffc24d5c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc24d60:	4c be 00 20 	bnelr+  cr7                                    
                                                                      
/**                                                                   
 *  Initialize useable but dummy databases                            
 */                                                                   
void init_etc_passwd_group(void)                                      
{                                                                     
ffc24d64:	7c 2b 0b 78 	mr      r11,r1                                 
ffc24d68:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc24d6c:	7c 08 02 a6 	mflr    r0                                     
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
  mkdir("/etc", 0777);                                                
ffc24d70:	3c 60 ff c6 	lis     r3,-58                                 
                                                                      
/**                                                                   
 *  Initialize useable but dummy databases                            
 */                                                                   
void init_etc_passwd_group(void)                                      
{                                                                     
ffc24d74:	48 02 ea 3d 	bl      ffc537b0 <_savegpr_31>                 
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
ffc24d78:	39 40 00 01 	li      r10,1                                  
  mkdir("/etc", 0777);                                                
ffc24d7c:	38 80 01 ff 	li      r4,511                                 
                                                                      
/**                                                                   
 *  Initialize useable but dummy databases                            
 */                                                                   
void init_etc_passwd_group(void)                                      
{                                                                     
ffc24d80:	90 01 00 14 	stw     r0,20(r1)                              
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
  mkdir("/etc", 0777);                                                
ffc24d84:	38 63 a2 60 	addi    r3,r3,-23968                           
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
ffc24d88:	3f e0 ff c6 	lis     r31,-58                                
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
ffc24d8c:	99 49 5c cc 	stb     r10,23756(r9)                          
  mkdir("/etc", 0777);                                                
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
ffc24d90:	3b ff a2 65 	addi    r31,r31,-23963                         
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
  mkdir("/etc", 0777);                                                
ffc24d94:	4b fd f6 81 	bl      ffc04414 <mkdir>                       
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
ffc24d98:	3c 80 ff c5 	lis     r4,-59                                 
ffc24d9c:	7f e3 fb 78 	mr      r3,r31                                 
ffc24da0:	38 84 64 0c 	addi    r4,r4,25612                            
ffc24da4:	48 01 36 f9 	bl      ffc3849c <fopen>                       
ffc24da8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24dac:	41 9e 00 08 	beq-    cr7,ffc24db4 <init_etc_passwd_group+0x60>
ffc24db0:	48 00 00 30 	b       ffc24de0 <init_etc_passwd_group+0x8c>  
    fclose(fp);                                                       
  }                                                                   
  else if ((fp = fopen("/etc/passwd", "w")) != NULL) {                
ffc24db4:	3c 80 ff c5 	lis     r4,-59                                 
ffc24db8:	7f e3 fb 78 	mr      r3,r31                                 
ffc24dbc:	38 84 64 09 	addi    r4,r4,25609                            
ffc24dc0:	48 01 36 dd 	bl      ffc3849c <fopen>                       
ffc24dc4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc24dc8:	41 82 00 1c 	beq-    ffc24de4 <init_etc_passwd_group+0x90>  <== NEVER TAKEN
    fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"                        
ffc24dcc:	3c 60 ff c6 	lis     r3,-58                                 
ffc24dd0:	38 63 a2 71 	addi    r3,r3,-23951                           
ffc24dd4:	7f e4 fb 78 	mr      r4,r31                                 
ffc24dd8:	48 01 39 55 	bl      ffc3872c <fputs>                       
                 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n"         
                 "tty:!:2:2:tty owner::/:/bin/false\n" );             
    fclose(fp);                                                       
ffc24ddc:	7f e3 fb 78 	mr      r3,r31                                 
ffc24de0:	48 01 2a a5 	bl      ffc37884 <fclose>                      
  }                                                                   
                                                                      
  /*                                                                  
   *  Initialize /etc/group                                           
   */                                                                 
  if ((fp = fopen("/etc/group", "r")) != NULL) {                      
ffc24de4:	3f e0 ff c6 	lis     r31,-58                                
ffc24de8:	3b ff a2 d8 	addi    r31,r31,-23848                         
ffc24dec:	3c 80 ff c5 	lis     r4,-59                                 
ffc24df0:	7f e3 fb 78 	mr      r3,r31                                 
ffc24df4:	38 84 64 0c 	addi    r4,r4,25612                            
ffc24df8:	48 01 36 a5 	bl      ffc3849c <fopen>                       
ffc24dfc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24e00:	41 9e 00 08 	beq-    cr7,ffc24e08 <init_etc_passwd_group+0xb4>
ffc24e04:	48 00 00 30 	b       ffc24e34 <init_etc_passwd_group+0xe0>  
    fclose(fp);                                                       
  }                                                                   
  else if ((fp = fopen("/etc/group", "w")) != NULL) {                 
ffc24e08:	3c 80 ff c5 	lis     r4,-59                                 
ffc24e0c:	7f e3 fb 78 	mr      r3,r31                                 
ffc24e10:	38 84 64 09 	addi    r4,r4,25609                            
ffc24e14:	48 01 36 89 	bl      ffc3849c <fopen>                       
ffc24e18:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc24e1c:	41 82 00 2c 	beq-    ffc24e48 <init_etc_passwd_group+0xf4>  <== NEVER TAKEN
    fprintf( fp, "root:x:0:root\n"                                    
ffc24e20:	3c 60 ff c6 	lis     r3,-58                                 
ffc24e24:	38 63 a2 e3 	addi    r3,r3,-23837                           
ffc24e28:	7f e4 fb 78 	mr      r4,r31                                 
ffc24e2c:	48 01 39 01 	bl      ffc3872c <fputs>                       
                 "rtems:x:1:rtems\n"                                  
                 "tty:x:2:tty\n" );                                   
    fclose(fp);                                                       
ffc24e30:	7f e3 fb 78 	mr      r3,r31                                 
  }                                                                   
}                                                                     
ffc24e34:	80 01 00 14 	lwz     r0,20(r1)                              
ffc24e38:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc24e3c:	7c 08 03 a6 	mtlr    r0                                     
ffc24e40:	38 21 00 10 	addi    r1,r1,16                               
  }                                                                   
  else if ((fp = fopen("/etc/group", "w")) != NULL) {                 
    fprintf( fp, "root:x:0:root\n"                                    
                 "rtems:x:1:rtems\n"                                  
                 "tty:x:2:tty\n" );                                   
    fclose(fp);                                                       
ffc24e44:	48 01 2a 40 	b       ffc37884 <fclose>                      
  }                                                                   
}                                                                     
ffc24e48:	39 61 00 10 	addi    r11,r1,16                              <== NOT EXECUTED
ffc24e4c:	48 02 e9 b0 	b       ffc537fc <_restgpr_31_x>               <== NOT EXECUTED
                                                                      

ffc07338 <iproc>: /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) {
ffc07338:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0733c:	7c 08 02 a6 	mflr    r0                                     
ffc07340:	90 01 00 14 	stw     r0,20(r1)                              
  if (tty->termios.c_iflag & ISTRIP)                                  
ffc07344:	81 24 00 30 	lwz     r9,48(r4)                              
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
ffc07348:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc0734c:	7c 7e 1b 78 	mr      r30,r3                                 
  if (tty->termios.c_iflag & ISTRIP)                                  
ffc07350:	71 2a 00 20 	andi.   r10,r9,32                              
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
ffc07354:	7c 9f 23 78 	mr      r31,r4                                 
  if (tty->termios.c_iflag & ISTRIP)                                  
ffc07358:	41 82 00 08 	beq-    ffc07360 <iproc+0x28>                  <== ALWAYS TAKEN
    c &= 0x7f;                                                        
ffc0735c:	54 7e 06 7e 	clrlwi  r30,r3,25                              <== NOT EXECUTED
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
ffc07360:	71 2a 02 00 	andi.   r10,r9,512                             
ffc07364:	41 82 00 28 	beq-    ffc0738c <iproc+0x54>                  
    c = tolower (c);                                                  
ffc07368:	3d 40 00 00 	lis     r10,0                                  
ffc0736c:	81 4a 27 a0 	lwz     r10,10144(r10)                         
ffc07370:	7d 4a f2 14 	add     r10,r10,r30                            
ffc07374:	89 4a 00 01 	lbz     r10,1(r10)                             
ffc07378:	55 4a 07 be 	clrlwi  r10,r10,30                             
ffc0737c:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
ffc07380:	40 be 00 08 	bne+    cr7,ffc07388 <iproc+0x50>              
ffc07384:	3b de 00 20 	addi    r30,r30,32                             
ffc07388:	57 de 06 3e 	clrlwi  r30,r30,24                             
                                                                      
  if (c == '\r') {                                                    
ffc0738c:	2f 9e 00 0d 	cmpwi   cr7,r30,13                             
ffc07390:	40 be 00 20 	bne+    cr7,ffc073b0 <iproc+0x78>              
    if (tty->termios.c_iflag & IGNCR)                                 
ffc07394:	71 2a 00 80 	andi.   r10,r9,128                             
ffc07398:	41 a2 00 08 	beq+    ffc073a0 <iproc+0x68>                  <== ALWAYS TAKEN
ffc0739c:	48 00 01 94 	b       ffc07530 <iproc+0x1f8>                 <== NOT EXECUTED
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
ffc073a0:	71 2a 01 00 	andi.   r10,r9,256                             
ffc073a4:	41 82 00 2c 	beq-    ffc073d0 <iproc+0x98>                  <== NEVER TAKEN
      c = '\n';                                                       
ffc073a8:	3b c0 00 0a 	li      r30,10                                 
ffc073ac:	48 00 00 24 	b       ffc073d0 <iproc+0x98>                  
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
ffc073b0:	2f 9e 00 0a 	cmpwi   cr7,r30,10                             
ffc073b4:	40 be 00 14 	bne+    cr7,ffc073c8 <iproc+0x90>              
ffc073b8:	71 2a 00 40 	andi.   r10,r9,64                              
ffc073bc:	41 82 00 14 	beq-    ffc073d0 <iproc+0x98>                  <== ALWAYS TAKEN
    c = '\r';                                                         
ffc073c0:	3b c0 00 0d 	li      r30,13                                 <== NOT EXECUTED
ffc073c4:	48 00 00 0c 	b       ffc073d0 <iproc+0x98>                  <== NOT EXECUTED
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
ffc073c8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc073cc:	41 be 01 20 	beq+    cr7,ffc074ec <iproc+0x1b4>             <== NEVER TAKEN
ffc073d0:	81 3f 00 3c 	lwz     r9,60(r31)                             
ffc073d4:	71 2a 00 02 	andi.   r10,r9,2                               
ffc073d8:	41 82 01 14 	beq-    ffc074ec <iproc+0x1b4>                 
    if (c == tty->termios.c_cc[VERASE]) {                             
ffc073dc:	89 5f 00 43 	lbz     r10,67(r31)                            
ffc073e0:	7f 8a f0 00 	cmpw    cr7,r10,r30                            
ffc073e4:	40 be 00 1c 	bne+    cr7,ffc07400 <iproc+0xc8>              
 * FIXME: Some of the tests should check for IEXTEN, too.             
 */                                                                   
static void                                                           
erase (struct rtems_termios_tty *tty, int lineFlag)                   
{                                                                     
  if (tty->ccount == 0)                                               
ffc073e8:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc073ec:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc073f0:	41 9e 01 40 	beq-    cr7,ffc07530 <iproc+0x1f8>             
ffc073f4:	7f e3 fb 78 	mr      r3,r31                                 
ffc073f8:	38 80 00 00 	li      r4,0                                   
ffc073fc:	48 00 00 68 	b       ffc07464 <iproc+0x12c>                 
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
    if (c == tty->termios.c_cc[VERASE]) {                             
      erase (tty, 0);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
ffc07400:	89 5f 00 44 	lbz     r10,68(r31)                            
ffc07404:	7f 8a f0 00 	cmpw    cr7,r10,r30                            
ffc07408:	40 be 00 64 	bne+    cr7,ffc0746c <iproc+0x134>             
 * FIXME: Some of the tests should check for IEXTEN, too.             
 */                                                                   
static void                                                           
erase (struct rtems_termios_tty *tty, int lineFlag)                   
{                                                                     
  if (tty->ccount == 0)                                               
ffc0740c:	81 5f 00 20 	lwz     r10,32(r31)                            
ffc07410:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc07414:	41 9e 01 1c 	beq-    cr7,ffc07530 <iproc+0x1f8>             <== NEVER TAKEN
    return;                                                           
  if (lineFlag) {                                                     
    if (!(tty->termios.c_lflag & ECHO)) {                             
ffc07418:	71 2a 00 08 	andi.   r10,r9,8                               
ffc0741c:	40 a2 00 0c 	bne+    ffc07428 <iproc+0xf0>                  <== ALWAYS TAKEN
      tty->ccount = 0;                                                
ffc07420:	91 5f 00 20 	stw     r10,32(r31)                            <== NOT EXECUTED
ffc07424:	48 00 01 0c 	b       ffc07530 <iproc+0x1f8>                 <== NOT EXECUTED
      return;                                                         
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
ffc07428:	71 2a 00 10 	andi.   r10,r9,16                              
ffc0742c:	7f e3 fb 78 	mr      r3,r31                                 
ffc07430:	38 80 00 01 	li      r4,1                                   
ffc07434:	40 a2 00 30 	bne+    ffc07464 <iproc+0x12c>                 <== ALWAYS TAKEN
      tty->ccount = 0;                                                
ffc07438:	91 5f 00 20 	stw     r10,32(r31)                            <== NOT EXECUTED
      echo (tty->termios.c_cc[VKILL], tty);                           
ffc0743c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc07440:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc07444:	4b ff fc a1 	bl      ffc070e4 <echo>                        <== NOT EXECUTED
      if (tty->termios.c_lflag & ECHOK)                               
ffc07448:	81 3f 00 3c 	lwz     r9,60(r31)                             <== NOT EXECUTED
ffc0744c:	71 2a 00 20 	andi.   r10,r9,32                              <== NOT EXECUTED
ffc07450:	41 a2 00 e0 	beq+    ffc07530 <iproc+0x1f8>                 <== NOT EXECUTED
        echo ('\n', tty);                                             
ffc07454:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc07458:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc0745c:	4b ff fc 89 	bl      ffc070e4 <echo>                        <== NOT EXECUTED
ffc07460:	48 00 00 d0 	b       ffc07530 <iproc+0x1f8>                 <== NOT EXECUTED
ffc07464:	4b ff fd 11 	bl      ffc07174 <erase.part.2>                
ffc07468:	48 00 00 c8 	b       ffc07530 <iproc+0x1f8>                 
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
      erase (tty, 1);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
ffc0746c:	89 5f 00 45 	lbz     r10,69(r31)                            
ffc07470:	7f 8a f0 00 	cmpw    cr7,r10,r30                            
ffc07474:	41 9e 00 c4 	beq-    cr7,ffc07538 <iproc+0x200>             <== NEVER TAKEN
      return 1;                                                       
    } else if (c == '\n') {                                           
ffc07478:	2f 9e 00 0a 	cmpwi   cr7,r30,10                             
ffc0747c:	40 be 00 2c 	bne+    cr7,ffc074a8 <iproc+0x170>             
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
ffc07480:	71 2a 00 48 	andi.   r10,r9,72                              
ffc07484:	41 a2 00 10 	beq+    ffc07494 <iproc+0x15c>                 <== NEVER TAKEN
        echo (c, tty);                                                
ffc07488:	38 60 00 0a 	li      r3,10                                  
ffc0748c:	7f e4 fb 78 	mr      r4,r31                                 
ffc07490:	4b ff fc 55 	bl      ffc070e4 <echo>                        
      tty->cbuf[tty->ccount++] = c;                                   
ffc07494:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc07498:	39 00 00 0a 	li      r8,10                                  
ffc0749c:	81 5f 00 1c 	lwz     r10,28(r31)                            
ffc074a0:	7d 0a 49 ae 	stbx    r8,r10,r9                              
ffc074a4:	48 00 00 3c 	b       ffc074e0 <iproc+0x1a8>                 
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
ffc074a8:	89 5f 00 4c 	lbz     r10,76(r31)                            
ffc074ac:	7f 8a f0 00 	cmpw    cr7,r10,r30                            
ffc074b0:	41 9e 00 10 	beq-    cr7,ffc074c0 <iproc+0x188>             <== NEVER TAKEN
ffc074b4:	89 5f 00 51 	lbz     r10,81(r31)                            
ffc074b8:	7f 8a f0 00 	cmpw    cr7,r10,r30                            
ffc074bc:	40 be 00 30 	bne+    cr7,ffc074ec <iproc+0x1b4>             <== ALWAYS TAKEN
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
ffc074c0:	71 2a 00 08 	andi.   r10,r9,8                               <== NOT EXECUTED
ffc074c4:	41 a2 00 10 	beq+    ffc074d4 <iproc+0x19c>                 <== NOT EXECUTED
        echo (c, tty);                                                
ffc074c8:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc074cc:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc074d0:	4b ff fc 15 	bl      ffc070e4 <echo>                        <== NOT EXECUTED
      tty->cbuf[tty->ccount++] = c;                                   
ffc074d4:	81 3f 00 20 	lwz     r9,32(r31)                             <== NOT EXECUTED
ffc074d8:	81 5f 00 1c 	lwz     r10,28(r31)                            <== NOT EXECUTED
ffc074dc:	7f ca 49 ae 	stbx    r30,r10,r9                             <== NOT EXECUTED
ffc074e0:	39 29 00 01 	addi    r9,r9,1                                
ffc074e4:	91 3f 00 20 	stw     r9,32(r31)                             
ffc074e8:	48 00 00 50 	b       ffc07538 <iproc+0x200>                 
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
ffc074ec:	3d 20 00 00 	lis     r9,0                                   
ffc074f0:	81 49 21 64 	lwz     r10,8548(r9)                           
ffc074f4:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc074f8:	39 4a ff ff 	addi    r10,r10,-1                             
ffc074fc:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc07500:	40 9c 00 30 	bge-    cr7,ffc07530 <iproc+0x1f8>             <== NEVER TAKEN
    if (tty->termios.c_lflag & ECHO)                                  
ffc07504:	81 3f 00 3c 	lwz     r9,60(r31)                             
ffc07508:	71 2a 00 08 	andi.   r10,r9,8                               
ffc0750c:	41 a2 00 10 	beq+    ffc0751c <iproc+0x1e4>                 <== NEVER TAKEN
      echo (c, tty);                                                  
ffc07510:	7f c3 f3 78 	mr      r3,r30                                 
ffc07514:	7f e4 fb 78 	mr      r4,r31                                 
ffc07518:	4b ff fb cd 	bl      ffc070e4 <echo>                        
    tty->cbuf[tty->ccount++] = c;                                     
ffc0751c:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc07520:	81 5f 00 1c 	lwz     r10,28(r31)                            
ffc07524:	7f ca 49 ae 	stbx    r30,r10,r9                             
ffc07528:	39 29 00 01 	addi    r9,r9,1                                
ffc0752c:	91 3f 00 20 	stw     r9,32(r31)                             
  }                                                                   
  return 0;                                                           
ffc07530:	38 60 00 00 	li      r3,0                                   
ffc07534:	48 00 00 08 	b       ffc0753c <iproc+0x204>                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
      erase (tty, 1);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
      return 1;                                                       
ffc07538:	38 60 00 01 	li      r3,1                                   
    if (tty->termios.c_lflag & ECHO)                                  
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
  }                                                                   
  return 0;                                                           
}                                                                     
ffc0753c:	39 61 00 10 	addi    r11,r1,16                              
ffc07540:	4b ff 90 80 	b       ffc005c0 <_restgpr_30_x>               
                                                                      

ffc1a4c0 <kill>: #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; }
ffc1a4c0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1a4c4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc048f8 <malloc>: #include "malloc_p.h" void *malloc( size_t size ) {
ffc048f8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc048fc:	7c 08 02 a6 	mflr    r0                                     
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
ffc04900:	3d 20 00 00 	lis     r9,0                                   
#include "malloc_p.h"                                                 
                                                                      
void *malloc(                                                         
  size_t  size                                                        
)                                                                     
{                                                                     
ffc04904:	90 01 00 1c 	stw     r0,28(r1)                              
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
ffc04908:	39 29 2b 20 	addi    r9,r9,11040                            
ffc0490c:	81 49 00 04 	lwz     r10,4(r9)                              
#include "malloc_p.h"                                                 
                                                                      
void *malloc(                                                         
  size_t  size                                                        
)                                                                     
{                                                                     
ffc04910:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc04914:	7c 7e 1b 78 	mr      r30,r3                                 
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
ffc04918:	39 4a 00 01 	addi    r10,r10,1                              
ffc0491c:	91 49 00 04 	stw     r10,4(r9)                              
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
ffc04920:	4b ff fe b9 	bl      ffc047d8 <malloc_deferred_frees_process>
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
ffc04924:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc04928:	40 be 00 0c 	bne+    cr7,ffc04934 <malloc+0x3c>             
    return (void *) 0;                                                
ffc0492c:	3b e0 00 00 	li      r31,0                                  
ffc04930:	48 00 00 b8 	b       ffc049e8 <malloc+0xf0>                 
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
ffc04934:	3d 20 00 00 	lis     r9,0                                   
ffc04938:	81 29 28 4c 	lwz     r9,10316(r9)                           
ffc0493c:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc04940:	41 9e 00 28 	beq-    cr7,ffc04968 <malloc+0x70>             
RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate(                  
  Heap_Control *heap,                                                 
  uintptr_t size                                                      
)                                                                     
{                                                                     
  return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
ffc04944:	3f a0 00 00 	lis     r29,0                                  
ffc04948:	80 7d 27 50 	lwz     r3,10064(r29)                          
ffc0494c:	7f c4 f3 78 	mr      r4,r30                                 
ffc04950:	38 a0 00 00 	li      r5,0                                   
ffc04954:	38 c0 00 00 	li      r6,0                                   
ffc04958:	48 00 5c 41 	bl      ffc0a598 <_Protected_heap_Allocate_aligned_with_boundary>
   * If this fails then return a NULL pointer.                        
   */                                                                 
                                                                      
  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );  
                                                                      
  if ( !return_this ) {                                               
ffc0495c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc04960:	40 a2 00 48 	bne+    ffc049a8 <malloc+0xb0>                 
ffc04964:	48 00 00 14 	b       ffc04978 <malloc+0x80>                 
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
       !malloc_is_system_state_OK() )                                 
ffc04968:	4b ff fe 45 	bl      ffc047ac <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()) &&                    
ffc0496c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04970:	40 9e ff d4 	bne+    cr7,ffc04944 <malloc+0x4c>             <== ALWAYS TAKEN
ffc04974:	4b ff ff b8 	b       ffc0492c <malloc+0x34>                 <== NOT EXECUTED
   */                                                                 
                                                                      
  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );  
                                                                      
  if ( !return_this ) {                                               
    return_this = (*rtems_malloc_extend_handler)( RTEMS_Malloc_Heap, size );
ffc04978:	3d 20 00 00 	lis     r9,0                                   
ffc0497c:	80 7d 27 50 	lwz     r3,10064(r29)                          
ffc04980:	81 29 27 4c 	lwz     r9,10060(r9)                           
ffc04984:	7f c4 f3 78 	mr      r4,r30                                 
ffc04988:	7d 29 03 a6 	mtctr   r9                                     
ffc0498c:	4e 80 04 21 	bctrl                                          
    if ( !return_this ) {                                             
ffc04990:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc04994:	40 a2 00 14 	bne+    ffc049a8 <malloc+0xb0>                 <== NEVER TAKEN
      errno = ENOMEM;                                                 
ffc04998:	48 00 ae a1 	bl      ffc0f838 <__errno>                     
ffc0499c:	39 20 00 0c 	li      r9,12                                  
ffc049a0:	91 23 00 00 	stw     r9,0(r3)                               
      return (void *) 0;                                              
ffc049a4:	48 00 00 44 	b       ffc049e8 <malloc+0xf0>                 
  }                                                                   
                                                                      
  /*                                                                  
   *  If the user wants us to dirty the allocated memory, then do it. 
   */                                                                 
  if ( rtems_malloc_dirty_helper )                                    
ffc049a8:	3d 20 00 00 	lis     r9,0                                   
ffc049ac:	81 29 27 c0 	lwz     r9,10176(r9)                           
ffc049b0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc049b4:	41 9e 00 14 	beq-    cr7,ffc049c8 <malloc+0xd0>             
    (*rtems_malloc_dirty_helper)( return_this, size );                
ffc049b8:	7f e3 fb 78 	mr      r3,r31                                 
ffc049bc:	7d 29 03 a6 	mtctr   r9                                     
ffc049c0:	7f c4 f3 78 	mr      r4,r30                                 
ffc049c4:	4e 80 04 21 	bctrl                                          
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
ffc049c8:	3d 20 00 00 	lis     r9,0                                   
ffc049cc:	81 29 27 c4 	lwz     r9,10180(r9)                           
ffc049d0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc049d4:	41 9e 00 14 	beq-    cr7,ffc049e8 <malloc+0xf0>             
    (*rtems_malloc_statistics_helpers->at_malloc)(return_this);       
ffc049d8:	81 29 00 04 	lwz     r9,4(r9)                               
ffc049dc:	7f e3 fb 78 	mr      r3,r31                                 
ffc049e0:	7d 29 03 a6 	mtctr   r9                                     
ffc049e4:	4e 80 04 21 	bctrl                                          
                                                                      
  return return_this;                                                 
}                                                                     
ffc049e8:	39 61 00 18 	addi    r11,r1,24                              
ffc049ec:	7f e3 fb 78 	mr      r3,r31                                 
ffc049f0:	4b ff bb cc 	b       ffc005bc <_restgpr_29_x>               
                                                                      

ffc0e304 <memfile_alloc_block>: void *memfile_alloc_block(void) { void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);
ffc0e304:	3d 20 00 00 	lis     r9,0                                   
 *  Allocate a block for an in-memory file.                           
 */                                                                   
int memfile_blocks_allocated = 0;                                     
                                                                      
void *memfile_alloc_block(void)                                       
{                                                                     
ffc0e308:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0e30c:	7c 08 02 a6 	mflr    r0                                     
  void *memory;                                                       
                                                                      
  memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);           
ffc0e310:	38 60 00 01 	li      r3,1                                   
ffc0e314:	80 89 28 00 	lwz     r4,10240(r9)                           
 *  Allocate a block for an in-memory file.                           
 */                                                                   
int memfile_blocks_allocated = 0;                                     
                                                                      
void *memfile_alloc_block(void)                                       
{                                                                     
ffc0e318:	90 01 00 0c 	stw     r0,12(r1)                              
  void *memory;                                                       
                                                                      
  memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);           
ffc0e31c:	4b ff 5e e5 	bl      ffc04200 <calloc>                      
  if ( memory )                                                       
ffc0e320:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0e324:	41 82 00 14 	beq-    ffc0e338 <memfile_alloc_block+0x34>    <== NEVER TAKEN
    memfile_blocks_allocated++;                                       
ffc0e328:	3d 20 00 00 	lis     r9,0                                   
ffc0e32c:	81 49 28 64 	lwz     r10,10340(r9)                          
ffc0e330:	39 4a 00 01 	addi    r10,r10,1                              
ffc0e334:	91 49 28 64 	stw     r10,10340(r9)                          
                                                                      
  return memory;                                                      
}                                                                     
ffc0e338:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0e33c:	38 21 00 08 	addi    r1,r1,8                                
ffc0e340:	7c 08 03 a6 	mtlr    r0                                     
ffc0e344:	4e 80 00 20 	blr                                            
                                                                      

ffc0ee84 <memfile_ftruncate>: int memfile_ftruncate( rtems_libio_t *iop, off_t length ) {
ffc0ee84:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0ee88:	7c 08 02 a6 	mflr    r0                                     
ffc0ee8c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0ee90:	90 01 00 24 	stw     r0,36(r1)                              
ffc0ee94:	48 00 b1 b5 	bl      ffc1a048 <_savegpr_31>                 
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
ffc0ee98:	83 e3 00 1c 	lwz     r31,28(r3)                             
   *  POSIX 1003.1b does not specify what happens if you truncate a file
   *  and the new length is greater than the current size.  We treat this
   *  as an extend operation.                                         
   */                                                                 
                                                                      
  if ( length > the_jnode->info.file.size )                           
ffc0ee9c:	81 3f 00 50 	lwz     r9,80(r31)                             
ffc0eea0:	7f 89 28 00 	cmpw    cr7,r9,r5                              
ffc0eea4:	41 9c 00 14 	blt-    cr7,ffc0eeb8 <memfile_ftruncate+0x34>  <== NEVER TAKEN
ffc0eea8:	40 be 00 20 	bne+    cr7,ffc0eec8 <memfile_ftruncate+0x44>  <== NEVER TAKEN
ffc0eeac:	81 3f 00 54 	lwz     r9,84(r31)                             
ffc0eeb0:	7f 89 30 40 	cmplw   cr7,r9,r6                              
ffc0eeb4:	40 bc 00 14 	bge+    cr7,ffc0eec8 <memfile_ftruncate+0x44>  
    return IMFS_memfile_extend( the_jnode, true, length );            
ffc0eeb8:	7f e3 fb 78 	mr      r3,r31                                 
ffc0eebc:	38 80 00 01 	li      r4,1                                   
ffc0eec0:	4b ff fb 31 	bl      ffc0e9f0 <IMFS_memfile_extend>         
ffc0eec4:	48 00 00 24 	b       ffc0eee8 <memfile_ftruncate+0x64>      
  /*                                                                  
   *  The in-memory files do not currently reclaim memory until the file is
   *  deleted.  So we leave the previously allocated blocks in place for
   *  future use and just set the length.                             
   */                                                                 
  the_jnode->info.file.size = length;                                 
ffc0eec8:	90 bf 00 50 	stw     r5,80(r31)                             
                                                                      
  IMFS_update_atime( the_jnode );                                     
ffc0eecc:	38 61 00 08 	addi    r3,r1,8                                
ffc0eed0:	38 80 00 00 	li      r4,0                                   
  /*                                                                  
   *  The in-memory files do not currently reclaim memory until the file is
   *  deleted.  So we leave the previously allocated blocks in place for
   *  future use and just set the length.                             
   */                                                                 
  the_jnode->info.file.size = length;                                 
ffc0eed4:	90 df 00 54 	stw     r6,84(r31)                             
                                                                      
  IMFS_update_atime( the_jnode );                                     
ffc0eed8:	4b ff 57 55 	bl      ffc0462c <gettimeofday>                
ffc0eedc:	81 21 00 08 	lwz     r9,8(r1)                               
                                                                      
  return 0;                                                           
ffc0eee0:	38 60 00 00 	li      r3,0                                   
   *  deleted.  So we leave the previously allocated blocks in place for
   *  future use and just set the length.                             
   */                                                                 
  the_jnode->info.file.size = length;                                 
                                                                      
  IMFS_update_atime( the_jnode );                                     
ffc0eee4:	91 3f 00 40 	stw     r9,64(r31)                             
                                                                      
  return 0;                                                           
}                                                                     
ffc0eee8:	39 61 00 20 	addi    r11,r1,32                              
ffc0eeec:	4b ff 16 d8 	b       ffc005c4 <_restgpr_31_x>               
                                                                      

ffc0eddc <memfile_open>: the_jnode = iop->pathinfo.node_access; /* * Perform 'copy on write' for linear files */ if ((iop->flags & LIBIO_FLAGS_WRITE)
ffc0eddc:	81 43 00 10 	lwz     r10,16(r3)                             
  mode_t         mode                                                 
)                                                                     
{                                                                     
  IMFS_jnode_t  *the_jnode;                                           
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
ffc0ede0:	81 23 00 1c 	lwz     r9,28(r3)                              
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & LIBIO_FLAGS_WRITE)                                
ffc0ede4:	71 48 00 04 	andi.   r8,r10,4                               
ffc0ede8:	40 a2 00 10 	bne+    ffc0edf8 <memfile_open+0x1c>           
    if ((count != 0)                                                  
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
        return -1;                                                    
  }                                                                   
                                                                      
  return 0;                                                           
ffc0edec:	39 20 00 00 	li      r9,0                                   
}                                                                     
ffc0edf0:	7d 23 4b 78 	mr      r3,r9                                  
ffc0edf4:	4e 80 00 20 	blr                                            
ffc0edf8:	81 49 00 4c 	lwz     r10,76(r9)                             
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & LIBIO_FLAGS_WRITE)                                
   && (IMFS_type( the_jnode ) == IMFS_LINEAR_FILE)) {                 
ffc0edfc:	81 4a 00 00 	lwz     r10,0(r10)                             
ffc0ee00:	2f 8a 00 05 	cmpwi   cr7,r10,5                              
ffc0ee04:	40 9e ff e8 	bne+    cr7,ffc0edec <memfile_open+0x10>       <== ALWAYS TAKEN
    uint32_t   count = the_jnode->info.linearfile.size;               
ffc0ee08:	81 09 00 54 	lwz     r8,84(r9)                              <== NOT EXECUTED
    const unsigned char *buffer = the_jnode->info.linearfile.direct;  
                                                                      
    the_jnode->control = &IMFS_node_control_memfile;                  
ffc0ee0c:	3d 40 ff c2 	lis     r10,-62                                <== NOT EXECUTED
ffc0ee10:	39 4a c1 1c 	addi    r10,r10,-16100                         <== 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;  
ffc0ee14:	80 e9 00 58 	lwz     r7,88(r9)                              <== NOT EXECUTED
    the_jnode->control = &IMFS_node_control_memfile;                  
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
    the_jnode->info.file.doubly_indirect = 0;                         
    the_jnode->info.file.triply_indirect = 0;                         
    if ((count != 0)                                                  
ffc0ee18:	2f 88 00 00 	cmpwi   cr7,r8,0                               <== NOT EXECUTED
  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;  
                                                                      
    the_jnode->control = &IMFS_node_control_memfile;                  
ffc0ee1c:	91 49 00 4c 	stw     r10,76(r9)                             <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
ffc0ee20:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc0ee24:	39 60 00 00 	li      r11,0                                  <== NOT EXECUTED
ffc0ee28:	91 49 00 50 	stw     r10,80(r9)                             <== NOT EXECUTED
    the_jnode->info.file.indirect        = 0;                         
ffc0ee2c:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
   && (IMFS_type( the_jnode ) == IMFS_LINEAR_FILE)) {                 
    uint32_t   count = the_jnode->info.linearfile.size;               
    const unsigned char *buffer = the_jnode->info.linearfile.direct;  
                                                                      
    the_jnode->control = &IMFS_node_control_memfile;                  
    the_jnode->info.file.size            = 0;                         
ffc0ee30:	91 69 00 54 	stw     r11,84(r9)                             <== NOT EXECUTED
    the_jnode->info.file.indirect        = 0;                         
ffc0ee34:	91 49 00 58 	stw     r10,88(r9)                             <== NOT EXECUTED
    the_jnode->info.file.doubly_indirect = 0;                         
ffc0ee38:	91 49 00 5c 	stw     r10,92(r9)                             <== NOT EXECUTED
    the_jnode->info.file.triply_indirect = 0;                         
ffc0ee3c:	91 49 00 60 	stw     r10,96(r9)                             <== NOT EXECUTED
    if ((count != 0)                                                  
ffc0ee40:	41 9e ff ac 	beq+    cr7,ffc0edec <memfile_open+0x10>       <== NOT EXECUTED
  rtems_libio_t *iop,                                                 
  const char    *pathname,                                            
  int            oflag,                                               
  mode_t         mode                                                 
)                                                                     
{                                                                     
ffc0ee44:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc0ee48:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
    the_jnode->info.file.doubly_indirect = 0;                         
    the_jnode->info.file.triply_indirect = 0;                         
    if ((count != 0)                                                  
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
ffc0ee4c:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc0ee50:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
  rtems_libio_t *iop,                                                 
  const char    *pathname,                                            
  int            oflag,                                               
  mode_t         mode                                                 
)                                                                     
{                                                                     
ffc0ee54:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
    the_jnode->info.file.doubly_indirect = 0;                         
    the_jnode->info.file.triply_indirect = 0;                         
    if ((count != 0)                                                  
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
ffc0ee58:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
ffc0ee5c:	4b ff fd 35 	bl      ffc0eb90 <IMFS_memfile_write>          <== NOT EXECUTED
        return -1;                                                    
  }                                                                   
                                                                      
  return 0;                                                           
ffc0ee60:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
    the_jnode->info.file.doubly_indirect = 0;                         
    the_jnode->info.file.triply_indirect = 0;                         
    if ((count != 0)                                                  
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
ffc0ee64:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              <== NOT EXECUTED
ffc0ee68:	40 be 00 08 	bne+    cr7,ffc0ee70 <memfile_open+0x94>       <== NOT EXECUTED
        return -1;                                                    
ffc0ee6c:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc0ee70:	80 01 00 0c 	lwz     r0,12(r1)                              <== NOT EXECUTED
ffc0ee74:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc0ee78:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0ee7c:	38 21 00 08 	addi    r1,r1,8                                <== NOT EXECUTED
ffc0ee80:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc04b0c <mount>: const void *data ) { int rv = 0; if (
ffc04b0c:	2b 86 00 01 	cmplwi  cr7,r6,1                               
  const char                 *target,                                 
  const char                 *filesystemtype,                         
  rtems_filesystem_options_t options,                                 
  const void                 *data                                    
)                                                                     
{                                                                     
ffc04b10:	94 21 ff 70 	stwu    r1,-144(r1)                            
ffc04b14:	7c 08 02 a6 	mflr    r0                                     
ffc04b18:	be 61 00 5c 	stmw    r19,92(r1)                             
ffc04b1c:	7c d8 33 78 	mr      r24,r6                                 
ffc04b20:	90 01 00 94 	stw     r0,148(r1)                             
  int rv = 0;                                                         
                                                                      
  if (                                                                
ffc04b24:	41 9d 02 dc 	bgt-    cr7,ffc04e00 <mount+0x2f4>             
ffc04b28:	7c 7b 1b 78 	mr      r27,r3                                 
    options == RTEMS_FILESYSTEM_READ_ONLY                             
      || options == RTEMS_FILESYSTEM_READ_WRITE                       
  ) {                                                                 
    rtems_filesystem_fsmount_me_t fsmount_me_h =                      
ffc04b2c:	7c a3 2b 78 	mr      r3,r5                                  
ffc04b30:	7c 9d 23 78 	mr      r29,r4                                 
ffc04b34:	7c b9 2b 78 	mr      r25,r5                                 
ffc04b38:	7c f3 3b 78 	mr      r19,r7                                 
ffc04b3c:	48 00 85 75 	bl      ffc0d0b0 <rtems_filesystem_get_mount_handler>
      rtems_filesystem_get_mount_handler( filesystemtype );           
                                                                      
    if ( fsmount_me_h != NULL ) {                                     
ffc04b40:	7c 74 1b 79 	mr.     r20,r3                                 
ffc04b44:	41 82 02 bc 	beq-    ffc04e00 <mount+0x2f4>                 
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
ffc04b48:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc04b4c:	7f ba eb 78 	mr      r26,r29                                
ffc04b50:	40 be 00 0c 	bne+    cr7,ffc04b5c <mount+0x50>              
ffc04b54:	3f 40 ff c2 	lis     r26,-62                                
ffc04b58:	3b 5a be b8 	addi    r26,r26,-16712                         
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
ffc04b5c:	7f 23 cb 78 	mr      r3,r25                                 
ffc04b60:	48 00 c5 9d 	bl      ffc110fc <strlen>                      
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
ffc04b64:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
ffc04b68:	7c 7f 1b 78 	mr      r31,r3                                 
ffc04b6c:	3a a3 00 01 	addi    r21,r3,1                               
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
ffc04b70:	41 9e 00 14 	beq-    cr7,ffc04b84 <mount+0x78>              
ffc04b74:	7f 63 db 78 	mr      r3,r27                                 
ffc04b78:	48 00 c5 85 	bl      ffc110fc <strlen>                      
ffc04b7c:	3b 83 00 01 	addi    r28,r3,1                               
ffc04b80:	48 00 00 08 	b       ffc04b88 <mount+0x7c>                  
ffc04b84:	3b 80 00 00 	li      r28,0                                  
  size_t target_size = strlen( target ) + 1;                          
ffc04b88:	7f 43 d3 78 	mr      r3,r26                                 
ffc04b8c:	48 00 c5 71 	bl      ffc110fc <strlen>                      
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size                 
ffc04b90:	3b ff 00 65 	addi    r31,r31,101                            
{                                                                     
  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;                          
ffc04b94:	3a c3 00 01 	addi    r22,r3,1                               
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size                 
ffc04b98:	7c 9f e2 14 	add     r4,r31,r28                             
    + sizeof( rtems_filesystem_global_location_t );                   
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
ffc04b9c:	38 60 00 01 	li      r3,1                                   
ffc04ba0:	7c 84 b2 14 	add     r4,r4,r22                              
ffc04ba4:	4b ff f6 5d 	bl      ffc04200 <calloc>                      
                                                                      
  if ( mt_entry != NULL ) {                                           
ffc04ba8:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc04bac:	41 82 02 6c 	beq-    ffc04e18 <mount+0x30c>                 <== 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 );          
ffc04bb0:	3b df 00 64 	addi    r30,r31,100                            
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
ffc04bb4:	7f c3 f3 78 	mr      r3,r30                                 
ffc04bb8:	7f 24 cb 78 	mr      r4,r25                                 
ffc04bbc:	7e a5 ab 78 	mr      r5,r21                                 
ffc04bc0:	48 00 b9 7d 	bl      ffc1053c <memcpy>                      
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
                                                                      
    if ( source_or_null != NULL ) {                                   
ffc04bc4:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
      (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 );               
    mt_entry->type = str;                                             
ffc04bc8:	93 df 00 34 	stw     r30,52(r31)                            
    + 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 =                  
ffc04bcc:	3a ff 00 40 	addi    r23,r31,64                             
        ((char *) mt_entry + sizeof( *mt_entry ));                    
    char *str = (char *) mt_fs_root + sizeof( *mt_fs_root );          
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
ffc04bd0:	7f de aa 14 	add     r30,r30,r21                            
                                                                      
    if ( source_or_null != NULL ) {                                   
ffc04bd4:	41 9e 00 1c 	beq-    cr7,ffc04bf0 <mount+0xe4>              
      memcpy( str, source_or_null, source_size );                     
ffc04bd8:	7f c3 f3 78 	mr      r3,r30                                 
ffc04bdc:	7f 64 db 78 	mr      r4,r27                                 
ffc04be0:	7f 85 e3 78 	mr      r5,r28                                 
ffc04be4:	48 00 b9 59 	bl      ffc1053c <memcpy>                      
      mt_entry->dev = str;                                            
ffc04be8:	93 df 00 38 	stw     r30,56(r31)                            
      str += source_size;                                             
ffc04bec:	7f de e2 14 	add     r30,r30,r28                            
    }                                                                 
                                                                      
    memcpy( str, target, target_size );                               
ffc04bf0:	7f c3 f3 78 	mr      r3,r30                                 
ffc04bf4:	7f 44 d3 78 	mr      r4,r26                                 
ffc04bf8:	7e c5 b3 78 	mr      r5,r22                                 
ffc04bfc:	48 00 b9 41 	bl      ffc1053c <memcpy>                      
    mt_entry->target = str;                                           
    str += target_size;                                               
                                                                      
    mt_entry->mounted = true;                                         
ffc04c00:	39 20 00 01 	li      r9,1                                   
ffc04c04:	99 3f 00 28 	stb     r9,40(r31)                             
    mt_entry->mt_fs_root = mt_fs_root;                                
    mt_entry->pathconf_limits_and_options = &rtems_filesystem_default_pathconf;
ffc04c08:	3d 20 ff c2 	lis     r9,-62                                 
ffc04c0c:	39 29 be 88 	addi    r9,r9,-16760                           
ffc04c10:	91 3f 00 2c 	stw     r9,44(r31)                             
                                                                      
    mt_fs_root->location.mt_entry = mt_entry;                         
    mt_fs_root->reference_count = 1;                                  
ffc04c14:	39 20 00 01 	li      r9,1                                   
  void                *starting_address,                              
  size_t               number_nodes,                                  
  size_t               node_size                                      
)                                                                     
{                                                                     
  _Chain_Initialize( the_chain, starting_address, number_nodes, node_size );
ffc04c18:	38 7f 00 14 	addi    r3,r31,20                              
      mt_entry->dev = str;                                            
      str += source_size;                                             
    }                                                                 
                                                                      
    memcpy( str, target, target_size );                               
    mt_entry->target = str;                                           
ffc04c1c:	93 df 00 30 	stw     r30,48(r31)                            
ffc04c20:	7e e4 bb 78 	mr      r4,r23                                 
ffc04c24:	38 a0 00 01 	li      r5,1                                   
    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;                         
    mt_fs_root->reference_count = 1;                                  
ffc04c28:	91 3f 00 58 	stw     r9,88(r31)                             
ffc04c2c:	38 c0 00 24 	li      r6,36                                  
        filesystemtype,                                               
        &target_length                                                
      );                                                              
                                                                      
      if ( mt_entry != NULL ) {                                       
        mt_entry->writeable = options == RTEMS_FILESYSTEM_READ_WRITE; 
ffc04c30:	57 18 07 fe 	clrlwi  r24,r24,31                             
    memcpy( str, target, target_size );                               
    mt_entry->target = str;                                           
    str += target_size;                                               
                                                                      
    mt_entry->mounted = true;                                         
    mt_entry->mt_fs_root = mt_fs_root;                                
ffc04c34:	92 ff 00 24 	stw     r23,36(r31)                            
    mt_entry->pathconf_limits_and_options = &rtems_filesystem_default_pathconf;
                                                                      
    mt_fs_root->location.mt_entry = mt_entry;                         
ffc04c38:	93 ff 00 54 	stw     r31,84(r31)                            
ffc04c3c:	48 00 47 dd 	bl      ffc09418 <_Chain_Initialize>           
        filesystemtype,                                               
        &target_length                                                
      );                                                              
                                                                      
      if ( mt_entry != NULL ) {                                       
        mt_entry->writeable = options == RTEMS_FILESYSTEM_READ_WRITE; 
ffc04c40:	9b 1f 00 29 	stb     r24,41(r31)                            
                                                                      
        rv = (*fsmount_me_h)( mt_entry, data );                       
ffc04c44:	7f e3 fb 78 	mr      r3,r31                                 
ffc04c48:	7e 89 03 a6 	mtctr   r20                                    
ffc04c4c:	7e 64 9b 78 	mr      r4,r19                                 
ffc04c50:	4e 80 04 21 	bctrl                                          
        if ( rv == 0 ) {                                              
ffc04c54:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc04c58:	40 82 01 b4 	bne-    ffc04e0c <mount+0x300>                 
          if ( target != NULL ) {                                     
ffc04c5c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc04c60:	41 9e 00 d8 	beq-    cr7,ffc04d38 <mount+0x22c>             
{                                                                     
  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 =                      
ffc04c64:	7f a4 eb 78 	mr      r4,r29                                 
ffc04c68:	38 a0 00 1f 	li      r5,31                                  
ffc04c6c:	38 61 00 08 	addi    r3,r1,8                                
ffc04c70:	48 00 0c 29 	bl      ffc05898 <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;
ffc04c74:	81 23 00 14 	lwz     r9,20(r3)                              
                                                                      
  return (*mt_entry->ops->are_nodes_equal_h)(                         
ffc04c78:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc04c7c:	80 89 00 24 	lwz     r4,36(r9)                              
ffc04c80:	81 4a 00 10 	lwz     r10,16(r10)                            
ffc04c84:	7d 49 03 a6 	mtctr   r10                                    
ffc04c88:	4e 80 04 21 	bctrl                                          
    rtems_filesystem_eval_path_start( &ctx, target, eval_flags );     
                                                                      
  if ( !rtems_filesystem_location_is_instance_root( currentloc ) ) {  
ffc04c8c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04c90:	40 9e 00 8c 	bne-    cr7,ffc04d1c <mount+0x210>             
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(                          
ffc04c94:	38 81 00 20 	addi    r4,r1,32                               
ffc04c98:	38 61 00 40 	addi    r3,r1,64                               
ffc04c9c:	48 00 11 39 	bl      ffc05dd4 <rtems_filesystem_location_copy_and_detach>
    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 );
ffc04ca0:	38 61 00 40 	addi    r3,r1,64                               
ffc04ca4:	48 00 13 59 	bl      ffc05ffc <rtems_filesystem_location_transform_to_global>
    mt_entry->mt_point_node = mt_point_node;                          
    rv = (*mt_point_node->location.mt_entry->ops->mount_h)( mt_entry );
ffc04ca8:	81 23 00 14 	lwz     r9,20(r3)                              
  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 );
ffc04cac:	7c 7d 1b 78 	mr      r29,r3                                 
    mt_entry->mt_point_node = mt_point_node;                          
ffc04cb0:	90 7f 00 20 	stw     r3,32(r31)                             
    rv = (*mt_point_node->location.mt_entry->ops->mount_h)( mt_entry );
ffc04cb4:	7f e3 fb 78 	mr      r3,r31                                 
ffc04cb8:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc04cbc:	81 29 00 30 	lwz     r9,48(r9)                              
ffc04cc0:	7d 29 03 a6 	mtctr   r9                                     
ffc04cc4:	4e 80 04 21 	bctrl                                          
    if ( rv == 0 ) {                                                  
ffc04cc8:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc04ccc:	40 82 00 44 	bne-    ffc04d10 <mount+0x204>                 
 */                                                                   
#include <rtems/userenv.h>                                            
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
ffc04cd0:	3f a0 00 00 	lis     r29,0                                  
ffc04cd4:	80 7d 28 10 	lwz     r3,10256(r29)                          
ffc04cd8:	38 80 00 00 	li      r4,0                                   
ffc04cdc:	38 a0 00 00 	li      r5,0                                   
ffc04ce0:	48 00 3b cd 	bl      ffc088ac <rtems_semaphore_obtain>      
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc04ce4:	3d 20 00 00 	lis     r9,0                                   
ffc04ce8:	39 29 21 50 	addi    r9,r9,8528                             
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
ffc04cec:	80 7d 28 10 	lwz     r3,10256(r29)                          
ffc04cf0:	81 49 00 08 	lwz     r10,8(r9)                              
                                                                      
  the_node->next = tail;                                              
ffc04cf4:	39 09 00 04 	addi    r8,r9,4                                
ffc04cf8:	91 1f 00 00 	stw     r8,0(r31)                              
  tail->previous = the_node;                                          
ffc04cfc:	93 e9 00 08 	stw     r31,8(r9)                              
  old_last->next = the_node;                                          
ffc04d00:	93 ea 00 00 	stw     r31,0(r10)                             
  the_node->previous = old_last;                                      
ffc04d04:	91 5f 00 04 	stw     r10,4(r31)                             
ffc04d08:	48 00 3c c9 	bl      ffc089d0 <rtems_semaphore_release>     
ffc04d0c:	48 00 00 20 	b       ffc04d2c <mount+0x220>                 
        &rtems_filesystem_mount_table,                                
        &mt_entry->mt_node                                            
      );                                                              
      rtems_filesystem_mt_unlock();                                   
    } else {                                                          
      rtems_filesystem_global_location_release( mt_point_node );      
ffc04d10:	7f a3 eb 78 	mr      r3,r29                                 
ffc04d14:	48 00 11 85 	bl      ffc05e98 <rtems_filesystem_global_location_release>
ffc04d18:	48 00 00 14 	b       ffc04d2c <mount+0x220>                 
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error( &ctx, EBUSY );                  
ffc04d1c:	38 61 00 08 	addi    r3,r1,8                                
ffc04d20:	38 80 00 10 	li      r4,16                                  
ffc04d24:	48 00 08 55 	bl      ffc05578 <rtems_filesystem_eval_path_error>
    rv = -1;                                                          
ffc04d28:	3b c0 ff ff 	li      r30,-1                                 
  }                                                                   
                                                                      
  rtems_filesystem_eval_path_cleanup( &ctx );                         
ffc04d2c:	38 61 00 08 	addi    r3,r1,8                                
ffc04d30:	48 00 0c 91 	bl      ffc059c0 <rtems_filesystem_eval_path_cleanup>
ffc04d34:	48 00 00 ac 	b       ffc04de0 <mount+0x2d4>                 
 */                                                                   
#include <rtems/userenv.h>                                            
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
ffc04d38:	3d 20 00 00 	lis     r9,0                                   
ffc04d3c:	80 69 28 10 	lwz     r3,10256(r9)                           
ffc04d40:	38 80 00 00 	li      r4,0                                   
ffc04d44:	38 a0 00 00 	li      r5,0                                   
ffc04d48:	48 00 3b 65 	bl      ffc088ac <rtems_semaphore_obtain>      
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc04d4c:	3d 40 00 00 	lis     r10,0                                  
ffc04d50:	39 2a 21 50 	addi    r9,r10,8528                            
)                                                                     
{                                                                     
  int rv = 0;                                                         
                                                                      
  rtems_filesystem_mt_lock();                                         
  if ( rtems_chain_is_empty( &rtems_filesystem_mount_table ) ) {      
ffc04d54:	81 0a 21 50 	lwz     r8,8528(r10)                           
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc04d58:	38 e9 00 04 	addi    r7,r9,4                                
ffc04d5c:	7f 88 38 00 	cmpw    cr7,r8,r7                              
ffc04d60:	40 9e 00 1c 	bne-    cr7,ffc04d7c <mount+0x270>             <== NEVER TAKEN
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc04d64:	81 49 00 08 	lwz     r10,8(r9)                              
                                                                      
  the_node->next = tail;                                              
ffc04d68:	91 1f 00 00 	stw     r8,0(r31)                              
  tail->previous = the_node;                                          
ffc04d6c:	93 e9 00 08 	stw     r31,8(r9)                              
  old_last->next = the_node;                                          
ffc04d70:	93 ea 00 00 	stw     r31,0(r10)                             
  the_node->previous = old_last;                                      
ffc04d74:	91 5f 00 04 	stw     r10,4(r31)                             
ffc04d78:	48 00 00 14 	b       ffc04d8c <mount+0x280>                 
    rtems_chain_append_unprotected(                                   
      &rtems_filesystem_mount_table,                                  
      &mt_entry->mt_node                                              
    );                                                                
  } else {                                                            
    errno = EINVAL;                                                   
ffc04d7c:	48 00 aa bd 	bl      ffc0f838 <__errno>                     <== NOT EXECUTED
ffc04d80:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc04d84:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    rv = -1;                                                          
ffc04d88:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
ffc04d8c:	3d 20 00 00 	lis     r9,0                                   
ffc04d90:	80 69 28 10 	lwz     r3,10256(r9)                           
ffc04d94:	48 00 3c 3d 	bl      ffc089d0 <rtems_semaphore_release>     
  }                                                                   
  rtems_filesystem_mt_unlock();                                       
                                                                      
  if ( rv == 0 ) {                                                    
ffc04d98:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc04d9c:	40 be 00 44 	bne+    cr7,ffc04de0 <mount+0x2d4>             <== NEVER TAKEN
    rtems_filesystem_global_location_t *new_fs_root =                 
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
ffc04da0:	3b ff 00 24 	addi    r31,r31,36                             
    rv = -1;                                                          
  }                                                                   
  rtems_filesystem_mt_unlock();                                       
                                                                      
  if ( rv == 0 ) {                                                    
    rtems_filesystem_global_location_t *new_fs_root =                 
ffc04da4:	7f e3 fb 78 	mr      r3,r31                                 
ffc04da8:	48 00 11 89 	bl      ffc05f30 <rtems_filesystem_global_location_obtain>
ffc04dac:	7c 7c 1b 78 	mr      r28,r3                                 
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
    rtems_filesystem_global_location_t *new_fs_current =              
ffc04db0:	7f e3 fb 78 	mr      r3,r31                                 
ffc04db4:	48 00 11 7d 	bl      ffc05f30 <rtems_filesystem_global_location_obtain>
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
                                                                      
    rtems_filesystem_global_location_assign(                          
ffc04db8:	3f e0 00 00 	lis     r31,0                                  
  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 =              
ffc04dbc:	7c 7d 1b 78 	mr      r29,r3                                 
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
                                                                      
    rtems_filesystem_global_location_assign(                          
ffc04dc0:	80 7f 27 98 	lwz     r3,10136(r31)                          
ffc04dc4:	7f 84 e3 78 	mr      r4,r28                                 
ffc04dc8:	38 63 00 04 	addi    r3,r3,4                                
ffc04dcc:	48 00 11 25 	bl      ffc05ef0 <rtems_filesystem_global_location_assign>
      &rtems_filesystem_root,                                         
      new_fs_root                                                     
    );                                                                
    rtems_filesystem_global_location_assign(                          
ffc04dd0:	80 7f 27 98 	lwz     r3,10136(r31)                          
ffc04dd4:	7f a4 eb 78 	mr      r4,r29                                 
ffc04dd8:	48 00 11 19 	bl      ffc05ef0 <rtems_filesystem_global_location_assign>
ffc04ddc:	48 00 00 4c 	b       ffc04e28 <mount+0x31c>                 
            rv = register_subordinate_file_system( mt_entry, target );
          } else {                                                    
            rv = register_root_file_system( mt_entry );               
          }                                                           
                                                                      
          if ( rv != 0 ) {                                            
ffc04de0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc04de4:	41 be 00 44 	beq+    cr7,ffc04e28 <mount+0x31c>             
            (*mt_entry->ops->fsunmount_me_h)( mt_entry );             
ffc04de8:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc04dec:	7f e3 fb 78 	mr      r3,r31                                 
ffc04df0:	81 29 00 3c 	lwz     r9,60(r9)                              
ffc04df4:	7d 29 03 a6 	mtctr   r9                                     
ffc04df8:	4e 80 04 21 	bctrl                                          
ffc04dfc:	48 00 00 10 	b       ffc04e0c <mount+0x300>                 
    } else {                                                          
      errno = EINVAL;                                                 
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
ffc04e00:	48 00 aa 39 	bl      ffc0f838 <__errno>                     
ffc04e04:	39 20 00 16 	li      r9,22                                  
ffc04e08:	48 00 00 18 	b       ffc04e20 <mount+0x314>                 
            (*mt_entry->ops->fsunmount_me_h)( mt_entry );             
          }                                                           
        }                                                             
                                                                      
        if ( rv != 0 ) {                                              
          free( mt_entry );                                           
ffc04e0c:	7f e3 fb 78 	mr      r3,r31                                 
ffc04e10:	4b ff f7 4d 	bl      ffc0455c <free>                        
ffc04e14:	48 00 00 14 	b       ffc04e28 <mount+0x31c>                 
        }                                                             
      } else {                                                        
        errno = ENOMEM;                                               
ffc04e18:	48 00 aa 21 	bl      ffc0f838 <__errno>                     <== NOT EXECUTED
ffc04e1c:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc04e20:	91 23 00 00 	stw     r9,0(r3)                               
        rv = -1;                                                      
ffc04e24:	3b c0 ff ff 	li      r30,-1                                 
    errno = EINVAL;                                                   
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04e28:	39 61 00 90 	addi    r11,r1,144                             
ffc04e2c:	7f c3 f3 78 	mr      r3,r30                                 
ffc04e30:	4b ff b7 64 	b       ffc00594 <_restgpr_19_x>               
                                                                      

ffc093f0 <mount_and_make_target_path>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
ffc093f0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc093f4:	7c 08 02 a6 	mflr    r0                                     
ffc093f8:	bf c1 00 18 	stmw    r30,24(r1)                             
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
ffc093fc:	7c 9f 23 79 	mr.     r31,r4                                 
  const char *target,                                                 
  const char *filesystemtype,                                         
  rtems_filesystem_options_t options,                                 
  const void *data                                                    
)                                                                     
{                                                                     
ffc09400:	90 01 00 24 	stw     r0,36(r1)                              
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
ffc09404:	41 82 00 50 	beq-    ffc09454 <mount_and_make_target_path+0x64>
ffc09408:	7c 7e 1b 78 	mr      r30,r3                                 
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
ffc0940c:	90 a1 00 08 	stw     r5,8(r1)                               
ffc09410:	7f e3 fb 78 	mr      r3,r31                                 
ffc09414:	38 80 01 ff 	li      r4,511                                 
ffc09418:	90 c1 00 0c 	stw     r6,12(r1)                              
ffc0941c:	90 e1 00 10 	stw     r7,16(r1)                              
ffc09420:	48 00 0c 05 	bl      ffc0a024 <rtems_mkdir>                 
    if (rv == 0) {                                                    
ffc09424:	2c 03 00 00 	cmpwi   r3,0                                   
ffc09428:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc0942c:	80 c1 00 0c 	lwz     r6,12(r1)                              
ffc09430:	80 e1 00 10 	lwz     r7,16(r1)                              
ffc09434:	40 a2 00 30 	bne+    ffc09464 <mount_and_make_target_path+0x74><== NEVER TAKEN
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc09438:	80 01 00 24 	lwz     r0,36(r1)                              
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
    if (rv == 0) {                                                    
      rv = mount(                                                     
ffc0943c:	7f c3 f3 78 	mr      r3,r30                                 
ffc09440:	7f e4 fb 78 	mr      r4,r31                                 
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc09444:	bb c1 00 18 	lmw     r30,24(r1)                             
ffc09448:	7c 08 03 a6 	mtlr    r0                                     
ffc0944c:	38 21 00 20 	addi    r1,r1,32                               
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
    if (rv == 0) {                                                    
      rv = mount(                                                     
ffc09450:	48 00 00 1c 	b       ffc0946c <mount>                       
        options,                                                      
        data                                                          
      );                                                              
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
ffc09454:	48 01 7d 79 	bl      ffc211cc <__errno>                     
ffc09458:	39 20 00 16 	li      r9,22                                  
ffc0945c:	91 23 00 00 	stw     r9,0(r3)                               
  const char *filesystemtype,                                         
  rtems_filesystem_options_t options,                                 
  const void *data                                                    
)                                                                     
{                                                                     
  int rv = -1;                                                        
ffc09460:	38 60 ff ff 	li      r3,-1                                  
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc09464:	39 61 00 20 	addi    r11,r1,32                              
ffc09468:	4b ff 81 00 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc17b78 <msdos_creat_node>: msdos_node_type_t type, const char *name, int name_len, mode_t mode, const fat_file_fd_t *link_fd) {
ffc17b78:	94 21 ff 30 	stwu    r1,-208(r1)                            
ffc17b7c:	7c 08 02 a6 	mflr    r0                                     
ffc17b80:	90 01 00 d4 	stw     r0,212(r1)                             
    int               rc = RC_OK;                                     
    ssize_t           ret = 0;                                        
    msdos_fs_info_t  *fs_info = parent_loc->mt_entry->fs_info;        
ffc17b84:	81 23 00 14 	lwz     r9,20(r3)                              
                 msdos_node_type_t                        type,       
                 const char                              *name,       
                 int                                      name_len,   
                 mode_t                                   mode,       
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
ffc17b88:	be e1 00 ac 	stmw    r23,172(r1)                            
    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;                                  
ffc17b8c:	3b a0 00 00 	li      r29,0                                  
                 msdos_node_type_t                        type,       
                 const char                              *name,       
                 int                                      name_len,   
                 mode_t                                   mode,       
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
ffc17b90:	7c 7c 1b 78 	mr      r28,r3                                 
    int               rc = RC_OK;                                     
    ssize_t           ret = 0;                                        
    msdos_fs_info_t  *fs_info = parent_loc->mt_entry->fs_info;        
ffc17b94:	83 e9 00 08 	lwz     r31,8(r9)                              
                 msdos_node_type_t                        type,       
                 const char                              *name,       
                 int                                      name_len,   
                 mode_t                                   mode,       
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
ffc17b98:	7c 9e 23 78 	mr      r30,r4                                 
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
  dir_pos->sname.ofs = 0;                                             
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
ffc17b9c:	39 20 ff ff 	li      r9,-1                                  
    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;        
ffc17ba0:	83 63 00 08 	lwz     r27,8(r3)                              
    uint32_t          sec = 0;                                        
    uint32_t          byte = 0;                                       
                                                                      
    fat_dir_pos_init(&dir_pos);                                       
                                                                      
    memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
ffc17ba4:	38 80 00 00 	li      r4,0                                   
ffc17ba8:	91 21 00 90 	stw     r9,144(r1)                             
                 msdos_node_type_t                        type,       
                 const char                              *name,       
                 int                                      name_len,   
                 mode_t                                   mode,       
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
ffc17bac:	7c b8 2b 78 	mr      r24,r5                                 
    uint32_t          sec = 0;                                        
    uint32_t          byte = 0;                                       
                                                                      
    fat_dir_pos_init(&dir_pos);                                       
                                                                      
    memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
ffc17bb0:	38 61 00 68 	addi    r3,r1,104                              
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
ffc17bb4:	91 21 00 94 	stw     r9,148(r1)                             
ffc17bb8:	38 a0 00 20 	li      r5,32                                  
                 msdos_node_type_t                        type,       
                 const char                              *name,       
                 int                                      name_len,   
                 mode_t                                   mode,       
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
ffc17bbc:	7c d9 33 78 	mr      r25,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;                                  
ffc17bc0:	93 a1 00 98 	stw     r29,152(r1)                            
                 msdos_node_type_t                        type,       
                 const char                              *name,       
                 int                                      name_len,   
                 mode_t                                   mode,       
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
ffc17bc4:	7d 1a 43 78 	mr      r26,r8                                 
    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;                                  
    time_t            time_ret = 0;                                   
    uint16_t          time_val = 0;                                   
ffc17bc8:	b3 a1 00 9e 	sth     r29,158(r1)                            
    uint16_t          date = 0;                                       
ffc17bcc:	b3 a1 00 9c 	sth     r29,156(r1)                            
static inline void                                                    
fat_dir_pos_init(                                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
ffc17bd0:	93 a1 00 88 	stw     r29,136(r1)                            
  dir_pos->sname.ofs = 0;                                             
ffc17bd4:	93 a1 00 8c 	stw     r29,140(r1)                            
    uint32_t          sec = 0;                                        
    uint32_t          byte = 0;                                       
                                                                      
    fat_dir_pos_init(&dir_pos);                                       
                                                                      
    memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
ffc17bd8:	48 00 45 71 	bl      ffc1c148 <memset>                      
    memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);     
ffc17bdc:	38 61 00 08 	addi    r3,r1,8                                
ffc17be0:	38 80 00 00 	li      r4,0                                   
ffc17be4:	38 a0 00 40 	li      r5,64                                  
ffc17be8:	48 00 45 61 	bl      ffc1c148 <memset>                      
                                                                      
    if (name_len > MSDOS_NAME_MAX_LFN_WITH_DOT) {                     
ffc17bec:	2f 99 01 04 	cmpwi   cr7,r25,260                            
ffc17bf0:	40 bd 00 10 	ble+    cr7,ffc17c00 <msdos_creat_node+0x88>   <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(ENAMETOOLONG);           
ffc17bf4:	48 00 37 81 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc17bf8:	39 20 00 5b 	li      r9,91                                  <== NOT EXECUTED
ffc17bfc:	48 00 00 28 	b       ffc17c24 <msdos_creat_node+0xac>       <== NOT EXECUTED
    }                                                                 
                                                                      
    name_type = msdos_long_to_short (name, name_len,                  
ffc17c00:	7f 03 c3 78 	mr      r3,r24                                 
ffc17c04:	7f 24 cb 78 	mr      r4,r25                                 
ffc17c08:	38 a1 00 68 	addi    r5,r1,104                              
ffc17c0c:	38 c0 00 0b 	li      r6,11                                  
ffc17c10:	48 00 04 8d 	bl      ffc1809c <msdos_long_to_short>         
                                     MSDOS_DIR_NAME(short_node),      
                                     MSDOS_NAME_MAX);                 
    if (name_type == MSDOS_NAME_INVALID) {                            
ffc17c14:	7c 77 1b 79 	mr.     r23,r3                                 
ffc17c18:	40 a2 00 18 	bne+    ffc17c30 <msdos_creat_node+0xb8>       <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EINVAL);                 
ffc17c1c:	48 00 37 59 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc17c20:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc17c24:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc17c28:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
ffc17c2c:	48 00 02 dc 	b       ffc17f08 <msdos_creat_node+0x390>      <== NOT EXECUTED
    }                                                                 
                                                                      
    /* fill reserved field */                                         
    *MSDOS_DIR_NT_RES(short_node) = MSDOS_RES_NT_VALUE;               
ffc17c30:	39 20 00 00 	li      r9,0                                   
                                                                      
    /* set up last write date and time */                             
    time_ret = time(NULL);                                            
ffc17c34:	38 60 00 00 	li      r3,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;               
ffc17c38:	99 21 00 74 	stb     r9,116(r1)                             
                                                                      
    /* set up last write date and time */                             
    time_ret = time(NULL);                                            
ffc17c3c:	48 00 83 5d 	bl      ffc1ff98 <time>                        
    if ( time_ret == -1 )                                             
ffc17c40:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc17c44:	40 be 00 08 	bne+    cr7,ffc17c4c <msdos_creat_node+0xd4>   <== ALWAYS TAKEN
ffc17c48:	4b ff ff e0 	b       ffc17c28 <msdos_creat_node+0xb0>       <== NOT EXECUTED
        return -1;                                                    
                                                                      
    msdos_date_unix2dos(time_ret, &date, &time_val);                  
ffc17c4c:	38 81 00 9c 	addi    r4,r1,156                              
ffc17c50:	38 a1 00 9e 	addi    r5,r1,158                              
ffc17c54:	48 00 28 5d 	bl      ffc1a4b0 <msdos_date_unix2dos>         
    *MSDOS_DIR_CRT_TIME(short_node) = CT_LE_W(time_val);              
ffc17c58:	a1 21 00 9e 	lhz     r9,158(r1)                             
    *MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);          
                                                                      
    /* initialize directory/file size */                              
    *MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;           
                                                                      
    if (type == MSDOS_DIRECTORY) {                                    
ffc17c5c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    *MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);            
    *MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);                
    *MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);          
                                                                      
    /* initialize directory/file size */                              
    *MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;           
ffc17c60:	93 a1 00 84 	stw     r29,132(r1)                            
    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);              
ffc17c64:	55 28 c2 3e 	rlwinm  r8,r9,24,8,31                          
ffc17c68:	55 2a 44 2e 	rlwinm  r10,r9,8,16,23                         
ffc17c6c:	7d 4a 43 78 	or      r10,r10,r8                             
    *MSDOS_DIR_CRT_DATE(short_node) = CT_LE_W(date);                  
ffc17c70:	a1 01 00 9c 	lhz     r8,156(r1)                             
    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);              
ffc17c74:	b1 41 00 76 	sth     r10,118(r1)                            
    *MSDOS_DIR_CRT_DATE(short_node) = CT_LE_W(date);                  
ffc17c78:	55 07 c2 3e 	rlwinm  r7,r8,24,8,31                          
ffc17c7c:	55 09 44 2e 	rlwinm  r9,r8,8,16,23                          
    *MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);            
ffc17c80:	b1 41 00 7e 	sth     r10,126(r1)                            
    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);              
    *MSDOS_DIR_CRT_DATE(short_node) = CT_LE_W(date);                  
ffc17c84:	7d 29 3b 78 	or      r9,r9,r7                               
ffc17c88:	b1 21 00 78 	sth     r9,120(r1)                             
    *MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);            
    *MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);                
ffc17c8c:	b1 21 00 80 	sth     r9,128(r1)                             
    *MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);          
ffc17c90:	b1 21 00 7a 	sth     r9,122(r1)                             
                                                                      
    /* initialize directory/file size */                              
    *MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;           
                                                                      
    if (type == MSDOS_DIRECTORY) {                                    
ffc17c94:	40 9e 00 10 	bne-    cr7,ffc17ca4 <msdos_creat_node+0x12c>  
      *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;            
ffc17c98:	89 21 00 73 	lbz     r9,115(r1)                             
ffc17c9c:	61 29 00 10 	ori     r9,r9,16                               
ffc17ca0:	48 00 00 b8 	b       ffc17d58 <msdos_creat_node+0x1e0>      
    }                                                                 
    else if (type == MSDOS_HARD_LINK) {                               
ffc17ca4:	2f 9e 00 02 	cmpwi   cr7,r30,2                              
       * 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;            
ffc17ca8:	89 21 00 73 	lbz     r9,115(r1)                             
ffc17cac:	61 29 00 20 	ori     r9,r9,32                               
    *MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;           
                                                                      
    if (type == MSDOS_DIRECTORY) {                                    
      *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;            
    }                                                                 
    else if (type == MSDOS_HARD_LINK) {                               
ffc17cb0:	40 be 00 a8 	bne+    cr7,ffc17d58 <msdos_creat_node+0x1e0>  <== ALWAYS TAKEN
       * node to the newly created                                    
       */                                                             
      /*                                                              
       * read the original directory entry                            
       */                                                             
      sec = fat_cluster_num_to_sector_num(&fs_info->fat,              
ffc17cb4:	81 5a 00 20 	lwz     r10,32(r26)                            <== 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)) )
ffc17cb8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc17cbc:	40 9e 00 18 	bne-    cr7,ffc17cd4 <msdos_creat_node+0x15c>  <== NOT EXECUTED
ffc17cc0:	89 3f 00 0e 	lbz     r9,14(r31)                             <== NOT EXECUTED
ffc17cc4:	71 28 00 03 	andi.   r8,r9,3                                <== NOT EXECUTED
ffc17cc8:	41 a2 00 0c 	beq+    ffc17cd4 <msdos_creat_node+0x15c>      <== NOT EXECUTED
        return fs_info->vol.rdir_loc;                                 
ffc17ccc:	81 5f 00 20 	lwz     r10,32(r31)                            <== NOT EXECUTED
ffc17cd0:	48 00 00 18 	b       ffc17ce8 <msdos_creat_node+0x170>      <== NOT EXECUTED
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
ffc17cd4:	89 3f 00 05 	lbz     r9,5(r31)                              <== NOT EXECUTED
ffc17cd8:	39 4a ff fe 	addi    r10,r10,-2                             <== NOT EXECUTED
ffc17cdc:	7d 4a 48 30 	slw     r10,r10,r9                             <== NOT EXECUTED
ffc17ce0:	81 3f 00 34 	lwz     r9,52(r31)                             <== NOT EXECUTED
ffc17ce4:	7d 4a 4a 14 	add     r10,r10,r9                             <== NOT EXECUTED
                                          link_fd->dir_pos.sname.cln);
      sec += (link_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
ffc17ce8:	81 3a 00 24 	lwz     r9,36(r26)                             <== NOT EXECUTED
      byte = (link_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
                                                                      
      ret = _fat_block_read(&fs_info->fat,                            
ffc17cec:	7f e3 fb 78 	mr      r3,r31                                 <== 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);
ffc17cf0:	88 9f 00 02 	lbz     r4,2(r31)                              <== NOT EXECUTED
      byte = (link_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
                                                                      
      ret = _fat_block_read(&fs_info->fat,                            
ffc17cf4:	38 c0 00 20 	li      r6,32                                  <== 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));
ffc17cf8:	a0 bf 00 00 	lhz     r5,0(r31)                              <== NOT EXECUTED
                                                                      
      ret = _fat_block_read(&fs_info->fat,                            
ffc17cfc:	38 e1 00 48 	addi    r7,r1,72                               <== 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);
ffc17d00:	7d 24 24 30 	srw     r4,r9,r4                               <== NOT EXECUTED
      byte = (link_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
ffc17d04:	38 a5 ff ff 	addi    r5,r5,-1                               <== NOT EXECUTED
                                                                      
      ret = _fat_block_read(&fs_info->fat,                            
ffc17d08:	7c 8a 22 14 	add     r4,r10,r4                              <== NOT EXECUTED
ffc17d0c:	7c a5 48 38 	and     r5,r5,r9                               <== NOT EXECUTED
ffc17d10:	4b ff be 89 	bl      ffc13b98 <_fat_block_read>             <== NOT EXECUTED
                            sec, byte, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
                            link_node);                               
      if (ret < 0) {                                                  
ffc17d14:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc17d18:	41 bc ff 10 	blt-    cr7,ffc17c28 <msdos_creat_node+0xb0>   <== 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);
ffc17d1c:	89 21 00 55 	lbz     r9,85(r1)                              <== NOT EXECUTED
          return -1;                                                  
      }                                                               
      /*                                                              
       * copy various attributes                                      
       */                                                             
      *MSDOS_DIR_ATTR(short_node)          =*MSDOS_DIR_ATTR(link_node);
ffc17d20:	89 41 00 53 	lbz     r10,83(r1)                             <== NOT EXECUTED
      *MSDOS_DIR_CRT_TIME_TENTH(short_node)=*MSDOS_DIR_CRT_TIME_TENTH(link_node);
ffc17d24:	99 21 00 75 	stb     r9,117(r1)                             <== NOT EXECUTED
      *MSDOS_DIR_CRT_TIME(short_node)      =*MSDOS_DIR_CRT_TIME(link_node);
ffc17d28:	a1 21 00 56 	lhz     r9,86(r1)                              <== NOT EXECUTED
ffc17d2c:	b1 21 00 76 	sth     r9,118(r1)                             <== NOT EXECUTED
      *MSDOS_DIR_CRT_DATE(short_node)      =*MSDOS_DIR_CRT_DATE(link_node);
ffc17d30:	a1 21 00 58 	lhz     r9,88(r1)                              <== NOT EXECUTED
ffc17d34:	b1 21 00 78 	sth     r9,120(r1)                             <== NOT EXECUTED
                                                                      
      /*                                                              
       * copy/set "file size", "first cluster"                        
       */                                                             
      *MSDOS_DIR_FILE_SIZE(short_node)     =*MSDOS_DIR_FILE_SIZE(link_node);
ffc17d38:	81 21 00 64 	lwz     r9,100(r1)                             <== NOT EXECUTED
ffc17d3c:	91 21 00 84 	stw     r9,132(r1)                             <== NOT EXECUTED
                                                                      
      *MSDOS_DIR_FIRST_CLUSTER_LOW(short_node) =                      
ffc17d40:	a1 21 00 62 	lhz     r9,98(r1)                              <== NOT EXECUTED
ffc17d44:	b1 21 00 82 	sth     r9,130(r1)                             <== NOT EXECUTED
           *MSDOS_DIR_FIRST_CLUSTER_LOW(link_node);                   
      *MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =                       
ffc17d48:	a1 21 00 5c 	lhz     r9,92(r1)                              <== NOT EXECUTED
ffc17d4c:	b1 21 00 7c 	sth     r9,124(r1)                             <== NOT EXECUTED
           *MSDOS_DIR_FIRST_CLUSTER_HI(link_node);                    
      /*                                                              
       * set "archive bit" due to changes                             
       */                                                             
      *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;              
ffc17d50:	61 49 00 20 	ori     r9,r10,32                              <== NOT EXECUTED
ffc17d54:	48 00 00 04 	b       ffc17d58 <msdos_creat_node+0x1e0>      <== NOT EXECUTED
    /*                                                                
     * 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,        
                             name_type, &dir_pos, short_node);        
ffc17d58:	3b 41 00 68 	addi    r26,r1,104                             
       * 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;            
ffc17d5c:	99 21 00 73 	stb     r9,115(r1)                             
                                                                      
    /*                                                                
     * 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,        
ffc17d60:	7f 83 e3 78 	mr      r3,r28                                 
ffc17d64:	38 80 00 01 	li      r4,1                                   
ffc17d68:	7f 05 c3 78 	mr      r5,r24                                 
ffc17d6c:	7f 26 cb 78 	mr      r6,r25                                 
ffc17d70:	7e e7 bb 78 	mr      r7,r23                                 
ffc17d74:	39 01 00 88 	addi    r8,r1,136                              
ffc17d78:	7f 49 d3 78 	mr      r9,r26                                 
ffc17d7c:	48 00 15 e5 	bl      ffc19360 <msdos_get_name_node>         
                             name_type, &dir_pos, short_node);        
    if ( rc != RC_OK )                                                
ffc17d80:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc17d84:	40 82 01 84 	bne-    ffc17f08 <msdos_creat_node+0x390>      
                                                                      
    /*                                                                
     * if we create a new file we are done, if directory there are more steps
     * to do                                                          
     */                                                               
    if (type == MSDOS_DIRECTORY)                                      
ffc17d88:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc17d8c:	40 be 01 7c 	bne+    cr7,ffc17f08 <msdos_creat_node+0x390>  
    {                                                                 
        /* open new directory as fat-file */                          
        rc = fat_file_open(&fs_info->fat, &dir_pos, &fat_fd);         
ffc17d90:	7f e3 fb 78 	mr      r3,r31                                 
ffc17d94:	38 81 00 88 	addi    r4,r1,136                              
ffc17d98:	38 a1 00 98 	addi    r5,r1,152                              
ffc17d9c:	4b ff af 71 	bl      ffc12d0c <fat_file_open>               
        if (rc != RC_OK)                                              
ffc17da0:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc17da4:	40 82 01 54 	bne-    ffc17ef8 <msdos_creat_node+0x380>      <== NEVER TAKEN
                                                                      
        /*                                                            
         * we opened fat-file for node we just created, so initialize fat-file
         * descritor                                                  
         */                                                           
        fat_fd->fat_file_size = 0;                                    
ffc17da8:	80 81 00 98 	lwz     r4,152(r1)                             
        fat_fd->fat_file_type = FAT_DIRECTORY;                        
        fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                    
ffc17dac:	3d 20 00 20 	lis     r9,32                                  
                                                                      
        /*                                                            
         * dot and dotdot entries are identical to new node except the
         * names                                                      
         */                                                           
        memcpy(DOT_NODE_P(dot_dotdot), short_node,                    
ffc17db0:	3b a1 00 08 	addi    r29,r1,8                               
         * we opened fat-file for node we just created, so initialize fat-file
         * descritor                                                  
         */                                                           
        fat_fd->fat_file_size = 0;                                    
        fat_fd->fat_file_type = FAT_DIRECTORY;                        
        fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                    
ffc17db4:	91 24 00 14 	stw     r9,20(r4)                              
         * 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,                 
ffc17db8:	38 61 00 28 	addi    r3,r1,40                               
                                                                      
        /*                                                            
         * we opened fat-file for node we just created, so initialize fat-file
         * descritor                                                  
         */                                                           
        fat_fd->fat_file_size = 0;                                    
ffc17dbc:	93 c4 00 18 	stw     r30,24(r4)                             
        fat_fd->fat_file_type = FAT_DIRECTORY;                        
ffc17dc0:	93 c4 00 10 	stw     r30,16(r4)                             
                                                                      
        /*                                                            
         * dot and dotdot entries are identical to new node except the
         * names                                                      
         */                                                           
        memcpy(DOT_NODE_P(dot_dotdot), short_node,                    
ffc17dc4:	7c ba 04 aa 	lswi    r5,r26,32                              
ffc17dc8:	7c bd 05 aa 	stswi   r5,r29,32                              
               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);                    
        memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,                 
ffc17dcc:	7c ba 04 aa 	lswi    r5,r26,32                              
ffc17dd0:	7c a3 05 aa 	stswi   r5,r3,32                               
               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);                    
        memcpy(MSDOS_DIR_NAME(DOT_NODE_P(dot_dotdot)), MSDOS_DOT_NAME,
ffc17dd4:	3d 20 00 00 	lis     r9,0                                   
ffc17dd8:	81 29 27 a4 	lwz     r9,10148(r9)                           
ffc17ddc:	7c a9 5c aa 	lswi    r5,r9,11                               
ffc17de0:	7c bd 5d aa 	stswi   r5,r29,11                              
               MSDOS_NAME_MAX);                                       
        memcpy(MSDOS_DIR_NAME(DOTDOT_NODE_P(dot_dotdot)), MSDOS_DOTDOT_NAME,
ffc17de4:	3d 20 00 00 	lis     r9,0                                   
ffc17de8:	81 29 27 a0 	lwz     r9,10144(r9)                           
ffc17dec:	7c a9 5c aa 	lswi    r5,r9,11                               
ffc17df0:	7c a3 5d aa 	stswi   r5,r3,11                               
        /*                                                            
         * 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)) &&                    
ffc17df4:	81 3b 00 20 	lwz     r9,32(r27)                             
ffc17df8:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc17dfc:	40 be 00 2c 	bne+    cr7,ffc17e28 <msdos_creat_node+0x2b0>  
ffc17e00:	81 3b 00 24 	lwz     r9,36(r27)                             
ffc17e04:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc17e08:	40 9e 00 20 	bne-    cr7,ffc17e28 <msdos_creat_node+0x2b0>  <== NEVER TAKEN
            (fs_info->fat.vol.type & FAT_FAT32))                      
ffc17e0c:	89 3f 00 0e 	lbz     r9,14(r31)                             
        /*                                                            
         * 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)) &&                    
ffc17e10:	55 29 07 7a 	rlwinm  r9,r9,0,29,29                          
ffc17e14:	71 2a 00 ff 	andi.   r10,r9,255                             
ffc17e18:	41 82 00 10 	beq-    ffc17e28 <msdos_creat_node+0x2b0>      <== ALWAYS TAKEN
            (fs_info->fat.vol.type & FAT_FAT32))                      
        {                                                             
            *MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
ffc17e1c:	b3 c1 00 42 	sth     r30,66(r1)                             <== NOT EXECUTED
            *MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
ffc17e20:	b3 c1 00 3c 	sth     r30,60(r1)                             <== NOT EXECUTED
ffc17e24:	48 00 00 2c 	b       ffc17e50 <msdos_creat_node+0x2d8>      <== NOT EXECUTED
        }                                                             
        else                                                          
        {                                                             
            *MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 
                CT_LE_W((uint16_t  )((parent_fat_fd->cln) & 0x0000FFFF));
ffc17e28:	81 3b 00 1c 	lwz     r9,28(r27)                             
ffc17e2c:	55 28 42 2e 	rlwinm  r8,r9,8,8,23                           
            *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)) = 
ffc17e30:	55 2a c6 3e 	rlwinm  r10,r9,24,24,31                        
ffc17e34:	7d 0a 53 78 	or      r10,r8,r10                             
                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));
ffc17e38:	55 29 84 3e 	rlwinm  r9,r9,16,16,31                         
            *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)) = 
ffc17e3c:	b1 41 00 42 	sth     r10,66(r1)                             
                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));
ffc17e40:	55 2a 40 2e 	rlwinm  r10,r9,8,0,23                          
        }                                                             
        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)) =  
ffc17e44:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc17e48:	7d 49 4b 78 	or      r9,r10,r9                              
ffc17e4c:	b1 21 00 3c 	sth     r9,60(r1)                              
        /*                                                            
         * 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,                
ffc17e50:	7f e3 fb 78 	mr      r3,r31                                 
ffc17e54:	38 a0 00 00 	li      r5,0                                   
ffc17e58:	38 c0 00 40 	li      r6,64                                  
ffc17e5c:	38 e1 00 08 	addi    r7,r1,8                                
ffc17e60:	4b ff b7 01 	bl      ffc13560 <fat_file_write>              
                             MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2,   
                             (uint8_t *)dot_dotdot);                  
        if (ret < 0)                                                  
ffc17e64:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc17e68:	41 9c 00 80 	blt-    cr7,ffc17ee8 <msdos_creat_node+0x370>  <== NEVER TAKEN
            rc = -1;                                                  
            goto error;                                               
        }                                                             
                                                                      
        /* increment fat-file size by cluster size */                 
        fat_fd->fat_file_size += fs_info->fat.vol.bpc;                
ffc17e6c:	80 81 00 98 	lwz     r4,152(r1)                             
                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));
                                                                      
        /* rewrite dot entry */                                       
        ret = fat_file_write(&fs_info->fat, fat_fd, 0,                
ffc17e70:	7f e3 fb 78 	mr      r3,r31                                 
            rc = -1;                                                  
            goto error;                                               
        }                                                             
                                                                      
        /* increment fat-file size by cluster size */                 
        fat_fd->fat_file_size += fs_info->fat.vol.bpc;                
ffc17e74:	a1 5f 00 06 	lhz     r10,6(r31)                             
                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));
                                                                      
        /* rewrite dot entry */                                       
        ret = fat_file_write(&fs_info->fat, fat_fd, 0,                
ffc17e78:	38 a0 00 00 	li      r5,0                                   
            rc = -1;                                                  
            goto error;                                               
        }                                                             
                                                                      
        /* increment fat-file size by cluster size */                 
        fat_fd->fat_file_size += fs_info->fat.vol.bpc;                
ffc17e7c:	81 24 00 18 	lwz     r9,24(r4)                              
                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));
                                                                      
        /* rewrite dot entry */                                       
        ret = fat_file_write(&fs_info->fat, fat_fd, 0,                
ffc17e80:	38 c0 00 20 	li      r6,32                                  
ffc17e84:	38 e1 00 08 	addi    r7,r1,8                                
            rc = -1;                                                  
            goto error;                                               
        }                                                             
                                                                      
        /* increment fat-file size by cluster size */                 
        fat_fd->fat_file_size += fs_info->fat.vol.bpc;                
ffc17e88:	7d 29 52 14 	add     r9,r9,r10                              
ffc17e8c:	91 24 00 18 	stw     r9,24(r4)                              
                                                                      
        /* 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));    
ffc17e90:	81 24 00 1c 	lwz     r9,28(r4)                              
ffc17e94:	55 28 42 2e 	rlwinm  r8,r9,8,8,23                           
                                                                      
        /* increment fat-file size by cluster size */                 
        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)) =        
ffc17e98:	55 2a c6 3e 	rlwinm  r10,r9,24,24,31                        
ffc17e9c:	7d 0a 53 78 	or      r10,r8,r10                             
                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));
ffc17ea0:	55 29 84 3e 	rlwinm  r9,r9,16,16,31                         
                                                                      
        /* increment fat-file size by cluster size */                 
        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)) =        
ffc17ea4:	b1 41 00 22 	sth     r10,34(r1)                             
                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));
ffc17ea8:	55 2a 40 2e 	rlwinm  r10,r9,8,0,23                          
        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)) =         
ffc17eac:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc17eb0:	7d 49 4b 78 	or      r9,r10,r9                              
ffc17eb4:	b1 21 00 1c 	sth     r9,28(r1)                              
                CT_LE_W((uint16_t  )(((fat_fd->cln) & 0xFFFF0000) >> 16));
                                                                      
        /* rewrite dot entry */                                       
        ret = fat_file_write(&fs_info->fat, fat_fd, 0,                
ffc17eb8:	4b ff b6 a9 	bl      ffc13560 <fat_file_write>              
                             MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,       
                             (uint8_t *)DOT_NODE_P(dot_dotdot));      
        if (ret < 0)                                                  
ffc17ebc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc17ec0:	41 9c 00 28 	blt-    cr7,ffc17ee8 <msdos_creat_node+0x370>  <== 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);
ffc17ec4:	80 7c 00 14 	lwz     r3,20(r28)                             
ffc17ec8:	80 81 00 98 	lwz     r4,152(r1)                             
ffc17ecc:	48 00 04 d1 	bl      ffc1839c <msdos_set_first_cluster_num> 
        if (rc != RC_OK)                                              
ffc17ed0:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc17ed4:	40 a2 00 18 	bne+    ffc17eec <msdos_creat_node+0x374>      <== NEVER TAKEN
            goto error;                                               
                                                                      
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc17ed8:	80 81 00 98 	lwz     r4,152(r1)                             
ffc17edc:	7f e3 fb 78 	mr      r3,r31                                 
ffc17ee0:	4b ff b2 9d 	bl      ffc1317c <fat_file_close>              
ffc17ee4:	48 00 00 24 	b       ffc17f08 <msdos_creat_node+0x390>      
        ret = fat_file_write(&fs_info->fat, fat_fd, 0,                
                             MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2,   
                             (uint8_t *)dot_dotdot);                  
        if (ret < 0)                                                  
        {                                                             
            rc = -1;                                                  
ffc17ee8:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
        fat_file_close(&fs_info->fat, fat_fd);                        
    }                                                                 
    return RC_OK;                                                     
                                                                      
error:                                                                
    fat_file_close(&fs_info->fat, fat_fd);                            
ffc17eec:	80 81 00 98 	lwz     r4,152(r1)                             <== NOT EXECUTED
ffc17ef0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc17ef4:	4b ff b2 89 	bl      ffc1317c <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);
ffc17ef8:	80 7c 00 14 	lwz     r3,20(r28)                             <== NOT EXECUTED
ffc17efc:	38 81 00 88 	addi    r4,r1,136                              <== NOT EXECUTED
ffc17f00:	38 a0 00 e5 	li      r5,229                                 <== NOT EXECUTED
ffc17f04:	48 00 05 e5 	bl      ffc184e8 <msdos_set_first_char4file_name><== NOT EXECUTED
    return rc;                                                        
}                                                                     
ffc17f08:	39 61 00 d0 	addi    r11,r1,208                             
ffc17f0c:	7f a3 eb 78 	mr      r3,r29                                 
ffc17f10:	4b fe 96 cc 	b       ffc015dc <_restgpr_23_x>               
                                                                      

ffc1a5e4 <msdos_date_dos2unix>: 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;
ffc1a5e4:	54 8a ae fe 	rlwinm  r10,r4,21,27,31                        
	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  
ffc1a5e8:	54 89 de be 	rlwinm  r9,r4,27,26,31                         
	    + ((dt & MSDOS_DT_HOURS_MASK) >> MSDOS_DT_HOURS_SHIFT) * 3600;   
ffc1a5ec:	1d 4a 07 08 	mulli   r10,r10,1800                           
	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  
ffc1a5f0:	1d 29 00 1e 	mulli   r9,r9,30                               
	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)
ffc1a5f4:	54 84 06 fe 	clrlwi  r4,r4,27                               
	    + ((dt & MSDOS_DT_MINUTES_MASK) >> MSDOS_DT_MINUTES_SHIFT) * 60  
	    + ((dt & MSDOS_DT_HOURS_MASK) >> MSDOS_DT_HOURS_SHIFT) * 3600;   
ffc1a5f8:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc1a5fc:	7c 89 22 14 	add     r4,r9,r4                               
	/*                                                                   
	 * If the year, month, and day from the last conversion are the      
	 * same then use the saved value.                                    
	 */                                                                  
	if (lastdosdate != dd) {                                             
ffc1a600:	3d 20 00 00 	lis     r9,0                                   
ffc1a604:	39 29 2a 70 	addi    r9,r9,10864                            
ffc1a608:	a1 49 00 0e 	lhz     r10,14(r9)                             
	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)
ffc1a60c:	54 84 08 3c 	rlwinm  r4,r4,1,0,30                           
	    + ((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) {                                             
ffc1a610:	7f 8a 18 00 	cmpw    cr7,r10,r3                             
ffc1a614:	41 9e 00 ac 	beq-    cr7,ffc1a6c0 <msdos_date_dos2unix+0xdc>
		lastdosdate = dd;                                                   
		days = 0;                                                           
		year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;            
ffc1a618:	54 68 be 7e 	rlwinm  r8,r3,23,25,31                         
	/*                                                                   
	 * If the year, month, and day from the last conversion are the      
	 * same then use the saved value.                                    
	 */                                                                  
	if (lastdosdate != dd) {                                             
		lastdosdate = dd;                                                   
ffc1a61c:	b0 69 00 0e 	sth     r3,14(r9)                              
		days = 0;                                                           
		year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;            
		for (y = 0; y < year; y++)                                          
ffc1a620:	39 08 00 01 	addi    r8,r8,1                                
	 * 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;                                                           
ffc1a624:	39 20 00 00 	li      r9,0                                   
		year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;            
		for (y = 0; y < year; y++)                                          
ffc1a628:	7d 09 03 a6 	mtctr   r8                                     
ffc1a62c:	39 40 00 00 	li      r10,0                                  
ffc1a630:	48 00 00 18 	b       ffc1a648 <msdos_date_dos2unix+0x64>    
			days += y & 0x03 ? 365 : 366;                                      
ffc1a634:	7d 08 00 34 	cntlzw  r8,r8                                  
ffc1a638:	55 08 d9 7e 	rlwinm  r8,r8,27,5,31                          
ffc1a63c:	39 08 01 6d 	addi    r8,r8,365                              
ffc1a640:	7d 29 42 14 	add     r9,r9,r8                               
	 */                                                                  
	if (lastdosdate != dd) {                                             
		lastdosdate = dd;                                                   
		days = 0;                                                           
		year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;            
		for (y = 0; y < year; y++)                                          
ffc1a644:	39 4a 00 01 	addi    r10,r10,1                              
ffc1a648:	55 48 07 be 	clrlwi  r8,r10,30                              
ffc1a64c:	42 00 ff e8 	bdnz+   ffc1a634 <msdos_date_dos2unix+0x50>    
			days += y & 0x03 ? 365 : 366;                                      
		months = year & 0x03 ? regyear : leapyear;                          
ffc1a650:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc1a654:	3d 40 00 00 	lis     r10,0                                  
ffc1a658:	39 4a 22 60 	addi    r10,r10,8800                           
ffc1a65c:	41 9e 00 0c 	beq-    cr7,ffc1a668 <msdos_date_dos2unix+0x84><== ALWAYS TAKEN
ffc1a660:	7d 48 53 78 	mr      r8,r10                                 <== NOT EXECUTED
ffc1a664:	48 00 00 08 	b       ffc1a66c <msdos_date_dos2unix+0x88>    <== NOT EXECUTED
ffc1a668:	39 0a 00 18 	addi    r8,r10,24                              
		/*                                                                  
		 * Prevent going from 0 to 0xffffffff in the following              
		 * loop.                                                            
		 */                                                                 
		month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;         
		if (month == 0) {                                                   
ffc1a66c:	54 67 df 3f 	rlwinm. r7,r3,27,28,31                         
ffc1a670:	40 82 00 08 	bne-    ffc1a678 <msdos_date_dos2unix+0x94>    <== ALWAYS TAKEN
			month = 1;                                                         
ffc1a674:	38 e0 00 01 	li      r7,1                                   <== NOT EXECUTED
		}                                                                   
		for (m = 0; m < month - 1; m++)                                     
ffc1a678:	39 40 00 00 	li      r10,0                                  
ffc1a67c:	7c e9 03 a6 	mtctr   r7                                     
ffc1a680:	48 00 00 14 	b       ffc1a694 <msdos_date_dos2unix+0xb0>    
 * Convert from dos' idea of time to unix'. This will probably only be
 * 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)                 
ffc1a684:	55 47 08 3c 	rlwinm  r7,r10,1,0,30                          <== NOT EXECUTED
		month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;         
		if (month == 0) {                                                   
			month = 1;                                                         
		}                                                                   
		for (m = 0; m < month - 1; m++)                                     
			days += months[m];                                                 
ffc1a688:	7c e8 3a 2e 	lhzx    r7,r8,r7                               <== NOT EXECUTED
		 */                                                                 
		month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;         
		if (month == 0) {                                                   
			month = 1;                                                         
		}                                                                   
		for (m = 0; m < month - 1; m++)                                     
ffc1a68c:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
			days += months[m];                                                 
ffc1a690:	7d 29 3a 14 	add     r9,r9,r7                               <== NOT EXECUTED
		 */                                                                 
		month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;         
		if (month == 0) {                                                   
			month = 1;                                                         
		}                                                                   
		for (m = 0; m < month - 1; m++)                                     
ffc1a694:	42 00 ff f0 	bdnz+   ffc1a684 <msdos_date_dos2unix+0xa0>    
			days += months[m];                                                 
		days += ((dd & MSDOS_DD_DAY_MASK) >> MSDOS_DD_DAY_SHIFT) - 1;       
ffc1a698:	54 63 06 fe 	clrlwi  r3,r3,27                               
ffc1a69c:	38 63 ff ff 	addi    r3,r3,-1                               
		lastseconds = (days + DAYSTO1980) * SECONDSPERDAY;                  
ffc1a6a0:	3d 40 00 01 	lis     r10,1                                  
ffc1a6a4:	61 4a 51 80 	ori     r10,r10,20864                          
		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;       
ffc1a6a8:	7d 23 4a 14 	add     r9,r3,r9                               
		lastseconds = (days + DAYSTO1980) * SECONDSPERDAY;                  
ffc1a6ac:	7d 29 51 d6 	mullw   r9,r9,r10                              
ffc1a6b0:	3d 40 00 00 	lis     r10,0                                  
ffc1a6b4:	3d 29 12 cf 	addis   r9,r9,4815                             
ffc1a6b8:	39 29 a6 00 	addi    r9,r9,-23040                           
ffc1a6bc:	91 2a 2a 80 	stw     r9,10880(r10)                          
	}                                                                    
	return seconds + lastseconds;                                        
ffc1a6c0:	3d 20 00 00 	lis     r9,0                                   
ffc1a6c4:	80 69 2a 80 	lwz     r3,10880(r9)                           
}                                                                     
ffc1a6c8:	7c 64 1a 14 	add     r3,r4,r3                               
ffc1a6cc:	4e 80 00 20 	blr                                            
                                                                      

ffc1a4b0 <msdos_date_unix2dos>: /* * If the time from the last conversion is the same as now, then * skip the computations and use the saved result. */ if (lasttime != t) {
ffc1a4b0:	3d 40 00 00 	lis     r10,0                                  
ffc1a4b4:	81 0a 2a 70 	lwz     r8,10864(r10)                          
ffc1a4b8:	39 2a 2a 70 	addi    r9,r10,10864                           
ffc1a4bc:	7f 88 18 00 	cmpw    cr7,r8,r3                              
ffc1a4c0:	41 9e 01 08 	beq-    cr7,ffc1a5c8 <msdos_date_unix2dos+0x118>
		lasttime = t;                                                       
		lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)            
		    + (((t / 60) % 60) << MSDOS_DT_MINUTES_SHIFT)                   
ffc1a4c4:	39 00 00 3c 	li      r8,60                                  
	/*                                                                   
	 * 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;                                                       
ffc1a4c8:	90 6a 2a 70 	stw     r3,10864(r10)                          
		lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)            
		    + (((t / 60) % 60) << MSDOS_DT_MINUTES_SHIFT)                   
ffc1a4cc:	7d 43 43 96 	divwu   r10,r3,r8                              
ffc1a4d0:	7c ea 43 96 	divwu   r7,r10,r8                              
		    + (((t / 3600) % 24) << MSDOS_DT_HOURS_SHIFT);                  
ffc1a4d4:	39 00 0e 10 	li      r8,3600                                
ffc1a4d8:	7d 03 43 96 	divwu   r8,r3,r8                               
ffc1a4dc:	38 c0 00 18 	li      r6,24                                  
ffc1a4e0:	7c c8 33 96 	divwu   r6,r8,r6                               
	 * skip the computations and use the saved result.                   
	 */                                                                  
	if (lasttime != t) {                                                 
		lasttime = t;                                                       
		lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)            
		    + (((t / 60) % 60) << MSDOS_DT_MINUTES_SHIFT)                   
ffc1a4e4:	1c e7 00 3c 	mulli   r7,r7,60                               
		    + (((t / 3600) % 24) << MSDOS_DT_HOURS_SHIFT);                  
ffc1a4e8:	1c c6 00 18 	mulli   r6,r6,24                               
	 * skip the computations and use the saved result.                   
	 */                                                                  
	if (lasttime != t) {                                                 
		lasttime = t;                                                       
		lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)            
		    + (((t / 60) % 60) << MSDOS_DT_MINUTES_SHIFT)                   
ffc1a4ec:	7c e7 50 50 	subf    r7,r7,r10                              
	 * 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)            
ffc1a4f0:	1d 4a 00 3c 	mulli   r10,r10,60                             
		    + (((t / 60) % 60) << MSDOS_DT_MINUTES_SHIFT)                   
		    + (((t / 3600) % 24) << MSDOS_DT_HOURS_SHIFT);                  
ffc1a4f4:	7d 06 40 50 	subf    r8,r6,r8                               
	 * 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)            
ffc1a4f8:	7d 4a 18 50 	subf    r10,r10,r3                             
ffc1a4fc:	54 e7 28 34 	rlwinm  r7,r7,5,0,26                           
ffc1a500:	55 08 58 28 	rlwinm  r8,r8,11,0,20                          
ffc1a504:	7d 07 42 14 	add     r8,r7,r8                               
ffc1a508:	55 4a f8 7e 	rlwinm  r10,r10,31,1,31                        
ffc1a50c:	7d 48 52 14 	add     r10,r8,r10                             
ffc1a510:	b1 49 00 04 	sth     r10,4(r9)                              
		/*                                                                  
		 * 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);                                         
ffc1a514:	3d 40 00 01 	lis     r10,1                                  
ffc1a518:	61 4a 51 80 	ori     r10,r10,20864                          
ffc1a51c:	7c 63 53 96 	divwu   r3,r3,r10                              
		if (days != lastday) {                                              
ffc1a520:	81 49 00 08 	lwz     r10,8(r9)                              
ffc1a524:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc1a528:	41 9e 00 a0 	beq-    cr7,ffc1a5c8 <msdos_date_unix2dos+0x118>
			lastday = days;                                                    
ffc1a52c:	90 69 00 08 	stw     r3,8(r9)                               
			for (year = 1970;; year++) {                                       
ffc1a530:	39 20 07 b2 	li      r9,1970                                
				inc = year & 0x03 ? 365 : 366;                                    
ffc1a534:	71 28 00 03 	andi.   r8,r9,3                                
ffc1a538:	7d 40 00 26 	mfcr    r10                                    
ffc1a53c:	55 4a 1f fe 	rlwinm  r10,r10,3,31,31                        
ffc1a540:	39 4a 01 6d 	addi    r10,r10,365                            
				if (days < inc)                                                   
ffc1a544:	7f 83 50 40 	cmplw   cr7,r3,r10                             
ffc1a548:	41 9c 00 10 	blt-    cr7,ffc1a558 <msdos_date_unix2dos+0xa8>
					break;                                                           
				days -= inc;                                                      
ffc1a54c:	7c 6a 18 50 	subf    r3,r10,r3                              
		 * and month stuff.                                                 
		 */                                                                 
		days = t / (SECONDSPERDAY);                                         
		if (days != lastday) {                                              
			lastday = days;                                                    
			for (year = 1970;; year++) {                                       
ffc1a550:	39 29 00 01 	addi    r9,r9,1                                
				inc = year & 0x03 ? 365 : 366;                                    
				if (days < inc)                                                   
					break;                                                           
				days -= inc;                                                      
			}                                                                  
ffc1a554:	4b ff ff e0 	b       ffc1a534 <msdos_date_unix2dos+0x84>    
ffc1a558:	3c e0 00 00 	lis     r7,0                                   
ffc1a55c:	38 e7 22 60 	addi    r7,r7,8800                             
			months = year & 0x03 ? regyear : leapyear;                         
ffc1a560:	40 82 00 08 	bne-    ffc1a568 <msdos_date_unix2dos+0xb8>    <== NEVER TAKEN
ffc1a564:	38 e7 00 18 	addi    r7,r7,24                               
			for (month = 0; month < 12; month++) {                             
ffc1a568:	39 00 00 0c 	li      r8,12                                  
ffc1a56c:	7d 09 03 a6 	mtctr   r8                                     
ffc1a570:	39 40 00 00 	li      r10,0                                  
/*                                                                    
 * Convert the unix version of time to dos's idea of time to be used in
 * file timestamps. The passed in unix time is assumed to be in GMT.  
 */                                                                   
void                                                                  
msdos_date_unix2dos(unsigned int t, uint16_t *ddp,                    
ffc1a574:	55 48 08 3c 	rlwinm  r8,r10,1,0,30                          
					break;                                                           
				days -= inc;                                                      
			}                                                                  
			months = year & 0x03 ? regyear : leapyear;                         
			for (month = 0; month < 12; month++) {                             
				if (days < months[month])                                         
ffc1a578:	7d 07 42 2e 	lhzx    r8,r7,r8                               
ffc1a57c:	7f 83 40 40 	cmplw   cr7,r3,r8                              
ffc1a580:	41 9c 00 10 	blt-    cr7,ffc1a590 <msdos_date_unix2dos+0xe0><== ALWAYS TAKEN
					break;                                                           
				days -= months[month];                                            
ffc1a584:	7c 68 18 50 	subf    r3,r8,r3                               <== NOT EXECUTED
				if (days < inc)                                                   
					break;                                                           
				days -= inc;                                                      
			}                                                                  
			months = year & 0x03 ? regyear : leapyear;                         
			for (month = 0; month < 12; month++) {                             
ffc1a588:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
ffc1a58c:	42 00 ff e8 	bdnz+   ffc1a574 <msdos_date_unix2dos+0xc4>    <== NOT EXECUTED
			 * 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)                                                   
ffc1a590:	2b 89 07 bc 	cmplwi  cr7,r9,1980                            
			for (month = 0; month < 12; month++) {                             
				if (days < months[month])                                         
					break;                                                           
				days -= months[month];                                            
			}                                                                  
			lastddate = ((days + 1) << MSDOS_DD_DAY_SHIFT)                     
ffc1a594:	39 4a 00 01 	addi    r10,r10,1                              
ffc1a598:	38 63 00 01 	addi    r3,r3,1                                
ffc1a59c:	55 4a 28 34 	rlwinm  r10,r10,5,0,26                         
ffc1a5a0:	7c 63 52 14 	add     r3,r3,r10                              
ffc1a5a4:	3d 00 00 00 	lis     r8,0                                   
ffc1a5a8:	54 63 04 3e 	clrlwi  r3,r3,16                               
ffc1a5ac:	39 08 2a 70 	addi    r8,r8,10864                            
ffc1a5b0:	b0 68 00 0c 	sth     r3,12(r8)                              
			 * 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)                                                   
ffc1a5b4:	40 9d 00 14 	ble-    cr7,ffc1a5c8 <msdos_date_unix2dos+0x118><== NEVER TAKEN
				lastddate += (year - 1980) <<                                     
ffc1a5b8:	39 29 f8 44 	addi    r9,r9,-1980                            
ffc1a5bc:	55 29 48 2c 	rlwinm  r9,r9,9,0,22                           
ffc1a5c0:	7c 63 4a 14 	add     r3,r3,r9                               
ffc1a5c4:	b0 68 00 0c 	sth     r3,12(r8)                              
				             MSDOS_DD_YEAR_SHIFT;                                 
		}                                                                   
	}                                                                    
	*dtp = lastdtime;                                                    
ffc1a5c8:	3d 20 00 00 	lis     r9,0                                   
ffc1a5cc:	39 29 2a 70 	addi    r9,r9,10864                            
ffc1a5d0:	a1 49 00 04 	lhz     r10,4(r9)                              
	*ddp = lastddate;                                                    
ffc1a5d4:	a1 29 00 0c 	lhz     r9,12(r9)                              
			if (year > 1980)                                                   
				lastddate += (year - 1980) <<                                     
				             MSDOS_DD_YEAR_SHIFT;                                 
		}                                                                   
	}                                                                    
	*dtp = lastdtime;                                                    
ffc1a5d8:	b1 45 00 00 	sth     r10,0(r5)                              
	*ddp = lastddate;                                                    
ffc1a5dc:	b1 24 00 00 	sth     r9,0(r4)                               
ffc1a5e0:	4e 80 00 20 	blr                                            
                                                                      

ffc18608 <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 ) {
ffc18608:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc1860c:	7c 08 02 a6 	mflr    r0                                     
    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;                                                 
ffc18610:	39 20 00 00 	li      r9,0                                   
msdos_dir_is_empty(                                                   
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd,                     
    bool                                 *ret_val                     
    )                                                                 
{                                                                     
ffc18614:	90 01 00 34 	stw     r0,52(r1)                              
ffc18618:	be c1 00 08 	stmw    r22,8(r1)                              
             */                                                       
            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,     
ffc1861c:	3e e0 ff c3 	lis     r23,-61                                
                         MSDOS_SHORT_NAME_LEN) == 0) ||               
                (strncmp(MSDOS_DIR_NAME((entry)),                     
ffc18620:	3e c0 ff c3 	lis     r22,-61                                
    fat_file_fd_t                        *fat_fd,                     
    bool                                 *ret_val                     
    )                                                                 
{                                                                     
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc18624:	83 e3 00 08 	lwz     r31,8(r3)                              
msdos_dir_is_empty(                                                   
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd,                     
    bool                                 *ret_val                     
    )                                                                 
{                                                                     
ffc18628:	7c 98 23 78 	mr      r24,r4                                 
ffc1862c:	7c bd 2b 78 	mr      r29,r5                                 
    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;                                                 
ffc18630:	99 25 00 00 	stb     r9,0(r5)                               
    bool                                 *ret_val                     
    )                                                                 
{                                                                     
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         j = 0, i = 0;                                    
ffc18634:	3b 80 00 00 	li      r28,0                                  
             */                                                       
            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,     
ffc18638:	3a f7 bc ee 	addi    r23,r23,-17170                         
                         MSDOS_SHORT_NAME_LEN) == 0) ||               
                (strncmp(MSDOS_DIR_NAME((entry)),                     
ffc1863c:	3a d6 bc fa 	addi    r22,r22,-17158                         
    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,
ffc18640:	48 00 00 bc 	b       ffc186fc <msdos_dir_is_empty+0xf4>     
                                  fs_info->fat.vol.bps,               
                                  fs_info->cl_buf)) != FAT_EOF)       
    {                                                                 
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
ffc18644:	2f 83 00 1f 	cmpwi   cr7,r3,31                              
ffc18648:	40 9d 00 e4 	ble-    cr7,ffc1872c <msdos_dir_is_empty+0x124><== NEVER TAKEN
            return -1;                                                
                                                                      
        assert(ret == fs_info->fat.vol.bps);                          
ffc1864c:	a3 5f 00 00 	lhz     r26,0(r31)                             
ffc18650:	7f 83 d0 00 	cmpw    cr7,r3,r26                             
ffc18654:	41 be 00 98 	beq+    cr7,ffc186ec <msdos_dir_is_empty+0xe4> <== ALWAYS TAKEN
ffc18658:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1865c:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc18660:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc18664:	38 63 bc 88 	addi    r3,r3,-17272                           <== NOT EXECUTED
ffc18668:	38 80 03 65 	li      r4,869                                 <== NOT EXECUTED
ffc1866c:	38 a5 bc 14 	addi    r5,r5,-17388                           <== NOT EXECUTED
ffc18670:	38 c6 bc d2 	addi    r6,r6,-17198                           <== NOT EXECUTED
ffc18674:	4b fe d4 a9 	bl      ffc05b1c <__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;                
ffc18678:	81 3f 00 a0 	lwz     r9,160(r31)                            
             * 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)) ==                    
ffc1867c:	7f 29 f0 ae 	lbzx    r25,r9,r30                             
        /* 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;                
ffc18680:	7f 69 f2 14 	add     r27,r9,r30                             
             * 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)) ==                    
ffc18684:	2f 99 00 e5 	cmpwi   cr7,r25,229                            
ffc18688:	41 9e 00 44 	beq-    cr7,ffc186cc <msdos_dir_is_empty+0xc4> <== NEVER TAKEN
                 MSDOS_THIS_DIR_ENTRY_EMPTY) ||                       
                ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==    
ffc1868c:	89 3b 00 0b 	lbz     r9,11(r27)                             
             *                                                        
             * 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) ||                       
ffc18690:	55 29 06 be 	clrlwi  r9,r9,26                               
ffc18694:	2f 89 00 0f 	cmpwi   cr7,r9,15                              
ffc18698:	41 9e 00 34 	beq-    cr7,ffc186cc <msdos_dir_is_empty+0xc4> <== NEVER TAKEN
                ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==    
                 MSDOS_ATTR_LFN) ||                                   
                (strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,     
ffc1869c:	7f 63 db 78 	mr      r3,r27                                 
ffc186a0:	7e e4 bb 78 	mr      r4,r23                                 
ffc186a4:	38 a0 00 0b 	li      r5,11                                  
ffc186a8:	48 00 4d 25 	bl      ffc1d3cc <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) ||                                   
ffc186ac:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc186b0:	41 9e 00 1c 	beq-    cr7,ffc186cc <msdos_dir_is_empty+0xc4> 
                (strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,     
                         MSDOS_SHORT_NAME_LEN) == 0) ||               
                (strncmp(MSDOS_DIR_NAME((entry)),                     
ffc186b4:	7f 63 db 78 	mr      r3,r27                                 
ffc186b8:	7e c4 b3 78 	mr      r4,r22                                 
ffc186bc:	38 a0 00 0b 	li      r5,11                                  
ffc186c0:	48 00 4d 0d 	bl      ffc1d3cc <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) ||               
ffc186c4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc186c8:	40 9e 00 0c 	bne-    cr7,ffc186d4 <msdos_dir_is_empty+0xcc> 
        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)                  
ffc186cc:	3b de 00 20 	addi    r30,r30,32                             
ffc186d0:	48 00 00 20 	b       ffc186f0 <msdos_dir_is_empty+0xe8>     
                continue;                                             
                                                                      
            /*                                                        
             * Nothing more to look at.                               
             */                                                       
            if ((*MSDOS_DIR_NAME(entry)) ==                           
ffc186d4:	2f 99 00 00 	cmpwi   cr7,r25,0                              
            }                                                         
                                                                      
            /*                                                        
             * Short file name entries mean not empty.                
             */                                                       
            return RC_OK;                                             
ffc186d8:	38 60 00 00 	li      r3,0                                   
                continue;                                             
                                                                      
            /*                                                        
             * Nothing more to look at.                               
             */                                                       
            if ((*MSDOS_DIR_NAME(entry)) ==                           
ffc186dc:	40 9e 00 54 	bne-    cr7,ffc18730 <msdos_dir_is_empty+0x128>
                MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)                  
            {                                                         
                *ret_val = true;                                      
ffc186e0:	39 20 00 01 	li      r9,1                                   
ffc186e4:	99 3d 00 00 	stb     r9,0(r29)                              
                return RC_OK;                                         
ffc186e8:	48 00 00 48 	b       ffc18730 <msdos_dir_is_empty+0x128>    
                                  fs_info->cl_buf)) != FAT_EOF)       
    {                                                                 
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
            return -1;                                                
                                                                      
        assert(ret == fs_info->fat.vol.bps);                          
ffc186ec:	3b c0 00 00 	li      r30,0                                  
                                                                      
        /* have to look at the DIR_NAME as "raw" 8-bit data */        
        for (i = 0;                                                   
ffc186f0:	7f 9e d0 40 	cmplw   cr7,r30,r26                            
ffc186f4:	41 9c ff 84 	blt+    cr7,ffc18678 <msdos_dir_is_empty+0x70> <== ALWAYS TAKEN
            /*                                                        
             * Short file name entries mean not empty.                
             */                                                       
            return RC_OK;                                             
        }                                                             
        j++;                                                          
ffc186f8:	3b 9c 00 01 	addi    r28,r28,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,
ffc186fc:	a0 df 00 00 	lhz     r6,0(r31)                              
ffc18700:	7f e3 fb 78 	mr      r3,r31                                 
ffc18704:	80 ff 00 a0 	lwz     r7,160(r31)                            
ffc18708:	7f 04 c3 78 	mr      r4,r24                                 
ffc1870c:	7c bc 31 d6 	mullw   r5,r28,r6                              
ffc18710:	4b ff a7 9d 	bl      ffc12eac <fat_file_read>               
ffc18714:	2c 03 00 00 	cmpwi   r3,0                                   
ffc18718:	40 82 ff 2c 	bne+    ffc18644 <msdos_dir_is_empty+0x3c>     <== ALWAYS TAKEN
             */                                                       
            return RC_OK;                                             
        }                                                             
        j++;                                                          
    }                                                                 
    *ret_val = true;                                                  
ffc1871c:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc18720:	99 3d 00 00 	stb     r9,0(r29)                              <== NOT EXECUTED
    return RC_OK;                                                     
ffc18724:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc18728:	48 00 00 08 	b       ffc18730 <msdos_dir_is_empty+0x128>    <== 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;                                                
ffc1872c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
        }                                                             
        j++;                                                          
    }                                                                 
    *ret_val = true;                                                  
    return RC_OK;                                                     
}                                                                     
ffc18730:	39 61 00 30 	addi    r11,r1,48                              
ffc18734:	4b fe 8e a4 	b       ffc015d8 <_restgpr_22_x>               
                                                                      

ffc1a820 <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) {
ffc1a820:	94 21 fe 78 	stwu    r1,-392(r1)                            <== NOT EXECUTED
ffc1a824:	7c 08 02 a6 	mflr    r0                                     <== 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;            
    fat_file_fd_t     *tmp_fat_fd = NULL;                             
ffc1a828:	39 40 00 00 	li      r10,0                                  <== 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)        
{                                                                     
ffc1a82c:	bd c1 01 40 	stmw    r14,320(r1)                            <== NOT EXECUTED
ffc1a830:	7c bf 2b 78 	mr      r31,r5                                 <== 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);  
ffc1a834:	3b 00 01 18 	li      r24,280                                <== NOT EXECUTED
ffc1a838:	7f 1f c3 96 	divwu   r24,r31,r24                            <== 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)        
{                                                                     
ffc1a83c:	90 01 01 8c 	stw     r0,396(r1)                             <== NOT EXECUTED
ffc1a840:	90 81 01 38 	stw     r4,312(r1)                             <== NOT EXECUTED
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc1a844:	81 23 00 28 	lwz     r9,40(r3)                              <== NOT EXECUTED
    fat_file_fd_t     *fat_fd = iop->pathinfo.node_access;            
ffc1a848:	83 63 00 1c 	lwz     r27,28(r3)                             <== NOT EXECUTED
    fat_file_fd_t     *tmp_fat_fd = NULL;                             
ffc1a84c:	91 41 01 34 	stw     r10,308(r1)                            <== 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;                                   
ffc1a850:	91 41 01 30 	stw     r10,304(r1)                            <== NOT EXECUTED
ssize_t                                                               
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)        
{                                                                     
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc1a854:	82 09 00 08 	lwz     r16,8(r9)                              <== 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)        
{                                                                     
ffc1a858:	7c 79 1b 78 	mr      r25,r3                                 <== 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);                      
ffc1a85c:	80 63 00 08 	lwz     r3,8(r3)                               <== NOT EXECUTED
ffc1a860:	80 99 00 0c 	lwz     r4,12(r25)                             <== NOT EXECUTED
ffc1a864:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc1a868:	38 c0 01 18 	li      r6,280                                 <== NOT EXECUTED
ffc1a86c:	4b fe 69 29 	bl      ffc01194 <__divdi3>                    <== 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                              :     
ffc1a870:	81 5b 00 20 	lwz     r10,32(r27)                            <== 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);                      
ffc1a874:	7c 97 23 78 	mr      r23,r4                                 <== 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                              :     
ffc1a878:	2f 8a 00 01 	cmpwi   cr7,r10,1                              <== 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);  
ffc1a87c:	1f 18 01 18 	mulli   r24,r24,280                            <== 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                              :     
ffc1a880:	40 be 00 24 	bne+    cr7,ffc1a8a4 <msdos_dir_read+0x84>     <== 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) &&                           
ffc1a884:	81 5b 00 24 	lwz     r10,36(r27)                            <== NOT EXECUTED
ffc1a888:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc1a88c:	40 9e 00 18 	bne-    cr7,ffc1a8a4 <msdos_dir_read+0x84>     <== NOT EXECUTED
             (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?     
ffc1a890:	89 50 00 0e 	lbz     r10,14(r16)                            <== 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) &&                           
ffc1a894:	71 49 00 03 	andi.   r9,r10,3                               <== NOT EXECUTED
ffc1a898:	41 82 00 0c 	beq-    ffc1a8a4 <msdos_dir_read+0x84>         <== NOT EXECUTED
             (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?     
             fat_fd->fat_file_size                              :     
ffc1a89c:	82 bb 00 18 	lwz     r21,24(r27)                            <== NOT EXECUTED
ffc1a8a0:	48 00 00 08 	b       ffc1a8a8 <msdos_dir_read+0x88>         <== NOT EXECUTED
ffc1a8a4:	a2 b0 00 06 	lhz     r21,6(r16)                             <== NOT EXECUTED
             fs_info->fat.vol.bpc;                                    
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1a8a8:	80 70 00 9c 	lwz     r3,156(r16)                            <== NOT EXECUTED
ffc1a8ac:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1a8b0:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc1a8b4:	4b fe fc a5 	bl      ffc0a558 <rtems_semaphore_obtain>      <== NOT EXECUTED
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc1a8b8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1a8bc:	41 be 03 98 	beq+    cr7,ffc1ac54 <msdos_dir_read+0x434>    <== NOT EXECUTED
ffc1a8c0:	48 00 00 30 	b       ffc1a8f0 <msdos_dir_read+0xd0>         <== 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),      
ffc1a8c4:	80 f0 00 a0 	lwz     r7,160(r16)                            <== NOT EXECUTED
ffc1a8c8:	7e 03 83 78 	mr      r3,r16                                 <== NOT EXECUTED
ffc1a8cc:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc1a8d0:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc1a8d4:	7e a6 ab 78 	mr      r6,r21                                 <== NOT EXECUTED
ffc1a8d8:	4b ff 85 d5 	bl      ffc12eac <fat_file_read>               <== NOT EXECUTED
                            bts2rd, fs_info->cl_buf);                 
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
ffc1a8dc:	2f 83 00 1f 	cmpwi   cr7,r3,31                              <== 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),      
ffc1a8e0:	7c 73 1b 78 	mr      r19,r3                                 <== NOT EXECUTED
                            bts2rd, fs_info->cl_buf);                 
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
ffc1a8e4:	41 bd 03 5c 	bgt+    cr7,ffc1ac40 <msdos_dir_read+0x420>    <== NOT EXECUTED
        {                                                             
            rtems_semaphore_release(fs_info->vol_sema);               
ffc1a8e8:	80 70 00 9c 	lwz     r3,156(r16)                            <== NOT EXECUTED
ffc1a8ec:	4b fe fd 91 	bl      ffc0a67c <rtems_semaphore_release>     <== NOT EXECUTED
            rtems_set_errno_and_return_minus_one(EIO);                
ffc1a8f0:	48 00 0a 85 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc1a8f4:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1a8f8:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1a8fc:	3a 20 ff ff 	li      r17,-1                                 <== NOT EXECUTED
ffc1a900:	48 00 03 dc 	b       ffc1acdc <msdos_dir_read+0x4bc>        <== NOT EXECUTED
        }                                                             
                                                                      
        for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)  
        {                                                             
            char* entry = (char*) fs_info->cl_buf + i;                
ffc1a904:	81 10 00 a0 	lwz     r8,160(r16)                            <== NOT EXECUTED
ffc1a908:	7d e8 fa 14 	add     r15,r8,r31                             <== NOT EXECUTED
                                                                      
            /*                                                        
             * Is this directory from here on empty ?                 
             */                                                       
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                     
ffc1a90c:	7d 08 f8 ae 	lbzx    r8,r8,r31                              <== NOT EXECUTED
ffc1a910:	2f 88 00 00 	cmpwi   cr7,r8,0                               <== NOT EXECUTED
ffc1a914:	40 be 00 08 	bne+    cr7,ffc1a91c <msdos_dir_read+0xfc>     <== NOT EXECUTED
ffc1a918:	48 00 03 64 	b       ffc1ac7c <msdos_dir_read+0x45c>        <== 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)
ffc1a91c:	2f 88 00 e5 	cmpwi   cr7,r8,229                             <== NOT EXECUTED
ffc1a920:	41 9e 03 18 	beq-    cr7,ffc1ac38 <msdos_dir_read+0x418>    <== NOT EXECUTED
                continue;                                             
                                                                      
            /* Is the directory entry empty a volume label */         
            if (((*MSDOS_DIR_ATTR(entry)) & MSDOS_ATTR_VOLUME_ID) &&  
ffc1a924:	88 ef 00 0b 	lbz     r7,11(r15)                             <== NOT EXECUTED
ffc1a928:	54 e6 07 38 	rlwinm  r6,r7,0,28,28                          <== NOT EXECUTED
ffc1a92c:	70 c9 00 ff 	andi.   r9,r6,255                              <== NOT EXECUTED
ffc1a930:	41 82 00 10 	beq-    ffc1a940 <msdos_dir_read+0x120>        <== NOT EXECUTED
ffc1a934:	54 e6 06 be 	clrlwi  r6,r7,26                               <== NOT EXECUTED
ffc1a938:	2f 86 00 0f 	cmpwi   cr7,r6,15                              <== NOT EXECUTED
ffc1a93c:	40 be 02 fc 	bne+    cr7,ffc1ac38 <msdos_dir_read+0x418>    <== 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) ==     
ffc1a940:	54 e7 06 be 	clrlwi  r7,r7,26                               <== NOT EXECUTED
ffc1a944:	2f 87 00 0f 	cmpwi   cr7,r7,15                              <== NOT EXECUTED
ffc1a948:	40 be 00 cc 	bne+    cr7,ffc1aa14 <msdos_dir_read+0x1f4>    <== NOT EXECUTED
                int   q;                                              
                                                                      
                /*                                                    
                 * Is this is the first entry of a LFN ?              
                 */                                                   
                if (lfn_start == FAT_FILE_SHORT_NAME)                 
ffc1a94c:	2f 9e ff ff 	cmpwi   cr7,r30,-1                             <== NOT EXECUTED
ffc1a950:	40 be 00 30 	bne+    cr7,ffc1a980 <msdos_dir_read+0x160>    <== NOT EXECUTED
                {                                                     
                    /*                                                
                     * The first entry must have the last long entry flag set.
                     */                                               
                    if ((*MSDOS_DIR_ENTRY_TYPE(entry) &               
ffc1a954:	55 07 06 72 	rlwinm  r7,r8,0,25,25                          <== NOT EXECUTED
ffc1a958:	70 e9 00 ff 	andi.   r9,r7,255                              <== NOT EXECUTED
ffc1a95c:	41 a2 02 dc 	beq+    ffc1ac38 <msdos_dir_read+0x418>        <== 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)        
ffc1a960:	7f df d2 14 	add     r30,r31,r26                            <== 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) &     
                                   MSDOS_LAST_LONG_ENTRY_MASK);       
                    lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);    
ffc1a964:	8a cf 00 0d 	lbz     r22,13(r15)                            <== NOT EXECUTED
                    memset (tmp_dirent.d_name, 0, sizeof(tmp_dirent.d_name));
ffc1a968:	38 61 00 1c 	addi    r3,r1,28                               <== NOT EXECUTED
ffc1a96c:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1a970:	38 a0 01 00 	li      r5,256                                 <== NOT EXECUTED
                        continue;                                     
                                                                      
                    /*                                                
                     * Remember the start location of the long file name.
                     */                                               
                    lfn_start =                                       
ffc1a974:	57 de d9 7e 	rlwinm  r30,r30,27,5,31                        <== 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) &     
ffc1a978:	55 1c 06 be 	clrlwi  r28,r8,26                              <== NOT EXECUTED
                                   MSDOS_LAST_LONG_ENTRY_MASK);       
                    lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);    
                    memset (tmp_dirent.d_name, 0, sizeof(tmp_dirent.d_name));
ffc1a97c:	48 00 17 cd 	bl      ffc1c148 <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) &   
ffc1a980:	89 0f 00 00 	lbz     r8,0(r15)                              <== NOT EXECUTED
ffc1a984:	55 08 06 be 	clrlwi  r8,r8,26                               <== NOT EXECUTED
ffc1a988:	7f 9c 40 00 	cmpw    cr7,r28,r8                             <== NOT EXECUTED
ffc1a98c:	40 be 02 a8 	bne+    cr7,ffc1ac34 <msdos_dir_read+0x414>    <== NOT EXECUTED
                                     MSDOS_LAST_LONG_ENTRY_MASK)) ||  
ffc1a990:	89 0f 00 0d 	lbz     r8,13(r15)                             <== NOT EXECUTED
ffc1a994:	7f 88 b0 00 	cmpw    cr7,r8,r22                             <== NOT EXECUTED
ffc1a998:	40 be 02 9c 	bne+    cr7,ffc1ac34 <msdos_dir_read+0x414>    <== 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--;                                        
ffc1a99c:	3b 9c ff ff 	addi    r28,r28,-1                             <== NOT EXECUTED
                p = entry + 1;                                        
                o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;            
ffc1a9a0:	1c fc 00 0d 	mulli   r7,r28,13                              <== 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)        
ffc1a9a4:	39 21 00 08 	addi    r9,r1,8                                <== NOT EXECUTED
ffc1a9a8:	7c c9 3a 14 	add     r6,r9,r7                               <== NOT EXECUTED
ffc1a9ac:	39 20 00 0d 	li      r9,13                                  <== NOT EXECUTED
ffc1a9b0:	7d 29 03 a6 	mtctr   r9                                     <== 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;                                        
ffc1a9b4:	39 4f 00 01 	addi    r10,r15,1                              <== NOT EXECUTED
                o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;            
                                                                      
                for (q = 0; q < MSDOS_LFN_LEN_PER_ENTRY; q++)         
ffc1a9b8:	39 00 00 00 	li      r8,0                                   <== NOT EXECUTED
                {                                                     
                    if (o >= (sizeof(tmp_dirent.d_name) - 1))         
ffc1a9bc:	7c a8 3a 14 	add     r5,r8,r7                               <== NOT EXECUTED
ffc1a9c0:	2b 85 00 fe 	cmplwi  cr7,r5,254                             <== NOT EXECUTED
ffc1a9c4:	41 9d 02 64 	bgt-    cr7,ffc1ac28 <msdos_dir_read+0x408>    <== NOT EXECUTED
                        break;                                        
                                                                      
                    tmp_dirent.d_name[o++] = *p;                      
ffc1a9c8:	88 8a 00 00 	lbz     r4,0(r10)                              <== 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)        
ffc1a9cc:	7c a6 42 14 	add     r5,r6,r8                               <== NOT EXECUTED
                for (q = 0; q < MSDOS_LFN_LEN_PER_ENTRY; q++)         
                {                                                     
                    if (o >= (sizeof(tmp_dirent.d_name) - 1))         
                        break;                                        
                                                                      
                    tmp_dirent.d_name[o++] = *p;                      
ffc1a9d0:	98 85 00 14 	stb     r4,20(r5)                              <== NOT EXECUTED
                                                                      
                    if (*p == '\0')                                   
ffc1a9d4:	88 aa 00 00 	lbz     r5,0(r10)                              <== NOT EXECUTED
ffc1a9d8:	2f 85 00 00 	cmpwi   cr7,r5,0                               <== NOT EXECUTED
ffc1a9dc:	41 9e 02 4c 	beq-    cr7,ffc1ac28 <msdos_dir_read+0x408>    <== NOT EXECUTED
                        break;                                        
                                                                      
                    switch (q)                                        
ffc1a9e0:	2f 88 00 04 	cmpwi   cr7,r8,4                               <== NOT EXECUTED
ffc1a9e4:	41 9e 00 10 	beq-    cr7,ffc1a9f4 <msdos_dir_read+0x1d4>    <== NOT EXECUTED
ffc1a9e8:	2f 88 00 0a 	cmpwi   cr7,r8,10                              <== NOT EXECUTED
ffc1a9ec:	40 be 00 18 	bne+    cr7,ffc1aa04 <msdos_dir_read+0x1e4>    <== NOT EXECUTED
ffc1a9f0:	48 00 00 0c 	b       ffc1a9fc <msdos_dir_read+0x1dc>        <== NOT EXECUTED
                    {                                                 
                        case 4:                                       
                            p += 5;                                   
ffc1a9f4:	39 4a 00 05 	addi    r10,r10,5                              <== NOT EXECUTED
                            break;                                    
ffc1a9f8:	48 00 00 10 	b       ffc1aa08 <msdos_dir_read+0x1e8>        <== NOT EXECUTED
                        case 10:                                      
                            p += 4;                                   
ffc1a9fc:	39 4a 00 04 	addi    r10,r10,4                              <== NOT EXECUTED
                            break;                                    
ffc1aa00:	48 00 00 08 	b       ffc1aa08 <msdos_dir_read+0x1e8>        <== NOT EXECUTED
                        default:                                      
                            p += 2;                                   
ffc1aa04:	39 4a 00 02 	addi    r10,r10,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++)         
ffc1aa08:	39 08 00 01 	addi    r8,r8,1                                <== NOT EXECUTED
ffc1aa0c:	42 00 ff b0 	bdnz+   ffc1a9bc <msdos_dir_read+0x19c>        <== NOT EXECUTED
ffc1aa10:	48 00 02 18 	b       ffc1ac28 <msdos_dir_read+0x408>        <== NOT EXECUTED
                fat_dir_pos_t dir_pos;                                
                                                                      
                /*                                                    
                 * Skip active entries until get the entry to start from.
                 */                                                   
                if (start)                                            
ffc1aa14:	2f 97 00 00 	cmpwi   cr7,r23,0                              <== NOT EXECUTED
ffc1aa18:	41 9e 00 0c 	beq-    cr7,ffc1aa24 <msdos_dir_read+0x204>    <== NOT EXECUTED
                {                                                     
                    lfn_start = FAT_FILE_SHORT_NAME;                  
                    start--;                                          
ffc1aa1c:	3a f7 ff ff 	addi    r23,r23,-1                             <== NOT EXECUTED
ffc1aa20:	48 00 02 14 	b       ffc1ac34 <msdos_dir_read+0x414>        <== 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, 
ffc1aa24:	7e 03 83 78 	mr      r3,r16                                 <== NOT EXECUTED
ffc1aa28:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc1aa2c:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc1aa30:	7f 46 d3 78 	mr      r6,r26                                 <== NOT EXECUTED
ffc1aa34:	38 e1 01 30 	addi    r7,r1,304                              <== NOT EXECUTED
ffc1aa38:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1aa3c:	4b ff 88 05 	bl      ffc13240 <fat_file_ioctl>              <== NOT EXECUTED
                                    j * bts2rd, &cur_cln);            
                if (rc != RC_OK)                                      
ffc1aa40:	7c 71 1b 79 	mr.     r17,r3                                 <== NOT EXECUTED
ffc1aa44:	41 a2 00 08 	beq+    ffc1aa4c <msdos_dir_read+0x22c>        <== NOT EXECUTED
ffc1aa48:	48 00 01 d4 	b       ffc1ac1c <msdos_dir_read+0x3fc>        <== NOT EXECUTED
                    rtems_semaphore_release(fs_info->vol_sema);       
                    return rc;                                        
                }                                                     
                                                                      
                fat_dir_pos_init(&dir_pos);                           
                dir_pos.sname.cln = cur_cln;                          
ffc1aa4c:	81 01 01 30 	lwz     r8,304(r1)                             <== NOT EXECUTED
                dir_pos.sname.ofs = i;                                
                rc = fat_file_open(&fs_info->fat, &dir_pos, &tmp_fat_fd);
ffc1aa50:	7e 03 83 78 	mr      r3,r16                                 <== NOT EXECUTED
ffc1aa54:	38 81 01 20 	addi    r4,r1,288                              <== 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;                           
ffc1aa58:	92 41 01 28 	stw     r18,296(r1)                            <== NOT EXECUTED
ffc1aa5c:	38 a1 01 34 	addi    r5,r1,308                              <== NOT EXECUTED
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
ffc1aa60:	92 41 01 2c 	stw     r18,300(r1)                            <== NOT EXECUTED
                    rtems_semaphore_release(fs_info->vol_sema);       
                    return rc;                                        
                }                                                     
                                                                      
                fat_dir_pos_init(&dir_pos);                           
                dir_pos.sname.cln = cur_cln;                          
ffc1aa64:	91 01 01 20 	stw     r8,288(r1)                             <== NOT EXECUTED
                dir_pos.sname.ofs = i;                                
ffc1aa68:	93 e1 01 24 	stw     r31,292(r1)                            <== NOT EXECUTED
                rc = fat_file_open(&fs_info->fat, &dir_pos, &tmp_fat_fd);
ffc1aa6c:	4b ff 82 a1 	bl      ffc12d0c <fat_file_open>               <== NOT EXECUTED
                if (rc != RC_OK)                                      
ffc1aa70:	7c 71 1b 79 	mr.     r17,r3                                 <== NOT EXECUTED
ffc1aa74:	41 a2 00 08 	beq+    ffc1aa7c <msdos_dir_read+0x25c>        <== NOT EXECUTED
ffc1aa78:	48 00 01 a4 	b       ffc1ac1c <msdos_dir_read+0x3fc>        <== 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)                 
ffc1aa7c:	2f 9e ff ff 	cmpwi   cr7,r30,-1                             <== 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;                   
ffc1aa80:	81 01 01 34 	lwz     r8,308(r1)                             <== 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);          
ffc1aa84:	39 20 01 18 	li      r9,280                                 <== 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;                    
ffc1aa88:	93 a1 00 14 	stw     r29,20(r1)                             <== NOT EXECUTED
                tmp_dirent.d_reclen = sizeof(struct dirent);          
                tmp_dirent.d_ino = tmp_fat_fd->ino;                   
ffc1aa8c:	81 08 00 0c 	lwz     r8,12(r8)                              <== 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;                    
ffc1aa90:	92 e1 00 10 	stw     r23,16(r1)                             <== NOT EXECUTED
                tmp_dirent.d_reclen = sizeof(struct dirent);          
ffc1aa94:	b1 21 00 18 	sth     r9,24(r1)                              <== NOT EXECUTED
                tmp_dirent.d_ino = tmp_fat_fd->ino;                   
ffc1aa98:	91 01 00 08 	stw     r8,8(r1)                               <== 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)                 
ffc1aa9c:	41 9e 01 f0 	beq-    cr7,ffc1ac8c <msdos_dir_read+0x46c>    <== 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;  
ffc1aaa0:	39 20 00 0b 	li      r9,11                                  <== NOT EXECUTED
ffc1aaa4:	7d 29 03 a6 	mtctr   r9                                     <== 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)                 
ffc1aaa8:	38 e0 00 00 	li      r7,0                                   <== NOT EXECUTED
ffc1aaac:	39 00 00 00 	li      r8,0                                   <== 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;  
ffc1aab0:	71 09 00 01 	andi.   r9,r8,1                                <== NOT EXECUTED
ffc1aab4:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
ffc1aab8:	41 82 00 08 	beq-    ffc1aac0 <msdos_dir_read+0x2a0>        <== NOT EXECUTED
ffc1aabc:	38 c0 00 80 	li      r6,128                                 <== NOT EXECUTED
ffc1aac0:	7c af 38 ae 	lbzx    r5,r15,r7                              <== NOT EXECUTED
ffc1aac4:	55 08 f8 7e 	rlwinm  r8,r8,31,1,31                          <== NOT EXECUTED
                {                                                     
                    uint8_t  cs = 0;                                  
                    uint8_t* p = (uint8_t*) entry;                    
                    int      i;                                       
                                                                      
                    for (i = 0; i < 11; i++, p++)                     
ffc1aac8:	38 e7 00 01 	addi    r7,r7,1                                <== NOT EXECUTED
                        cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;  
ffc1aacc:	7d 05 42 14 	add     r8,r5,r8                               <== NOT EXECUTED
ffc1aad0:	7d 08 32 14 	add     r8,r8,r6                               <== NOT EXECUTED
ffc1aad4:	55 08 06 3e 	clrlwi  r8,r8,24                               <== NOT EXECUTED
                {                                                     
                    uint8_t  cs = 0;                                  
                    uint8_t* p = (uint8_t*) entry;                    
                    int      i;                                       
                                                                      
                    for (i = 0; i < 11; i++, p++)                     
ffc1aad8:	42 00 ff d8 	bdnz+   ffc1aab0 <msdos_dir_read+0x290>        <== NOT EXECUTED
                        cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;  
                                                                      
                    if (lfn_entries || (lfn_checksum != cs))          
ffc1aadc:	2f 9c 00 00 	cmpwi   cr7,r28,0                              <== NOT EXECUTED
ffc1aae0:	40 9e 01 ac 	bne-    cr7,ffc1ac8c <msdos_dir_read+0x46c>    <== NOT EXECUTED
ffc1aae4:	7f 96 40 00 	cmpw    cr7,r22,r8                             <== NOT EXECUTED
ffc1aae8:	40 be 01 a4 	bne+    cr7,ffc1ac8c <msdos_dir_read+0x46c>    <== NOT EXECUTED
ffc1aaec:	48 00 01 b0 	b       ffc1ac9c <msdos_dir_read+0x47c>        <== NOT EXECUTED
  const char *src_tmp;                                                
                                                                      
  /*                                                                  
   * find last non-blank character of base name                       
   */                                                                 
  for ((i       =       MSDOS_SHORT_BASE_LEN  ,                       
ffc1aaf0:	42 40 00 18 	bdz-    ffc1ab08 <msdos_dir_read+0x2e8>        <== 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)        
ffc1aaf4:	7c ef 40 50 	subf    r7,r15,r8                              <== 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) &&                                                    
ffc1aaf8:	8c c8 ff ff 	lbzu    r6,-1(r8)                              <== NOT EXECUTED
ffc1aafc:	2f 86 00 20 	cmpwi   cr7,r6,32                              <== NOT EXECUTED
ffc1ab00:	41 9e ff f0 	beq+    cr7,ffc1aaf0 <msdos_dir_read+0x2d0>    <== NOT EXECUTED
ffc1ab04:	48 00 00 08 	b       ffc1ab0c <msdos_dir_read+0x2ec>        <== NOT EXECUTED
  const char *src_tmp;                                                
                                                                      
  /*                                                                  
   * find last non-blank character of base name                       
   */                                                                 
  for ((i       =       MSDOS_SHORT_BASE_LEN  ,                       
ffc1ab08:	38 e0 00 00 	li      r7,0                                   <== NOT EXECUTED
ffc1ab0c:	2f 87 00 00 	cmpwi   cr7,r7,0                               <== NOT EXECUTED
   * copy base name to destination                                    
   */                                                                 
  src_tmp = src;                                                      
  len = i;                                                            
  while (i-- > 0) {                                                   
    *dst++ = tolower((unsigned char)(*src_tmp++));                    
ffc1ab10:	80 74 27 a8 	lwz     r3,10152(r20)                          <== 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)        
ffc1ab14:	38 8f ff ff 	addi    r4,r15,-1                              <== 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(
ffc1ab18:	39 01 00 1c 	addi    r8,r1,28                               <== 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)        
ffc1ab1c:	38 c7 00 01 	addi    r6,r7,1                                <== NOT EXECUTED
ffc1ab20:	40 bc 00 30 	bge+    cr7,ffc1ab50 <msdos_dir_read+0x330>    <== NOT EXECUTED
ffc1ab24:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc1ab28:	48 00 00 28 	b       ffc1ab50 <msdos_dir_read+0x330>        <== NOT EXECUTED
   * copy base name to destination                                    
   */                                                                 
  src_tmp = src;                                                      
  len = i;                                                            
  while (i-- > 0) {                                                   
    *dst++ = tolower((unsigned char)(*src_tmp++));                    
ffc1ab2c:	8c a4 00 01 	lbzu    r5,1(r4)                               <== NOT EXECUTED
ffc1ab30:	7d 63 2a 14 	add     r11,r3,r5                              <== NOT EXECUTED
ffc1ab34:	89 6b 00 01 	lbz     r11,1(r11)                             <== NOT EXECUTED
ffc1ab38:	55 6b 07 be 	clrlwi  r11,r11,30                             <== NOT EXECUTED
ffc1ab3c:	2f 8b 00 01 	cmpwi   cr7,r11,1                              <== NOT EXECUTED
ffc1ab40:	40 be 00 08 	bne+    cr7,ffc1ab48 <msdos_dir_read+0x328>    <== NOT EXECUTED
ffc1ab44:	38 a5 00 20 	addi    r5,r5,32                               <== NOT EXECUTED
ffc1ab48:	98 a8 00 00 	stb     r5,0(r8)                               <== NOT EXECUTED
ffc1ab4c:	39 08 00 01 	addi    r8,r8,1                                <== NOT EXECUTED
  /*                                                                  
   * copy base name to destination                                    
   */                                                                 
  src_tmp = src;                                                      
  len = i;                                                            
  while (i-- > 0) {                                                   
ffc1ab50:	34 c6 ff ff 	addic.  r6,r6,-1                               <== NOT EXECUTED
ffc1ab54:	40 82 ff d8 	bne+    ffc1ab2c <msdos_dir_read+0x30c>        <== 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) &&                                                    
ffc1ab58:	88 cf 00 0a 	lbz     r6,10(r15)                             <== NOT EXECUTED
ffc1ab5c:	2f 86 00 20 	cmpwi   cr7,r6,32                              <== NOT EXECUTED
ffc1ab60:	40 9e 01 4c 	bne-    cr7,ffc1acac <msdos_dir_read+0x48c>    <== NOT EXECUTED
ffc1ab64:	88 cf 00 09 	lbz     r6,9(r15)                              <== NOT EXECUTED
ffc1ab68:	2f 86 00 20 	cmpwi   cr7,r6,32                              <== NOT EXECUTED
ffc1ab6c:	40 9e 01 48 	bne-    cr7,ffc1acb4 <msdos_dir_read+0x494>    <== NOT EXECUTED
ffc1ab70:	88 cf 00 08 	lbz     r6,8(r15)                              <== NOT EXECUTED
ffc1ab74:	2f 86 00 20 	cmpwi   cr7,r6,32                              <== NOT EXECUTED
ffc1ab78:	41 be 00 50 	beq+    cr7,ffc1abc8 <msdos_dir_read+0x3a8>    <== NOT EXECUTED
ffc1ab7c:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc1ab80:	48 00 01 38 	b       ffc1acb8 <msdos_dir_read+0x498>        <== 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)        
ffc1ab84:	7c 8f 2a 14 	add     r4,r15,r5                              <== 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++));                  
ffc1ab88:	88 84 00 08 	lbz     r4,8(r4)                               <== NOT EXECUTED
ffc1ab8c:	7f c3 22 14 	add     r30,r3,r4                              <== NOT EXECUTED
ffc1ab90:	88 1e 00 01 	lbz     r0,1(r30)                              <== NOT EXECUTED
ffc1ab94:	54 00 07 be 	clrlwi  r0,r0,30                               <== NOT EXECUTED
ffc1ab98:	2f 80 00 01 	cmpwi   cr7,r0,1                               <== NOT EXECUTED
ffc1ab9c:	40 be 00 08 	bne+    cr7,ffc1aba4 <msdos_dir_read+0x384>    <== NOT EXECUTED
ffc1aba0:	38 84 00 20 	addi    r4,r4,32                               <== 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)        
ffc1aba4:	7f c8 2a 14 	add     r30,r8,r5                              <== 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++));                  
ffc1aba8:	98 9e 00 01 	stb     r4,1(r30)                              <== NOT EXECUTED
ffc1abac:	38 a5 00 01 	addi    r5,r5,1                                <== NOT EXECUTED
   */                                                                 
  if (i > 0) {                                                        
    *dst++ = '.'; /* append dot */                                    
    len += i + 1; /* extension + dot */                               
    src_tmp = src + MSDOS_SHORT_BASE_LEN;                             
    while (i-- > 0) {                                                 
ffc1abb0:	42 00 ff d4 	bdnz+   ffc1ab84 <msdos_dir_read+0x364>        <== 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)        
ffc1abb4:	7c ca 30 f8 	not     r10,r6                                 <== NOT EXECUTED
ffc1abb8:	7d 4a fe 70 	srawi   r10,r10,31                             <== NOT EXECUTED
ffc1abbc:	7c c6 50 38 	and     r6,r6,r10                              <== NOT EXECUTED
ffc1abc0:	7d 0b 32 14 	add     r8,r11,r6                              <== NOT EXECUTED
ffc1abc4:	7c e7 32 14 	add     r7,r7,r6                               <== NOT EXECUTED
    while (i-- > 0) {                                                 
      *dst++ = tolower((unsigned char)(*src_tmp++));                  
      len++;                                                          
    }                                                                 
  }                                                                   
  *dst = '\0'; /* terminate string */                                 
ffc1abc8:	99 c8 00 00 	stb     r14,0(r8)                              <== 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(
ffc1abcc:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc1abd0:	b0 e1 00 1a 	sth     r7,26(r1)                              <== NOT EXECUTED
                else                                                  
                {                                                     
                    tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);  
                }                                                     
                                                                      
                memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
ffc1abd4:	81 21 01 38 	lwz     r9,312(r1)                             <== NOT EXECUTED
ffc1abd8:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc1abdc:	38 a0 01 18 	li      r5,280                                 <== NOT EXECUTED
ffc1abe0:	7c 69 ea 14 	add     r3,r9,r29                              <== NOT EXECUTED
ffc1abe4:	48 00 14 71 	bl      ffc1c054 <memcpy>                      <== NOT EXECUTED
                                                                      
                iop->offset = iop->offset + sizeof(struct dirent);    
ffc1abe8:	81 59 00 08 	lwz     r10,8(r25)                             <== NOT EXECUTED
ffc1abec:	81 79 00 0c 	lwz     r11,12(r25)                            <== 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);       
ffc1abf0:	7e 03 83 78 	mr      r3,r16                                 <== NOT EXECUTED
ffc1abf4:	80 81 01 34 	lwz     r4,308(r1)                             <== NOT EXECUTED
                }                                                     
                                                                      
                memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
                                                                      
                iop->offset = iop->offset + sizeof(struct dirent);    
                cmpltd += (sizeof(struct dirent));                    
ffc1abf8:	3b bd 01 18 	addi    r29,r29,280                            <== 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);    
ffc1abfc:	31 6b 01 18 	addic   r11,r11,280                            <== NOT EXECUTED
ffc1ac00:	7d 4a 01 94 	addze   r10,r10                                <== NOT EXECUTED
ffc1ac04:	91 59 00 08 	stw     r10,8(r25)                             <== NOT EXECUTED
                cmpltd += (sizeof(struct dirent));                    
                count -= (sizeof(struct dirent));                     
ffc1ac08:	3b 18 fe e8 	addi    r24,r24,-280                           <== 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);    
ffc1ac0c:	91 79 00 0c 	stw     r11,12(r25)                            <== 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);       
ffc1ac10:	4b ff 85 6d 	bl      ffc1317c <fat_file_close>              <== NOT EXECUTED
                if (rc != RC_OK)                                      
ffc1ac14:	7c 71 1b 79 	mr.     r17,r3                                 <== NOT EXECUTED
ffc1ac18:	41 a2 00 10 	beq+    ffc1ac28 <msdos_dir_read+0x408>        <== NOT EXECUTED
                {                                                     
                    rtems_semaphore_release(fs_info->vol_sema);       
ffc1ac1c:	80 70 00 9c 	lwz     r3,156(r16)                            <== NOT EXECUTED
ffc1ac20:	4b fe fa 5d 	bl      ffc0a67c <rtems_semaphore_release>     <== NOT EXECUTED
ffc1ac24:	48 00 00 b8 	b       ffc1acdc <msdos_dir_read+0x4bc>        <== NOT EXECUTED
                    return rc;                                        
                }                                                     
            }                                                         
                                                                      
            if (count <= 0)                                           
ffc1ac28:	2f 98 00 00 	cmpwi   cr7,r24,0                              <== NOT EXECUTED
ffc1ac2c:	40 be 00 0c 	bne+    cr7,ffc1ac38 <msdos_dir_read+0x418>    <== NOT EXECUTED
ffc1ac30:	48 00 00 1c 	b       ffc1ac4c <msdos_dir_read+0x42c>        <== 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;                  
ffc1ac34:	3b c0 ff ff 	li      r30,-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)  
ffc1ac38:	3b ff 00 20 	addi    r31,r31,32                             <== NOT EXECUTED
ffc1ac3c:	48 00 00 08 	b       ffc1ac44 <msdos_dir_read+0x424>        <== NOT EXECUTED
         * 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),      
                            bts2rd, fs_info->cl_buf);                 
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
ffc1ac40:	3b e0 00 00 	li      r31,0                                  <== 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)  
ffc1ac44:	7f 9f 98 40 	cmplw   cr7,r31,r19                            <== NOT EXECUTED
ffc1ac48:	41 9c fc bc 	blt+    cr7,ffc1a904 <msdos_dir_read+0xe4>     <== NOT EXECUTED
ffc1ac4c:	7f 5a aa 14 	add     r26,r26,r21                            <== NOT EXECUTED
ffc1ac50:	48 00 00 24 	b       ffc1ac74 <msdos_dir_read+0x454>        <== NOT EXECUTED
             fat_fd->fat_file_size                              :     
             fs_info->fat.vol.bpc;                                    
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc1ac54:	3b 40 00 00 	li      r26,0                                  <== NOT EXECUTED
ffc1ac58:	3b 80 00 00 	li      r28,0                                  <== NOT EXECUTED
ffc1ac5c:	3a c0 00 00 	li      r22,0                                  <== NOT EXECUTED
ffc1ac60:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc1ac64:	3b a0 00 00 	li      r29,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;                           
ffc1ac68:	3a 40 ff ff 	li      r18,-1                                 <== NOT EXECUTED
   * copy base name to destination                                    
   */                                                                 
  src_tmp = src;                                                      
  len = i;                                                            
  while (i-- > 0) {                                                   
    *dst++ = tolower((unsigned char)(*src_tmp++));                    
ffc1ac6c:	3e 80 00 00 	lis     r20,0                                  <== NOT EXECUTED
    while (i-- > 0) {                                                 
      *dst++ = tolower((unsigned char)(*src_tmp++));                  
      len++;                                                          
    }                                                                 
  }                                                                   
  *dst = '\0'; /* terminate string */                                 
ffc1ac70:	39 c0 00 00 	li      r14,0                                  <== 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)                                                 
ffc1ac74:	2f 98 00 00 	cmpwi   cr7,r24,0                              <== NOT EXECUTED
ffc1ac78:	40 9e fc 4c 	bne+    cr7,ffc1a8c4 <msdos_dir_read+0xa4>     <== NOT EXECUTED
                break;                                                
        }                                                             
        j++;                                                          
    }                                                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc1ac7c:	80 70 00 9c 	lwz     r3,156(r16)                            <== NOT EXECUTED
    return cmpltd;                                                    
ffc1ac80:	7f b1 eb 78 	mr      r17,r29                                <== NOT EXECUTED
                break;                                                
        }                                                             
        j++;                                                          
    }                                                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc1ac84:	4b fe f9 f9 	bl      ffc0a67c <rtems_semaphore_release>     <== NOT EXECUTED
ffc1ac88:	48 00 00 54 	b       ffc1acdc <msdos_dir_read+0x4bc>        <== 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)        
ffc1ac8c:	39 20 00 08 	li      r9,8                                   <== NOT EXECUTED
ffc1ac90:	39 0f 00 08 	addi    r8,r15,8                               <== NOT EXECUTED
ffc1ac94:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc1ac98:	4b ff fe 5c 	b       ffc1aaf4 <msdos_dir_read+0x2d4>        <== 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);  
ffc1ac9c:	38 61 00 1c 	addi    r3,r1,28                               <== NOT EXECUTED
ffc1aca0:	48 00 26 91 	bl      ffc1d330 <strlen>                      <== NOT EXECUTED
ffc1aca4:	b0 61 00 1a 	sth     r3,26(r1)                              <== NOT EXECUTED
ffc1aca8:	4b ff ff 2c 	b       ffc1abd4 <msdos_dir_read+0x3b4>        <== NOT EXECUTED
    *dst++ = tolower((unsigned char)(*src_tmp++));                    
  }                                                                   
  /*                                                                  
   * find last non-blank character of extension                       
   */                                                                 
  for ((i       =                            MSDOS_SHORT_EXT_LEN  ,   
ffc1acac:	38 c0 00 03 	li      r6,3                                   <== NOT EXECUTED
ffc1acb0:	48 00 00 08 	b       ffc1acb8 <msdos_dir_read+0x498>        <== NOT EXECUTED
	src_tmp = src + MSDOS_SHORT_BASE_LEN+MSDOS_SHORT_EXT_LEN-1);         
       ((i > 0) &&                                                    
	(*src_tmp == ' '));                                                  
       i--,src_tmp--)                                                 
ffc1acb4:	38 c0 00 02 	li      r6,2                                   <== NOT EXECUTED
  /*                                                                  
   * extension is not empty                                           
   */                                                                 
  if (i > 0) {                                                        
    *dst++ = '.'; /* append dot */                                    
    len += i + 1; /* extension + dot */                               
ffc1acb8:	38 86 00 01 	addi    r4,r6,1                                <== NOT EXECUTED
    src_tmp = src + MSDOS_SHORT_BASE_LEN;                             
    while (i-- > 0) {                                                 
      *dst++ = tolower((unsigned char)(*src_tmp++));                  
ffc1acbc:	80 74 27 a8 	lwz     r3,10152(r20)                          <== NOT EXECUTED
    {};                                                               
  /*                                                                  
   * extension is not empty                                           
   */                                                                 
  if (i > 0) {                                                        
    *dst++ = '.'; /* append dot */                                    
ffc1acc0:	39 20 00 2e 	li      r9,46                                  <== NOT EXECUTED
    len += i + 1; /* extension + dot */                               
    src_tmp = src + MSDOS_SHORT_BASE_LEN;                             
    while (i-- > 0) {                                                 
      *dst++ = tolower((unsigned char)(*src_tmp++));                  
ffc1acc4:	7c 89 03 a6 	mtctr   r4                                     <== NOT EXECUTED
    {};                                                               
  /*                                                                  
   * extension is not empty                                           
   */                                                                 
  if (i > 0) {                                                        
    *dst++ = '.'; /* append dot */                                    
ffc1acc8:	99 28 00 00 	stb     r9,0(r8)                               <== NOT EXECUTED
ffc1accc:	39 68 00 01 	addi    r11,r8,1                               <== NOT EXECUTED
    len += i + 1; /* extension + dot */                               
ffc1acd0:	7c e7 22 14 	add     r7,r7,r4                               <== NOT EXECUTED
    src_tmp = src + MSDOS_SHORT_BASE_LEN;                             
    while (i-- > 0) {                                                 
      *dst++ = tolower((unsigned char)(*src_tmp++));                  
ffc1acd4:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc1acd8:	4b ff fe d8 	b       ffc1abb0 <msdos_dir_read+0x390>        <== NOT EXECUTED
        j++;                                                          
    }                                                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
    return cmpltd;                                                    
}                                                                     
ffc1acdc:	39 61 01 88 	addi    r11,r1,392                             <== NOT EXECUTED
ffc1ace0:	7e 23 8b 78 	mr      r3,r17                                 <== NOT EXECUTED
ffc1ace4:	4b fe 68 d4 	b       ffc015b8 <_restgpr_14_x>               <== NOT EXECUTED
                                                                      

ffc1ace8 <msdos_dir_stat>: int msdos_dir_stat( const rtems_filesystem_location_info_t *loc, struct stat *buf ) {
ffc1ace8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc1acec:	7c 08 02 a6 	mflr    r0                                     
    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;                     
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1acf0:	38 a0 00 00 	li      r5,0                                   
int                                                                   
msdos_dir_stat(                                                       
    const rtems_filesystem_location_info_t *loc,                      
    struct stat *buf                                                  
)                                                                     
{                                                                     
ffc1acf4:	90 01 00 1c 	stw     r0,28(r1)                              
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = loc->mt_entry->fs_info;              
ffc1acf8:	81 23 00 14 	lwz     r9,20(r3)                              
int                                                                   
msdos_dir_stat(                                                       
    const rtems_filesystem_location_info_t *loc,                      
    struct stat *buf                                                  
)                                                                     
{                                                                     
ffc1acfc:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc1ad00:	7c 9f 23 78 	mr      r31,r4                                 
    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;                     
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1ad04:	38 80 00 00 	li      r4,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;              
ffc1ad08:	83 c9 00 08 	lwz     r30,8(r9)                              
    fat_file_fd_t     *fat_fd = loc->node_access;                     
ffc1ad0c:	83 a3 00 08 	lwz     r29,8(r3)                              
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1ad10:	80 7e 00 9c 	lwz     r3,156(r30)                            
ffc1ad14:	4b fe f8 45 	bl      ffc0a558 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc1ad18:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1ad1c:	41 a2 00 18 	beq+    ffc1ad34 <msdos_dir_stat+0x4c>         <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
ffc1ad20:	48 00 06 55 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc1ad24:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1ad28:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1ad2c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1ad30:	48 00 00 68 	b       ffc1ad98 <msdos_dir_stat+0xb0>         <== NOT EXECUTED
                                                                      
static inline dev_t rtems_disk_get_device_identifier(                 
  const rtems_disk_device *dd                                         
)                                                                     
{                                                                     
  return dd->dev;                                                     
ffc1ad34:	81 3e 00 64 	lwz     r9,100(r30)                            
                                                                      
    buf->st_dev = rtems_disk_get_device_identifier(fs_info->fat.vol.dd);
ffc1ad38:	81 49 00 00 	lwz     r10,0(r9)                              
ffc1ad3c:	81 69 00 04 	lwz     r11,4(r9)                              
    buf->st_ino = fat_fd->ino;                                        
ffc1ad40:	81 3d 00 0c 	lwz     r9,12(r29)                             
    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);
ffc1ad44:	91 5f 00 00 	stw     r10,0(r31)                             
    buf->st_ino = fat_fd->ino;                                        
    buf->st_mode  = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
ffc1ad48:	39 40 00 00 	li      r10,0                                  
                                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;                                        
ffc1ad4c:	91 3f 00 08 	stw     r9,8(r31)                              
    buf->st_mode  = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;            
ffc1ad50:	39 20 41 ff 	li      r9,16895                               
ffc1ad54:	91 3f 00 0c 	stw     r9,12(r31)                             
    buf->st_rdev = 0ll;                                               
    buf->st_size = fat_fd->fat_file_size;                             
ffc1ad58:	81 3d 00 18 	lwz     r9,24(r29)                             
    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);
ffc1ad5c:	91 7f 00 04 	stw     r11,4(r31)                             
    buf->st_ino = fat_fd->ino;                                        
    buf->st_mode  = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
ffc1ad60:	39 60 00 00 	li      r11,0                                  
    buf->st_size = fat_fd->fat_file_size;                             
ffc1ad64:	91 3f 00 24 	stw     r9,36(r31)                             
    buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;     
ffc1ad68:	55 29 ba 7e 	rlwinm  r9,r9,23,9,31                          
ffc1ad6c:	91 3f 00 44 	stw     r9,68(r31)                             
    buf->st_blksize = fs_info->fat.vol.bps;                           
ffc1ad70:	a1 3e 00 00 	lhz     r9,0(r30)                              
                                                                      
    buf->st_dev = rtems_disk_get_device_identifier(fs_info->fat.vol.dd);
    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;                             
ffc1ad74:	90 7f 00 20 	stw     r3,32(r31)                             
    buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;     
    buf->st_blksize = fs_info->fat.vol.bps;                           
ffc1ad78:	91 3f 00 40 	stw     r9,64(r31)                             
    buf->st_mtime = fat_fd->mtime;                                    
ffc1ad7c:	81 3d 00 40 	lwz     r9,64(r29)                             
        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_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
ffc1ad80:	91 5f 00 18 	stw     r10,24(r31)                            
ffc1ad84:	91 7f 00 1c 	stw     r11,28(r31)                            
    buf->st_size = fat_fd->fat_file_size;                             
    buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;     
    buf->st_blksize = fs_info->fat.vol.bps;                           
    buf->st_mtime = fat_fd->mtime;                                    
ffc1ad88:	91 3f 00 30 	stw     r9,48(r31)                             
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc1ad8c:	80 7e 00 9c 	lwz     r3,156(r30)                            
ffc1ad90:	4b fe f8 ed 	bl      ffc0a67c <rtems_semaphore_release>     
    return RC_OK;                                                     
ffc1ad94:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1ad98:	39 61 00 18 	addi    r11,r1,24                              
ffc1ad9c:	4b fe 68 58 	b       ffc015f4 <_restgpr_29_x>               
                                                                      

ffc17f28 <msdos_eval_token>: static inline bool rtems_filesystem_is_current_directory( const char *token, size_t tokenlen ) { return tokenlen == 1 && token [0] == '.';
ffc17f28:	2f 86 00 01 	cmpwi   cr7,r6,1                               
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
ffc17f2c:	7c 08 02 a6 	mflr    r0                                     
ffc17f30:	7c 2b 0b 78 	mr      r11,r1                                 
ffc17f34:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc17f38:	39 20 00 00 	li      r9,0                                   
ffc17f3c:	48 01 1f ad 	bl      ffc29ee8 <_savegpr_31>                 
ffc17f40:	90 01 00 14 	stw     r0,20(r1)                              
ffc17f44:	7c 7f 1b 78 	mr      r31,r3                                 
ffc17f48:	40 be 00 14 	bne+    cr7,ffc17f5c <msdos_eval_token+0x34>   
ffc17f4c:	89 25 00 00 	lbz     r9,0(r5)                               
ffc17f50:	69 29 00 2e 	xori    r9,r9,46                               
ffc17f54:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc17f58:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
  rtems_filesystem_eval_path_generic_status status =                  
    RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;                          
                                                                      
  if (rtems_filesystem_is_current_directory(token, tokenlen)) {       
ffc17f5c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc17f60:	41 9e 00 14 	beq-    cr7,ffc17f74 <msdos_eval_token+0x4c>   
                                                                      
static inline void rtems_filesystem_eval_path_clear_token(            
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  ctx->tokenlen = 0;                                                  
ffc17f64:	39 20 00 00 	li      r9,0                                   
ffc17f68:	91 3f 00 0c 	stw     r9,12(r31)                             
    rtems_filesystem_eval_path_clear_token(ctx);                      
    status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;             
ffc17f6c:	38 60 00 00 	li      r3,0                                   
ffc17f70:	48 00 00 74 	b       ffc17fe4 <msdos_eval_token+0xbc>       
  } else {                                                            
    rtems_filesystem_location_info_t *currentloc =                    
      rtems_filesystem_eval_path_get_currentloc(ctx);                 
    int rc = msdos_find_name(currentloc, token, tokenlen);            
ffc17f74:	7c a4 2b 78 	mr      r4,r5                                  
ffc17f78:	38 7f 00 18 	addi    r3,r31,24                              
ffc17f7c:	7c c5 33 78 	mr      r5,r6                                  
ffc17f80:	48 00 14 d5 	bl      ffc19454 <msdos_find_name>             
                                                                      
    if (rc == RC_OK) {                                                
ffc17f84:	7c 69 1b 79 	mr.     r9,r3                                  
ffc17f88:	40 a2 00 40 	bne+    ffc17fc8 <msdos_eval_token+0xa0>       
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)                       
ffc17f8c:	81 5f 00 20 	lwz     r10,32(r31)                            
ffc17f90:	91 3f 00 0c 	stw     r9,12(r31)                             
ffc17f94:	81 4a 00 10 	lwz     r10,16(r10)                            
 *     None                                                           
 */                                                                   
static void                                                           
msdos_set_handlers(rtems_filesystem_location_info_t *loc)             
{                                                                     
    msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;                
ffc17f98:	81 3f 00 2c 	lwz     r9,44(r31)                             
    fat_file_fd_t   *fat_fd = loc->node_access;                       
                                                                      
    if (fat_fd->fat_file_type == FAT_DIRECTORY)                       
ffc17f9c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
 *     None                                                           
 */                                                                   
static void                                                           
msdos_set_handlers(rtems_filesystem_location_info_t *loc)             
{                                                                     
    msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;                
ffc17fa0:	81 29 00 08 	lwz     r9,8(r9)                               
    fat_file_fd_t   *fat_fd = loc->node_access;                       
                                                                      
    if (fat_fd->fat_file_type == FAT_DIRECTORY)                       
ffc17fa4:	40 be 00 0c 	bne+    cr7,ffc17fb0 <msdos_eval_token+0x88>   
        loc->handlers = fs_info->directory_handlers;                  
ffc17fa8:	81 29 00 94 	lwz     r9,148(r9)                             
ffc17fac:	48 00 00 08 	b       ffc17fb4 <msdos_eval_token+0x8c>       
    else                                                              
        loc->handlers = fs_info->file_handlers;                       
ffc17fb0:	81 29 00 98 	lwz     r9,152(r9)                             
    int rc = msdos_find_name(currentloc, token, tokenlen);            
                                                                      
    if (rc == RC_OK) {                                                
      rtems_filesystem_eval_path_clear_token(ctx);                    
      msdos_set_handlers(currentloc);                                 
      if (rtems_filesystem_eval_path_has_path(ctx)) {                 
ffc17fb4:	80 7f 00 04 	lwz     r3,4(r31)                              
    fat_file_fd_t   *fat_fd = loc->node_access;                       
                                                                      
    if (fat_fd->fat_file_type == FAT_DIRECTORY)                       
        loc->handlers = fs_info->directory_handlers;                  
    else                                                              
        loc->handlers = fs_info->file_handlers;                       
ffc17fb8:	91 3f 00 28 	stw     r9,40(r31)                             
    int rc = msdos_find_name(currentloc, token, tokenlen);            
                                                                      
    if (rc == RC_OK) {                                                
      rtems_filesystem_eval_path_clear_token(ctx);                    
      msdos_set_handlers(currentloc);                                 
      if (rtems_filesystem_eval_path_has_path(ctx)) {                 
ffc17fbc:	7c 63 00 34 	cntlzw  r3,r3                                  
ffc17fc0:	54 63 d9 7e 	rlwinm  r3,r3,27,5,31                          
ffc17fc4:	48 00 00 20 	b       ffc17fe4 <msdos_eval_token+0xbc>       
        status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;         
      }                                                               
    } else if (rc == MSDOS_NAME_NOT_FOUND_ERR) {                      
ffc17fc8:	2f 89 7d 01 	cmpwi   cr7,r9,32001                           
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
ffc17fcc:	38 60 00 02 	li      r3,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) {                      
ffc17fd0:	41 be 00 14 	beq+    cr7,ffc17fe4 <msdos_eval_token+0xbc>   <== ALWAYS TAKEN
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, 0);                       
ffc17fd4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc17fd8:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc17fdc:	4b fe ef d9 	bl      ffc06fb4 <rtems_filesystem_eval_path_error><== NOT EXECUTED
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
ffc17fe0:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
      rtems_filesystem_eval_path_error(ctx, 0);                       
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc17fe4:	39 61 00 10 	addi    r11,r1,16                              
ffc17fe8:	4b fe 96 14 	b       ffc015fc <_restgpr_31_x>               
                                                                      

ffc1ae14 <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) {
ffc1ae14:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1ae18:	7c 08 02 a6 	mflr    r0                                     
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1ae1c:	38 80 00 00 	li      r4,0                                   
 *     RC_OK, if file closed successfully, or -1 if error occured (errno set
 *     appropriately)                                                 
 */                                                                   
int                                                                   
msdos_file_close(rtems_libio_t *iop)                                  
{                                                                     
ffc1ae20:	90 01 00 14 	stw     r0,20(r1)                              
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1ae24:	38 a0 00 00 	li      r5,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;     
ffc1ae28:	81 23 00 28 	lwz     r9,40(r3)                              
 *     RC_OK, if file closed successfully, or -1 if error occured (errno set
 *     appropriately)                                                 
 */                                                                   
int                                                                   
msdos_file_close(rtems_libio_t *iop)                                  
{                                                                     
ffc1ae2c:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc1ae30:	7c 7e 1b 78 	mr      r30,r3                                 
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc1ae34:	83 e9 00 08 	lwz     r31,8(r9)                              
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1ae38:	80 7f 00 9c 	lwz     r3,156(r31)                            
ffc1ae3c:	4b fe f7 1d 	bl      ffc0a558 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc1ae40:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1ae44:	41 be 00 18 	beq+    cr7,ffc1ae5c <msdos_file_close+0x48>   <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
ffc1ae48:	48 00 05 2d 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc1ae4c:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1ae50:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1ae54:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc1ae58:	48 00 00 18 	b       ffc1ae70 <msdos_file_close+0x5c>       <== NOT EXECUTED
                                                                      
    rc = msdos_file_update(iop);                                      
ffc1ae5c:	7f c3 f3 78 	mr      r3,r30                                 
ffc1ae60:	4b ff ff 41 	bl      ffc1ada0 <msdos_file_update>           
ffc1ae64:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc1ae68:	80 7f 00 9c 	lwz     r3,156(r31)                            
ffc1ae6c:	4b fe f8 11 	bl      ffc0a67c <rtems_semaphore_release>     
    return rc;                                                        
}                                                                     
ffc1ae70:	39 61 00 10 	addi    r11,r1,16                              
ffc1ae74:	7f c3 f3 78 	mr      r3,r30                                 
ffc1ae78:	4b fe 67 80 	b       ffc015f8 <_restgpr_30_x>               
                                                                      

ffc1b0d8 <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) {
ffc1b0d8:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc1b0dc:	7c 08 02 a6 	mflr    r0                                     
    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;            
    uint32_t old_length;                                              
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1b0e0:	38 80 00 00 	li      r4,0                                   
 * RETURNS:                                                           
 *     RC_OK on success, or -1 if error occured (errno set appropriately).
 */                                                                   
int                                                                   
msdos_file_ftruncate(rtems_libio_t *iop, off_t length)                
{                                                                     
ffc1b0e4:	90 01 00 34 	stw     r0,52(r1)                              
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc1b0e8:	81 23 00 28 	lwz     r9,40(r3)                              
 * RETURNS:                                                           
 *     RC_OK on success, or -1 if error occured (errno set appropriately).
 */                                                                   
int                                                                   
msdos_file_ftruncate(rtems_libio_t *iop, off_t length)                
{                                                                     
ffc1b0ec:	bf 41 00 18 	stmw    r26,24(r1)                             
ffc1b0f0:	7c bb 2b 78 	mr      r27,r5                                 
    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;            
    uint32_t old_length;                                              
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1b0f4:	38 a0 00 00 	li      r5,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;     
ffc1b0f8:	83 e9 00 08 	lwz     r31,8(r9)                              
 * RETURNS:                                                           
 *     RC_OK on success, or -1 if error occured (errno set appropriately).
 */                                                                   
int                                                                   
msdos_file_ftruncate(rtems_libio_t *iop, off_t length)                
{                                                                     
ffc1b0fc:	7c dd 33 78 	mr      r29,r6                                 
    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;            
ffc1b100:	83 c3 00 1c 	lwz     r30,28(r3)                             
    uint32_t old_length;                                              
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1b104:	80 7f 00 9c 	lwz     r3,156(r31)                            
ffc1b108:	4b fe f4 51 	bl      ffc0a558 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc1b10c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1b110:	41 a2 00 18 	beq+    ffc1b128 <msdos_file_ftruncate+0x50>   <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
ffc1b114:	48 00 02 61 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc1b118:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1b11c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1b120:	3b 80 ff ff 	li      r28,-1                                 <== NOT EXECUTED
ffc1b124:	48 00 00 a0 	b       ffc1b1c4 <msdos_file_ftruncate+0xec>   <== NOT EXECUTED
                                                                      
    old_length = fat_fd->fat_file_size;                               
    if (length < old_length) {                                        
ffc1b128:	7f 83 d8 00 	cmpw    cr7,r3,r27                             
    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);                    
                                                                      
    old_length = fat_fd->fat_file_size;                               
ffc1b12c:	83 5e 00 18 	lwz     r26,24(r30)                            
    if (length < old_length) {                                        
ffc1b130:	41 9d 00 10 	bgt-    cr7,ffc1b140 <msdos_file_ftruncate+0x68><== NEVER TAKEN
ffc1b134:	40 9e 00 24 	bne-    cr7,ffc1b158 <msdos_file_ftruncate+0x80><== NEVER TAKEN
ffc1b138:	7f 9a e8 40 	cmplw   cr7,r26,r29                            
ffc1b13c:	40 9d 00 1c 	ble-    cr7,ffc1b158 <msdos_file_ftruncate+0x80>
        rc = fat_file_truncate(&fs_info->fat, fat_fd, length);        
ffc1b140:	7f e3 fb 78 	mr      r3,r31                                 
ffc1b144:	7f c4 f3 78 	mr      r4,r30                                 
ffc1b148:	7f a5 eb 78 	mr      r5,r29                                 
ffc1b14c:	4b ff 7f 1d 	bl      ffc13068 <fat_file_truncate>           
ffc1b150:	7c 7c 1b 78 	mr      r28,r3                                 
ffc1b154:	48 00 00 5c 	b       ffc1b1b0 <msdos_file_ftruncate+0xd8>   
    } else {                                                          
        uint32_t new_length;                                          
                                                                      
        rc = fat_file_extend(&fs_info->fat,                           
ffc1b158:	7f e3 fb 78 	mr      r3,r31                                 
ffc1b15c:	7f c4 f3 78 	mr      r4,r30                                 
ffc1b160:	38 a0 00 01 	li      r5,1                                   
ffc1b164:	7f a6 eb 78 	mr      r6,r29                                 
ffc1b168:	38 e1 00 08 	addi    r7,r1,8                                
ffc1b16c:	4b ff 81 a9 	bl      ffc13314 <fat_file_extend>             
                             fat_fd,                                  
                             true,                                    
                             length,                                  
                             &new_length);                            
        if (rc == RC_OK && length != new_length) {                    
ffc1b170:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc1b174:	40 82 00 3c 	bne-    ffc1b1b0 <msdos_file_ftruncate+0xd8>   <== NEVER TAKEN
ffc1b178:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc1b17c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1b180:	40 9e 00 0c 	bne-    cr7,ffc1b18c <msdos_file_ftruncate+0xb4><== NEVER TAKEN
ffc1b184:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc1b188:	41 9e 00 30 	beq-    cr7,ffc1b1b8 <msdos_file_ftruncate+0xe0><== ALWAYS TAKEN
            fat_file_truncate(&fs_info->fat, fat_fd, old_length);     
ffc1b18c:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc1b190:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc1b194:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1b198:	4b ff 7e d1 	bl      ffc13068 <fat_file_truncate>           <== NOT EXECUTED
            errno = ENOSPC;                                           
            rc = -1;                                                  
ffc1b19c:	3b 80 ff ff 	li      r28,-1                                 <== NOT EXECUTED
                             true,                                    
                             length,                                  
                             &new_length);                            
        if (rc == RC_OK && length != new_length) {                    
            fat_file_truncate(&fs_info->fat, fat_fd, old_length);     
            errno = ENOSPC;                                           
ffc1b1a0:	48 00 01 d5 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc1b1a4:	39 20 00 1c 	li      r9,28                                  <== NOT EXECUTED
ffc1b1a8:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1b1ac:	48 00 00 10 	b       ffc1b1bc <msdos_file_ftruncate+0xe4>   <== NOT EXECUTED
            rc = -1;                                                  
        }                                                             
    }                                                                 
                                                                      
    if (rc == RC_OK) {                                                
ffc1b1b0:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc1b1b4:	40 9e 00 08 	bne-    cr7,ffc1b1bc <msdos_file_ftruncate+0xe4><== NEVER TAKEN
        fat_fd->fat_file_size = length;                               
ffc1b1b8:	93 be 00 18 	stw     r29,24(r30)                            
    }                                                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc1b1bc:	80 7f 00 9c 	lwz     r3,156(r31)                            
ffc1b1c0:	4b fe f4 bd 	bl      ffc0a67c <rtems_semaphore_release>     
                                                                      
    return rc;                                                        
}                                                                     
ffc1b1c4:	39 61 00 30 	addi    r11,r1,48                              
ffc1b1c8:	7f 83 e3 78 	mr      r3,r28                                 
ffc1b1cc:	4b fe 64 1c 	b       ffc015e8 <_restgpr_26_x>               
                                                                      

ffc1ae7c <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) {
ffc1ae7c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1ae80:	7c 08 02 a6 	mflr    r0                                     
ffc1ae84:	90 01 00 24 	stw     r0,36(r1)                              
    ssize_t            ret = 0;                                       
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc1ae88:	81 23 00 28 	lwz     r9,40(r3)                              
 *     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)       
{                                                                     
ffc1ae8c:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc1ae90:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1ae94:	7c 9e 23 78 	mr      r30,r4                                 
    ssize_t            ret = 0;                                       
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc1ae98:	83 a9 00 08 	lwz     r29,8(r9)                              
 *     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)       
{                                                                     
ffc1ae9c:	7c bc 2b 78 	mr      r28,r5                                 
    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;            
ffc1aea0:	83 63 00 1c 	lwz     r27,28(r3)                             
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1aea4:	38 80 00 00 	li      r4,0                                   
ffc1aea8:	80 7d 00 9c 	lwz     r3,156(r29)                            
ffc1aeac:	38 a0 00 00 	li      r5,0                                   
ffc1aeb0:	4b fe f6 a9 	bl      ffc0a558 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc1aeb4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1aeb8:	41 be 00 18 	beq+    cr7,ffc1aed0 <msdos_file_read+0x54>    <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
ffc1aebc:	48 00 04 b9 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc1aec0:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1aec4:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1aec8:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc1aecc:	48 00 00 4c 	b       ffc1af18 <msdos_file_read+0x9c>        <== NOT EXECUTED
                                                                      
    ret = fat_file_read(&fs_info->fat, fat_fd, iop->offset, count,    
ffc1aed0:	80 bf 00 0c 	lwz     r5,12(r31)                             
ffc1aed4:	7f c7 f3 78 	mr      r7,r30                                 
ffc1aed8:	7f a3 eb 78 	mr      r3,r29                                 
ffc1aedc:	7f 64 db 78 	mr      r4,r27                                 
ffc1aee0:	7f 86 e3 78 	mr      r6,r28                                 
ffc1aee4:	4b ff 7f c9 	bl      ffc12eac <fat_file_read>               
                        buffer);                                      
    if (ret > 0)                                                      
ffc1aee8:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1aeec:	40 81 00 24 	ble-    ffc1af10 <msdos_file_read+0x94>        
        iop->offset += ret;                                           
ffc1aef0:	81 1f 00 08 	lwz     r8,8(r31)                              
ffc1aef4:	7f cb f3 78 	mr      r11,r30                                
ffc1aef8:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc1aefc:	7f ca fe 70 	srawi   r10,r30,31                             
ffc1af00:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc1af04:	7d 4a 41 14 	adde    r10,r10,r8                             
ffc1af08:	91 5f 00 08 	stw     r10,8(r31)                             
ffc1af0c:	91 7f 00 0c 	stw     r11,12(r31)                            
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc1af10:	80 7d 00 9c 	lwz     r3,156(r29)                            
ffc1af14:	4b fe f7 69 	bl      ffc0a67c <rtems_semaphore_release>     
    return ret;                                                       
}                                                                     
ffc1af18:	39 61 00 20 	addi    r11,r1,32                              
ffc1af1c:	7f c3 f3 78 	mr      r3,r30                                 
ffc1af20:	4b fe 66 cc 	b       ffc015ec <_restgpr_27_x>               
                                                                      

ffc1b00c <msdos_file_stat>: int msdos_file_stat( const rtems_filesystem_location_info_t *loc, struct stat *buf ) {
ffc1b00c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc1b010:	7c 08 02 a6 	mflr    r0                                     
    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;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1b014:	38 a0 00 00 	li      r5,0                                   
int                                                                   
msdos_file_stat(                                                      
    const rtems_filesystem_location_info_t *loc,                      
    struct stat *buf                                                  
)                                                                     
{                                                                     
ffc1b018:	90 01 00 1c 	stw     r0,28(r1)                              
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = loc->mt_entry->fs_info;              
ffc1b01c:	81 23 00 14 	lwz     r9,20(r3)                              
int                                                                   
msdos_file_stat(                                                      
    const rtems_filesystem_location_info_t *loc,                      
    struct stat *buf                                                  
)                                                                     
{                                                                     
ffc1b020:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc1b024:	7c 9f 23 78 	mr      r31,r4                                 
    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;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1b028:	38 80 00 00 	li      r4,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;              
ffc1b02c:	83 c9 00 08 	lwz     r30,8(r9)                              
    fat_file_fd_t     *fat_fd = loc->node_access;                     
ffc1b030:	83 a3 00 08 	lwz     r29,8(r3)                              
    uint32_t           cl_mask = fs_info->fat.vol.bpc - 1;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1b034:	80 7e 00 9c 	lwz     r3,156(r30)                            
)                                                                     
{                                                                     
    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;            
ffc1b038:	a3 9e 00 06 	lhz     r28,6(r30)                             
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1b03c:	4b fe f5 1d 	bl      ffc0a558 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc1b040:	2c 03 00 00 	cmpwi   r3,0                                   
)                                                                     
{                                                                     
    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;            
ffc1b044:	3b 9c ff ff 	addi    r28,r28,-1                             
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc1b048:	41 a2 00 18 	beq+    ffc1b060 <msdos_file_stat+0x54>        <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
ffc1b04c:	48 00 03 29 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc1b050:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1b054:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1b058:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1b05c:	48 00 00 74 	b       ffc1b0d0 <msdos_file_stat+0xc4>        <== NOT EXECUTED
ffc1b060:	81 3e 00 64 	lwz     r9,100(r30)                            
                                                                      
    buf->st_dev = rtems_disk_get_device_identifier(fs_info->fat.vol.dd);
ffc1b064:	81 49 00 00 	lwz     r10,0(r9)                              
ffc1b068:	81 69 00 04 	lwz     r11,4(r9)                              
    buf->st_ino = fat_fd->ino;                                        
ffc1b06c:	81 3d 00 0c 	lwz     r9,12(r29)                             
    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);
ffc1b070:	91 5f 00 00 	stw     r10,0(r31)                             
    buf->st_ino = fat_fd->ino;                                        
    buf->st_mode  = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
ffc1b074:	39 40 00 00 	li      r10,0                                  
                                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;                                        
ffc1b078:	91 3f 00 08 	stw     r9,8(r31)                              
    buf->st_mode  = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;            
ffc1b07c:	39 20 00 00 	li      r9,0                                   
ffc1b080:	61 29 81 ff 	ori     r9,r9,33279                            
ffc1b084:	91 3f 00 0c 	stw     r9,12(r31)                             
    buf->st_rdev = 0ll;                                               
    buf->st_size = fat_fd->fat_file_size;                             
ffc1b088:	81 3d 00 18 	lwz     r9,24(r29)                             
    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);
ffc1b08c:	91 7f 00 04 	stw     r11,4(r31)                             
    buf->st_ino = fat_fd->ino;                                        
    buf->st_mode  = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
ffc1b090:	39 60 00 00 	li      r11,0                                  
    buf->st_size = fat_fd->fat_file_size;                             
ffc1b094:	91 3f 00 24 	stw     r9,36(r31)                             
    buf->st_blocks = ((fat_fd->fat_file_size + cl_mask) & ~cl_mask)   
ffc1b098:	7d 3c 4a 14 	add     r9,r28,r9                              
ffc1b09c:	7d 3c e0 78 	andc    r28,r9,r28                             
      >> FAT_SECTOR512_BITS;                                          
    buf->st_blksize = fs_info->fat.vol.bpc;                           
ffc1b0a0:	a1 3e 00 06 	lhz     r9,6(r30)                              
    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)   
      >> FAT_SECTOR512_BITS;                                          
ffc1b0a4:	57 9c ba 7e 	rlwinm  r28,r28,23,9,31                        
                                                                      
    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;                             
ffc1b0a8:	90 7f 00 20 	stw     r3,32(r31)                             
    buf->st_blocks = ((fat_fd->fat_file_size + cl_mask) & ~cl_mask)   
      >> FAT_SECTOR512_BITS;                                          
    buf->st_blksize = fs_info->fat.vol.bpc;                           
ffc1b0ac:	91 3f 00 40 	stw     r9,64(r31)                             
    buf->st_mtime = fat_fd->mtime;                                    
ffc1b0b0:	81 3d 00 40 	lwz     r9,64(r29)                             
        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;                                               
ffc1b0b4:	91 5f 00 18 	stw     r10,24(r31)                            
ffc1b0b8:	91 7f 00 1c 	stw     r11,28(r31)                            
    buf->st_size = fat_fd->fat_file_size;                             
    buf->st_blocks = ((fat_fd->fat_file_size + cl_mask) & ~cl_mask)   
ffc1b0bc:	93 9f 00 44 	stw     r28,68(r31)                            
      >> FAT_SECTOR512_BITS;                                          
    buf->st_blksize = fs_info->fat.vol.bpc;                           
    buf->st_mtime = fat_fd->mtime;                                    
ffc1b0c0:	91 3f 00 30 	stw     r9,48(r31)                             
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc1b0c4:	80 7e 00 9c 	lwz     r3,156(r30)                            
ffc1b0c8:	4b fe f5 b5 	bl      ffc0a67c <rtems_semaphore_release>     
    return RC_OK;                                                     
ffc1b0cc:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1b0d0:	39 61 00 18 	addi    r11,r1,24                              
ffc1b0d4:	4b fe 65 1c 	b       ffc015f0 <_restgpr_28_x>               
                                                                      

ffc1b1d0 <msdos_file_sync>: * RETURNS: * RC_OK on success, or -1 if error occured (errno set appropriately) */ int msdos_file_sync(rtems_libio_t *iop) {
ffc1b1d0:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1b1d4:	7c 08 02 a6 	mflr    r0                                     
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1b1d8:	38 80 00 00 	li      r4,0                                   
 * RETURNS:                                                           
 *     RC_OK on success, or -1 if error occured (errno set appropriately)
 */                                                                   
int                                                                   
msdos_file_sync(rtems_libio_t *iop)                                   
{                                                                     
ffc1b1dc:	90 01 00 14 	stw     r0,20(r1)                              
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1b1e0:	38 a0 00 00 	li      r5,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;     
ffc1b1e4:	81 23 00 28 	lwz     r9,40(r3)                              
 * RETURNS:                                                           
 *     RC_OK on success, or -1 if error occured (errno set appropriately)
 */                                                                   
int                                                                   
msdos_file_sync(rtems_libio_t *iop)                                   
{                                                                     
ffc1b1e8:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc1b1ec:	7c 7e 1b 78 	mr      r30,r3                                 
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc1b1f0:	83 e9 00 08 	lwz     r31,8(r9)                              
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1b1f4:	80 7f 00 9c 	lwz     r3,156(r31)                            
ffc1b1f8:	4b fe f3 61 	bl      ffc0a558 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc1b1fc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1b200:	41 be 00 18 	beq+    cr7,ffc1b218 <msdos_file_sync+0x48>    <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
ffc1b204:	48 00 01 71 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc1b208:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1b20c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1b210:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc1b214:	48 00 00 28 	b       ffc1b23c <msdos_file_sync+0x6c>        <== NOT EXECUTED
                                                                      
    rc = msdos_file_update(iop);                                      
ffc1b218:	7f c3 f3 78 	mr      r3,r30                                 
ffc1b21c:	4b ff fb 85 	bl      ffc1ada0 <msdos_file_update>           
    if (rc != RC_OK)                                                  
ffc1b220:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1b224:	41 a2 00 08 	beq+    ffc1b22c <msdos_file_sync+0x5c>        <== ALWAYS TAKEN
ffc1b228:	48 00 00 0c 	b       ffc1b234 <msdos_file_sync+0x64>        <== NOT EXECUTED
    {                                                                 
        rtems_semaphore_release(fs_info->vol_sema);                   
        return rc;                                                    
    }                                                                 
                                                                      
    rc = fat_sync(&fs_info->fat);                                     
ffc1b22c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1b230:	4b ff 94 39 	bl      ffc14668 <fat_sync>                    
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc1b234:	80 7f 00 9c 	lwz     r3,156(r31)                            
ffc1b238:	4b fe f4 45 	bl      ffc0a67c <rtems_semaphore_release>     
    return RC_OK;                                                     
}                                                                     
ffc1b23c:	39 61 00 10 	addi    r11,r1,16                              
ffc1b240:	7f c3 f3 78 	mr      r3,r30                                 
ffc1b244:	4b fe 63 b4 	b       ffc015f8 <_restgpr_30_x>               
                                                                      

ffc1ada0 <msdos_file_update>: #include "msdos.h" static int msdos_file_update(rtems_libio_t *iop) {
ffc1ada0:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1ada4:	7c 08 02 a6 	mflr    r0                                     
ffc1ada8:	90 01 00 14 	stw     r0,20(r1)                              
ffc1adac:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc1adb0:	7c 7f 1b 78 	mr      r31,r3                                 
    int              rc = RC_OK;                                      
    fat_file_fd_t   *fat_fd = iop->pathinfo.node_access;              
ffc1adb4:	83 c3 00 1c 	lwz     r30,28(r3)                             
#include "msdos.h"                                                    
                                                                      
static int                                                            
msdos_file_update(rtems_libio_t *iop)                                 
{                                                                     
    int              rc = RC_OK;                                      
ffc1adb8:	38 60 00 00 	li      r3,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))                                 
ffc1adbc:	89 3e 00 30 	lbz     r9,48(r30)                             
ffc1adc0:	71 2a 00 01 	andi.   r10,r9,1                               
ffc1adc4:	40 a2 00 48 	bne+    ffc1ae0c <msdos_file_update+0x6c>      <== NEVER TAKEN
    {                                                                 
        rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
ffc1adc8:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc1adcc:	7f c4 f3 78 	mr      r4,r30                                 
ffc1add0:	4b ff d5 cd 	bl      ffc1839c <msdos_set_first_cluster_num> 
        if (rc != RC_OK)                                              
ffc1add4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1add8:	40 a2 00 34 	bne+    ffc1ae0c <msdos_file_update+0x6c>      <== NEVER TAKEN
        {                                                             
            return rc;                                                
        }                                                             
                                                                      
        rc = msdos_set_file_size(iop->pathinfo.mt_entry, fat_fd);     
ffc1addc:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc1ade0:	7f c4 f3 78 	mr      r4,r30                                 
ffc1ade4:	4b ff d6 85 	bl      ffc18468 <msdos_set_file_size>         
        if (rc != RC_OK)                                              
ffc1ade8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1adec:	40 a2 00 20 	bne+    ffc1ae0c <msdos_file_update+0x6c>      <== NEVER TAKEN
            return rc;                                                
        }                                                             
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc1adf0:	80 01 00 14 	lwz     r0,20(r1)                              
        if (rc != RC_OK)                                              
        {                                                             
            return rc;                                                
        }                                                             
                                                                      
        rc = msdos_set_dir_wrt_time_and_date(iop->pathinfo.mt_entry, fat_fd);
ffc1adf4:	7f c4 f3 78 	mr      r4,r30                                 
ffc1adf8:	80 7f 00 28 	lwz     r3,40(r31)                             
            return rc;                                                
        }                                                             
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc1adfc:	7c 08 03 a6 	mtlr    r0                                     
ffc1ae00:	bb c1 00 08 	lmw     r30,8(r1)                              
ffc1ae04:	38 21 00 10 	addi    r1,r1,16                               
        if (rc != RC_OK)                                              
        {                                                             
            return rc;                                                
        }                                                             
                                                                      
        rc = msdos_set_dir_wrt_time_and_date(iop->pathinfo.mt_entry, fat_fd);
ffc1ae08:	4b ff d4 a0 	b       ffc182a8 <msdos_set_dir_wrt_time_and_date>
            return rc;                                                
        }                                                             
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc1ae0c:	39 61 00 10 	addi    r11,r1,16                              <== NOT EXECUTED
ffc1ae10:	4b fe 67 e8 	b       ffc015f8 <_restgpr_30_x>               <== NOT EXECUTED
                                                                      

ffc1af24 <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) {
ffc1af24:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1af28:	7c 08 02 a6 	mflr    r0                                     
ffc1af2c:	90 01 00 24 	stw     r0,36(r1)                              
    ssize_t            ret = 0;                                       
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc1af30:	81 23 00 28 	lwz     r9,40(r3)                              
 *     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) 
{                                                                     
ffc1af34:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc1af38:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1af3c:	7c 9e 23 78 	mr      r30,r4                                 
    ssize_t            ret = 0;                                       
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc1af40:	83 a9 00 08 	lwz     r29,8(r9)                              
 *     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) 
{                                                                     
ffc1af44:	7c bb 2b 78 	mr      r27,r5                                 
    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;            
ffc1af48:	83 83 00 1c 	lwz     r28,28(r3)                             
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1af4c:	38 80 00 00 	li      r4,0                                   
ffc1af50:	80 7d 00 9c 	lwz     r3,156(r29)                            
ffc1af54:	38 a0 00 00 	li      r5,0                                   
ffc1af58:	4b fe f6 01 	bl      ffc0a558 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc1af5c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1af60:	41 a2 00 14 	beq+    ffc1af74 <msdos_file_write+0x50>       <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
ffc1af64:	48 00 04 11 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc1af68:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1af6c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1af70:	48 00 00 44 	b       ffc1afb4 <msdos_file_write+0x90>       <== NOT EXECUTED
                                                                      
    if ((iop->flags & LIBIO_FLAGS_APPEND) != 0)                       
ffc1af74:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc1af78:	71 2a 02 00 	andi.   r10,r9,512                             
ffc1af7c:	41 82 00 10 	beq-    ffc1af8c <msdos_file_write+0x68>       
        iop->offset = fat_fd->fat_file_size;                          
ffc1af80:	81 3c 00 18 	lwz     r9,24(r28)                             
ffc1af84:	90 7f 00 08 	stw     r3,8(r31)                              
ffc1af88:	91 3f 00 0c 	stw     r9,12(r31)                             
                                                                      
    ret = fat_file_write(&fs_info->fat, fat_fd, iop->offset, count,   
ffc1af8c:	80 bf 00 0c 	lwz     r5,12(r31)                             
ffc1af90:	7f c7 f3 78 	mr      r7,r30                                 
ffc1af94:	7f a3 eb 78 	mr      r3,r29                                 
ffc1af98:	7f 84 e3 78 	mr      r4,r28                                 
ffc1af9c:	7f 66 db 78 	mr      r6,r27                                 
ffc1afa0:	4b ff 85 c1 	bl      ffc13560 <fat_file_write>              
                         buffer);                                     
    if (ret < 0)                                                      
ffc1afa4:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1afa8:	40 a0 00 14 	bge+    ffc1afbc <msdos_file_write+0x98>       <== ALWAYS TAKEN
    {                                                                 
        rtems_semaphore_release(fs_info->vol_sema);                   
ffc1afac:	80 7d 00 9c 	lwz     r3,156(r29)                            <== NOT EXECUTED
ffc1afb0:	4b fe f6 cd 	bl      ffc0a67c <rtems_semaphore_release>     <== NOT EXECUTED
        return -1;                                                    
ffc1afb4:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc1afb8:	48 00 00 48 	b       ffc1b000 <msdos_file_write+0xdc>       <== NOT EXECUTED
                                                                      
    /*                                                                
     * update file size in both fat-file descriptor and file control block if
     * file was extended                                              
     */                                                               
    iop->offset += ret;                                               
ffc1afbc:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc1afc0:	7f cb f3 78 	mr      r11,r30                                
ffc1afc4:	81 1f 00 08 	lwz     r8,8(r31)                              
ffc1afc8:	7f ca fe 70 	srawi   r10,r30,31                             
ffc1afcc:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc1afd0:	7d 4a 41 14 	adde    r10,r10,r8                             
    if (iop->offset > fat_fd->fat_file_size)                          
ffc1afd4:	81 3c 00 18 	lwz     r9,24(r28)                             
                                                                      
    /*                                                                
     * update file size in both fat-file descriptor and file control block if
     * file was extended                                              
     */                                                               
    iop->offset += ret;                                               
ffc1afd8:	91 5f 00 08 	stw     r10,8(r31)                             
    if (iop->offset > fat_fd->fat_file_size)                          
ffc1afdc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
                                                                      
    /*                                                                
     * update file size in both fat-file descriptor and file control block if
     * file was extended                                              
     */                                                               
    iop->offset += ret;                                               
ffc1afe0:	91 7f 00 0c 	stw     r11,12(r31)                            
    if (iop->offset > fat_fd->fat_file_size)                          
ffc1afe4:	41 9d 00 10 	bgt-    cr7,ffc1aff4 <msdos_file_write+0xd0>   <== NEVER TAKEN
ffc1afe8:	40 9e 00 10 	bne-    cr7,ffc1aff8 <msdos_file_write+0xd4>   <== NEVER TAKEN
ffc1afec:	7f 8b 48 40 	cmplw   cr7,r11,r9                             
ffc1aff0:	40 9d 00 08 	ble-    cr7,ffc1aff8 <msdos_file_write+0xd4>   
        fat_fd->fat_file_size = iop->offset;                          
ffc1aff4:	91 7c 00 18 	stw     r11,24(r28)                            
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc1aff8:	80 7d 00 9c 	lwz     r3,156(r29)                            
ffc1affc:	4b fe f6 81 	bl      ffc0a67c <rtems_semaphore_release>     
    return ret;                                                       
}                                                                     
ffc1b000:	39 61 00 20 	addi    r11,r1,32                              
ffc1b004:	7f c3 f3 78 	mr      r3,r30                                 
ffc1b008:	4b fe 65 e4 	b       ffc015ec <_restgpr_27_x>               
                                                                      

ffc1a6d0 <msdos_filename_unix2dos>: /* * Fill the dos filename string with blanks. These are DOS's pad * characters. */ for (i = 0; i <= 10; i++) dn[i] = ' ';
ffc1a6d0:	39 00 00 0b 	li      r8,11                                  
ffc1a6d4:	7d 09 03 a6 	mtctr   r8                                     
                                                                      
	/*                                                                   
	 * Fill the dos filename string with blanks. These are DOS's pad     
	 * characters.                                                       
	 */                                                                  
	for (i = 0; i <= 10; i++)                                            
ffc1a6d8:	39 20 00 00 	li      r9,0                                   
		dn[i] = ' ';                                                        
ffc1a6dc:	39 40 00 20 	li      r10,32                                 
ffc1a6e0:	7d 45 49 ae 	stbx    r10,r5,r9                              
                                                                      
	/*                                                                   
	 * Fill the dos filename string with blanks. These are DOS's pad     
	 * characters.                                                       
	 */                                                                  
	for (i = 0; i <= 10; i++)                                            
ffc1a6e4:	39 29 00 01 	addi    r9,r9,1                                
ffc1a6e8:	42 00 ff f8 	bdnz+   ffc1a6e0 <msdos_filename_unix2dos+0x10>
                                                                      
	/*                                                                   
	 * The filenames "." and ".." are handled specially, since they      
	 * don't follow dos filename rules.                                  
	 */                                                                  
	if (un[0] == '.' && unlen == 1) {                                    
ffc1a6ec:	89 23 00 00 	lbz     r9,0(r3)                               
ffc1a6f0:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc1a6f4:	40 be 00 40 	bne+    cr7,ffc1a734 <msdos_filename_unix2dos+0x64><== ALWAYS TAKEN
ffc1a6f8:	2f 84 00 01 	cmpwi   cr7,r4,1                               <== NOT EXECUTED
ffc1a6fc:	40 be 00 0c 	bne+    cr7,ffc1a708 <msdos_filename_unix2dos+0x38><== NOT EXECUTED
		dn[0] = '.';                                                        
ffc1a700:	99 25 00 00 	stb     r9,0(r5)                               <== NOT EXECUTED
		return 0;                                                           
ffc1a704:	48 00 01 14 	b       ffc1a818 <msdos_filename_unix2dos+0x148><== NOT EXECUTED
	}                                                                    
	if (un[0] == '.' && un[1] == '.' && unlen == 2) {                    
ffc1a708:	89 23 00 01 	lbz     r9,1(r3)                               <== NOT EXECUTED
ffc1a70c:	2f 89 00 2e 	cmpwi   cr7,r9,46                              <== NOT EXECUTED
ffc1a710:	40 be 00 24 	bne+    cr7,ffc1a734 <msdos_filename_unix2dos+0x64><== NOT EXECUTED
ffc1a714:	2f 84 00 02 	cmpwi   cr7,r4,2                               <== NOT EXECUTED
ffc1a718:	40 be 00 1c 	bne+    cr7,ffc1a734 <msdos_filename_unix2dos+0x64><== NOT EXECUTED
		dn[0] = '.';                                                        
ffc1a71c:	99 25 00 00 	stb     r9,0(r5)                               <== NOT EXECUTED
		dn[1] = '.';                                                        
ffc1a720:	99 25 00 01 	stb     r9,1(r5)                               <== NOT EXECUTED
		return 0;                                                           
ffc1a724:	48 00 00 f4 	b       ffc1a818 <msdos_filename_unix2dos+0x148><== NOT EXECUTED
                                                                      
  /*                                                                  
   * Remove any dots from the start of a file name.                   
   */                                                                 
	while (unlen && (*un == '.')) {                                      
		un++;                                                               
ffc1a728:	38 63 00 01 	addi    r3,r3,1                                <== NOT EXECUTED
		unlen--;                                                            
ffc1a72c:	38 84 ff ff 	addi    r4,r4,-1                               <== NOT EXECUTED
ffc1a730:	48 00 00 0c 	b       ffc1a73c <msdos_filename_unix2dos+0x6c><== NOT EXECUTED
ffc1a734:	39 24 00 01 	addi    r9,r4,1                                
ffc1a738:	7d 29 03 a6 	mtctr   r9                                     
	}                                                                    
                                                                      
  /*                                                                  
   * Remove any dots from the start of a file name.                   
   */                                                                 
	while (unlen && (*un == '.')) {                                      
ffc1a73c:	42 00 00 18 	bdnz-   ffc1a754 <msdos_filename_unix2dos+0x84>
	 * 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)                                            
ffc1a740:	39 20 00 08 	li      r9,8                                   
                                                                      
	/*                                                                   
	 * Fill the dos filename string with blanks. These are DOS's pad     
	 * characters.                                                       
	 */                                                                  
	for (i = 0; i <= 10; i++)                                            
ffc1a744:	39 40 00 00 	li      r10,0                                  
	 * 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)                                            
ffc1a748:	7d 29 03 a6 	mtctr   r9                                     
ffc1a74c:	3d 00 ff c3 	lis     r8,-61                                 
ffc1a750:	48 00 00 38 	b       ffc1a788 <msdos_filename_unix2dos+0xb8>
	}                                                                    
                                                                      
  /*                                                                  
   * Remove any dots from the start of a file name.                   
   */                                                                 
	while (unlen && (*un == '.')) {                                      
ffc1a754:	89 23 00 00 	lbz     r9,0(r3)                               
ffc1a758:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc1a75c:	41 9e ff cc 	beq+    cr7,ffc1a728 <msdos_filename_unix2dos+0x58><== NEVER TAKEN
ffc1a760:	4b ff ff e0 	b       ffc1a740 <msdos_filename_unix2dos+0x70>
	 * 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)                                            
ffc1a764:	38 e8 bd 24 	addi    r7,r8,-17116                           
ffc1a768:	7d 27 48 ae 	lbzx    r9,r7,r9                               
ffc1a76c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1a770:	41 9e 00 4c 	beq-    cr7,ffc1a7bc <msdos_filename_unix2dos+0xec>
      break;                                                          
		dn[i] = msdos_map[c];                                               
ffc1a774:	7d 25 51 ae 	stbx    r9,r5,r10                              
		un++;                                                               
ffc1a778:	38 63 00 01 	addi    r3,r3,1                                
		unlen--;                                                            
ffc1a77c:	38 84 ff ff 	addi    r4,r4,-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++) {         
ffc1a780:	39 4a 00 01 	addi    r10,r10,1                              
ffc1a784:	42 40 00 38 	bdz-    ffc1a7bc <msdos_filename_unix2dos+0xec>
ffc1a788:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc1a78c:	41 9e 00 30 	beq-    cr7,ffc1a7bc <msdos_filename_unix2dos+0xec>
ffc1a790:	89 23 00 00 	lbz     r9,0(r3)                               
ffc1a794:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1a798:	41 9e 00 24 	beq-    cr7,ffc1a7bc <msdos_filename_unix2dos+0xec><== NEVER TAKEN
ffc1a79c:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc1a7a0:	40 9e ff c4 	bne+    cr7,ffc1a764 <msdos_filename_unix2dos+0x94>
ffc1a7a4:	48 00 00 18 	b       ffc1a7bc <msdos_filename_unix2dos+0xec>
	 */                                                                  
	while (unlen && (c = *un)) {                                         
		un++;                                                               
		unlen--;                                                            
		/* Make sure we've skipped over the dot before stopping. */         
		if (c == '.')                                                       
ffc1a7a8:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
	/*                                                                   
	 * Strip any further characters up to a '.' or the end of the        
	 * string.                                                           
	 */                                                                  
	while (unlen && (c = *un)) {                                         
		un++;                                                               
ffc1a7ac:	38 63 00 01 	addi    r3,r3,1                                
		unlen--;                                                            
ffc1a7b0:	38 84 ff ff 	addi    r4,r4,-1                               
		/* Make sure we've skipped over the dot before stopping. */         
		if (c == '.')                                                       
ffc1a7b4:	40 be 00 10 	bne+    cr7,ffc1a7c4 <msdos_filename_unix2dos+0xf4>
ffc1a7b8:	48 00 00 1c 	b       ffc1a7d4 <msdos_filename_unix2dos+0x104>
ffc1a7bc:	39 04 00 01 	addi    r8,r4,1                                
ffc1a7c0:	7d 09 03 a6 	mtctr   r8                                     
                                                                      
	/*                                                                   
	 * Strip any further characters up to a '.' or the end of the        
	 * string.                                                           
	 */                                                                  
	while (unlen && (c = *un)) {                                         
ffc1a7c4:	42 40 00 10 	bdz-    ffc1a7d4 <msdos_filename_unix2dos+0x104>
ffc1a7c8:	89 23 00 00 	lbz     r9,0(r3)                               
ffc1a7cc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1a7d0:	40 9e ff d8 	bne+    cr7,ffc1a7a8 <msdos_filename_unix2dos+0xd8><== ALWAYS TAKEN
/*                                                                    
 * 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)          
ffc1a7d4:	39 20 00 00 	li      r9,0                                   
	 * 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)                                            
ffc1a7d8:	3d 00 ff c3 	lis     r8,-61                                 
ffc1a7dc:	48 00 00 28 	b       ffc1a804 <msdos_filename_unix2dos+0x134>
ffc1a7e0:	38 e8 bd 24 	addi    r7,r8,-17116                           
ffc1a7e4:	7d 47 50 ae 	lbzx    r10,r7,r10                             
ffc1a7e8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1a7ec:	41 9e 00 2c 	beq-    cr7,ffc1a818 <msdos_filename_unix2dos+0x148>
	/*                                                                   
	 * 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++) {                    
ffc1a7f0:	2f 89 00 02 	cmpwi   cr7,r9,2                               
/*                                                                    
 * 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)          
ffc1a7f4:	7c e5 4a 14 	add     r7,r5,r9                               
	 * 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];                                             
ffc1a7f8:	99 47 00 08 	stb     r10,8(r7)                              
	/*                                                                   
	 * 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++) {                    
ffc1a7fc:	39 29 00 01 	addi    r9,r9,1                                
ffc1a800:	41 9e 00 18 	beq-    cr7,ffc1a818 <msdos_filename_unix2dos+0x148>
ffc1a804:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc1a808:	41 9e 00 10 	beq-    cr7,ffc1a818 <msdos_filename_unix2dos+0x148>
ffc1a80c:	7d 43 48 ae 	lbzx    r10,r3,r9                              
ffc1a810:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1a814:	40 9e ff cc 	bne+    cr7,ffc1a7e0 <msdos_filename_unix2dos+0x110><== ALWAYS TAKEN
    dn[i] = msdos_map[c];                                             
		un++;                                                               
		unlen--;                                                            
	}                                                                    
	return 0;                                                            
}                                                                     
ffc1a818:	38 60 00 00 	li      r3,0                                   
ffc1a81c:	4e 80 00 20 	blr                                            
                                                                      

ffc19454 <msdos_find_name>: msdos_find_name( rtems_filesystem_location_info_t *parent_loc, const char *name, int name_len ) {
ffc19454:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc19458:	7c 08 02 a6 	mflr    r0                                     
ffc1945c:	90 01 00 64 	stw     r0,100(r1)                             
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = parent_loc->mt_entry->fs_info;       
ffc19460:	81 23 00 14 	lwz     r9,20(r3)                              
msdos_find_name(                                                      
    rtems_filesystem_location_info_t *parent_loc,                     
    const char                       *name,                           
    int                               name_len                        
    )                                                                 
{                                                                     
ffc19464:	bf 61 00 4c 	stmw    r27,76(r1)                             
ffc19468:	7c be 2b 78 	mr      r30,r5                                 
ffc1946c:	7c 9c 23 78 	mr      r28,r4                                 
ffc19470:	7c 7d 1b 78 	mr      r29,r3                                 
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = parent_loc->mt_entry->fs_info;       
ffc19474:	83 e9 00 08 	lwz     r31,8(r9)                              
    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);         
ffc19478:	38 80 00 00 	li      r4,0                                   
    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;                                 
ffc1947c:	39 20 00 00 	li      r9,0                                   
    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);         
ffc19480:	38 a0 00 20 	li      r5,32                                  
    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;                                 
ffc19484:	91 21 00 38 	stw     r9,56(r1)                              
    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);         
ffc19488:	38 61 00 08 	addi    r3,r1,8                                
ffc1948c:	48 00 2c bd 	bl      ffc1c148 <memset>                      
                                                                      
    name_type = msdos_long_to_short (name,                            
ffc19490:	7f c4 f3 78 	mr      r4,r30                                 
ffc19494:	38 a1 00 08 	addi    r5,r1,8                                
ffc19498:	38 c0 00 0b 	li      r6,11                                  
ffc1949c:	7f 83 e3 78 	mr      r3,r28                                 
ffc194a0:	4b ff eb fd 	bl      ffc1809c <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,
ffc194a4:	3b 61 00 28 	addi    r27,r1,40                              
    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,                            
ffc194a8:	7c 67 1b 78 	mr      r7,r3                                  
                                                                      
    /*                                                                
     * 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,
ffc194ac:	7f c6 f3 78 	mr      r6,r30                                 
ffc194b0:	7f a3 eb 78 	mr      r3,r29                                 
ffc194b4:	38 80 00 00 	li      r4,0                                   
ffc194b8:	7f 85 e3 78 	mr      r5,r28                                 
ffc194bc:	7f 68 db 78 	mr      r8,r27                                 
ffc194c0:	39 21 00 08 	addi    r9,r1,8                                
ffc194c4:	4b ff fe 9d 	bl      ffc19360 <msdos_get_name_node>         
                             &dir_pos, node_entry);                   
    if (rc != RC_OK)                                                  
ffc194c8:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc194cc:	40 82 01 70 	bne-    ffc1963c <msdos_find_name+0x1e8>       
        return rc;                                                    
                                                                      
    if (((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_VOLUME_ID) ||     
ffc194d0:	89 21 00 13 	lbz     r9,19(r1)                              
        ((*MSDOS_DIR_ATTR(node_entry) & MSDOS_ATTR_LFN_MASK) == MSDOS_ATTR_LFN))
        return MSDOS_NAME_NOT_FOUND_ERR;                              
ffc194d4:	3b c0 7d 01 	li      r30,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) ||     
ffc194d8:	55 2a 07 38 	rlwinm  r10,r9,0,28,28                         
ffc194dc:	71 48 00 ff 	andi.   r8,r10,255                             
ffc194e0:	40 a2 01 5c 	bne+    ffc1963c <msdos_find_name+0x1e8>       <== NEVER TAKEN
ffc194e4:	55 29 06 be 	clrlwi  r9,r9,26                               
ffc194e8:	2f 89 00 0f 	cmpwi   cr7,r9,15                              
ffc194ec:	41 be 01 50 	beq+    cr7,ffc1963c <msdos_find_name+0x1e8>   <== 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);             
ffc194f0:	7f e3 fb 78 	mr      r3,r31                                 
ffc194f4:	7f 64 db 78 	mr      r4,r27                                 
ffc194f8:	38 a1 00 38 	addi    r5,r1,56                               
ffc194fc:	4b ff 98 11 	bl      ffc12d0c <fat_file_open>               
    if (rc != RC_OK)                                                  
ffc19500:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc19504:	40 82 01 38 	bne-    ffc1963c <msdos_find_name+0x1e8>       <== NEVER TAKEN
        return rc;                                                    
                                                                      
    fat_fd->dir_pos = dir_pos;                                        
ffc19508:	83 81 00 38 	lwz     r28,56(r1)                             
ffc1950c:	39 3c 00 20 	addi    r9,r28,32                              
ffc19510:	7c bb 84 aa 	lswi    r5,r27,16                              
ffc19514:	7c a9 85 aa 	stswi   r5,r9,16                               
     * 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)                                       
ffc19518:	81 3c 00 08 	lwz     r9,8(r28)                              
ffc1951c:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc19520:	40 be 00 f4 	bne+    cr7,ffc19614 <msdos_find_name+0x1c0>   
    {                                                                 
        fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);          
ffc19524:	a1 41 00 1c 	lhz     r10,28(r1)                             
ffc19528:	a1 21 00 22 	lhz     r9,34(r1)                              
ffc1952c:	55 48 c2 3e 	rlwinm  r8,r10,24,8,31                         
ffc19530:	55 4a 44 2e 	rlwinm  r10,r10,8,16,23                        
ffc19534:	7d 0a 53 78 	or      r10,r8,r10                             
ffc19538:	55 28 c2 3e 	rlwinm  r8,r9,24,8,31                          
ffc1953c:	55 29 44 2e 	rlwinm  r9,r9,8,16,23                          
ffc19540:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc19544:	7d 09 4b 78 	or      r9,r8,r9                               
ffc19548:	7d 49 4b 78 	or      r9,r10,r9                              
                                                                      
        time_val = *MSDOS_DIR_WRITE_TIME(node_entry);                 
        date = *MSDOS_DIR_WRITE_DATE(node_entry);                     
ffc1954c:	a1 41 00 20 	lhz     r10,32(r1)                             
     * 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);          
ffc19550:	91 3c 00 1c 	stw     r9,28(r28)                             
                                                                      
        time_val = *MSDOS_DIR_WRITE_TIME(node_entry);                 
        date = *MSDOS_DIR_WRITE_DATE(node_entry);                     
                                                                      
        fat_fd->mtime = msdos_date_dos2unix(CF_LE_W(date), CF_LE_W(time_val));
ffc19554:	55 43 c2 3e 	rlwinm  r3,r10,24,8,31                         
     */                                                               
    if (fat_fd->links_num == 1)                                       
    {                                                                 
        fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);          
                                                                      
        time_val = *MSDOS_DIR_WRITE_TIME(node_entry);                 
ffc19558:	a1 21 00 1e 	lhz     r9,30(r1)                              
        date = *MSDOS_DIR_WRITE_DATE(node_entry);                     
                                                                      
        fat_fd->mtime = msdos_date_dos2unix(CF_LE_W(date), CF_LE_W(time_val));
ffc1955c:	55 4a 44 2e 	rlwinm  r10,r10,8,16,23                        
ffc19560:	7c 63 53 78 	or      r3,r3,r10                              
ffc19564:	55 24 c2 3e 	rlwinm  r4,r9,24,8,31                          
ffc19568:	55 29 44 2e 	rlwinm  r9,r9,8,16,23                          
ffc1956c:	7c 84 4b 78 	or      r4,r4,r9                               
ffc19570:	48 00 10 75 	bl      ffc1a5e4 <msdos_date_dos2unix>         
                                                                      
        if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)     
ffc19574:	89 21 00 13 	lbz     r9,19(r1)                              
        fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);          
                                                                      
        time_val = *MSDOS_DIR_WRITE_TIME(node_entry);                 
        date = *MSDOS_DIR_WRITE_DATE(node_entry);                     
                                                                      
        fat_fd->mtime = msdos_date_dos2unix(CF_LE_W(date), CF_LE_W(time_val));
ffc19578:	90 7c 00 40 	stw     r3,64(r28)                             
                                                                      
        if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)     
ffc1957c:	55 29 06 f6 	rlwinm  r9,r9,0,27,27                          
ffc19580:	71 2a 00 ff 	andi.   r10,r9,255                             
ffc19584:	80 81 00 38 	lwz     r4,56(r1)                              
ffc19588:	41 82 00 2c 	beq-    ffc195b4 <msdos_find_name+0x160>       
        {                                                             
            fat_fd->fat_file_type = FAT_DIRECTORY;                    
            fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                
ffc1958c:	3d 20 00 20 	lis     r9,32                                  
                                                                      
        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;                    
ffc19590:	93 c4 00 10 	stw     r30,16(r4)                             
            fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                
                                                                      
            rc = fat_file_size(&fs_info->fat, fat_fd);                
ffc19594:	7f e3 fb 78 	mr      r3,r31                                 
        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;                    
            fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                
ffc19598:	91 24 00 14 	stw     r9,20(r4)                              
                                                                      
            rc = fat_file_size(&fs_info->fat, fat_fd);                
ffc1959c:	4b ff a2 6d 	bl      ffc13808 <fat_file_size>               
            if (rc != RC_OK)                                          
ffc195a0:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc195a4:	41 a2 00 38 	beq+    ffc195dc <msdos_find_name+0x188>       <== ALWAYS TAKEN
            {                                                         
                fat_file_close(&fs_info->fat, fat_fd);                
ffc195a8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc195ac:	80 81 00 38 	lwz     r4,56(r1)                              <== NOT EXECUTED
ffc195b0:	48 00 00 80 	b       ffc19630 <msdos_find_name+0x1dc>       <== NOT EXECUTED
ffc195b4:	81 21 00 24 	lwz     r9,36(r1)                              
ffc195b8:	51 2a 46 3e 	rlwimi  r10,r9,8,24,31                         
ffc195bc:	51 2a c4 2e 	rlwimi  r10,r9,24,16,23                        
ffc195c0:	51 2a 42 1e 	rlwimi  r10,r9,8,8,15                          
ffc195c4:	51 2a c0 0e 	rlwimi  r10,r9,24,0,7                          
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            fat_fd->fat_file_size = CF_LE_L(*MSDOS_DIR_FILE_SIZE(node_entry));
            fat_fd->fat_file_type = FAT_FILE;                         
ffc195c8:	39 20 00 04 	li      r9,4                                   
                return rc;                                            
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            fat_fd->fat_file_size = CF_LE_L(*MSDOS_DIR_FILE_SIZE(node_entry));
ffc195cc:	91 44 00 18 	stw     r10,24(r4)                             
            fat_fd->fat_file_type = FAT_FILE;                         
ffc195d0:	91 24 00 10 	stw     r9,16(r4)                              
            fat_fd->size_limit = MSDOS_MAX_FILE_SIZE;                 
ffc195d4:	39 20 ff ff 	li      r9,-1                                  
ffc195d8:	91 24 00 14 	stw     r9,20(r4)                              
        }                                                             
                                                                      
        /* these data is not actual for zero-length fat-file */       
        fat_fd->map.file_cln = 0;                                     
ffc195dc:	81 21 00 38 	lwz     r9,56(r1)                              
ffc195e0:	39 40 00 00 	li      r10,0                                  
        fat_fd->map.disk_cln = fat_fd->cln;                           
                                                                      
        if ((fat_fd->fat_file_size != 0) &&                           
ffc195e4:	81 09 00 18 	lwz     r8,24(r9)                              
            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;                                     
ffc195e8:	91 49 00 34 	stw     r10,52(r9)                             
        fat_fd->map.disk_cln = fat_fd->cln;                           
                                                                      
        if ((fat_fd->fat_file_size != 0) &&                           
ffc195ec:	2f 88 00 00 	cmpwi   cr7,r8,0                               
            fat_fd->size_limit = MSDOS_MAX_FILE_SIZE;                 
        }                                                             
                                                                      
        /* these data is not actual for zero-length fat-file */       
        fat_fd->map.file_cln = 0;                                     
        fat_fd->map.disk_cln = fat_fd->cln;                           
ffc195f0:	81 49 00 1c 	lwz     r10,28(r9)                             
ffc195f4:	91 49 00 38 	stw     r10,56(r9)                             
                                                                      
        if ((fat_fd->fat_file_size != 0) &&                           
ffc195f8:	41 9e 00 14 	beq-    cr7,ffc1960c <msdos_find_name+0x1b8>   
            (fat_fd->fat_file_size <= fs_info->fat.vol.bpc))          
ffc195fc:	a0 ff 00 06 	lhz     r7,6(r31)                              
                                                                      
        /* 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) &&                           
ffc19600:	7f 88 38 40 	cmplw   cr7,r8,r7                              
ffc19604:	41 9d 00 08 	bgt-    cr7,ffc1960c <msdos_find_name+0x1b8>   
ffc19608:	48 00 00 08 	b       ffc19610 <msdos_find_name+0x1bc>       
        {                                                             
            fat_fd->map.last_cln = fat_fd->cln;                       
        }                                                             
        else                                                          
        {                                                             
            fat_fd->map.last_cln = FAT_UNDEFINED_VALUE;               
ffc1960c:	39 40 ff ff 	li      r10,-1                                 
ffc19610:	91 49 00 3c 	stw     r10,60(r9)                             
        }                                                             
    }                                                                 
                                                                      
    /* close fat-file corresponded to the node we searched in */      
    rc = fat_file_close(&fs_info->fat, parent_loc->node_access);      
ffc19614:	80 9d 00 08 	lwz     r4,8(r29)                              
ffc19618:	7f e3 fb 78 	mr      r3,r31                                 
ffc1961c:	4b ff 9b 61 	bl      ffc1317c <fat_file_close>              
ffc19620:	80 81 00 38 	lwz     r4,56(r1)                              
    if (rc != RC_OK)                                                  
ffc19624:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc19628:	41 a2 00 10 	beq+    ffc19638 <msdos_find_name+0x1e4>       <== ALWAYS TAKEN
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc1962c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc19630:	4b ff 9b 4d 	bl      ffc1317c <fat_file_close>              <== NOT EXECUTED
ffc19634:	48 00 00 08 	b       ffc1963c <msdos_find_name+0x1e8>       <== NOT EXECUTED
        return rc;                                                    
    }                                                                 
                                                                      
    /* update node_info_ptr field */                                  
    parent_loc->node_access = fat_fd;                                 
ffc19638:	90 9d 00 08 	stw     r4,8(r29)                              
                                                                      
    return rc;                                                        
}                                                                     
ffc1963c:	39 61 00 60 	addi    r11,r1,96                              
ffc19640:	7f c3 f3 78 	mr      r3,r30                                 
ffc19644:	4b fe 7f a8 	b       ffc015ec <_restgpr_27_x>               
                                                                      

ffc18738 <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 ) {
ffc18738:	7d 80 00 26 	mfcr    r12                                    
    uint32_t         empty_space_count = 0;                           
    bool             empty_space_found = false;                       
    uint32_t         entries_per_block;                               
    bool             read_cluster = false;                            
                                                                      
    assert(name_len > 0);                                             
ffc1873c:	7c eb 3b 79 	mr.     r11,r7                                 
    int                                   name_len,                   
    msdos_name_type_t                     name_type,                  
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *name_dir_entry              
                                )                                     
{                                                                     
ffc18740:	94 21 ff 80 	stwu    r1,-128(r1)                            
ffc18744:	7c 08 02 a6 	mflr    r0                                     
ffc18748:	90 01 00 84 	stw     r0,132(r1)                             
ffc1874c:	bd c1 00 38 	stmw    r14,56(r1)                             
ffc18750:	91 81 00 34 	stw     r12,52(r1)                             
ffc18754:	90 c1 00 18 	stw     r6,24(r1)                              
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc18758:	83 e3 00 08 	lwz     r31,8(r3)                              
    uint32_t         empty_space_count = 0;                           
    bool             empty_space_found = false;                       
    uint32_t         entries_per_block;                               
    bool             read_cluster = false;                            
                                                                      
    assert(name_len > 0);                                             
ffc1875c:	41 a1 00 28 	bgt+    ffc18784 <msdos_find_name_in_fat_file+0x4c><== ALWAYS TAKEN
ffc18760:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc18764:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc18768:	38 a5 bc 14 	addi    r5,r5,-17388                           <== NOT EXECUTED
ffc1876c:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc18770:	38 63 bc 88 	addi    r3,r3,-17272                           <== NOT EXECUTED
ffc18774:	38 80 03 c9 	li      r4,969                                 <== NOT EXECUTED
ffc18778:	38 a5 00 14 	addi    r5,r5,20                               <== NOT EXECUTED
ffc1877c:	38 c6 bd 06 	addi    r6,r6,-17146                           <== NOT EXECUTED
ffc18780:	48 00 00 f4 	b       ffc18874 <msdos_find_name_in_fat_file+0x13c><== NOT EXECUTED
     * 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))               
ffc18784:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc18788:	7d 3c 4b 78 	mr      r28,r9                                 
static inline void                                                    
fat_dir_pos_init(                                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
ffc1878c:	39 20 00 00 	li      r9,0                                   
ffc18790:	91 3c 00 00 	stw     r9,0(r28)                              
ffc18794:	7c 9d 23 78 	mr      r29,r4                                 
ffc18798:	7c ae 2b 78 	mr      r14,r5                                 
  dir_pos->sname.ofs = 0;                                             
ffc1879c:	91 3c 00 04 	stw     r9,4(r28)                              
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
ffc187a0:	39 20 ff ff 	li      r9,-1                                  
ffc187a4:	7d 5b 53 78 	mr      r27,r10                                
ffc187a8:	91 3c 00 08 	stw     r9,8(r28)                              
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
ffc187ac:	91 3c 00 0c 	stw     r9,12(r28)                             
                                                                      
    assert(name_len > 0);                                             
                                                                      
    fat_dir_pos_init(dir_pos);                                        
                                                                      
    lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;              
ffc187b0:	91 21 00 0c 	stw     r9,12(r1)                              
ffc187b4:	91 21 00 08 	stw     r9,8(r1)                               
     * 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))               
ffc187b8:	41 9e 00 10 	beq-    cr7,ffc187c8 <msdos_find_name_in_fat_file+0x90>
ffc187bc:	2f 88 00 01 	cmpwi   cr7,r8,1                               
      lfn_entries = 0;                                                
ffc187c0:	3b 20 00 00 	li      r25,0                                  
     * 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))               
ffc187c4:	41 9e 00 10 	beq-    cr7,ffc187d4 <msdos_find_name_in_fat_file+0x9c>
      lfn_entries = 0;                                                
    else                                                              
      lfn_entries =                                                   
        ((name_len - 1) + MSDOS_LFN_LEN_PER_ENTRY) / MSDOS_LFN_LEN_PER_ENTRY;
ffc187c8:	3b 2b 00 0c 	addi    r25,r11,12                             
     * test this make this test always fail, ie add "0 &&".           
     */                                                               
    if (create_node && (name_type == MSDOS_NAME_SHORT))               
      lfn_entries = 0;                                                
    else                                                              
      lfn_entries =                                                   
ffc187cc:	39 20 00 0d 	li      r9,13                                  
ffc187d0:	7f 39 4b d6 	divw    r25,r25,r9                             
        ((name_len - 1) + MSDOS_LFN_LEN_PER_ENTRY) / MSDOS_LFN_LEN_PER_ENTRY;
                                                                      
    if (FAT_FD_OF_ROOT_DIR(fat_fd) &&                                 
ffc187d4:	81 3d 00 20 	lwz     r9,32(r29)                             
ffc187d8:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc187dc:	40 be 00 24 	bne+    cr7,ffc18800 <msdos_find_name_in_fat_file+0xc8>
ffc187e0:	81 3d 00 24 	lwz     r9,36(r29)                             
ffc187e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc187e8:	40 9e 00 18 	bne-    cr7,ffc18800 <msdos_find_name_in_fat_file+0xc8><== NEVER TAKEN
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
ffc187ec:	89 3f 00 0e 	lbz     r9,14(r31)                             
      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) &&                                 
ffc187f0:	71 23 00 03 	andi.   r3,r9,3                                
ffc187f4:	41 82 00 0c 	beq-    ffc18800 <msdos_find_name_in_fat_file+0xc8>
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
        bts2rd = fat_fd->fat_file_size;                               
ffc187f8:	83 dd 00 18 	lwz     r30,24(r29)                            
ffc187fc:	48 00 00 08 	b       ffc18804 <msdos_find_name_in_fat_file+0xcc>
    else                                                              
        bts2rd = fs_info->fat.vol.bpc;                                
ffc18800:	a3 df 00 06 	lhz     r30,6(r31)                             
                  /*                                                  
                   * Remainder is not empty so is this entry empty ?  
                   */                                                 
                  empty_space_count++;                                
                                                                      
                  if (empty_space_count == (lfn_entries + 1))         
ffc18804:	39 59 00 01 	addi    r10,r25,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),
ffc18808:	3a 40 00 00 	li      r18,0                                  
                  /*                                                  
                   * Remainder is not empty so is this entry empty ?  
                   */                                                 
                  empty_space_count++;                                
                                                                      
                  if (empty_space_count == (lfn_entries + 1))         
ffc1880c:	91 41 00 1c 	stw     r10,28(r1)                             
    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;                       
ffc18810:	3a 20 00 00 	li      r17,0                                  
    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;                           
ffc18814:	3a c0 00 00 	li      r22,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;                           
ffc18818:	3a e0 00 00 	li      r23,0                                  
    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;                          
ffc1881c:	3b 00 00 00 	li      r24,0                                  
    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;                                   
ffc18820:	3a 60 00 00 	li      r19,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;                                
ffc18824:	3a 00 00 00 	li      r16,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;                             
ffc18828:	39 20 00 00 	li      r9,0                                   
    char                                 *name_dir_entry              
                                )                                     
{                                                                     
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         dir_offset = 0;                                  
ffc1882c:	3a 80 00 00 	li      r20,0                                  
ffc18830:	2e 0e 00 00 	cmpwi   cr4,r14,0                              
                     * 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 ||                                
ffc18834:	2d 88 00 01 	cmpwi   cr3,r8,1                               
                        memcpy(name_dir_entry, entry,                 
                               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);    
                        return RC_OK;                                 
                    }                                                 
                                                                      
                    lfn_start.cln = FAT_FILE_SHORT_NAME;              
ffc18838:	39 e0 ff ff 	li      r15,-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),
ffc1883c:	48 00 03 14 	b       ffc18b50 <msdos_find_name_in_fat_file+0x418>
        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)                  
ffc18840:	2f 83 00 1f 	cmpwi   cr7,r3,31                              
ffc18844:	41 bd 00 08 	bgt+    cr7,ffc1884c <msdos_find_name_in_fat_file+0x114><== ALWAYS TAKEN
ffc18848:	48 00 06 d0 	b       ffc18f18 <msdos_find_name_in_fat_file+0x7e0><== NOT EXECUTED
            rtems_set_errno_and_return_minus_one(EIO);                
                                                                      
        assert(ret == bts2rd);                                        
ffc1884c:	7f 83 f0 00 	cmpw    cr7,r3,r30                             
ffc18850:	41 be 00 28 	beq+    cr7,ffc18878 <msdos_find_name_in_fat_file+0x140><== ALWAYS TAKEN
ffc18854:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc18858:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1885c:	38 a5 bc 14 	addi    r5,r5,-17388                           <== NOT EXECUTED
ffc18860:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc18864:	38 63 bc 88 	addi    r3,r3,-17272                           <== NOT EXECUTED
ffc18868:	38 80 03 f9 	li      r4,1017                                <== NOT EXECUTED
ffc1886c:	38 a5 00 14 	addi    r5,r5,20                               <== NOT EXECUTED
ffc18870:	38 c6 bd 13 	addi    r6,r6,-17133                           <== NOT EXECUTED
ffc18874:	4b fe d2 a9 	bl      ffc05b1c <__assert_func>               <== NOT EXECUTED
ffc18878:	83 5f 00 a0 	lwz     r26,160(r31)                           
        /* 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;        
ffc1887c:	3a a0 00 00 	li      r21,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)                               
ffc18880:	2f 96 00 00 	cmpwi   cr7,r22,0                              
                                                                      
            /*                                                        
             * 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) ==       
ffc18884:	89 5a 00 00 	lbz     r10,0(r26)                             
             * 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)                               
ffc18888:	40 9e 00 0c 	bne-    cr7,ffc18894 <msdos_find_name_in_fat_file+0x15c>
ffc1888c:	7e b7 ab 78 	mr      r23,r21                                
ffc18890:	7e 98 a3 78 	mr      r24,r20                                
            {                                                         
                empty_space_entry = dir_entry;                        
                empty_space_offset = dir_offset;                      
            }                                                         
                                                                      
            if (remainder_empty)                                      
ffc18894:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc18898:	40 be 00 2c 	bne+    cr7,ffc188c4 <msdos_find_name_in_fat_file+0x18c>
#endif                                                                
                /*                                                    
                 * If just looking and there is no more entries in the
                 * directory - return name-not-found                  
                 */                                                   
                if (!create_node)                                     
ffc1889c:	40 b2 00 0c 	bne+    cr4,ffc188a8 <msdos_find_name_in_fat_file+0x170>
                    return MSDOS_NAME_NOT_FOUND_ERR;                  
ffc188a0:	3b 20 7d 01 	li      r25,32001                              
ffc188a4:	48 00 06 b8 	b       ffc18f5c <msdos_find_name_in_fat_file+0x824>
                 * 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)                               
ffc188a8:	2f 91 00 00 	cmpwi   cr7,r17,0                              
ffc188ac:	40 9e 02 e4 	bne-    cr7,ffc18b90 <msdos_find_name_in_fat_file+0x458>
        (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;   
ffc188b0:	57 c9 d9 7e 	rlwinm  r9,r30,27,5,31                         
                 * 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);
ffc188b4:	7e d6 4a 14 	add     r22,r22,r9                             
ffc188b8:	56 b5 d9 7e 	rlwinm  r21,r21,27,5,31                        
                 * 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 +=                                
ffc188bc:	7e d5 b0 50 	subf    r22,r21,r22                            
ffc188c0:	48 00 02 d0 	b       ffc18b90 <msdos_find_name_in_fat_file+0x458>
                  printf ("MSFS:[3.2] esf:%i esc%i\n", empty_space_found, empty_space_count);
#endif                                                                
                }                                                     
                break;                                                
            }                                                         
            else if (entry_empty)                                     
ffc188c4:	2f 8a 00 e5 	cmpwi   cr7,r10,229                            
ffc188c8:	40 be 00 1c 	bne+    cr7,ffc188e4 <msdos_find_name_in_fat_file+0x1ac>
            {                                                         
                if (create_node)                                      
ffc188cc:	41 92 02 6c 	beq-    cr4,ffc18b38 <msdos_find_name_in_fat_file+0x400>
                  /*                                                  
                   * Remainder is not empty so is this entry empty ?  
                   */                                                 
                  empty_space_count++;                                
                                                                      
                  if (empty_space_count == (lfn_entries + 1))         
ffc188d0:	81 41 00 1c 	lwz     r10,28(r1)                             
                if (create_node)                                      
                {                                                     
                  /*                                                  
                   * Remainder is not empty so is this entry empty ?  
                   */                                                 
                  empty_space_count++;                                
ffc188d4:	3a d6 00 01 	addi    r22,r22,1                              
                                                                      
                  if (empty_space_count == (lfn_entries + 1))         
ffc188d8:	7f 96 50 00 	cmpw    cr7,r22,r10                            
ffc188dc:	40 be 02 5c 	bne+    cr7,ffc18b38 <msdos_find_name_in_fat_file+0x400>
ffc188e0:	48 00 02 54 	b       ffc18b34 <msdos_find_name_in_fat_file+0x3fc>
                 * 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)                
ffc188e4:	41 92 00 14 	beq-    cr4,ffc188f8 <msdos_find_name_in_fat_file+0x1c0>
ffc188e8:	2f 91 00 00 	cmpwi   cr7,r17,0                              
ffc188ec:	40 9e 00 0c 	bne-    cr7,ffc188f8 <msdos_find_name_in_fat_file+0x1c0><== NEVER TAKEN
                {                                                     
                    empty_space_entry = 0;                            
                    empty_space_count = 0;                            
ffc188f0:	3a c0 00 00 	li      r22,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;                            
ffc188f4:	3a e0 00 00 	li      r23,0                                  
                                                                      
                /*                                                    
                 * Check the attribute to see if the entry is for a long
                 * file name.                                         
                 */                                                   
                if ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) == 
ffc188f8:	88 fa 00 0b 	lbz     r7,11(r26)                             
ffc188fc:	54 e7 06 be 	clrlwi  r7,r7,26                               
ffc18900:	2f 87 00 0f 	cmpwi   cr7,r7,15                              
ffc18904:	40 be 01 1c 	bne+    cr7,ffc18a20 <msdos_find_name_in_fat_file+0x2e8>
#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)         
ffc18908:	80 e1 00 08 	lwz     r7,8(r1)                               
ffc1890c:	2f 87 ff ff 	cmpwi   cr7,r7,-1                              
ffc18910:	40 be 00 30 	bne+    cr7,ffc18940 <msdos_find_name_in_fat_file+0x208>
                                                                      
                        /*                                            
                         * The first entry must have the last long entry
                         * flag set.                                  
                         */                                           
                        if ((*MSDOS_DIR_ENTRY_TYPE(entry) &           
ffc18914:	55 47 06 72 	rlwinm  r7,r10,0,25,25                         
ffc18918:	70 e3 00 ff 	andi.   r3,r7,255                              
                     * 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;                          
ffc1891c:	39 20 00 00 	li      r9,0                                   
                                                                      
                        /*                                            
                         * The first entry must have the last long entry
                         * flag set.                                  
                         */                                           
                        if ((*MSDOS_DIR_ENTRY_TYPE(entry) &           
ffc18920:	41 82 02 18 	beq-    ffc18b38 <msdos_find_name_in_fat_file+0x400>
                         * 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) &
ffc18924:	55 4a 06 be 	clrlwi  r10,r10,26                             
ffc18928:	7f 99 50 00 	cmpw    cr7,r25,r10                            
ffc1892c:	40 be 02 0c 	bne+    cr7,ffc18b38 <msdos_find_name_in_fat_file+0x400>
                            continue;                                 
                                                                      
                        /*                                            
                         * Get the checksum of the short entry.       
                         */                                           
                        lfn_start.cln = dir_offset;                   
ffc18930:	92 81 00 08 	stw     r20,8(r1)                              
                        lfn_start.ofs = dir_entry;                    
                        lfn_entry = lfn_entries;                      
                        lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
ffc18934:	7f 33 cb 78 	mr      r19,r25                                
                                                                      
                        /*                                            
                         * Get the checksum of the short entry.       
                         */                                           
                        lfn_start.cln = dir_offset;                   
                        lfn_start.ofs = dir_entry;                    
ffc18938:	92 a1 00 0c 	stw     r21,12(r1)                             
                        lfn_entry = lfn_entries;                      
                        lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
ffc1893c:	8a 1a 00 0d 	lbz     r16,13(r26)                            
                     * 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) & 
ffc18940:	89 5a 00 00 	lbz     r10,0(r26)                             
ffc18944:	55 4a 06 be 	clrlwi  r10,r10,26                             
ffc18948:	7f 93 50 00 	cmpw    cr7,r19,r10                            
ffc1894c:	40 be 00 10 	bne+    cr7,ffc1895c <msdos_find_name_in_fat_file+0x224><== NEVER TAKEN
                                       MSDOS_LAST_LONG_ENTRY_MASK)) ||
ffc18950:	89 5a 00 0d 	lbz     r10,13(r26)                            
ffc18954:	7f 8a 80 00 	cmpw    cr7,r10,r16                            
ffc18958:	41 9e 00 0c 	beq-    cr7,ffc18964 <msdos_find_name_in_fat_file+0x22c><== 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;          
ffc1895c:	91 e1 00 08 	stw     r15,8(r1)                              <== NOT EXECUTED
                        continue;                                     
ffc18960:	48 00 01 d8 	b       ffc18b38 <msdos_find_name_in_fat_file+0x400><== NOT EXECUTED
                    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++)     
ffc18964:	38 a0 00 0d 	li      r5,13                                  
ffc18968:	7c a9 03 a6 	mtctr   r5                                     
#endif                                                                
                        lfn_start.cln = FAT_FILE_SHORT_NAME;          
                        continue;                                     
                    }                                                 
                                                                      
                    lfn_entry--;                                      
ffc1896c:	38 f3 ff ff 	addi    r7,r19,-1                              
                    o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;          
ffc18970:	1c c7 00 0d 	mulli   r6,r7,13                               
 *     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(                                      
ffc18974:	39 5a 00 01 	addi    r10,r26,1                              
                    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++)     
ffc18978:	39 20 00 00 	li      r9,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')                               
ffc1897c:	88 aa 00 00 	lbz     r5,0(r10)                              
ffc18980:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc18984:	40 be 00 1c 	bne+    cr7,ffc189a0 <msdos_find_name_in_fat_file+0x268>
                            /*                                        
                             * 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) &&   
ffc18988:	7f 93 c8 00 	cmpw    cr7,r19,r25                            
ffc1898c:	40 be 00 6c 	bne+    cr7,ffc189f8 <msdos_find_name_in_fat_file+0x2c0><== NEVER TAKEN
                                ((o + i) != name_len))                
ffc18990:	7d 26 4a 14 	add     r9,r6,r9                               
                            /*                                        
                             * 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) &&   
ffc18994:	7f 89 58 00 	cmpw    cr7,r9,r11                             
ffc18998:	41 9e 00 60 	beq-    cr7,ffc189f8 <msdos_find_name_in_fat_file+0x2c0><== ALWAYS TAKEN
ffc1899c:	48 00 00 24 	b       ffc189c0 <msdos_find_name_in_fat_file+0x288><== NOT EXECUTED
 *     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(                                      
ffc189a0:	7c 89 32 14 	add     r4,r9,r6                               
                                ((o + i) != name_len))                
                                lfn_start.cln = FAT_FILE_SHORT_NAME;  
                            break;                                    
                        }                                             
                                                                      
                        if (((o + i) >= name_len) || (*p != name[o + i]))
ffc189a4:	7f 84 58 00 	cmpw    cr7,r4,r11                             
ffc189a8:	40 9c 00 18 	bge-    cr7,ffc189c0 <msdos_find_name_in_fat_file+0x288>
 *     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(                                      
ffc189ac:	80 61 00 18 	lwz     r3,24(r1)                              
ffc189b0:	7c 83 32 14 	add     r4,r3,r6                               
                                ((o + i) != name_len))                
                                lfn_start.cln = FAT_FILE_SHORT_NAME;  
                            break;                                    
                        }                                             
                                                                      
                        if (((o + i) >= name_len) || (*p != name[o + i]))
ffc189b4:	7c 84 48 ae 	lbzx    r4,r4,r9                               
ffc189b8:	7f 84 28 00 	cmpw    cr7,r4,r5                              
ffc189bc:	41 be 00 0c 	beq+    cr7,ffc189c8 <msdos_find_name_in_fat_file+0x290>
                        {                                             
                            lfn_start.cln = FAT_FILE_SHORT_NAME;      
ffc189c0:	91 e1 00 08 	stw     r15,8(r1)                              
                            break;                                    
ffc189c4:	48 00 00 34 	b       ffc189f8 <msdos_find_name_in_fat_file+0x2c0>
                        }                                             
                                                                      
                        switch (i)                                    
ffc189c8:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc189cc:	41 9e 00 10 	beq-    cr7,ffc189dc <msdos_find_name_in_fat_file+0x2a4>
ffc189d0:	2f 89 00 0a 	cmpwi   cr7,r9,10                              
ffc189d4:	40 be 00 18 	bne+    cr7,ffc189ec <msdos_find_name_in_fat_file+0x2b4>
ffc189d8:	48 00 00 0c 	b       ffc189e4 <msdos_find_name_in_fat_file+0x2ac>
                        {                                             
                            case 4:                                   
                                p += 5;                               
ffc189dc:	39 4a 00 05 	addi    r10,r10,5                              
                                break;                                
ffc189e0:	48 00 00 10 	b       ffc189f0 <msdos_find_name_in_fat_file+0x2b8>
                            case 10:                                  
                                p += 4;                               
ffc189e4:	39 4a 00 04 	addi    r10,r10,4                              
                                break;                                
ffc189e8:	48 00 00 08 	b       ffc189f0 <msdos_find_name_in_fat_file+0x2b8>
                            default:                                  
                                p += 2;                               
ffc189ec:	39 4a 00 02 	addi    r10,r10,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++)     
ffc189f0:	39 29 00 01 	addi    r9,r9,1                                
ffc189f4:	42 00 ff 88 	bdnz+   ffc1897c <msdos_find_name_in_fat_file+0x244>
                                p += 2;                               
                                break;                                
                        }                                             
                    }                                                 
                                                                      
                    lfn_matched = ((lfn_entry == 0) &&                
ffc189f8:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc189fc:	39 20 00 00 	li      r9,0                                   
ffc18a00:	40 9e 00 18 	bne-    cr7,ffc18a18 <msdos_find_name_in_fat_file+0x2e0>
ffc18a04:	81 21 00 08 	lwz     r9,8(r1)                               
ffc18a08:	39 29 00 01 	addi    r9,r9,1                                
ffc18a0c:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc18a10:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc18a14:	69 29 00 01 	xori    r9,r9,1                                
#endif                                                                
                        lfn_start.cln = FAT_FILE_SHORT_NAME;          
                        continue;                                     
                    }                                                 
                                                                      
                    lfn_entry--;                                      
ffc18a18:	7c f3 3b 78 	mr      r19,r7                                 
ffc18a1c:	48 00 01 1c 	b       ffc18b38 <msdos_find_name_in_fat_file+0x400>
                     * 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)                                  
ffc18a20:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc18a24:	41 9e 05 30 	beq-    cr7,ffc18f54 <msdos_find_name_in_fat_file+0x81c>
                        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;
ffc18a28:	38 a0 00 0b 	li      r5,11                                  
ffc18a2c:	7c a9 03 a6 	mtctr   r5                                     
                     * 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)                                  
ffc18a30:	39 40 00 00 	li      r10,0                                  
ffc18a34:	39 20 00 00 	li      r9,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++)
                            cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
ffc18a38:	71 26 00 01 	andi.   r6,r9,1                                
ffc18a3c:	38 e0 00 00 	li      r7,0                                   
ffc18a40:	41 82 00 08 	beq-    ffc18a48 <msdos_find_name_in_fat_file+0x310>
ffc18a44:	38 e0 00 80 	li      r7,128                                 
ffc18a48:	7c da 50 ae 	lbzx    r6,r26,r10                             
ffc18a4c:	55 29 f8 7e 	rlwinm  r9,r9,31,1,31                          
                    {                                                 
                        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++)
ffc18a50:	39 4a 00 01 	addi    r10,r10,1                              
                            cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
ffc18a54:	7d 26 4a 14 	add     r9,r6,r9                               
ffc18a58:	7d 29 3a 14 	add     r9,r9,r7                               
ffc18a5c:	55 29 06 3e 	clrlwi  r9,r9,24                               
                    {                                                 
                        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++)
ffc18a60:	42 00 ff d8 	bdnz+   ffc18a38 <msdos_find_name_in_fat_file+0x300>
                            cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
                                                                      
                        if (lfn_entry || (lfn_checksum != cs))        
ffc18a64:	2f 93 00 00 	cmpwi   cr7,r19,0                              
ffc18a68:	40 9e 04 ec 	bne-    cr7,ffc18f54 <msdos_find_name_in_fat_file+0x81c><== NEVER TAKEN
ffc18a6c:	7f 90 48 00 	cmpw    cr7,r16,r9                             
ffc18a70:	40 be 04 e4 	bne+    cr7,ffc18f54 <msdos_find_name_in_fat_file+0x81c><== NEVER TAKEN
#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,
ffc18a74:	7f e3 fb 78 	mr      r3,r31                                 
ffc18a78:	7f a4 eb 78 	mr      r4,r29                                 
ffc18a7c:	38 a0 00 01 	li      r5,1                                   
ffc18a80:	7e 46 93 78 	mr      r6,r18                                 
ffc18a84:	7f 87 e3 78 	mr      r7,r28                                 
ffc18a88:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc18a8c:	4b ff a7 b5 	bl      ffc13240 <fat_file_ioctl>              
                                                dir_offset * bts2rd,  
                                                &dir_pos->sname.cln); 
                        if (rc != RC_OK)                              
ffc18a90:	7c 79 1b 79 	mr.     r25,r3                                 
ffc18a94:	41 a2 00 40 	beq+    ffc18ad4 <msdos_find_name_in_fat_file+0x39c><== ALWAYS TAKEN
ffc18a98:	48 00 04 c4 	b       ffc18f5c <msdos_find_name_in_fat_file+0x824><== NOT EXECUTED
                     * 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 ||                                
                        ((name_type == MSDOS_NAME_SHORT) &&           
ffc18a9c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc18aa0:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc18aa4:	40 be 00 84 	bne+    cr7,ffc18b28 <msdos_find_name_in_fat_file+0x3f0><== NEVER TAKEN
                         (lfn_start.cln == FAT_FILE_SHORT_NAME) &&    
                         (memcmp(MSDOS_DIR_NAME(entry),               
ffc18aa8:	7f 43 d3 78 	mr      r3,r26                                 
ffc18aac:	91 01 00 28 	stw     r8,40(r1)                              
ffc18ab0:	7f 64 db 78 	mr      r4,r27                                 
ffc18ab4:	38 a0 00 0b 	li      r5,11                                  
ffc18ab8:	91 61 00 24 	stw     r11,36(r1)                             
ffc18abc:	48 00 35 15 	bl      ffc1bfd0 <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) &&    
ffc18ac0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc18ac4:	81 01 00 28 	lwz     r8,40(r1)                              
ffc18ac8:	81 61 00 24 	lwz     r11,36(r1)                             
ffc18acc:	40 be 00 5c 	bne+    cr7,ffc18b28 <msdos_find_name_in_fat_file+0x3f0>
ffc18ad0:	4b ff ff a4 	b       ffc18a74 <msdos_find_name_in_fat_file+0x33c>
                        if (rc != RC_OK)                              
                            return rc;                                
                                                                      
                        dir_pos->sname.ofs = dir_entry;               
                                                                      
                        if (lfn_start.cln != FAT_FILE_SHORT_NAME)     
ffc18ad4:	80 c1 00 08 	lwz     r6,8(r1)                               
                                                dir_offset * bts2rd,  
                                                &dir_pos->sname.cln); 
                        if (rc != RC_OK)                              
                            return rc;                                
                                                                      
                        dir_pos->sname.ofs = dir_entry;               
ffc18ad8:	92 bc 00 04 	stw     r21,4(r28)                             
                                                                      
                        if (lfn_start.cln != FAT_FILE_SHORT_NAME)     
ffc18adc:	2f 86 ff ff 	cmpwi   cr7,r6,-1                              
ffc18ae0:	40 be 00 20 	bne+    cr7,ffc18b00 <msdos_find_name_in_fat_file+0x3c8>
                                              &lfn_start.cln);        
                          if (rc != RC_OK)                            
                            return rc;                                
                        }                                             
                                                                      
                        dir_pos->lname.cln = lfn_start.cln;           
ffc18ae4:	81 21 00 08 	lwz     r9,8(r1)                               
ffc18ae8:	91 3c 00 08 	stw     r9,8(r28)                              
                        dir_pos->lname.ofs = lfn_start.ofs;           
ffc18aec:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc18af0:	91 3c 00 0c 	stw     r9,12(r28)                             
                                                                      
                        memcpy(name_dir_entry, entry,                 
ffc18af4:	7c ba 04 aa 	lswi    r5,r26,32                              
ffc18af8:	7c bb 05 aa 	stswi   r5,r27,32                              
ffc18afc:	48 00 04 60 	b       ffc18f5c <msdos_find_name_in_fat_file+0x824>
                                                                      
                        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,
ffc18b00:	7c de 31 d6 	mullw   r6,r30,r6                              
ffc18b04:	7f e3 fb 78 	mr      r3,r31                                 
ffc18b08:	7f a4 eb 78 	mr      r4,r29                                 
ffc18b0c:	38 a0 00 01 	li      r5,1                                   
ffc18b10:	38 e1 00 08 	addi    r7,r1,8                                
ffc18b14:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc18b18:	4b ff a7 29 	bl      ffc13240 <fat_file_ioctl>              
                                              lfn_start.cln * bts2rd, 
                                              &lfn_start.cln);        
                          if (rc != RC_OK)                            
ffc18b1c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc18b20:	40 82 04 24 	bne-    ffc18f44 <msdos_find_name_in_fat_file+0x80c><== NEVER TAKEN
ffc18b24:	4b ff ff c0 	b       ffc18ae4 <msdos_find_name_in_fat_file+0x3ac>
                        memcpy(name_dir_entry, entry,                 
                               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);    
                        return RC_OK;                                 
                    }                                                 
                                                                      
                    lfn_start.cln = FAT_FILE_SHORT_NAME;              
ffc18b28:	91 e1 00 08 	stw     r15,8(r1)                              
                    lfn_matched = false;                              
ffc18b2c:	39 20 00 00 	li      r9,0                                   
ffc18b30:	48 00 00 08 	b       ffc18b38 <msdos_find_name_in_fat_file+0x400>
                   * Remainder is not empty so is this entry empty ?  
                   */                                                 
                  empty_space_count++;                                
                                                                      
                  if (empty_space_count == (lfn_entries + 1))         
                    empty_space_found = true;                         
ffc18b34:	3a 20 00 01 	li      r17,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)          
ffc18b38:	3a b5 00 20 	addi    r21,r21,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;                                           
ffc18b3c:	7f 95 f0 40 	cmplw   cr7,r21,r30                            
ffc18b40:	3b 5a 00 20 	addi    r26,r26,32                             
ffc18b44:	41 9c fd 3c 	blt+    cr7,ffc18880 <msdos_find_name_in_fat_file+0x148>
        }                                                             
                                                                      
        if (remainder_empty)                                          
            break;                                                    
                                                                      
        dir_offset++;                                                 
ffc18b48:	3a 94 00 01 	addi    r20,r20,1                              
ffc18b4c:	7e 52 f2 14 	add     r18,r18,r30                            
    /*                                                                
     * 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),
ffc18b50:	80 ff 00 a0 	lwz     r7,160(r31)                            
ffc18b54:	7f e3 fb 78 	mr      r3,r31                                 
ffc18b58:	7f a4 eb 78 	mr      r4,r29                                 
ffc18b5c:	91 01 00 28 	stw     r8,40(r1)                              
ffc18b60:	7e 45 93 78 	mr      r5,r18                                 
ffc18b64:	7f c6 f3 78 	mr      r6,r30                                 
ffc18b68:	91 21 00 20 	stw     r9,32(r1)                              
ffc18b6c:	91 61 00 24 	stw     r11,36(r1)                             
ffc18b70:	4b ff a3 3d 	bl      ffc12eac <fat_file_read>               
ffc18b74:	2c 03 00 00 	cmpwi   r3,0                                   
ffc18b78:	81 01 00 28 	lwz     r8,40(r1)                              
ffc18b7c:	81 21 00 20 	lwz     r9,32(r1)                              
ffc18b80:	81 61 00 24 	lwz     r11,36(r1)                             
ffc18b84:	40 82 fc bc 	bne+    ffc18840 <msdos_find_name_in_fat_file+0x108>
    }                                                                 
                                                                      
    /*                                                                
     * If we are not to create the entry return a not found error.    
     */                                                               
    if (!create_node)                                                 
ffc18b88:	2f 8e 00 00 	cmpwi   cr7,r14,0                              
ffc18b8c:	41 9e fd 14 	beq+    cr7,ffc188a0 <msdos_find_name_in_fat_file+0x168>
     * 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)                                 
ffc18b90:	2f 88 00 02 	cmpwi   cr7,r8,2                               
ffc18b94:	40 be 00 a0 	bne+    cr7,ffc18c34 <msdos_find_name_in_fat_file+0x4fc>
    {                                                                 
        int      slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
ffc18b98:	7c b8 f1 d6 	mullw   r5,r24,r30                             
                         MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
ffc18b9c:	39 39 00 01 	addi    r9,r25,1                               
     * in this directory.                                             
     */                                                               
    lfn_checksum = 0;                                                 
    if (name_type == MSDOS_NAME_LONG)                                 
    {                                                                 
        int      slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
ffc18ba0:	7c a5 ba 14 	add     r5,r5,r23                              
ffc18ba4:	54 a5 d9 7e 	rlwinm  r5,r5,27,5,31                          
                         MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
ffc18ba8:	7c a9 2a 14 	add     r5,r9,r5                               
{                                                                     
    static const char* hex = "0123456789ABCDEF";                      
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
      if ((*c == ' ') || (*c == '.'))                                 
ffc18bac:	89 3b 00 00 	lbz     r9,0(r27)                              
ffc18bb0:	2f 89 00 20 	cmpwi   cr7,r9,32                              
ffc18bb4:	40 be 00 10 	bne+    cr7,ffc18bc4 <msdos_find_name_in_fat_file+0x48c>
        *c = '_';                                                     
ffc18bb8:	39 20 00 5f 	li      r9,95                                  
ffc18bbc:	99 3b 00 00 	stb     r9,0(r27)                              
ffc18bc0:	48 00 00 0c 	b       ffc18bcc <msdos_find_name_in_fat_file+0x494>
{                                                                     
    static const char* hex = "0123456789ABCDEF";                      
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
      if ((*c == ' ') || (*c == '.'))                                 
ffc18bc4:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc18bc8:	41 be ff f0 	beq-    cr7,ffc18bb8 <msdos_find_name_in_fat_file+0x480><== NEVER TAKEN
ffc18bcc:	89 3b 00 01 	lbz     r9,1(r27)                              
ffc18bd0:	2f 89 00 20 	cmpwi   cr7,r9,32                              
ffc18bd4:	40 be 00 10 	bne+    cr7,ffc18be4 <msdos_find_name_in_fat_file+0x4ac>
        *c = '_';                                                     
ffc18bd8:	39 20 00 5f 	li      r9,95                                  
ffc18bdc:	99 3b 00 01 	stb     r9,1(r27)                              
ffc18be0:	48 00 00 0c 	b       ffc18bec <msdos_find_name_in_fat_file+0x4b4>
{                                                                     
    static const char* hex = "0123456789ABCDEF";                      
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
      if ((*c == ' ') || (*c == '.'))                                 
ffc18be4:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc18be8:	41 be ff f0 	beq-    cr7,ffc18bd8 <msdos_find_name_in_fat_file+0x4a0><== NEVER TAKEN
        *c = '_';                                                     
    for (i = 0; i < 4; i++, c++)                                      
      *c = hex[(num >> ((3 - i) * 4)) & 0xf];                         
ffc18bec:	38 e0 00 04 	li      r7,4                                   
ffc18bf0:	7c e9 03 a6 	mtctr   r7                                     
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++)                                      
ffc18bf4:	39 1b 00 02 	addi    r8,r27,2                               
ffc18bf8:	39 20 00 00 	li      r9,0                                   
      if ((*c == ' ') || (*c == '.'))                                 
        *c = '_';                                                     
    for (i = 0; i < 4; i++, c++)                                      
      *c = hex[(num >> ((3 - i) * 4)) & 0xf];                         
ffc18bfc:	3c c0 ff c3 	lis     r6,-61                                 
 *     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(                                      
ffc18c00:	1d 49 ff fc 	mulli   r10,r9,-4                              
ffc18c04:	39 4a 00 0c 	addi    r10,r10,12                             
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
      if ((*c == ' ') || (*c == '.'))                                 
        *c = '_';                                                     
    for (i = 0; i < 4; i++, c++)                                      
      *c = hex[(num >> ((3 - i) * 4)) & 0xf];                         
ffc18c08:	7c aa 56 30 	sraw    r10,r5,r10                             
ffc18c0c:	55 4a 07 3e 	clrlwi  r10,r10,28                             
ffc18c10:	38 e6 b6 c8 	addi    r7,r6,-18744                           
ffc18c14:	7d 47 50 ae 	lbzx    r10,r7,r10                             
ffc18c18:	7d 48 49 ae 	stbx    r10,r8,r9                              
    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++)                                      
ffc18c1c:	39 29 00 01 	addi    r9,r9,1                                
ffc18c20:	42 00 ff e0 	bdnz+   ffc18c00 <msdos_find_name_in_fat_file+0x4c8>
      *c = hex[(num >> ((3 - i) * 4)) & 0xf];                         
    *c++ = '~';                                                       
ffc18c24:	39 20 00 7e 	li      r9,126                                 
ffc18c28:	99 3b 00 06 	stb     r9,6(r27)                              
    *c++ = '1';                                                       
ffc18c2c:	39 20 00 31 	li      r9,49                                  
ffc18c30:	99 3b 00 07 	stb     r9,7(r27)                              
        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)                                                  
ffc18c34:	2f 99 00 00 	cmpwi   cr7,r25,0                              
     * 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;                                                 
ffc18c38:	3a 40 00 00 	li      r18,0                                  
        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)                                                  
ffc18c3c:	41 9e 00 3c 	beq-    cr7,ffc18c78 <msdos_find_name_in_fat_file+0x540>
    {                                                                 
        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);       
        int      i;                                                   
        for (i = 0; i < 11; i++, p++)                                 
            lfn_checksum =                                            
ffc18c40:	39 00 00 0b 	li      r8,11                                  
ffc18c44:	7d 09 03 a6 	mtctr   r8                                     
        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)                                                  
ffc18c48:	39 20 00 00 	li      r9,0                                   
    {                                                                 
        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);       
        int      i;                                                   
        for (i = 0; i < 11; i++, p++)                                 
            lfn_checksum =                                            
ffc18c4c:	72 43 00 01 	andi.   r3,r18,1                               
ffc18c50:	39 40 00 00 	li      r10,0                                  
ffc18c54:	41 82 00 08 	beq-    ffc18c5c <msdos_find_name_in_fat_file+0x524>
ffc18c58:	39 40 00 80 	li      r10,128                                
ffc18c5c:	7d 1b 48 ae 	lbzx    r8,r27,r9                              
ffc18c60:	56 52 f8 7e 	rlwinm  r18,r18,31,1,31                        
                                                                      
    if (lfn_entries)                                                  
    {                                                                 
        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);       
        int      i;                                                   
        for (i = 0; i < 11; i++, p++)                                 
ffc18c64:	39 29 00 01 	addi    r9,r9,1                                
            lfn_checksum =                                            
ffc18c68:	7e 48 92 14 	add     r18,r8,r18                             
ffc18c6c:	7e 52 52 14 	add     r18,r18,r10                            
ffc18c70:	56 52 06 3e 	clrlwi  r18,r18,24                             
                                                                      
    if (lfn_entries)                                                  
    {                                                                 
        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);       
        int      i;                                                   
        for (i = 0; i < 11; i++, p++)                                 
ffc18c74:	42 00 ff d8 	bdnz+   ffc18c4c <msdos_find_name_in_fat_file+0x514>
     * 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)                                       
ffc18c78:	2f 96 00 00 	cmpwi   cr7,r22,0                              
ffc18c7c:	41 9e 00 18 	beq-    cr7,ffc18c94 <msdos_find_name_in_fat_file+0x55c>
    }                                                                 
                                                                      
    /*                                                                
     * Have we read past the empty block ? If so go back and read it again.
     */                                                               
    if (dir_offset != empty_space_offset)                             
ffc18c80:	7f 94 c0 00 	cmpw    cr7,r20,r24                            
        read_cluster = true;                                          
ffc18c84:	39 20 00 01 	li      r9,1                                   
    }                                                                 
                                                                      
    /*                                                                
     * Have we read past the empty block ? If so go back and read it again.
     */                                                               
    if (dir_offset != empty_space_offset)                             
ffc18c88:	40 be 00 18 	bne+    cr7,ffc18ca0 <msdos_find_name_in_fat_file+0x568><== NEVER TAKEN
    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;                            
ffc18c8c:	39 20 00 00 	li      r9,0                                   
ffc18c90:	48 00 00 10 	b       ffc18ca0 <msdos_find_name_in_fat_file+0x568>
     * 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)                                       
ffc18c94:	7e 98 a3 78 	mr      r24,r20                                
    {                                                                 
        read_cluster = true;                                          
ffc18c98:	39 20 00 01 	li      r9,1                                   
        empty_space_offset = dir_offset;                              
        empty_space_entry = 0;                                        
ffc18c9c:	3a e0 00 00 	li      r23,0                                  
        read_cluster = true;                                          
                                                                      
    /*                                                                
     * Handle the entry writes.                                       
     */                                                               
    lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;              
ffc18ca0:	39 40 ff ff 	li      r10,-1                                 
 *     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(                                      
ffc18ca4:	80 a1 00 18 	lwz     r5,24(r1)                              
        read_cluster = true;                                          
                                                                      
    /*                                                                
     * Handle the entry writes.                                       
     */                                                               
    lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;              
ffc18ca8:	91 41 00 0c 	stw     r10,12(r1)                             
ffc18cac:	7f 58 f1 d6 	mullw   r26,r24,r30                            
ffc18cb0:	91 41 00 08 	stw     r10,8(r1)                              
 *     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(                                      
ffc18cb4:	1d 59 00 0d 	mulli   r10,r25,13                             
                                                                      
    /*                                                                
     * Handle the entry writes.                                       
     */                                                               
    lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;              
    lfn_entry = 0;                                                    
ffc18cb8:	39 e0 00 00 	li      r15,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(                                      
ffc18cbc:	7e 25 52 14 	add     r17,r5,r10                             
                    length, lfn_entry);                               
#endif                                                                
            /*                                                        
             * Time to write the short file name entry.               
             */                                                       
            if (lfn_entry == (lfn_entries + 1))                       
ffc18cc0:	3a 19 00 01 	addi    r16,r25,1                              
#endif                                                                
                                                                      
    /*                                                                
     * The one more is the short entry.                               
     */                                                               
    while (lfn_entry < (lfn_entries + 1))                             
ffc18cc4:	48 00 02 70 	b       ffc18f34 <msdos_find_name_in_fat_file+0x7fc>
    {                                                                 
        int length = 0;                                               
                                                                      
        if (read_cluster)                                             
ffc18cc8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc18ccc:	41 be 00 ac 	beq+    cr7,ffc18d78 <msdos_find_name_in_fat_file+0x640>
        {                                                             
          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,                  
ffc18cd0:	80 ff 00 a0 	lwz     r7,160(r31)                            
ffc18cd4:	7f e3 fb 78 	mr      r3,r31                                 
ffc18cd8:	7f a4 eb 78 	mr      r4,r29                                 
ffc18cdc:	7f 45 d3 78 	mr      r5,r26                                 
ffc18ce0:	7f c6 f3 78 	mr      r6,r30                                 
ffc18ce4:	4b ff a1 c9 	bl      ffc12eac <fat_file_read>               
                              (empty_space_offset * bts2rd), bts2rd,  
                              fs_info->cl_buf);                       
                                                                      
          if (ret != bts2rd)                                          
ffc18ce8:	7f 83 f0 00 	cmpw    cr7,r3,r30                             
ffc18cec:	41 9e 00 8c 	beq-    cr7,ffc18d78 <msdos_find_name_in_fat_file+0x640><== NEVER TAKEN
          {                                                           
            if (ret != FAT_EOF)                                       
ffc18cf0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc18cf4:	41 be 00 08 	beq+    cr7,ffc18cfc <msdos_find_name_in_fat_file+0x5c4><== ALWAYS TAKEN
ffc18cf8:	48 00 00 6c 	b       ffc18d64 <msdos_find_name_in_fat_file+0x62c><== NOT EXECUTED
              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,      
ffc18cfc:	7f e3 fb 78 	mr      r3,r31                                 
ffc18d00:	7f a4 eb 78 	mr      r4,r29                                 
ffc18d04:	38 a0 00 00 	li      r5,0                                   
ffc18d08:	7f 46 d3 78 	mr      r6,r26                                 
ffc18d0c:	38 e1 00 10 	addi    r7,r1,16                               
ffc18d10:	4b ff a6 05 	bl      ffc13314 <fat_file_extend>             
                                   empty_space_offset * bts2rd, &new_length);
                                                                      
            if (ret != RC_OK)                                         
ffc18d14:	2c 03 00 00 	cmpwi   r3,0                                   
ffc18d18:	40 82 02 2c 	bne-    ffc18f44 <msdos_find_name_in_fat_file+0x80c><== 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))          
ffc18d1c:	81 21 00 10 	lwz     r9,16(r1)                              
ffc18d20:	7f 89 d0 00 	cmpw    cr7,r9,r26                             
ffc18d24:	41 be 00 08 	beq+    cr7,ffc18d2c <msdos_find_name_in_fat_file+0x5f4><== ALWAYS TAKEN
ffc18d28:	48 00 00 3c 	b       ffc18d64 <msdos_find_name_in_fat_file+0x62c><== NOT EXECUTED
              rtems_set_errno_and_return_minus_one(EIO);              
                                                                      
            memset(fs_info->cl_buf, 0, bts2rd);                       
ffc18d2c:	80 7f 00 a0 	lwz     r3,160(r31)                            
ffc18d30:	38 80 00 00 	li      r4,0                                   
ffc18d34:	7f c5 f3 78 	mr      r5,r30                                 
ffc18d38:	48 00 34 11 	bl      ffc1c148 <memset>                      
                                                                      
            ret = fat_file_write(&fs_info->fat, fat_fd,               
ffc18d3c:	80 ff 00 a0 	lwz     r7,160(r31)                            
ffc18d40:	7f e3 fb 78 	mr      r3,r31                                 
ffc18d44:	7f a4 eb 78 	mr      r4,r29                                 
ffc18d48:	7f 45 d3 78 	mr      r5,r26                                 
ffc18d4c:	7f c6 f3 78 	mr      r6,r30                                 
ffc18d50:	4b ff a8 11 	bl      ffc13560 <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)                                            
ffc18d54:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc18d58:	41 9e 01 ec 	beq-    cr7,ffc18f44 <msdos_find_name_in_fat_file+0x80c><== ALWAYS TAKEN
              return ret;                                             
            else if (ret != bts2rd)                                   
ffc18d5c:	7f 83 f0 00 	cmpw    cr7,r3,r30                             <== NOT EXECUTED
ffc18d60:	41 be 00 18 	beq+    cr7,ffc18d78 <msdos_find_name_in_fat_file+0x640><== NOT EXECUTED
              rtems_set_errno_and_return_minus_one(EIO);              
ffc18d64:	48 00 26 11 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc18d68:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc18d6c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc18d70:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc18d74:	48 00 01 d0 	b       ffc18f44 <msdos_find_name_in_fat_file+0x80c><== NOT EXECUTED
 *     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(                                      
ffc18d78:	3a cf 00 01 	addi    r22,r15,1                              
ffc18d7c:	3a 60 00 00 	li      r19,0                                  
ffc18d80:	48 00 01 58 	b       ffc18ed8 <msdos_find_name_in_fat_file+0x7a0>
                    length, lfn_entry);                               
#endif                                                                
            /*                                                        
             * Time to write the short file name entry.               
             */                                                       
            if (lfn_entry == (lfn_entries + 1))                       
ffc18d84:	7f 96 80 00 	cmpw    cr7,r22,r16                            
                                                                      
        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;  
ffc18d88:	81 df 00 a0 	lwz     r14,160(r31)                           
            char*       p;                                            
            const char* n;                                            
            int         i;                                            
            char        fill = 0;                                     
                                                                      
            length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;              
ffc18d8c:	3a 73 00 20 	addi    r19,r19,32                             
                                                                      
        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;  
ffc18d90:	7e ae a2 14 	add     r21,r14,r20                            
            const char* n;                                            
            int         i;                                            
            char        fill = 0;                                     
                                                                      
            length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;              
            lfn_entry++;                                              
ffc18d94:	7e cf b3 78 	mr      r15,r22                                
                    length, lfn_entry);                               
#endif                                                                
            /*                                                        
             * Time to write the short file name entry.               
             */                                                       
            if (lfn_entry == (lfn_entries + 1))                       
ffc18d98:	40 be 00 7c 	bne+    cr7,ffc18e14 <msdos_find_name_in_fat_file+0x6dc>
            {                                                         
                /* get current cluster number */                      
                int rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM,
ffc18d9c:	7f e3 fb 78 	mr      r3,r31                                 
ffc18da0:	7f a4 eb 78 	mr      r4,r29                                 
ffc18da4:	38 a0 00 01 	li      r5,1                                   
ffc18da8:	7f 46 d3 78 	mr      r6,r26                                 
ffc18dac:	7f 87 e3 78 	mr      r7,r28                                 
ffc18db0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc18db4:	4b ff a4 8d 	bl      ffc13240 <fat_file_ioctl>              
                                        empty_space_offset * bts2rd,  
                                        &dir_pos->sname.cln);         
                if (rc != RC_OK)                                      
ffc18db8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc18dbc:	40 82 01 88 	bne-    ffc18f44 <msdos_find_name_in_fat_file+0x80c><== NEVER TAKEN
                  return rc;                                          
                                                                      
                dir_pos->sname.ofs = dir_entry;                       
                                                                      
                if (lfn_start.cln != FAT_FILE_SHORT_NAME)             
ffc18dc0:	80 c1 00 08 	lwz     r6,8(r1)                               
                                        empty_space_offset * bts2rd,  
                                        &dir_pos->sname.cln);         
                if (rc != RC_OK)                                      
                  return rc;                                          
                                                                      
                dir_pos->sname.ofs = dir_entry;                       
ffc18dc4:	92 9c 00 04 	stw     r20,4(r28)                             
                                                                      
                if (lfn_start.cln != FAT_FILE_SHORT_NAME)             
ffc18dc8:	2f 86 ff ff 	cmpwi   cr7,r6,-1                              
ffc18dcc:	40 be 00 20 	bne+    cr7,ffc18dec <msdos_find_name_in_fat_file+0x6b4>
                                      &lfn_start.cln);                
                  if (rc != RC_OK)                                    
                    return rc;                                        
                }                                                     
                                                                      
                dir_pos->lname.cln = lfn_start.cln;                   
ffc18dd0:	81 21 00 08 	lwz     r9,8(r1)                               
ffc18dd4:	91 3c 00 08 	stw     r9,8(r28)                              
                dir_pos->lname.ofs = lfn_start.ofs;                   
ffc18dd8:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc18ddc:	91 3c 00 0c 	stw     r9,12(r28)                             
                                                                      
                /* write new node entry */                            
                memcpy (entry, (uint8_t *) name_dir_entry,            
ffc18de0:	7c bb 04 aa 	lswi    r5,r27,32                              
ffc18de4:	7c b5 05 aa 	stswi   r5,r21,32                              
                        MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);           
                break;                                                
ffc18de8:	48 00 01 00 	b       ffc18ee8 <msdos_find_name_in_fat_file+0x7b0>
                                                                      
                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,
ffc18dec:	7c de 31 d6 	mullw   r6,r30,r6                              
ffc18df0:	7f e3 fb 78 	mr      r3,r31                                 
ffc18df4:	7f a4 eb 78 	mr      r4,r29                                 
ffc18df8:	38 a0 00 01 	li      r5,1                                   
ffc18dfc:	38 e1 00 08 	addi    r7,r1,8                                
ffc18e00:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc18e04:	4b ff a4 3d 	bl      ffc13240 <fat_file_ioctl>              
                                      lfn_start.cln * bts2rd,         
                                      &lfn_start.cln);                
                  if (rc != RC_OK)                                    
ffc18e08:	2c 03 00 00 	cmpwi   r3,0                                   
ffc18e0c:	41 82 ff c4 	beq+    ffc18dd0 <msdos_find_name_in_fat_file+0x698><== ALWAYS TAKEN
ffc18e10:	48 00 01 34 	b       ffc18f44 <msdos_find_name_in_fat_file+0x80c><== NOT EXECUTED
             * 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)                 
ffc18e14:	81 21 00 08 	lwz     r9,8(r1)                               
ffc18e18:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc18e1c:	40 be 00 0c 	bne+    cr7,ffc18e28 <msdos_find_name_in_fat_file+0x6f0>
            {                                                         
              lfn_start.cln = empty_space_offset;                     
ffc18e20:	93 01 00 08 	stw     r24,8(r1)                              
              lfn_start.ofs = dir_entry;                              
ffc18e24:	92 81 00 0c 	stw     r20,12(r1)                             
            }                                                         
                                                                      
            /*                                                        
             * Clear the entry before loading the data.               
             */                                                       
            memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);     
ffc18e28:	7e a3 ab 78 	mr      r3,r21                                 
ffc18e2c:	38 80 00 00 	li      r4,0                                   
ffc18e30:	38 a0 00 20 	li      r5,32                                  
ffc18e34:	48 00 33 15 	bl      ffc1c148 <memset>                      
                }                                                     
                else                                                  
                {                                                     
                    p [0] = fill;                                     
                    p [1] = fill;                                     
                    fill = 0xff;                                      
ffc18e38:	38 c0 00 0d 	li      r6,13                                  
ffc18e3c:	7c c9 03 a6 	mtctr   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(                                      
ffc18e40:	1d 16 00 0d 	mulli   r8,r22,13                              
            /*                                                        
             * Clear the entry before loading the data.               
             */                                                       
            memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);     
                                                                      
            *MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;            
ffc18e44:	9a 55 00 0d 	stb     r18,13(r21)                            
                                                                      
            p = entry + 1;                                            
ffc18e48:	39 35 00 01 	addi    r9,r21,1                               
 *     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(                                      
ffc18e4c:	7d 08 88 50 	subf    r8,r8,r17                              
        {                                                             
            char*       entry = (char*) fs_info->cl_buf + dir_entry;  
            char*       p;                                            
            const char* n;                                            
            int         i;                                            
            char        fill = 0;                                     
ffc18e50:	38 e0 00 00 	li      r7,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++)             
ffc18e54:	39 40 00 00 	li      r10,0                                  
            {                                                         
                if (*n != 0)                                          
ffc18e58:	88 c8 00 00 	lbz     r6,0(r8)                               
ffc18e5c:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc18e60:	41 9e 00 10 	beq-    cr7,ffc18e70 <msdos_find_name_in_fat_file+0x738>
                {                                                     
                    *p = *n;                                          
ffc18e64:	98 c9 00 00 	stb     r6,0(r9)                               
                    n++;                                              
ffc18e68:	39 08 00 01 	addi    r8,r8,1                                
ffc18e6c:	48 00 00 10 	b       ffc18e7c <msdos_find_name_in_fat_file+0x744>
                }                                                     
                else                                                  
                {                                                     
                    p [0] = fill;                                     
ffc18e70:	98 e9 00 00 	stb     r7,0(r9)                               
                    p [1] = fill;                                     
ffc18e74:	98 e9 00 01 	stb     r7,1(r9)                               
                    fill = 0xff;                                      
ffc18e78:	38 e0 00 ff 	li      r7,255                                 
                }                                                     
                                                                      
                switch (i)                                            
ffc18e7c:	2f 8a 00 04 	cmpwi   cr7,r10,4                              
ffc18e80:	41 9e 00 10 	beq-    cr7,ffc18e90 <msdos_find_name_in_fat_file+0x758>
ffc18e84:	2f 8a 00 0a 	cmpwi   cr7,r10,10                             
ffc18e88:	40 be 00 18 	bne+    cr7,ffc18ea0 <msdos_find_name_in_fat_file+0x768>
ffc18e8c:	48 00 00 0c 	b       ffc18e98 <msdos_find_name_in_fat_file+0x760>
                {                                                     
                    case 4:                                           
                        p += 5;                                       
ffc18e90:	39 29 00 05 	addi    r9,r9,5                                
                        break;                                        
ffc18e94:	48 00 00 10 	b       ffc18ea4 <msdos_find_name_in_fat_file+0x76c>
                    case 10:                                          
                        p += 4;                                       
ffc18e98:	39 29 00 04 	addi    r9,r9,4                                
                        break;                                        
ffc18e9c:	48 00 00 08 	b       ffc18ea4 <msdos_find_name_in_fat_file+0x76c>
                    default:                                          
                        p += 2;                                       
ffc18ea0:	39 29 00 02 	addi    r9,r9,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++)             
ffc18ea4:	39 4a 00 01 	addi    r10,r10,1                              
ffc18ea8:	42 00 ff b0 	bdnz+   ffc18e58 <msdos_find_name_in_fat_file+0x720>
                        break;                                        
                }                                                     
            }                                                         
                                                                      
            *MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
            if (lfn_entry == 1)                                       
ffc18eac:	2f 96 00 01 	cmpwi   cr7,r22,1                              
 *     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(                                      
ffc18eb0:	7d 36 80 50 	subf    r9,r22,r16                             
ffc18eb4:	55 29 06 3e 	clrlwi  r9,r9,24                               
                        break;                                        
                }                                                     
            }                                                         
                                                                      
            *MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
            if (lfn_entry == 1)                                       
ffc18eb8:	41 9e 00 08 	beq-    cr7,ffc18ec0 <msdos_find_name_in_fat_file+0x788>
ffc18ebc:	48 00 00 08 	b       ffc18ec4 <msdos_find_name_in_fat_file+0x78c>
                *MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
ffc18ec0:	61 29 00 40 	ori     r9,r9,64                               
ffc18ec4:	7d 2e a1 ae 	stbx    r9,r14,r20                             
ffc18ec8:	3a d6 00 01 	addi    r22,r22,1                              
            *MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;                 
ffc18ecc:	89 35 00 0b 	lbz     r9,11(r21)                             
ffc18ed0:	61 29 00 0f 	ori     r9,r9,15                               
ffc18ed4:	99 35 00 0b 	stb     r9,11(r21)                             
 *     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(                                      
ffc18ed8:	7e 93 ba 14 	add     r20,r19,r23                            
                                                                      
#if MSDOS_FIND_PRINT                                                  
        printf ("MSFS:[10] eso:%li\n", empty_space_offset);           
#endif                                                                
                                                                      
        for (dir_entry = empty_space_entry;                           
ffc18edc:	7f 94 f0 40 	cmplw   cr7,r20,r30                            
 *     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(                                      
ffc18ee0:	39 f6 ff ff 	addi    r15,r22,-1                             
                                                                      
#if MSDOS_FIND_PRINT                                                  
        printf ("MSFS:[10] eso:%li\n", empty_space_offset);           
#endif                                                                
                                                                      
        for (dir_entry = empty_space_entry;                           
ffc18ee4:	41 9c fe a0 	blt+    cr7,ffc18d84 <msdos_find_name_in_fat_file+0x64c><== 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,                   
ffc18ee8:	80 ff 00 a0 	lwz     r7,160(r31)                            
ffc18eec:	7f e3 fb 78 	mr      r3,r31                                 
ffc18ef0:	7f a4 eb 78 	mr      r4,r29                                 
ffc18ef4:	7c ba ba 14 	add     r5,r26,r23                             
ffc18ef8:	7e 66 9b 78 	mr      r6,r19                                 
ffc18efc:	7c e7 ba 14 	add     r7,r7,r23                              
ffc18f00:	4b ff a6 61 	bl      ffc13560 <fat_file_write>              
                             (empty_space_offset * bts2rd) + empty_space_entry,
                             length, fs_info->cl_buf + empty_space_entry);
        if (ret == -1)                                                
ffc18f04:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc18f08:	41 9e 00 44 	beq-    cr7,ffc18f4c <msdos_find_name_in_fat_file+0x814><== NEVER TAKEN
            return ret;                                               
        else if (ret != length)                                       
ffc18f0c:	7f 83 98 00 	cmpw    cr7,r3,r19                             
ffc18f10:	7f 5a f2 14 	add     r26,r26,r30                            
ffc18f14:	41 be 00 14 	beq+    cr7,ffc18f28 <msdos_find_name_in_fat_file+0x7f0><== ALWAYS TAKEN
            rtems_set_errno_and_return_minus_one(EIO);                
ffc18f18:	48 00 24 5d 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc18f1c:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc18f20:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc18f24:	48 00 00 28 	b       ffc18f4c <msdos_find_name_in_fat_file+0x814><== NOT EXECUTED
                                                                      
        empty_space_offset++;                                         
ffc18f28:	3b 18 00 01 	addi    r24,r24,1                              
        empty_space_entry = 0;                                        
ffc18f2c:	3a e0 00 00 	li      r23,0                                  
        read_cluster = true;                                          
ffc18f30:	39 20 00 01 	li      r9,1                                   
#endif                                                                
                                                                      
    /*                                                                
     * The one more is the short entry.                               
     */                                                               
    while (lfn_entry < (lfn_entries + 1))                             
ffc18f34:	7f 99 78 00 	cmpw    cr7,r25,r15                            
ffc18f38:	40 9c fd 90 	bge+    cr7,ffc18cc8 <msdos_find_name_in_fat_file+0x590>
        empty_space_offset++;                                         
        empty_space_entry = 0;                                        
        read_cluster = true;                                          
    }                                                                 
                                                                      
    return 0;                                                         
ffc18f3c:	3b 20 00 00 	li      r25,0                                  
ffc18f40:	48 00 00 1c 	b       ffc18f5c <msdos_find_name_in_fat_file+0x824>
                                                                      
                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,
ffc18f44:	7c 79 1b 78 	mr      r25,r3                                 
ffc18f48:	48 00 00 14 	b       ffc18f5c <msdos_find_name_in_fat_file+0x824>
        }                                                             
                                                                      
        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)                                                
ffc18f4c:	3b 20 ff ff 	li      r25,-1                                 <== NOT EXECUTED
ffc18f50:	48 00 00 0c 	b       ffc18f5c <msdos_find_name_in_fat_file+0x824><== NOT EXECUTED
                     * 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 ||                                
ffc18f54:	40 8e fb d4 	bne+    cr3,ffc18b28 <msdos_find_name_in_fat_file+0x3f0>
ffc18f58:	4b ff fb 44 	b       ffc18a9c <msdos_find_name_in_fat_file+0x364>
        empty_space_entry = 0;                                        
        read_cluster = true;                                          
    }                                                                 
                                                                      
    return 0;                                                         
}                                                                     
ffc18f5c:	81 81 00 34 	lwz     r12,52(r1)                             
ffc18f60:	39 61 00 80 	addi    r11,r1,128                             
ffc18f64:	7f 23 cb 78 	mr      r3,r25                                 
ffc18f68:	7d 81 81 20 	mtcrf   24,r12                                 
ffc18f6c:	4b fe 86 4c 	b       ffc015b8 <_restgpr_14_x>               
                                                                      

ffc18f70 <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 ) {
ffc18f70:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc18f74:	7c 08 02 a6 	mflr    r0                                     
ffc18f78:	90 01 00 34 	stw     r0,52(r1)                              
    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) &&                                 
ffc18f7c:	81 24 00 20 	lwz     r9,32(r4)                              
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              cl4find,                    
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *dir_entry                   
    )                                                                 
{                                                                     
ffc18f80:	be e1 00 0c 	stmw    r23,12(r1)                             
ffc18f84:	7c 9c 23 78 	mr      r28,r4                                 
    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) &&                                 
ffc18f88:	2f 89 00 01 	cmpwi   cr7,r9,1                               
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              cl4find,                    
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *dir_entry                   
    )                                                                 
{                                                                     
ffc18f8c:	7c b7 2b 78 	mr      r23,r5                                 
    int              rc = RC_OK;                                      
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc18f90:	83 c3 00 08 	lwz     r30,8(r3)                              
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              cl4find,                    
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *dir_entry                   
    )                                                                 
{                                                                     
ffc18f94:	7c db 33 78 	mr      r27,r6                                 
ffc18f98:	7c f8 3b 78 	mr      r24,r7                                 
    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) &&                                 
ffc18f9c:	40 be 00 28 	bne+    cr7,ffc18fc4 <msdos_find_node_by_cluster_num_in_fat_file+0x54><== ALWAYS TAKEN
ffc18fa0:	81 24 00 24 	lwz     r9,36(r4)                              <== NOT EXECUTED
ffc18fa4:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc18fa8:	40 9e 00 1c 	bne-    cr7,ffc18fc4 <msdos_find_node_by_cluster_num_in_fat_file+0x54><== NOT EXECUTED
       (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))             
ffc18fac:	89 3e 00 0e 	lbz     r9,14(r30)                             <== 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) &&                                 
ffc18fb0:	71 2a 00 03 	andi.   r10,r9,3                               <== NOT EXECUTED
ffc18fb4:	41 82 00 10 	beq-    ffc18fc4 <msdos_find_node_by_cluster_num_in_fat_file+0x54><== NOT EXECUTED
       (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))             
        bts2rd = fat_fd->fat_file_size;                               
ffc18fb8:	83 a4 00 18 	lwz     r29,24(r4)                             <== NOT EXECUTED
                                                                      
        assert(ret == bts2rd);                                        
                                                                      
        for (i = 0; i < bts2rd; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
        {                                                             
            char* entry = (char*) fs_info->cl_buf + i;                
ffc18fbc:	3b 40 00 00 	li      r26,0                                  
ffc18fc0:	48 00 00 f4 	b       ffc190b4 <msdos_find_node_by_cluster_num_in_fat_file+0x144>
                                                                      
    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;                                
ffc18fc4:	a3 be 00 06 	lhz     r29,6(r30)                             
ffc18fc8:	4b ff ff f4 	b       ffc18fbc <msdos_find_node_by_cluster_num_in_fat_file+0x4c>
                                                                      
    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 )                
ffc18fcc:	2f 83 00 1f 	cmpwi   cr7,r3,31                              
ffc18fd0:	41 bd 00 18 	bgt+    cr7,ffc18fe8 <msdos_find_node_by_cluster_num_in_fat_file+0x78><== ALWAYS TAKEN
            rtems_set_errno_and_return_minus_one( EIO );              
ffc18fd4:	48 00 23 a1 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc18fd8:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc18fdc:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc18fe0:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc18fe4:	48 00 00 f4 	b       ffc190d8 <msdos_find_node_by_cluster_num_in_fat_file+0x168><== NOT EXECUTED
                                                                      
        assert(ret == bts2rd);                                        
ffc18fe8:	7f 83 e8 00 	cmpw    cr7,r3,r29                             
ffc18fec:	41 be 00 28 	beq+    cr7,ffc19014 <msdos_find_node_by_cluster_num_in_fat_file+0xa4><== ALWAYS TAKEN
ffc18ff0:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc18ff4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc18ff8:	38 a5 bc 14 	addi    r5,r5,-17388                           <== NOT EXECUTED
ffc18ffc:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc19000:	38 63 bc 88 	addi    r3,r3,-17272                           <== NOT EXECUTED
ffc19004:	38 80 06 4e 	li      r4,1614                                <== NOT EXECUTED
ffc19008:	38 a5 00 30 	addi    r5,r5,48                               <== NOT EXECUTED
ffc1900c:	38 c6 bd 13 	addi    r6,r6,-17133                           <== NOT EXECUTED
ffc19010:	4b fe cb 0d 	bl      ffc05b1c <__assert_func>               <== NOT EXECUTED
ffc19014:	83 fe 00 a0 	lwz     r31,160(r30)                           
                                                                      
        for (i = 0; i < bts2rd; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
        {                                                             
            char* entry = (char*) fs_info->cl_buf + i;                
ffc19018:	3b 20 00 00 	li      r25,0                                  
                                                                      
            /* if this and all rest entries are empty - return not-found */
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                     
ffc1901c:	89 3f 00 00 	lbz     r9,0(r31)                              
ffc19020:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc19024:	41 9e 00 b0 	beq-    cr7,ffc190d4 <msdos_find_node_by_cluster_num_in_fat_file+0x164><== 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)) ==                     
ffc19028:	2f 89 00 e5 	cmpwi   cr7,r9,229                             
ffc1902c:	41 9e 00 74 	beq-    cr7,ffc190a0 <msdos_find_node_by_cluster_num_in_fat_file+0x130><== NEVER TAKEN
                MSDOS_THIS_DIR_ENTRY_EMPTY)                           
                continue;                                             
                                                                      
            /* if get a non-empty entry - compare clusters num */     
            if (MSDOS_EXTRACT_CLUSTER_NUM(entry) == cl4find)          
ffc19030:	a1 5f 00 14 	lhz     r10,20(r31)                            
ffc19034:	a1 3f 00 1a 	lhz     r9,26(r31)                             
ffc19038:	55 48 c2 3e 	rlwinm  r8,r10,24,8,31                         
ffc1903c:	55 4a 44 2e 	rlwinm  r10,r10,8,16,23                        
ffc19040:	7d 0a 53 78 	or      r10,r8,r10                             
ffc19044:	55 28 c2 3e 	rlwinm  r8,r9,24,8,31                          
ffc19048:	55 29 44 2e 	rlwinm  r9,r9,8,16,23                          
ffc1904c:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc19050:	7d 09 4b 78 	or      r9,r8,r9                               
ffc19054:	7d 49 4b 78 	or      r9,r10,r9                              
ffc19058:	7f 89 b8 00 	cmpw    cr7,r9,r23                             
ffc1905c:	40 be 00 44 	bne+    cr7,ffc190a0 <msdos_find_node_by_cluster_num_in_fat_file+0x130>
            {                                                         
                /* on success fill aux structure and copy all 32 bytes */
                rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM, j * bts2rd,
ffc19060:	7f c3 f3 78 	mr      r3,r30                                 
ffc19064:	7f 84 e3 78 	mr      r4,r28                                 
ffc19068:	38 a0 00 01 	li      r5,1                                   
ffc1906c:	7f 46 d3 78 	mr      r6,r26                                 
ffc19070:	7f 67 db 78 	mr      r7,r27                                 
ffc19074:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc19078:	4b ff a1 c9 	bl      ffc13240 <fat_file_ioctl>              
                                    &dir_pos->sname.cln);             
                if (rc != RC_OK)                                      
ffc1907c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc19080:	40 a2 00 58 	bne+    ffc190d8 <msdos_find_node_by_cluster_num_in_fat_file+0x168><== NEVER TAKEN
                    return rc;                                        
                                                                      
                dir_pos->sname.ofs = i;                               
                dir_pos->lname.cln = FAT_FILE_SHORT_NAME;             
ffc19084:	39 20 ff ff 	li      r9,-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;                               
ffc19088:	93 3b 00 04 	stw     r25,4(r27)                             
                dir_pos->lname.cln = FAT_FILE_SHORT_NAME;             
ffc1908c:	91 3b 00 08 	stw     r9,8(r27)                              
                dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;             
ffc19090:	91 3b 00 0c 	stw     r9,12(r27)                             
                                                                      
                memcpy(dir_entry, entry,                              
ffc19094:	7c bf 04 aa 	lswi    r5,r31,32                              
ffc19098:	7c b8 05 aa 	stswi   r5,r24,32                              
                       MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);            
                return RC_OK;                                         
ffc1909c:	48 00 00 3c 	b       ffc190d8 <msdos_find_node_by_cluster_num_in_fat_file+0x168>
        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)
ffc190a0:	3b 39 00 20 	addi    r25,r25,32                             
ffc190a4:	7f 99 e8 40 	cmplw   cr7,r25,r29                            
ffc190a8:	3b ff 00 20 	addi    r31,r31,32                             
ffc190ac:	41 9c ff 70 	blt+    cr7,ffc1901c <msdos_find_node_by_cluster_num_in_fat_file+0xac><== ALWAYS TAKEN
ffc190b0:	7f 5a ea 14 	add     r26,r26,r29                            <== 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,
ffc190b4:	80 fe 00 a0 	lwz     r7,160(r30)                            
ffc190b8:	7f c3 f3 78 	mr      r3,r30                                 
ffc190bc:	7f 84 e3 78 	mr      r4,r28                                 
ffc190c0:	7f 45 d3 78 	mr      r5,r26                                 
ffc190c4:	7f a6 eb 78 	mr      r6,r29                                 
ffc190c8:	4b ff 9d e5 	bl      ffc12eac <fat_file_read>               
ffc190cc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc190d0:	40 82 fe fc 	bne+    ffc18fcc <msdos_find_node_by_cluster_num_in_fat_file+0x5c><== 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;                      
ffc190d4:	38 60 7d 01 	li      r3,32001                               <== NOT EXECUTED
            }                                                         
        }                                                             
        j++;                                                          
    }                                                                 
    return MSDOS_NAME_NOT_FOUND_ERR;                                  
}                                                                     
ffc190d8:	39 61 00 30 	addi    r11,r1,48                              
ffc190dc:	4b fe 85 00 	b       ffc015dc <_restgpr_23_x>               
                                                                      

ffc0e268 <msdos_format>: ) /*-------------------------------------------------------------------------*\ | Return Value: | | 0, if success, -1 and errno if failed | \*=========================================================================*/ {
ffc0e268:	94 21 fd 08 	stwu    r1,-760(r1)                            
ffc0e26c:	7d 80 00 26 	mfcr    r12                                    
ffc0e270:	7c 08 02 a6 	mflr    r0                                     
  msdos_format_param_t fmt_params;                                    
                                                                      
  /*                                                                  
   * open device for writing                                          
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "open device\n");
ffc0e274:	3c a0 ff c3 	lis     r5,-61                                 
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc0e278:	bd c1 02 b0 	stmw    r14,688(r1)                            
  msdos_format_param_t fmt_params;                                    
                                                                      
  /*                                                                  
   * open device for writing                                          
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "open device\n");
ffc0e27c:	38 a5 b7 9d 	addi    r5,r5,-18531                           
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc0e280:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0e284:	7c 9f 23 78 	mr      r31,r4                                 
ffc0e288:	90 01 02 fc 	stw     r0,764(r1)                             
  msdos_format_param_t fmt_params;                                    
                                                                      
  /*                                                                  
   * open device for writing                                          
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "open device\n");
ffc0e28c:	7c 83 23 78 	mr      r3,r4                                  
ffc0e290:	38 80 00 02 	li      r4,2                                   
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc0e294:	91 81 02 ac 	stw     r12,684(r1)                            
  msdos_format_param_t fmt_params;                                    
                                                                      
  /*                                                                  
   * open device for writing                                          
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "open device\n");
ffc0e298:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0e29c:	4b ff fc fd 	bl      ffc0df98 <msdos_format_printf>         
  fd = open(devname, O_RDWR);                                         
ffc0e2a0:	38 80 00 02 	li      r4,2                                   
ffc0e2a4:	7f 83 e3 78 	mr      r3,r28                                 
ffc0e2a8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0e2ac:	4b ff 88 49 	bl      ffc06af4 <open>                        
  }                                                                   
                                                                      
  /*                                                                  
   * sanity check on device                                           
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
ffc0e2b0:	3c a0 ff c3 	lis     r5,-61                                 
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
  char                 tmp_sec[FAT_TOTAL_MBR_SIZE];                   
  struct stat          stat_buf;                                      
  int                  ret_val   = 0;                                 
ffc0e2b4:	3b 63 00 01 	addi    r27,r3,1                               
                                                                      
  /*                                                                  
   * open device for writing                                          
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "open device\n");
  fd = open(devname, O_RDWR);                                         
ffc0e2b8:	7c 7d 1b 78 	mr      r29,r3                                 
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
  char                 tmp_sec[FAT_TOTAL_MBR_SIZE];                   
  struct stat          stat_buf;                                      
  int                  ret_val   = 0;                                 
ffc0e2bc:	33 7b ff ff 	addic   r27,r27,-1                             
ffc0e2c0:	7f 7b d9 10 	subfe   r27,r27,r27                            
  }                                                                   
                                                                      
  /*                                                                  
   * sanity check on device                                           
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
ffc0e2c4:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e2c8:	38 80 00 02 	li      r4,2                                   
ffc0e2cc:	38 a5 b7 aa 	addi    r5,r5,-18518                           
ffc0e2d0:	7f 86 e3 78 	mr      r6,r28                                 
ffc0e2d4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0e2d8:	4b ff fc c1 	bl      ffc0df98 <msdos_format_printf>         
                       "stat check: %s\n", devname);                  
  if (ret_val == 0) {                                                 
ffc0e2dc:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc0e2e0:	3b c0 ff ff 	li      r30,-1                                 
ffc0e2e4:	40 be 00 14 	bne+    cr7,ffc0e2f8 <msdos_format+0x90>       <== NEVER TAKEN
    ret_val = fstat(fd, &stat_buf);                                   
ffc0e2e8:	7f a3 eb 78 	mr      r3,r29                                 
ffc0e2ec:	38 81 02 60 	addi    r4,r1,608                              
ffc0e2f0:	4b ff 7a bd 	bl      ffc05dac <fstat>                       
ffc0e2f4:	7c 7e 1b 78 	mr      r30,r3                                 
  }                                                                   
                                                                      
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,             
ffc0e2f8:	3c a0 ff c3 	lis     r5,-61                                 
ffc0e2fc:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e300:	38 80 00 01 	li      r4,1                                   
ffc0e304:	38 a5 b7 ba 	addi    r5,r5,-18502                           
ffc0e308:	7f 86 e3 78 	mr      r6,r28                                 
ffc0e30c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0e310:	4b ff fc 89 	bl      ffc0df98 <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))) {               
ffc0e314:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0e318:	40 9e 0c ec 	bne-    cr7,ffc0f004 <msdos_format+0xd9c>      <== NEVER TAKEN
ffc0e31c:	81 21 02 6c 	lwz     r9,620(r1)                             
ffc0e320:	55 29 04 26 	rlwinm  r9,r9,0,16,19                          
ffc0e324:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc0e328:	41 9e 0c 44 	beq-    cr7,ffc0ef6c <msdos_format+0xd04>      <== ALWAYS TAKEN
    errno = ENOTTY;                                                   
ffc0e32c:	48 00 d0 49 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc0e330:	39 20 00 19 	li      r9,25                                  <== NOT EXECUTED
ffc0e334:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc0e338:	48 00 0d 00 	b       ffc0f038 <msdos_format+0xdd0>          <== 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);                 
ffc0e33c:	3c 80 40 04 	lis     r4,16388                               
ffc0e340:	7f a3 eb 78 	mr      r3,r29                                 
ffc0e344:	60 84 42 05 	ori     r4,r4,16901                            
ffc0e348:	38 a1 02 0c 	addi    r5,r1,524                              
ffc0e34c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0e350:	48 00 71 d5 	bl      ffc15524 <ioctl>                       
    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) {                                                 
ffc0e354:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0e358:	40 82 04 54 	bne-    ffc0e7ac <msdos_format+0x544>          <== NEVER TAKEN
    total_size = fmt_params->bytes_per_sector * fmt_params->totl_sector_cnt;
ffc0e35c:	80 c1 02 08 	lwz     r6,520(r1)                             
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc0e360:	3c a0 ff c3 	lis     r5,-61                                 
  }                                                                   
  if (ret_val == 0) {                                                 
    ret_val = rtems_disk_fd_get_block_count(fd, &fmt_params->totl_sector_cnt);
  }                                                                   
  if (ret_val == 0) {                                                 
    total_size = fmt_params->bytes_per_sector * fmt_params->totl_sector_cnt;
ffc0e364:	80 e1 02 0c 	lwz     r7,524(r1)                             
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc0e368:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e36c:	38 80 00 02 	li      r4,2                                   
  }                                                                   
  if (ret_val == 0) {                                                 
    ret_val = rtems_disk_fd_get_block_count(fd, &fmt_params->totl_sector_cnt);
  }                                                                   
  if (ret_val == 0) {                                                 
    total_size = fmt_params->bytes_per_sector * fmt_params->totl_sector_cnt;
ffc0e370:	7f 87 31 d6 	mullw   r28,r7,r6                              
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc0e374:	38 a5 b7 c9 	addi    r5,r5,-18487                           
ffc0e378:	39 20 00 00 	li      r9,0                                   
ffc0e37c:	7f 8a e3 78 	mr      r10,r28                                
ffc0e380:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0e384:	4b ff fc 15 	bl      ffc0df98 <msdos_format_printf>         
                                                                      
  /*                                                                  
   * determine number of FATs                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata == NULL) ||                                           
ffc0e388:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0e38c:	41 9e 00 10 	beq-    cr7,ffc0e39c <msdos_format+0x134>      
	(rqdata->fat_num == 0)) {                                            
ffc0e390:	81 3f 00 0c 	lwz     r9,12(r31)                             
                                                                      
  /*                                                                  
   * determine number of FATs                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata == NULL) ||                                           
ffc0e394:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e398:	40 9e 00 0c 	bne-    cr7,ffc0e3a4 <msdos_format+0x13c>      
	(rqdata->fat_num == 0)) {                                            
      fmt_params->fat_num = 2;                                        
ffc0e39c:	39 20 00 02 	li      r9,2                                   
ffc0e3a0:	48 00 00 0c 	b       ffc0e3ac <msdos_format+0x144>          
    }                                                                 
    else if (rqdata->fat_num <= 6) {                                  
ffc0e3a4:	2b 89 00 06 	cmplwi  cr7,r9,6                               
ffc0e3a8:	41 9d 00 0c 	bgt-    cr7,ffc0e3b4 <msdos_format+0x14c>      
      fmt_params->fat_num = rqdata->fat_num;                          
ffc0e3ac:	99 21 02 38 	stb     r9,568(r1)                             
ffc0e3b0:	48 00 0b f0 	b       ffc0efa0 <msdos_format+0xd38>          
    }                                                                 
    else {                                                            
      errno = EINVAL;                                                 
ffc0e3b4:	48 00 cf c1 	bl      ffc1b374 <__errno>                     
ffc0e3b8:	39 20 00 16 	li      r9,22                                  
ffc0e3bc:	91 23 00 00 	stw     r9,0(r3)                               
      ret_val = -1;                                                   
ffc0e3c0:	3b c0 ff ff 	li      r30,-1                                 
ffc0e3c4:	48 00 03 e8 	b       ffc0e7ac <msdos_format+0x544>          
     * 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) {         
ffc0e3c8:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0e3cc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e3d0:	7d 2a 4b 78 	mr      r10,r9                                 
ffc0e3d4:	40 9e 00 0c 	bne-    cr7,ffc0e3e0 <msdos_format+0x178>      
     * 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;                               
ffc0e3d8:	39 40 00 20 	li      r10,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;                                
ffc0e3dc:	39 20 00 08 	li      r9,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) {
ffc0e3e0:	81 01 02 0c 	lwz     r8,524(r1)                             
ffc0e3e4:	1d 29 0f f5 	mulli   r9,r9,4085                             
ffc0e3e8:	7f 88 48 40 	cmplw   cr7,r8,r9                              
ffc0e3ec:	40 9c 00 0c 	bge-    cr7,ffc0e3f8 <msdos_format+0x190>      
      fmt_params->fattype = FAT_FAT12;                                
ffc0e3f0:	39 20 00 01 	li      r9,1                                   
ffc0e3f4:	48 00 00 1c 	b       ffc0e410 <msdos_format+0x1a8>          
      /* 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) {
ffc0e3f8:	39 20 00 00 	li      r9,0                                   
ffc0e3fc:	61 29 ff f5 	ori     r9,r9,65525                            
ffc0e400:	7d 4a 49 d6 	mullw   r10,r10,r9                             
ffc0e404:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc0e408:	40 9c 00 14 	bge-    cr7,ffc0e41c <msdos_format+0x1b4>      
      fmt_params->fattype = FAT_FAT16;                                
ffc0e40c:	39 20 00 02 	li      r9,2                                   
ffc0e410:	99 21 02 3a 	stb     r9,570(r1)                             
      /* start trying with small clusters */                          
      fmt_params->sectors_per_cluster = 2;                            
ffc0e414:	39 20 00 02 	li      r9,2                                   
ffc0e418:	48 00 00 50 	b       ffc0e468 <msdos_format+0x200>          
    }                                                                 
    else {                                                            
      #define ONE_GB (1024L * 1024L * 1024L)                          
      uint32_t gigs = (total_size + ONE_GB) / ONE_GB;                 
ffc0e41c:	3d 5c 40 00 	addis   r10,r28,16384                          
ffc0e420:	7d 3c 50 10 	subfc   r9,r28,r10                             
ffc0e424:	7d 29 49 10 	subfe   r9,r9,r9                               
ffc0e428:	7d 29 00 d0 	neg     r9,r9                                  
ffc0e42c:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0e430:	55 4a 17 be 	rlwinm  r10,r10,2,30,31                        
ffc0e434:	7d 2a 53 78 	or      r10,r9,r10                             
      int b;                                                          
      fmt_params->fattype = FAT_FAT32;                                
ffc0e438:	39 20 00 04 	li      r9,4                                   
ffc0e43c:	99 21 02 3a 	stb     r9,570(r1)                             
      /* scale with the size of disk... */                            
      for (b = 31; b > 0; b--)                                        
ffc0e440:	39 20 00 1f 	li      r9,31                                  
        if ((gigs & (1 << b)) != 0)                                   
ffc0e444:	7d 29 03 a6 	mtctr   r9                                     
ffc0e448:	39 00 00 01 	li      r8,1                                   
ffc0e44c:	7d 07 48 30 	slw     r7,r8,r9                               
ffc0e450:	7c e6 50 39 	and.    r6,r7,r10                              
ffc0e454:	40 82 00 0c 	bne-    ffc0e460 <msdos_format+0x1f8>          
      #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--)                                        
ffc0e458:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0e45c:	42 00 ff f0 	bdnz+   ffc0e44c <msdos_format+0x1e4>          
        if ((gigs & (1 << b)) != 0)                                   
          break;                                                      
      fmt_params->sectors_per_cluster = 1 << b;                       
ffc0e460:	39 40 00 01 	li      r10,1                                  
ffc0e464:	7d 49 48 30 	slw     r9,r10,r9                              
                                                                      
  /*                                                                  
   * compute formatting parameters                                    
   */                                                                 
  if (ret_val == 0) {                                                 
    ret_val = msdos_format_determine_fmt_params(fd,rqdata,&fmt_params);
ffc0e468:	3a 41 02 08 	addi    r18,r1,520                             
      fmt_params->fattype = FAT_FAT32;                                
      /* scale with the size of disk... */                            
      for (b = 31; b > 0; b--)                                        
        if ((gigs & (1 << b)) != 0)                                   
          break;                                                      
      fmt_params->sectors_per_cluster = 1 << b;                       
ffc0e46c:	91 21 02 14 	stw     r9,532(r1)                             
    }                                                                 
                                                                      
    ret_val = msdos_set_sectors_per_cluster_from_request( rqdata, fmt_params );
ffc0e470:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e474:	7e 44 93 78 	mr      r4,r18                                 
ffc0e478:	4b ff fd 65 	bl      ffc0e1dc <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;                 
ffc0e47c:	3d 3c 40 00 	addis   r9,r28,16384                           
ffc0e480:	7f 9c 48 10 	subfc   r28,r28,r9                             
ffc0e484:	7f 9c e1 10 	subfe   r28,r28,r28                            
ffc0e488:	7f 9c 00 d0 	neg     r28,r28                                
ffc0e48c:	57 9c 10 3a 	rlwinm  r28,r28,2,0,29                         
ffc0e490:	55 29 17 be 	rlwinm  r9,r9,2,30,31                          
       */                                                             
      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,     
ffc0e494:	3f 40 ff c3 	lis     r26,-61                                
  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) {
ffc0e498:	3a 80 00 00 	li      r20,0                                  
                    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 =                       
ffc0e49c:	3a 60 00 00 	li      r19,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;                 
ffc0e4a0:	7f 9b 4b 78 	or      r27,r28,r9                             
        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 );
ffc0e4a4:	7c 7e 1b 78 	mr      r30,r3                                 
    /* 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;                 
ffc0e4a8:	3b 80 00 ff 	li      r28,255                                
ffc0e4ac:	3a 00 00 00 	li      r16,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)                             
ffc0e4b0:	2e 1f 00 00 	cmpwi   cr4,r31,0                              
        fmt_params->skip_alignment = rqdata->skip_alignment;          
                                                                      
      if (ret_val == 0) {                                             
        msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,     
ffc0e4b4:	3b 5a b8 04 	addi    r26,r26,-18428                         
          fmt_params->fsinfo_sec = 1;                                 
                                                                      
        }                                                             
        else {                                                        
          /* recommended: for FAT12/FAT16, always set reserved sector count to 1 */
          fmt_params->rsvd_sector_cnt = 1;                            
ffc0e4b8:	3a 20 00 01 	li      r17,1                                  
          else {                                                      
            if (fmt_params->fattype == FAT_FAT16) {                   
              fmt_params->files_per_root_dir = 512;                   
            }                                                         
            else {                                                    
              fmt_params->files_per_root_dir = 64;                    
ffc0e4bc:	3b 20 00 40 	li      r25,64                                 
              (rqdata->files_per_root_dir > 0)) {                     
            fmt_params->files_per_root_dir = rqdata->files_per_root_dir;
          }                                                           
          else {                                                      
            if (fmt_params->fattype == FAT_FAT16) {                   
              fmt_params->files_per_root_dir = 512;                   
ffc0e4c0:	3b 00 02 00 	li      r24,512                                
        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;                           
ffc0e4c4:	3a e0 00 20 	li      r23,32                                 
          /* for FAT32, always set files per root directory 0 */      
          fmt_params->files_per_root_dir = 0;                         
ffc0e4c8:	3a c0 00 00 	li      r22,0                                  
          /* location of copy of MBR */                               
          fmt_params->mbr_copy_sec = 6;                               
ffc0e4cc:	3a a0 00 06 	li      r21,6                                  
  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) {
ffc0e4d0:	62 94 80 00 	ori     r20,r20,32768                          
                    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 =                       
ffc0e4d4:	62 73 80 01 	ori     r19,r19,32769                          
ffc0e4d8:	48 00 02 b4 	b       ffc0e78c <msdos_format+0x524>          
          && fmt_params->fattype != fat_type                          
          && fmt_params->totl_sector_cnt > 0 ) {                      
      /*                                                              
       * Skip aligning structures or d align them                     
       */                                                             
      if (ret_val == 0 && rqdata != NULL)                             
ffc0e4dc:	41 92 00 0c 	beq-    cr4,ffc0e4e8 <msdos_format+0x280>      
        fmt_params->skip_alignment = rqdata->skip_alignment;          
ffc0e4e0:	89 3f 00 16 	lbz     r9,22(r31)                             
ffc0e4e4:	99 21 02 58 	stb     r9,600(r1)                             
                                                                      
      if (ret_val == 0) {                                             
        msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,     
ffc0e4e8:	80 c1 02 14 	lwz     r6,532(r1)                             
ffc0e4ec:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e4f0:	38 80 00 02 	li      r4,2                                   
ffc0e4f4:	7f 45 d3 78 	mr      r5,r26                                 
ffc0e4f8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0e4fc:	4b ff fa 9d 	bl      ffc0df98 <msdos_format_printf>         
                             "sectors per cluster: %d\n", fmt_params->sectors_per_cluster);
                                                                      
        if (fmt_params->fattype == FAT_FAT32) {                       
ffc0e500:	8b 81 02 3a 	lbz     r28,570(r1)                            
ffc0e504:	2f 9c 00 04 	cmpwi   cr7,r28,4                              
ffc0e508:	40 be 00 18 	bne+    cr7,ffc0e520 <msdos_format+0x2b8>      
          /* recommended: for FAT32, always set reserved sector count to 32 */
          fmt_params->rsvd_sector_cnt = 32;                           
ffc0e50c:	92 e1 02 10 	stw     r23,528(r1)                            
          /* for FAT32, always set files per root directory 0 */      
          fmt_params->files_per_root_dir = 0;                         
ffc0e510:	92 c1 02 20 	stw     r22,544(r1)                            
          /* location of copy of MBR */                               
          fmt_params->mbr_copy_sec = 6;                               
ffc0e514:	92 a1 02 30 	stw     r21,560(r1)                            
          /* location of fsinfo sector */                             
          fmt_params->fsinfo_sec = 1;                                 
ffc0e518:	92 21 02 34 	stw     r17,564(r1)                            
ffc0e51c:	48 00 00 54 	b       ffc0e570 <msdos_format+0x308>          
                                                                      
        }                                                             
        else {                                                        
          /* recommended: for FAT12/FAT16, always set reserved sector count to 1 */
          fmt_params->rsvd_sector_cnt = 1;                            
ffc0e520:	92 21 02 10 	stw     r17,528(r1)                            
          /* 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) &&                                     
ffc0e524:	41 92 00 18 	beq-    cr4,ffc0e53c <msdos_format+0x2d4>      
              (rqdata->files_per_root_dir > 0)) {                     
ffc0e528:	81 3f 00 10 	lwz     r9,16(r31)                             
          /* 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) &&                                     
ffc0e52c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e530:	41 9e 00 0c 	beq-    cr7,ffc0e53c <msdos_format+0x2d4>      
              (rqdata->files_per_root_dir > 0)) {                     
            fmt_params->files_per_root_dir = rqdata->files_per_root_dir;
ffc0e534:	91 21 02 20 	stw     r9,544(r1)                             
ffc0e538:	48 00 00 18 	b       ffc0e550 <msdos_format+0x2e8>          
          }                                                           
          else {                                                      
            if (fmt_params->fattype == FAT_FAT16) {                   
ffc0e53c:	2f 9c 00 02 	cmpwi   cr7,r28,2                              
ffc0e540:	40 be 00 0c 	bne+    cr7,ffc0e54c <msdos_format+0x2e4>      
              fmt_params->files_per_root_dir = 512;                   
ffc0e544:	93 01 02 20 	stw     r24,544(r1)                            
ffc0e548:	48 00 00 08 	b       ffc0e550 <msdos_format+0x2e8>          
            }                                                         
            else {                                                    
              fmt_params->files_per_root_dir = 64;                    
ffc0e54c:	93 21 02 20 	stw     r25,544(r1)                            
            }                                                         
          }                                                           
          fmt_params->files_per_root_dir = (fmt_params->files_per_root_dir +
ffc0e550:	81 41 02 20 	lwz     r10,544(r1)                            
                                           (2*fmt_params->bytes_per_sector/
ffc0e554:	81 21 02 08 	lwz     r9,520(r1)                             
            }                                                         
            else {                                                    
              fmt_params->files_per_root_dir = 64;                    
            }                                                         
          }                                                           
          fmt_params->files_per_root_dir = (fmt_params->files_per_root_dir +
ffc0e558:	39 4a ff ff 	addi    r10,r10,-1                             
                                           (2*fmt_params->bytes_per_sector/
ffc0e55c:	55 29 e1 7e 	rlwinm  r9,r9,28,5,31                          
            }                                                         
            else {                                                    
              fmt_params->files_per_root_dir = 64;                    
            }                                                         
          }                                                           
          fmt_params->files_per_root_dir = (fmt_params->files_per_root_dir +
ffc0e560:	7d 4a 4a 14 	add     r10,r10,r9                             
                                           (2*fmt_params->bytes_per_sector/
                                           FAT_DIRENTRY_SIZE-1));     
          fmt_params->files_per_root_dir -= (fmt_params->files_per_root_dir %
ffc0e564:	7d 4a 4b 96 	divwu   r10,r10,r9                             
ffc0e568:	7d 2a 49 d6 	mullw   r9,r10,r9                              
ffc0e56c:	91 21 02 20 	stw     r9,544(r1)                             
                                            /FAT_DIRENTRY_SIZE));     
                                                                      
        }                                                             
        fmt_params->root_dir_sectors =                                
          (((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)      
            + fmt_params->bytes_per_sector - 1)                       
ffc0e570:	81 41 02 08 	lwz     r10,520(r1)                            
                                            (2*fmt_params->bytes_per_sector
                                            /FAT_DIRENTRY_SIZE));     
                                                                      
        }                                                             
        fmt_params->root_dir_sectors =                                
          (((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)      
ffc0e574:	80 a1 02 20 	lwz     r5,544(r1)                             
            + fmt_params->bytes_per_sector - 1)                       
ffc0e578:	38 6a ff ff 	addi    r3,r10,-1                              
      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,
ffc0e57c:	81 81 02 0c 	lwz     r12,524(r1)                            
                                            (2*fmt_params->bytes_per_sector
                                            /FAT_DIRENTRY_SIZE));     
                                                                      
        }                                                             
        fmt_params->root_dir_sectors =                                
          (((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)      
ffc0e580:	54 a5 28 34 	rlwinm  r5,r5,5,0,26                           
      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,
ffc0e584:	81 61 02 10 	lwz     r11,528(r1)                            
                                            /FAT_DIRENTRY_SIZE));     
                                                                      
        }                                                             
        fmt_params->root_dir_sectors =                                
          (((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)      
            + fmt_params->bytes_per_sector - 1)                       
ffc0e588:	7c a3 2a 14 	add     r5,r3,r5                               
      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,
ffc0e58c:	88 81 02 38 	lbz     r4,568(r1)                             
                                                                      
        }                                                             
        fmt_params->root_dir_sectors =                                
          (((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)      
            + fmt_params->bytes_per_sector - 1)                       
           / fmt_params->bytes_per_sector);                           
ffc0e590:	7c a5 53 96 	divwu   r5,r5,r10                              
      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,
ffc0e594:	81 21 02 14 	lwz     r9,532(r1)                             
ffc0e598:	89 01 02 58 	lbz     r8,600(r1)                             
          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 =                                
ffc0e59c:	90 a1 02 24 	stw     r5,548(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) {
ffc0e5a0:	7c f4 53 96 	divwu   r7,r20,r10                             
ffc0e5a4:	48 00 00 08 	b       ffc0e5ac <msdos_format+0x344>          
    sectors_per_cluster /= 2;                                         
ffc0e5a8:	55 29 f8 7e 	rlwinm  r9,r9,31,1,31                          <== 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) {
ffc0e5ac:	7f 87 48 40 	cmplw   cr7,r7,r9                              
ffc0e5b0:	41 9c ff f8 	blt+    cr7,ffc0e5a8 <msdos_format+0x340>      <== NEVER TAKEN
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc0e5b4:	2f 88 00 00 	cmpwi   cr7,r8,0                               
     * - 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);
    if (fattype == FAT_FAT12) {                                       
ffc0e5b8:	2f 1c 00 01 	cmpwi   cr6,r28,1                              
      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) {                                  
ffc0e5bc:	2c 9c 00 02 	cmpwi   cr1,r28,2                              
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc0e5c0:	39 eb ff ff 	addi    r15,r11,-1                             
ffc0e5c4:	38 05 ff ff 	addi    r0,r5,-1                               
  else                                                                
    return sectors;                                                   
ffc0e5c8:	7d 68 5b 78 	mr      r8,r11                                 
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc0e5cc:	40 9e 00 10 	bne-    cr7,ffc0e5dc <msdos_format+0x374>      
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc0e5d0:	7d 0f 4a 14 	add     r8,r15,r9                              
ffc0e5d4:	7c e9 00 d0 	neg     r7,r9                                  
ffc0e5d8:	7c e8 40 38 	and     r8,r7,r8                               
     * 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                               
ffc0e5dc:	7d 08 60 50 	subf    r8,r8,r12                              
      - loc_align_object (rsvd_sector_cnt, sectors_per_cluster, skip_alignment);
    if (fattype == FAT_FAT12) {                                       
ffc0e5e0:	40 ba 00 30 	bne+    cr6,ffc0e610 <msdos_format+0x3a8>      
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc0e5e4:	40 9e 00 14 	bne-    cr7,ffc0e5f8 <msdos_format+0x390>      
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc0e5e8:	7c e0 4a 14 	add     r7,r0,r9                               
ffc0e5ec:	7c c9 00 d0 	neg     r6,r9                                  
ffc0e5f0:	7c c7 38 38 	and     r7,r6,r7                               
ffc0e5f4:	48 00 00 08 	b       ffc0e5fc <msdos_format+0x394>          
  else                                                                
    return sectors;                                                   
ffc0e5f8:	7c a7 2b 78 	mr      r7,r5                                  
     * - subtract from total cluster count                            
     */                                                               
    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                          
ffc0e5fc:	7d 07 40 50 	subf    r8,r7,r8                               
        - loc_align_object (root_dir_sector_cnt, sectors_per_cluster, skip_alignment);
      fatdata_cluster_cnt = fatdata_sect_cnt/sectors_per_cluster;     
ffc0e600:	7d 08 4b 96 	divwu   r8,r8,r9                               
      fat_capacity        = fatdata_cluster_cnt * 3 / 2;              
ffc0e604:	1c c8 00 03 	mulli   r6,r8,3                                
ffc0e608:	54 c6 f8 7e 	rlwinm  r6,r6,31,1,31                          
ffc0e60c:	48 00 00 38 	b       ffc0e644 <msdos_format+0x3dc>          
    }                                                                 
    else if (fattype == FAT_FAT16) {                                  
ffc0e610:	40 a6 00 2c 	bne+    cr1,ffc0e63c <msdos_format+0x3d4>      
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc0e614:	40 9e 00 14 	bne-    cr7,ffc0e628 <msdos_format+0x3c0>      
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc0e618:	7c e0 4a 14 	add     r7,r0,r9                               
ffc0e61c:	7c c9 00 d0 	neg     r6,r9                                  
ffc0e620:	7c c7 38 38 	and     r7,r6,r7                               
ffc0e624:	48 00 00 08 	b       ffc0e62c <msdos_format+0x3c4>          
  else                                                                
    return sectors;                                                   
ffc0e628:	7c a7 2b 78 	mr      r7,r5                                  
        - 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) {                                  
      fatdata_sect_cnt    = fatdata_sect_cnt                          
ffc0e62c:	7d 07 40 50 	subf    r8,r7,r8                               
        - loc_align_object (root_dir_sector_cnt, sectors_per_cluster, skip_alignment);
      fatdata_cluster_cnt = fatdata_sect_cnt/sectors_per_cluster;     
ffc0e630:	7d 08 4b 96 	divwu   r8,r8,r9                               
      fat_capacity        = fatdata_cluster_cnt * 2;                  
ffc0e634:	55 06 08 3c 	rlwinm  r6,r8,1,0,30                           
ffc0e638:	48 00 00 0c 	b       ffc0e644 <msdos_format+0x3dc>          
    }                                                                 
    else { /* FAT32 */                                                
      fatdata_cluster_cnt = fatdata_sect_cnt/sectors_per_cluster;     
ffc0e63c:	7d 08 4b 96 	divwu   r8,r8,r9                               
      fat_capacity        = fatdata_cluster_cnt * 4;                  
ffc0e640:	55 06 10 3a 	rlwinm  r6,r8,2,0,29                           
    }                                                                 
                                                                      
    sectors_per_fat = ((fat_capacity                                  
			+ (bytes_per_sector - 1))                                          
ffc0e644:	7c e6 1a 14 	add     r7,r6,r3                               
    else { /* FAT32 */                                                
      fatdata_cluster_cnt = fatdata_sect_cnt/sectors_per_cluster;     
      fat_capacity        = fatdata_cluster_cnt * 4;                  
    }                                                                 
                                                                      
    sectors_per_fat = ((fat_capacity                                  
ffc0e648:	7c e7 53 96 	divwu   r7,r7,r10                              
			+ (bytes_per_sector - 1))                                          
		       / bytes_per_sector);                                         
                                                                      
    fat_sectors_cnt = loc_align_object (sectors_per_fat * fat_num,    
ffc0e64c:	7c e7 21 d6 	mullw   r7,r7,r4                               
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc0e650:	40 9e 00 14 	bne-    cr7,ffc0e664 <msdos_format+0x3fc>      
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc0e654:	38 c9 ff ff 	addi    r6,r9,-1                               
ffc0e658:	7c e6 3a 14 	add     r7,r6,r7                               
ffc0e65c:	7c c9 00 d0 	neg     r6,r9                                  
ffc0e660:	7c e7 30 38 	and     r7,r7,r6                               
                                        sectors_per_cluster,          
                                        skip_alignment);              
                                                                      
    *data_cluster_cnt = (fatdata_cluster_cnt -                        
			((fat_sectors_cnt                                                  
			  + (sectors_per_cluster - 1))                                     
ffc0e664:	38 c9 ff ff 	addi    r6,r9,-1                               
ffc0e668:	7c c6 3a 14 	add     r6,r6,r7                               
			 / sectors_per_cluster));                                          
ffc0e66c:	7c c6 4b 96 	divwu   r6,r6,r9                               
                                                                      
    fat_sectors_cnt = loc_align_object (sectors_per_fat * fat_num,    
                                        sectors_per_cluster,          
                                        skip_alignment);              
                                                                      
    *data_cluster_cnt = (fatdata_cluster_cnt -                        
ffc0e670:	7d 06 40 50 	subf    r8,r6,r8                               
			  + (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)) ||
ffc0e674:	40 ba 00 14 	bne+    cr6,ffc0e688 <msdos_format+0x420>      
ffc0e678:	28 08 0f f5 	cmplwi  r8,4085                                
        ((fattype == FAT_FAT16) && (*data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
      sectors_per_cluster *= 2;                                       
    }                                                                 
    else {                                                            
      finished = true;                                                
ffc0e67c:	38 c0 00 01 	li      r6,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)) ||
ffc0e680:	40 81 00 24 	ble-    ffc0e6a4 <msdos_format+0x43c>          
ffc0e684:	48 00 00 14 	b       ffc0e698 <msdos_format+0x430>          
        ((fattype == FAT_FAT16) && (*data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
      sectors_per_cluster *= 2;                                       
    }                                                                 
    else {                                                            
      finished = true;                                                
ffc0e688:	38 c0 00 01 	li      r6,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)) ||
ffc0e68c:	40 a6 00 24 	bne+    cr1,ffc0e6b0 <msdos_format+0x448>      
        ((fattype == FAT_FAT16) && (*data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
ffc0e690:	28 08 ff f5 	cmplwi  r8,65525                               
ffc0e694:	40 81 00 1c 	ble-    ffc0e6b0 <msdos_format+0x448>          
      sectors_per_cluster *= 2;                                       
ffc0e698:	55 29 08 3c 	rlwinm  r9,r9,1,0,30                           
      finished = true;                                                
    }                                                                 
    /*                                                                
     * when maximum cluster size is exceeded, we have invalid data, abort...
     */                                                               
    if (fattype == FAT_FAT12) {                                       
ffc0e69c:	38 c0 00 00 	li      r6,0                                   
ffc0e6a0:	40 9a 00 10 	bne-    cr6,ffc0e6b0 <msdos_format+0x448>      
      if (MS_BYTES_PER_CLUSTER_LIMIT_FAT12 < (sectors_per_cluster * bytes_per_sector)) {
ffc0e6a4:	7d c9 51 d6 	mullw   r14,r9,r10                             
ffc0e6a8:	28 0e 10 00 	cmplwi  r14,4096                               
ffc0e6ac:	48 00 00 0c 	b       ffc0e6b8 <msdos_format+0x450>          
        finished = true;                                              
      }                                                               
    } else if ((sectors_per_cluster * bytes_per_sector)               
ffc0e6b0:	7d c9 51 d6 	mullw   r14,r9,r10                             
ffc0e6b4:	28 0e 80 00 	cmplwi  r14,32768                              
ffc0e6b8:	41 81 00 0c 	bgt-    ffc0e6c4 <msdos_format+0x45c>          
	> MS_BYTES_PER_CLUSTER_LIMIT) {                                      
      finished = true;                                                
    }                                                                 
  } while (!finished);                                                
ffc0e6bc:	2c 06 00 00 	cmpwi   r6,0                                   
ffc0e6c0:	41 82 ff 08 	beq+    ffc0e5c8 <msdos_format+0x360>          
                                                                      
  *sectors_per_cluster_adj = sectors_per_cluster;                     
  *sectors_per_fat_ptr     = fat_sectors_cnt / fat_num;               
ffc0e6c4:	7c e7 23 96 	divwu   r7,r7,r4                               
                                                        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;    
ffc0e6c8:	91 21 02 14 	stw     r9,532(r1)                             
    ( 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                       
ffc0e6cc:	2b 88 0f f4 	cmplwi  cr7,r8,4084                            
      finished = true;                                                
    }                                                                 
  } while (!finished);                                                
                                                                      
  *sectors_per_cluster_adj = sectors_per_cluster;                     
  *sectors_per_fat_ptr     = fat_sectors_cnt / fat_num;               
ffc0e6d0:	90 e1 02 18 	stw     r7,536(r1)                             
    ( 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                       
ffc0e6d4:	41 9d 00 1c 	bgt-    cr7,ffc0e6f0 <msdos_format+0x488>      
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 =                       
ffc0e6d8:	38 e0 10 01 	li      r7,4097                                
ffc0e6dc:	7c e7 53 96 	divwu   r7,r7,r10                              
  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                       
      && sectors_per_cluster <= ms_sectors_per_cluster_limit_FAT12 ) {
ffc0e6e0:	7f 89 38 40 	cmplw   cr7,r9,r7                              
    fattype = FAT_FAT12;                                              
ffc0e6e4:	39 00 00 01 	li      r8,1                                   
  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                       
      && sectors_per_cluster <= ms_sectors_per_cluster_limit_FAT12 ) {
ffc0e6e8:	41 bd 00 18 	bgt+    cr7,ffc0e700 <msdos_format+0x498>      
ffc0e6ec:	48 00 00 24 	b       ffc0e710 <msdos_format+0x4a8>          
    fattype = FAT_FAT12;                                              
  }                                                                   
  else if (   number_of_clusters < FAT_FAT16_MAX_CLN                  
ffc0e6f0:	2b 88 ff f4 	cmplwi  cr7,r8,65524                           
ffc0e6f4:	40 9d 00 0c 	ble-    cr7,ffc0e700 <msdos_format+0x498>      
{                                                                     
  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;                                        
ffc0e6f8:	39 00 00 04 	li      r8,4                                   
ffc0e6fc:	48 00 00 14 	b       ffc0e710 <msdos_format+0x4a8>          
                    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 =                       
ffc0e700:	7d 53 53 96 	divwu   r10,r19,r10                            
  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 ) {
ffc0e704:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc0e708:	41 bd ff f0 	bgt-    cr7,ffc0e6f8 <msdos_format+0x490>      <== NEVER TAKEN
    fattype = FAT_FAT16;                                              
ffc0e70c:	39 00 00 02 	li      r8,2                                   
          fmt_params->fattype = msdos_get_fat_type(                   
            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) {                      
ffc0e710:	7f 9c 40 00 	cmpw    cr7,r28,r8                             
        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(                   
ffc0e714:	99 01 02 3a 	stb     r8,570(r1)                             
            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) {                      
ffc0e718:	41 9e 00 4c 	beq-    cr7,ffc0e764 <msdos_format+0x4fc>      
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                             
ffc0e71c:	39 08 ff ff 	addi    r8,r8,-1                               
ffc0e720:	2b 88 00 01 	cmplwi  cr7,r8,1                               
ffc0e724:	39 20 00 1f 	li      r9,31                                  
    #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 )                                 
ffc0e728:	7d 29 03 a6 	mtctr   r9                                     
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                             
ffc0e72c:	41 bd 00 0c 	bgt+    cr7,ffc0e738 <msdos_format+0x4d0>      
      || fmt_params->fattype == FAT_FAT16 ) {                         
    /* start trying with small clusters */                            
    fmt_params->sectors_per_cluster = 2;                              
ffc0e730:	39 20 00 02 	li      r9,2                                   
ffc0e734:	48 00 00 1c 	b       ffc0e750 <msdos_format+0x4e8>          
    #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 )                                 
ffc0e738:	7e 2a 48 30 	slw     r10,r17,r9                             
ffc0e73c:	7d 47 d8 39 	and.    r7,r10,r27                             
ffc0e740:	40 82 00 0c 	bne-    ffc0e74c <msdos_format+0x4e4>          
  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-- ) {                                      
ffc0e744:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0e748:	42 00 ff f0 	bdnz+   ffc0e738 <msdos_format+0x4d0>          
      if ( (gigs & ( 1 << b) ) != 0 )                                 
        break;                                                        
    }                                                                 
    fmt_params->sectors_per_cluster = 1 << b;                         
ffc0e74c:	7e 29 48 30 	slw     r9,r17,r9                              
            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,
ffc0e750:	7f e3 fb 78 	mr      r3,r31                                 
    /* scale with the size of disk... */                              
    for ( b = 31; b > 0; b-- ) {                                      
      if ( (gigs & ( 1 << b) ) != 0 )                                 
        break;                                                        
    }                                                                 
    fmt_params->sectors_per_cluster = 1 << b;                         
ffc0e754:	91 21 02 14 	stw     r9,532(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,
ffc0e758:	7e 44 93 78 	mr      r4,r18                                 
ffc0e75c:	4b ff fa 81 	bl      ffc0e1dc <msdos_set_sectors_per_cluster_from_request>
ffc0e760:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                  fmt_params );
          }                                                           
        }                                                             
        if (fat_type != fmt_params->fattype && 1 < iteration_cnt) {   
ffc0e764:	89 21 02 3a 	lbz     r9,570(r1)                             
ffc0e768:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
ffc0e76c:	41 9e 00 18 	beq-    cr7,ffc0e784 <msdos_format+0x51c>      
ffc0e770:	2b 90 00 01 	cmplwi  cr7,r16,1                              
ffc0e774:	40 9d 00 10 	ble-    cr7,ffc0e784 <msdos_format+0x51c>      
          --fmt_params->totl_sector_cnt;                              
ffc0e778:	81 21 02 0c 	lwz     r9,524(r1)                             
ffc0e77c:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0e780:	91 21 02 0c 	stw     r9,524(r1)                             
        }                                                             
                                                                      
      }                                                               
                                                                      
      ++iteration_cnt;                                                
ffc0e784:	3a 10 00 01 	addi    r16,r16,1                              
ffc0e788:	56 10 06 3e 	clrlwi  r16,r16,24                             
    if (ret_val == 0) {                                               
      data_clusters_cnt =                                             
        fmt_params->totl_sector_cnt / fmt_params->sectors_per_cluster;
    }                                                                 
                                                                      
    while(   ret_val == 0                                             
ffc0e78c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0e790:	40 9e 00 1c 	bne-    cr7,ffc0e7ac <msdos_format+0x544>      <== NEVER TAKEN
          && fmt_params->fattype != fat_type                          
ffc0e794:	89 21 02 3a 	lbz     r9,570(r1)                             
ffc0e798:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
ffc0e79c:	41 9e 00 10 	beq-    cr7,ffc0e7ac <msdos_format+0x544>      
          && fmt_params->totl_sector_cnt > 0 ) {                      
ffc0e7a0:	81 21 02 0c 	lwz     r9,524(r1)                             
ffc0e7a4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e7a8:	40 9e fd 34 	bne+    cr7,ffc0e4dc <msdos_format+0x274>      <== ALWAYS TAKEN
      }                                                               
                                                                      
      ++iteration_cnt;                                                
    }                                                                 
  }                                                                   
  if ( fmt_params->totl_sector_cnt == 0 )                             
ffc0e7ac:	81 21 02 0c 	lwz     r9,524(r1)                             
ffc0e7b0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e7b4:	40 be 00 08 	bne+    cr7,ffc0e7bc <msdos_format+0x554>      <== ALWAYS TAKEN
ffc0e7b8:	48 00 00 b0 	b       ffc0e868 <msdos_format+0x600>          <== NOT EXECUTED
  {                                                                   
    errno = EINVAL;                                                   
    ret_val = -1;                                                     
  }                                                                   
                                                                      
  if (0 == ret_val)                                                   
ffc0e7bc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0e7c0:	40 9e 00 cc 	bne-    cr7,ffc0e88c <msdos_format+0x624>      
  {                                                                   
    if (FAT_FAT32 != fmt_params->fattype)                             
ffc0e7c4:	89 21 02 3a 	lbz     r9,570(r1)                             
ffc0e7c8:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc0e7cc:	41 9e 00 38 	beq-    cr7,ffc0e804 <msdos_format+0x59c>      
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc0e7d0:	89 01 02 58 	lbz     r8,600(r1)                             
                                                                      
  if (0 == ret_val)                                                   
  {                                                                   
    if (FAT_FAT32 != fmt_params->fattype)                             
    {                                                                 
      fmt_params->files_per_root_dir = loc_align_object (fmt_params->root_dir_sectors,
ffc0e7d4:	81 21 02 24 	lwz     r9,548(r1)                             
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc0e7d8:	2f 88 00 00 	cmpwi   cr7,r8,0                               
                                                                      
  if (0 == ret_val)                                                   
  {                                                                   
    if (FAT_FAT32 != fmt_params->fattype)                             
    {                                                                 
      fmt_params->files_per_root_dir = loc_align_object (fmt_params->root_dir_sectors,
ffc0e7dc:	81 41 02 14 	lwz     r10,532(r1)                            
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc0e7e0:	40 9e 00 14 	bne-    cr7,ffc0e7f4 <msdos_format+0x58c>      
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc0e7e4:	7d 29 52 14 	add     r9,r9,r10                              
ffc0e7e8:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0e7ec:	7d 4a 00 d0 	neg     r10,r10                                
ffc0e7f0:	7d 29 50 38 	and     r9,r9,r10                              
    if (FAT_FAT32 != fmt_params->fattype)                             
    {                                                                 
      fmt_params->files_per_root_dir = loc_align_object (fmt_params->root_dir_sectors,
                                                         fmt_params->sectors_per_cluster,
                                                         fmt_params->skip_alignment)
                                       * (fmt_params->bytes_per_sector / FAT_DIRENTRY_SIZE);
ffc0e7f4:	81 41 02 08 	lwz     r10,520(r1)                            
ffc0e7f8:	55 4a d9 7e 	rlwinm  r10,r10,27,5,31                        
ffc0e7fc:	7d 29 51 d6 	mullw   r9,r9,r10                              
                                                                      
  if (0 == ret_val)                                                   
  {                                                                   
    if (FAT_FAT32 != fmt_params->fattype)                             
    {                                                                 
      fmt_params->files_per_root_dir = loc_align_object (fmt_params->root_dir_sectors,
ffc0e800:	91 21 02 20 	stw     r9,544(r1)                             
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc0e804:	89 01 02 58 	lbz     r8,600(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,
ffc0e808:	81 21 02 10 	lwz     r9,528(r1)                             
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc0e80c:	2f 88 00 00 	cmpwi   cr7,r8,0                               
                                                         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,
ffc0e810:	81 41 02 14 	lwz     r10,532(r1)                            
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc0e814:	40 9e 00 14 	bne-    cr7,ffc0e828 <msdos_format+0x5c0>      
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc0e818:	7d 29 52 14 	add     r9,r9,r10                              
ffc0e81c:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0e820:	7d 4a 00 d0 	neg     r10,r10                                
ffc0e824:	7d 29 50 38 	and     r9,r9,r10                              
                                                                      
  /*                                                                  
   * determine media code                                             
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata != NULL) &&                                           
ffc0e828:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
                                                         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,
ffc0e82c:	91 21 02 10 	stw     r9,528(r1)                             
                                                                      
  /*                                                                  
   * determine media code                                             
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata != NULL) &&                                           
ffc0e830:	41 9e 00 54 	beq-    cr7,ffc0e884 <msdos_format+0x61c>      
	(rqdata->media != 0)) {                                              
ffc0e834:	8b 9f 00 14 	lbz     r28,20(r31)                            
                                                                      
  /*                                                                  
   * determine media code                                             
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata != NULL) &&                                           
ffc0e838:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0e83c:	41 9e 00 48 	beq-    cr7,ffc0e884 <msdos_format+0x61c>      
	(rqdata->media != 0)) {                                              
      const char valid_media_codes[] =                                
ffc0e840:	3d 20 ff c3 	lis     r9,-61                                 
ffc0e844:	38 61 00 08 	addi    r3,r1,8                                
ffc0e848:	39 29 b7 54 	addi    r9,r9,-18604                           
ffc0e84c:	7c a9 4c aa 	lswi    r5,r9,9                                
ffc0e850:	7c a3 4d aa 	stswi   r5,r3,9                                
	{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};                      
      if (NULL==memchr(valid_media_codes,                             
ffc0e854:	7f 84 e3 78 	mr      r4,r28                                 
ffc0e858:	38 a0 00 09 	li      r5,9                                   
ffc0e85c:	48 00 d6 89 	bl      ffc1bee4 <memchr>                      
ffc0e860:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e864:	40 be 00 18 	bne+    cr7,ffc0e87c <msdos_format+0x614>      <== NEVER TAKEN
		       rqdata->media,                                               
		       sizeof(valid_media_codes))) {                                
	ret_val = -1;                                                        
	errno = EINVAL;                                                      
ffc0e868:	48 00 cb 0d 	bl      ffc1b374 <__errno>                     
ffc0e86c:	39 20 00 16 	li      r9,22                                  
ffc0e870:	91 23 00 00 	stw     r9,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;                                                        
ffc0e874:	3b c0 ff ff 	li      r30,-1                                 
ffc0e878:	48 00 00 14 	b       ffc0e88c <msdos_format+0x624>          
	errno = EINVAL;                                                      
      }                                                               
      else {                                                          
	fmt_params->media_code = rqdata->media;                              
ffc0e87c:	9b 81 02 39 	stb     r28,569(r1)                            <== NOT EXECUTED
ffc0e880:	48 00 00 0c 	b       ffc0e88c <msdos_format+0x624>          <== NOT EXECUTED
      }                                                               
    }                                                                 
    else {                                                            
      fmt_params->media_code = FAT_BR_MEDIA_FIXED;                    
ffc0e884:	39 20 ff f8 	li      r9,-8                                  
ffc0e888:	99 21 02 39 	stb     r9,569(r1)                             
  }                                                                   
  /*                                                                  
   * determine location and size of root directory                    
   * for formatting                                                   
   */                                                                 
  if (fmt_params->root_dir_sectors > 0) {                             
ffc0e88c:	80 e1 02 24 	lwz     r7,548(r1)                             
ffc0e890:	89 01 02 38 	lbz     r8,568(r1)                             
ffc0e894:	81 41 02 18 	lwz     r10,536(r1)                            
ffc0e898:	2f 87 00 00 	cmpwi   cr7,r7,0                               
    fmt_params->root_dir_start_sec =                                  
      fmt_params->rsvd_sector_cnt                                     
      + (fmt_params-> fat_num*fmt_params->sectors_per_fat);           
ffc0e89c:	55 08 06 3e 	clrlwi  r8,r8,24                               
ffc0e8a0:	81 21 02 10 	lwz     r9,528(r1)                             
ffc0e8a4:	7d 48 51 d6 	mullw   r10,r8,r10                             
ffc0e8a8:	7d 2a 4a 14 	add     r9,r10,r9                              
  /*                                                                  
   * determine location and size of root directory                    
   * for formatting                                                   
   */                                                                 
  if (fmt_params->root_dir_sectors > 0) {                             
    fmt_params->root_dir_start_sec =                                  
ffc0e8ac:	91 21 02 28 	stw     r9,552(r1)                             
  }                                                                   
  /*                                                                  
   * determine location and size of root directory                    
   * for formatting                                                   
   */                                                                 
  if (fmt_params->root_dir_sectors > 0) {                             
ffc0e8b0:	41 9e 00 0c 	beq-    cr7,ffc0e8bc <msdos_format+0x654>      
    fmt_params->root_dir_start_sec =                                  
      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;  
ffc0e8b4:	90 e1 02 2c 	stw     r7,556(r1)                             
ffc0e8b8:	48 00 00 0c 	b       ffc0e8c4 <msdos_format+0x65c>          
     * 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);           
    fmt_params->root_dir_fmt_sec_cnt = fmt_params->sectors_per_cluster;
ffc0e8bc:	81 21 02 14 	lwz     r9,532(r1)                             
ffc0e8c0:	91 21 02 2c 	stw     r9,556(r1)                             
  }                                                                   
  /*                                                                  
   * determine usable OEMName                                         
   */                                                                 
  if (ret_val == 0) {                                                 
ffc0e8c4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0e8c8:	40 9e 07 3c 	bne-    cr7,ffc0f004 <msdos_format+0xd9c>      
      const char *from;                                               
      char        *to = fmt_params->OEMName;                          
      int          cnt;                                               
      from = "RTEMS"; /* default: make "from" point to OS Name */     
    if ((rqdata != NULL) &&                                           
ffc0e8cc:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0e8d0:	41 9e 00 10 	beq-    cr7,ffc0e8e0 <msdos_format+0x678>      
	(rqdata->OEMName != NULL)) {                                         
ffc0e8d4:	81 3f 00 00 	lwz     r9,0(r31)                              
  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) &&                                           
ffc0e8d8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e8dc:	40 be 00 0c 	bne+    cr7,ffc0e8e8 <msdos_format+0x680>      
   */                                                                 
  if (ret_val == 0) {                                                 
      const char *from;                                               
      char        *to = fmt_params->OEMName;                          
      int          cnt;                                               
      from = "RTEMS"; /* default: make "from" point to OS Name */     
ffc0e8e0:	3d 20 ff c3 	lis     r9,-61                                 
ffc0e8e4:	39 29 b7 85 	addi    r9,r9,-18555                           
      from = rqdata->OEMName;                                         
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->OEMName)-1);                              
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
ffc0e8e8:	3d 40 00 00 	lis     r10,0                                  
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
      }                                                               
      *to = '\0';                                                     
ffc0e8ec:	39 00 00 09 	li      r8,9                                   
      from = rqdata->OEMName;                                         
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->OEMName)-1);                              
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
ffc0e8f0:	80 ca 27 a8 	lwz     r6,10152(r10)                          
ffc0e8f4:	38 a0 ff 97 	li      r5,-105                                
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
      }                                                               
      *to = '\0';                                                     
ffc0e8f8:	7d 09 03 a6 	mtctr   r8                                     
  /*                                                                  
   * determine usable OEMName                                         
   */                                                                 
  if (ret_val == 0) {                                                 
      const char *from;                                               
      char        *to = fmt_params->OEMName;                          
ffc0e8fc:	39 41 02 3b 	addi    r10,r1,571                             
	/*                                                                   
	 * non-printable character in given name, so keep stuck              
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
ffc0e900:	38 80 00 20 	li      r4,32                                  
      }                                                               
      *to = '\0';                                                     
ffc0e904:	38 60 00 00 	li      r3,0                                   
ffc0e908:	48 00 00 38 	b       ffc0e940 <msdos_format+0x6d8>          
      from = rqdata->OEMName;                                         
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->OEMName)-1);                              
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
ffc0e90c:	88 e9 00 00 	lbz     r7,0(r9)                               
ffc0e910:	7d 06 3a 14 	add     r8,r6,r7                               
ffc0e914:	89 08 00 01 	lbz     r8,1(r8)                               
ffc0e918:	7d 0b 28 39 	and.    r11,r8,r5                              
ffc0e91c:	39 0a 00 01 	addi    r8,r10,1                               
ffc0e920:	41 82 00 14 	beq-    ffc0e934 <msdos_format+0x6cc>          
	*to++ = *from++;                                                     
ffc0e924:	98 ea 00 00 	stb     r7,0(r10)                              
ffc0e928:	39 29 00 01 	addi    r9,r9,1                                
ffc0e92c:	7d 0a 43 78 	mr      r10,r8                                 
ffc0e930:	48 00 00 0c 	b       ffc0e93c <msdos_format+0x6d4>          
	/*                                                                   
	 * non-printable character in given name, so keep stuck              
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
ffc0e934:	98 8a 00 00 	stb     r4,0(r10)                              
ffc0e938:	7d 0a 43 78 	mr      r10,r8                                 
      }                                                               
      *to = '\0';                                                     
ffc0e93c:	98 68 00 00 	stb     r3,0(r8)                               
      from = "RTEMS"; /* default: make "from" point to OS Name */     
    if ((rqdata != NULL) &&                                           
	(rqdata->OEMName != NULL)) {                                         
      from = rqdata->OEMName;                                         
    }                                                                 
    for (cnt = 0;                                                     
ffc0e940:	42 00 ff cc 	bdnz+   ffc0e90c <msdos_format+0x6a4>          
ffc0e944:	48 00 06 84 	b       ffc0efc8 <msdos_format+0xd60>          
      const char *from;                                               
      char        *to = fmt_params->VolLabel;                         
      int          cnt;                                               
      from = ""; /* default: make "from" point to empty string */     
    if ((rqdata != NULL) &&                                           
	(rqdata->VolLabel != NULL)) {                                        
ffc0e948:	81 3f 00 04 	lwz     r9,4(r31)                              
  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) &&                                           
ffc0e94c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e950:	41 9e 00 10 	beq-    cr7,ffc0e960 <msdos_format+0x6f8>      
	(rqdata->VolLabel != NULL)) {                                        
      from = rqdata->VolLabel;                                        
      fmt_params->VolLabel_present = true;                            
ffc0e954:	39 40 00 01 	li      r10,1                                  
ffc0e958:	99 41 02 50 	stb     r10,592(r1)                            
ffc0e95c:	48 00 00 0c 	b       ffc0e968 <msdos_format+0x700>          
   */                                                                 
  if (ret_val == 0) {                                                 
      const char *from;                                               
      char        *to = fmt_params->VolLabel;                         
      int          cnt;                                               
      from = ""; /* default: make "from" point to empty string */     
ffc0e960:	3d 20 ff c3 	lis     r9,-61                                 
ffc0e964:	39 29 b6 45 	addi    r9,r9,-18875                           
      fmt_params->VolLabel_present = true;                            
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->VolLabel)-1);                             
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
ffc0e968:	3d 40 00 00 	lis     r10,0                                  
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
      }                                                               
      *to = '\0';                                                     
ffc0e96c:	38 e0 00 0c 	li      r7,12                                  
      fmt_params->VolLabel_present = true;                            
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->VolLabel)-1);                             
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
ffc0e970:	80 ca 27 a8 	lwz     r6,10152(r10)                          
ffc0e974:	38 a0 ff 97 	li      r5,-105                                
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
      }                                                               
      *to = '\0';                                                     
ffc0e978:	7c e9 03 a6 	mtctr   r7                                     
  /*                                                                  
   * determine usable Volume Label                                    
   */                                                                 
  if (ret_val == 0) {                                                 
      const char *from;                                               
      char        *to = fmt_params->VolLabel;                         
ffc0e97c:	39 41 02 44 	addi    r10,r1,580                             
	/*                                                                   
	 * non-printable character in given name, so keep stuck              
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
ffc0e980:	38 80 00 20 	li      r4,32                                  
      }                                                               
      *to = '\0';                                                     
ffc0e984:	38 60 00 00 	li      r3,0                                   
ffc0e988:	48 00 00 38 	b       ffc0e9c0 <msdos_format+0x758>          
      fmt_params->VolLabel_present = true;                            
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->VolLabel)-1);                             
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
ffc0e98c:	88 e9 00 00 	lbz     r7,0(r9)                               
ffc0e990:	7d 06 3a 14 	add     r8,r6,r7                               
ffc0e994:	89 08 00 01 	lbz     r8,1(r8)                               
ffc0e998:	7d 0b 28 39 	and.    r11,r8,r5                              
ffc0e99c:	39 0a 00 01 	addi    r8,r10,1                               
ffc0e9a0:	41 82 00 14 	beq-    ffc0e9b4 <msdos_format+0x74c>          
	*to++ = *from++;                                                     
ffc0e9a4:	98 ea 00 00 	stb     r7,0(r10)                              
ffc0e9a8:	39 29 00 01 	addi    r9,r9,1                                
ffc0e9ac:	7d 0a 43 78 	mr      r10,r8                                 
ffc0e9b0:	48 00 00 0c 	b       ffc0e9bc <msdos_format+0x754>          
	/*                                                                   
	 * non-printable character in given name, so keep stuck              
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
ffc0e9b4:	98 8a 00 00 	stb     r4,0(r10)                              
ffc0e9b8:	7d 0a 43 78 	mr      r10,r8                                 
      }                                                               
      *to = '\0';                                                     
ffc0e9bc:	98 68 00 00 	stb     r3,0(r8)                               
    if ((rqdata != NULL) &&                                           
	(rqdata->VolLabel != NULL)) {                                        
      from = rqdata->VolLabel;                                        
      fmt_params->VolLabel_present = true;                            
    }                                                                 
    for (cnt = 0;                                                     
ffc0e9c0:	42 00 ff cc 	bdnz+   ffc0e98c <msdos_format+0x724>          
ffc0e9c4:	48 00 06 10 	b       ffc0efd4 <msdos_format+0xd6c>          
  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;               
ffc0e9c8:	81 21 00 08 	lwz     r9,8(r1)                               <== NOT EXECUTED
ffc0e9cc:	55 29 08 3c 	rlwinm  r9,r9,1,0,30                           <== NOT EXECUTED
ffc0e9d0:	91 21 02 54 	stw     r9,596(r1)                             <== NOT EXECUTED
ffc0e9d4:	48 00 00 0c 	b       ffc0e9e0 <msdos_format+0x778>          <== NOT EXECUTED
  }                                                                   
  else {                                                              
    *volid_ptr = rand();                                              
ffc0e9d8:	48 00 e2 79 	bl      ffc1cc50 <rand>                        
ffc0e9dc:	90 61 02 54 	stw     r3,596(r1)                             
    ret_val = msdos_format_determine_fmt_params(fd,rqdata,&fmt_params);
  }                                                                   
  /*                                                                  
   * if requested, write whole disk/partition with 0xe5               
   */                                                                 
  if ((ret_val == 0) &&                                               
ffc0e9e0:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0e9e4:	40 be 00 40 	bne+    cr7,ffc0ea24 <msdos_format+0x7bc>      
   */                                                                 
  if (ret_val == 0) {                                                 
    /*                                                                
     * Read the current MBR to obtain the partition table.            
     */                                                               
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc0e9e8:	3c a0 ff c3 	lis     r5,-61                                 
ffc0e9ec:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e9f0:	38 80 00 02 	li      r4,2                                   
ffc0e9f4:	38 a5 b8 1d 	addi    r5,r5,-18403                           
ffc0e9f8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0e9fc:	4b ff f5 9d 	bl      ffc0df98 <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)) {     
ffc0ea00:	7f a3 eb 78 	mr      r3,r29                                 
ffc0ea04:	38 a0 00 00 	li      r5,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,                               
ffc0ea08:	83 c1 02 08 	lwz     r30,520(r1)                            
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
  int ret_val = 0;                                                    
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
ffc0ea0c:	38 c0 00 00 	li      r6,0                                   
ffc0ea10:	38 e0 00 00 	li      r7,0                                   
ffc0ea14:	48 00 6b a1 	bl      ffc155b4 <lseek>                       
ffc0ea18:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ea1c:	40 bc 05 cc 	bge+    cr7,ffc0efe8 <msdos_format+0xd80>      <== ALWAYS TAKEN
ffc0ea20:	48 00 06 18 	b       ffc0f038 <msdos_format+0xdd0>          <== NOT EXECUTED
  }                                                                   
  /*                                                                  
   * if requested, write whole disk/partition with 0xe5               
   */                                                                 
  if ((ret_val == 0) &&                                               
      (rqdata != NULL) &&                                             
ffc0ea24:	89 3f 00 15 	lbz     r9,21(r31)                             
ffc0ea28:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ea2c:	40 9e ff bc 	bne+    cr7,ffc0e9e8 <msdos_format+0x780>      
      !(rqdata->quick_format)) {                                      
    ret_val = msdos_format_fill_sectors                               
ffc0ea30:	80 c1 02 0c 	lwz     r6,524(r1)                             
ffc0ea34:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ea38:	80 e1 02 08 	lwz     r7,520(r1)                             
ffc0ea3c:	7f a4 eb 78 	mr      r4,r29                                 
ffc0ea40:	38 a0 00 00 	li      r5,0                                   
ffc0ea44:	39 00 00 e5 	li      r8,229                                 
ffc0ea48:	4b ff f6 55 	bl      ffc0e09c <msdos_format_fill_sectors>   
  }                                                                   
                                                                      
  /*                                                                  
   * create master boot record                                        
   */                                                                 
  if (ret_val == 0) {                                                 
ffc0ea4c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0ea50:	40 a2 05 b4 	bne+    ffc0f004 <msdos_format+0xd9c>          <== NEVER TAKEN
ffc0ea54:	4b ff ff 94 	b       ffc0e9e8 <msdos_format+0x780>          
{                                                                     
  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) {                        
ffc0ea58:	7f dc f3 78 	mr      r28,r30                                
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
  uint32_t  total_sectors_num16 = 0;                                  
  uint32_t  total_sectors_num32 = 0;                                  
ffc0ea5c:	3b c0 00 00 	li      r30,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);                     
ffc0ea60:	38 61 00 08 	addi    r3,r1,8                                
ffc0ea64:	38 80 00 00 	li      r4,0                                   
ffc0ea68:	38 a0 01 be 	li      r5,446                                 
ffc0ea6c:	48 00 d6 dd 	bl      ffc1c148 <memset>                      
  memset(mbr + RTEMS_IDE_PARTITION_TABLE_OFFSET + RTEMS_IDE_PARTITION_TABLE_SIZE,
ffc0ea70:	39 00 00 00 	li      r8,0                                   
ffc0ea74:	b1 01 02 06 	sth     r8,518(r1)                             
   */                                                                 
  /*                                                                  
   * fill OEMName                                                     
   */                                                                 
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
	 fmt_params->OEMName,                                                
ffc0ea78:	39 41 02 3b 	addi    r10,r1,571                             
   * with 0xEB,....                                                   
   */                                                                 
  /*                                                                  
   * fill OEMName                                                     
   */                                                                 
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
ffc0ea7c:	39 21 00 0b 	addi    r9,r1,11                               
ffc0ea80:	7c ca 44 aa 	lswi    r6,r10,8                               
ffc0ea84:	7c c9 45 aa 	stswi   r6,r9,8                                
  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 */
ffc0ea88:	38 c0 00 02 	li      r6,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... */
ffc0ea8c:	38 e0 00 01 	li      r7,1                                   
   * 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); 
ffc0ea90:	81 21 02 08 	lwz     r9,520(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);          
  if (fmt_params->fattype != FAT_FAT32) {                             
ffc0ea94:	89 41 02 3a 	lbz     r10,570(r1)                            
   * 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); 
ffc0ea98:	99 21 00 13 	stb     r9,19(r1)                              
ffc0ea9c:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
  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);          
  if (fmt_params->fattype != FAT_FAT32) {                             
ffc0eaa0:	2f 8a 00 04 	cmpwi   cr7,r10,4                              
   * 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); 
ffc0eaa4:	99 21 00 14 	stb     r9,20(r1)                              
  FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
ffc0eaa8:	81 21 02 14 	lwz     r9,532(r1)                             
  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);          
ffc0eaac:	9b 81 00 1b 	stb     r28,27(r1)                             
ffc0eab0:	57 9c c2 3e 	rlwinm  r28,r28,24,8,31                        
   */                                                                 
  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);
ffc0eab4:	99 21 00 15 	stb     r9,21(r1)                              
  FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);  
ffc0eab8:	81 21 02 10 	lwz     r9,528(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);          
ffc0eabc:	9b c1 00 28 	stb     r30,40(r1)                             
  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);  
ffc0eac0:	99 21 00 16 	stb     r9,22(r1)                              
ffc0eac4:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc0eac8:	99 21 00 17 	stb     r9,23(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);
ffc0eacc:	81 21 02 20 	lwz     r9,544(r1)                             
  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 */
ffc0ead0:	98 c1 00 18 	stb     r6,24(r1)                              
  FAT_SET_BR_FILES_PER_ROOT_DIR(mbr  , fmt_params->files_per_root_dir);
ffc0ead4:	99 21 00 19 	stb     r9,25(r1)                              
ffc0ead8:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc0eadc:	99 21 00 1a 	stb     r9,26(r1)                              
  FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);          
  FAT_SET_BR_MEDIA(mbr               , fmt_params->media_code);       
ffc0eae0:	89 21 02 39 	lbz     r9,569(r1)                             
  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);          
ffc0eae4:	9b 81 00 1c 	stb     r28,28(r1)                             
  FAT_SET_BR_MEDIA(mbr               , fmt_params->media_code);       
ffc0eae8:	99 21 00 1d 	stb     r9,29(r1)                              
                                                                      
  FAT_SET_BR_SECTORS_PER_TRACK(mbr   , 255); /* only needed for INT13... */
ffc0eaec:	39 20 ff ff 	li      r9,-1                                  
ffc0eaf0:	99 21 00 20 	stb     r9,32(r1)                              
  FAT_SET_BR_NUMBER_OF_HEADS(mbr     , 6);   /* only needed for INT13... */
ffc0eaf4:	39 20 00 06 	li      r9,6                                   
ffc0eaf8:	99 21 00 22 	stb     r9,34(r1)                              
  FAT_SET_BR_HIDDEN_SECTORS(mbr      , 1);   /* only needed for INT13... */
                                                                      
  FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);          
ffc0eafc:	57 c9 c6 3e 	rlwinm  r9,r30,24,24,31                        
ffc0eb00:	99 21 00 29 	stb     r9,41(r1)                              
ffc0eb04:	57 c9 84 3e 	rlwinm  r9,r30,16,16,31                        
ffc0eb08:	57 de 46 3e 	rlwinm  r30,r30,8,24,31                        
ffc0eb0c:	99 21 00 2a 	stb     r9,42(r1)                              
  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... */
ffc0eb10:	98 e1 00 24 	stb     r7,36(r1)                              
                                                                      
  FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);          
ffc0eb14:	9b c1 00 2b 	stb     r30,43(r1)                             
ffc0eb18:	81 21 02 18 	lwz     r9,536(r1)                             
  if (fmt_params->fattype != FAT_FAT32) {                             
ffc0eb1c:	41 9e 00 74 	beq-    cr7,ffc0eb90 <msdos_format+0x928>      
    FAT_SET_BR_SECTORS_PER_FAT(mbr   ,fmt_params->sectors_per_fat);   
ffc0eb20:	99 21 00 1e 	stb     r9,30(r1)                              
ffc0eb24:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
    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),                                 
	 fmt_params->VolLabel,                                               
	 FAT_BR_VOLLAB_SIZE);                                                
    memcpy(FAT_GET_ADDR_BR_FILSYSTYPE(mbr),                           
ffc0eb28:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
  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);   
ffc0eb2c:	99 21 00 1f 	stb     r9,31(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);           
ffc0eb30:	39 20 00 29 	li      r9,41                                  
    FAT_SET_BR_VOLID(mbr             , fmt_params->vol_id); /* volume id */
  memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),                                 
	 fmt_params->VolLabel,                                               
ffc0eb34:	38 81 02 44 	addi    r4,r1,580                              
  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);           
ffc0eb38:	99 21 00 2e 	stb     r9,46(r1)                              
    FAT_SET_BR_VOLID(mbr             , fmt_params->vol_id); /* volume id */
ffc0eb3c:	81 21 02 54 	lwz     r9,596(r1)                             
ffc0eb40:	55 28 c6 3e 	rlwinm  r8,r9,24,24,31                         
ffc0eb44:	99 21 00 2f 	stb     r9,47(r1)                              
ffc0eb48:	99 01 00 30 	stb     r8,48(r1)                              
ffc0eb4c:	55 28 84 3e 	rlwinm  r8,r9,16,16,31                         
ffc0eb50:	55 29 46 3e 	rlwinm  r9,r9,8,24,31                          
ffc0eb54:	99 21 00 32 	stb     r9,50(r1)                              
  memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),                                 
ffc0eb58:	39 21 00 33 	addi    r9,r1,51                               
  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 */
ffc0eb5c:	99 01 00 31 	stb     r8,49(r1)                              
  memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),                                 
ffc0eb60:	7c a4 5c aa 	lswi    r5,r4,11                               
ffc0eb64:	7c a9 5d aa 	stswi   r5,r9,11                               
	 fmt_params->VolLabel,                                               
	 FAT_BR_VOLLAB_SIZE);                                                
    memcpy(FAT_GET_ADDR_BR_FILSYSTYPE(mbr),                           
ffc0eb68:	40 be 00 10 	bne+    cr7,ffc0eb78 <msdos_format+0x910>      
ffc0eb6c:	3d 20 ff c3 	lis     r9,-61                                 
ffc0eb70:	39 29 b7 8b 	addi    r9,r9,-18549                           
ffc0eb74:	48 00 00 0c 	b       ffc0eb80 <msdos_format+0x918>          
ffc0eb78:	3d 20 ff c3 	lis     r9,-61                                 
ffc0eb7c:	39 29 b7 94 	addi    r9,r9,-18540                           
ffc0eb80:	39 41 00 3e 	addi    r10,r1,62                              
ffc0eb84:	7c e9 44 aa 	lswi    r7,r9,8                                
ffc0eb88:	7c ea 45 aa 	stswi   r7,r10,8                               
ffc0eb8c:	48 00 00 74 	b       ffc0ec00 <msdos_format+0x998>          
	   ? "FAT12   "                                                      
	   : "FAT16   ",                                                     
	   FAT_BR_FILSYSTYPE_SIZE);                                          
  }                                                                   
  else {                                                              
    FAT_SET_BR_SECTORS_PER_FAT32(mbr   ,fmt_params->sectors_per_fat); 
ffc0eb90:	55 2a c6 3e 	rlwinm  r10,r9,24,24,31                        
ffc0eb94:	99 21 00 2c 	stb     r9,44(r1)                              
ffc0eb98:	99 41 00 2d 	stb     r10,45(r1)                             
ffc0eb9c:	55 2a 84 3e 	rlwinm  r10,r9,16,16,31                        
ffc0eba0:	55 29 46 3e 	rlwinm  r9,r9,8,24,31                          
ffc0eba4:	99 21 00 2f 	stb     r9,47(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 */
ffc0eba8:	81 21 02 30 	lwz     r9,560(r1)                             
	   ? "FAT12   "                                                      
	   : "FAT16   ",                                                     
	   FAT_BR_FILSYSTYPE_SIZE);                                          
  }                                                                   
  else {                                                              
    FAT_SET_BR_SECTORS_PER_FAT32(mbr   ,fmt_params->sectors_per_fat); 
ffc0ebac:	99 41 00 2e 	stb     r10,46(r1)                             
    FAT_SET_BR_FAT32_BK_BOOT_SECTOR(mbr, fmt_params->mbr_copy_sec ); /* Put MBR copy to rsrvd sec */
    memset(FAT_GET_ADDR_BR_FAT32_RESERVED(mbr),0,FAT_BR_FAT32_RESERVED_SIZE);
                                                                      
    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);      
ffc0ebb0:	39 40 00 29 	li      r10,41                                 
    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 */
    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 */
ffc0ebb4:	99 21 00 3a 	stb     r9,58(r1)                              
ffc0ebb8:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc0ebbc:	99 21 00 3b 	stb     r9,59(r1)                              
    memset(FAT_GET_ADDR_BR_FAT32_RESERVED(mbr),0,FAT_BR_FAT32_RESERVED_SIZE);
ffc0ebc0:	39 20 00 00 	li      r9,0                                   
                                                                      
    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);      
ffc0ebc4:	99 41 00 4a 	stb     r10,74(r1)                             
    FAT_SET_BR_FAT32_VOLID(mbr       , 0); /* not set */              
    memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr)   ,0,FAT_BR_VOLLAB_SIZE);
    memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),                     
ffc0ebc8:	3d 40 ff c3 	lis     r10,-61                                
ffc0ebcc:	39 4a b8 2e 	addi    r10,r10,-18386                         
    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 */
    memset(FAT_GET_ADDR_BR_FAT32_RESERVED(mbr),0,FAT_BR_FAT32_RESERVED_SIZE);
ffc0ebd0:	91 21 00 3c 	stw     r9,60(r1)                              
ffc0ebd4:	91 21 00 40 	stw     r9,64(r1)                              
ffc0ebd8:	91 21 00 44 	stw     r9,68(r1)                              
                                                                      
    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);      
    FAT_SET_BR_FAT32_VOLID(mbr       , 0); /* not set */              
    memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr)   ,0,FAT_BR_VOLLAB_SIZE);
ffc0ebdc:	91 21 00 4f 	stw     r9,79(r1)                              
ffc0ebe0:	91 21 00 53 	stw     r9,83(r1)                              
ffc0ebe4:	b1 21 00 57 	sth     r9,87(r1)                              
    memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),                     
ffc0ebe8:	39 21 00 5a 	addi    r9,r1,90                               
  }                                                                   
  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 */
ffc0ebec:	98 c1 00 34 	stb     r6,52(r1)                              
    FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo  to rsrvd sec 1*/
ffc0ebf0:	98 e1 00 38 	stb     r7,56(r1)                              
                                                                      
    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);      
    FAT_SET_BR_FAT32_VOLID(mbr       , 0); /* not set */              
    memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr)   ,0,FAT_BR_VOLLAB_SIZE);
ffc0ebf4:	99 01 00 59 	stb     r8,89(r1)                              
    memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),                     
ffc0ebf8:	7c ca 44 aa 	lswi    r6,r10,8                               
ffc0ebfc:	7c c9 45 aa 	stswi   r6,r9,8                                
	   FAT_BR_FILSYSTYPE_SIZE);                                          
  }                                                                   
  /*                                                                  
   * add boot record signature                                        
   */                                                                 
  FAT_SET_BR_SIGNATURE(mbr,      FAT_BR_SIGNATURE_VAL);               
ffc0ec00:	39 20 00 55 	li      r9,85                                  
ffc0ec04:	99 21 02 06 	stb     r9,518(r1)                             
ffc0ec08:	39 20 ff aa 	li      r9,-86                                 
    /*                                                                
     * 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,       
ffc0ec0c:	3c a0 ff c3 	lis     r5,-61                                 
	   FAT_BR_FILSYSTYPE_SIZE);                                          
  }                                                                   
  /*                                                                  
   * add boot record signature                                        
   */                                                                 
  FAT_SET_BR_SIGNATURE(mbr,      FAT_BR_SIGNATURE_VAL);               
ffc0ec10:	99 21 02 07 	stb     r9,519(r1)                             
                                                                      
  /*                                                                  
   * add jump to boot loader at start of sector                       
   */                                                                 
  FAT_SET_VAL8(mbr,0,0xeb);                                           
ffc0ec14:	39 20 ff eb 	li      r9,-21                                 
    /*                                                                
     * 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,       
ffc0ec18:	7f e3 fb 78 	mr      r3,r31                                 
  FAT_SET_BR_SIGNATURE(mbr,      FAT_BR_SIGNATURE_VAL);               
                                                                      
  /*                                                                  
   * add jump to boot loader at start of sector                       
   */                                                                 
  FAT_SET_VAL8(mbr,0,0xeb);                                           
ffc0ec1c:	99 21 00 08 	stb     r9,8(r1)                               
  FAT_SET_VAL8(mbr,1,0x3c);                                           
ffc0ec20:	39 20 00 3c 	li      r9,60                                  
    /*                                                                
     * 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,       
ffc0ec24:	38 80 00 02 	li      r4,2                                   
                                                                      
  /*                                                                  
   * add jump to boot loader at start of sector                       
   */                                                                 
  FAT_SET_VAL8(mbr,0,0xeb);                                           
  FAT_SET_VAL8(mbr,1,0x3c);                                           
ffc0ec28:	99 21 00 09 	stb     r9,9(r1)                               
    /*                                                                
     * 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,       
ffc0ec2c:	38 a5 b8 37 	addi    r5,r5,-18377                           
  /*                                                                  
   * add jump to boot loader at start of sector                       
   */                                                                 
  FAT_SET_VAL8(mbr,0,0xeb);                                           
  FAT_SET_VAL8(mbr,1,0x3c);                                           
  FAT_SET_VAL8(mbr,2,0x90);                                           
ffc0ec30:	39 20 ff 90 	li      r9,-112                                
ffc0ec34:	99 21 00 0a 	stb     r9,10(r1)                              
    /*                                                                
     * 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,       
ffc0ec38:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0ec3c:	4b ff f3 5d 	bl      ffc0df98 <msdos_format_printf>         
                           "write MRB sector\n");                     
      ret_val = msdos_format_write_sec(fd,                            
ffc0ec40:	7f a3 eb 78 	mr      r3,r29                                 
ffc0ec44:	80 a1 02 08 	lwz     r5,520(r1)                             
ffc0ec48:	38 80 00 00 	li      r4,0                                   
ffc0ec4c:	38 c1 00 08 	addi    r6,r1,8                                
ffc0ec50:	4b ff f3 f5 	bl      ffc0e044 <msdos_format_write_sec>      
                                       0,                             
                                       fmt_params.bytes_per_sector,   
                                       tmp_sec);                      
    }                                                                 
    if ((ret_val == 0) &&                                             
ffc0ec54:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0ec58:	40 82 03 ac 	bne-    ffc0f004 <msdos_format+0xd9c>          <== NEVER TAKEN
ffc0ec5c:	81 21 02 30 	lwz     r9,560(r1)                             
ffc0ec60:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ec64:	40 9e 00 14 	bne-    cr7,ffc0ec78 <msdos_format+0xa10>      
  }                                                                   
  /*                                                                  
   * for FAT32: initialize info sector on disk                        
   */                                                                 
  if ((ret_val == 0) &&                                               
      (fmt_params.fsinfo_sec != 0)) {                                 
ffc0ec68:	83 c1 02 34 	lwz     r30,564(r1)                            
    }                                                                 
  }                                                                   
  /*                                                                  
   * for FAT32: initialize info sector on disk                        
   */                                                                 
  if ((ret_val == 0) &&                                               
ffc0ec6c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0ec70:	41 be 00 d0 	beq+    cr7,ffc0ed40 <msdos_format+0xad8>      
ffc0ec74:	48 00 00 3c 	b       ffc0ecb0 <msdos_format+0xa48>          
    if ((ret_val == 0) &&                                             
        (fmt_params.mbr_copy_sec != 0)) {                             
      /*                                                              
       * write copy of MBR                                            
       */                                                             
      msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,       
ffc0ec78:	3c a0 ff c3 	lis     r5,-61                                 
ffc0ec7c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ec80:	38 80 00 02 	li      r4,2                                   
ffc0ec84:	38 a5 b8 49 	addi    r5,r5,-18359                           
ffc0ec88:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0ec8c:	4b ff f3 0d 	bl      ffc0df98 <msdos_format_printf>         
                           "write back up MRB sector\n");             
      ret_val = msdos_format_write_sec(fd,                            
ffc0ec90:	80 81 02 30 	lwz     r4,560(r1)                             
ffc0ec94:	80 a1 02 08 	lwz     r5,520(r1)                             
ffc0ec98:	7f a3 eb 78 	mr      r3,r29                                 
ffc0ec9c:	38 c1 00 08 	addi    r6,r1,8                                
ffc0eca0:	4b ff f3 a5 	bl      ffc0e044 <msdos_format_write_sec>      
    }                                                                 
  }                                                                   
  /*                                                                  
   * for FAT32: initialize info sector on disk                        
   */                                                                 
  if ((ret_val == 0) &&                                               
ffc0eca4:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0eca8:	41 82 ff c0 	beq+    ffc0ec68 <msdos_format+0xa00>          <== ALWAYS TAKEN
ffc0ecac:	48 00 03 58 	b       ffc0f004 <msdos_format+0xd9c>          <== NOT EXECUTED
\*=========================================================================*/
{                                                                     
  /*                                                                  
   * clear fsinfo sector data                                         
   */                                                                 
  memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);                             
ffc0ecb0:	38 80 00 00 	li      r4,0                                   
ffc0ecb4:	38 a0 02 00 	li      r5,512                                 
ffc0ecb8:	38 61 00 08 	addi    r3,r1,8                                
ffc0ecbc:	48 00 d4 8d 	bl      ffc1c148 <memset>                      
  /*                                                                  
   * write LEADSIG, STRUCTSIG, TRAILSIG                               
   */                                                                 
  FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
ffc0ecc0:	39 20 00 52 	li      r9,82                                  
ffc0ecc4:	99 21 00 08 	stb     r9,8(r1)                               
ffc0ecc8:	39 40 00 41 	li      r10,65                                 
  FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
ffc0eccc:	39 00 00 72 	li      r8,114                                 
   */                                                                 
  memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);                             
  /*                                                                  
   * write LEADSIG, STRUCTSIG, TRAILSIG                               
   */                                                                 
  FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
ffc0ecd0:	99 21 00 09 	stb     r9,9(r1)                               
ffc0ecd4:	39 20 00 61 	li      r9,97                                  
  /*                                                                  
   * write fsinfo sector                                              
   */                                                                 
  if ((ret_val == 0) &&                                               
      (fmt_params.fsinfo_sec != 0)) {                                 
    ret_val = msdos_format_write_sec(fd,                              
ffc0ecd8:	7f c4 f3 78 	mr      r4,r30                                 
   */                                                                 
  memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);                             
  /*                                                                  
   * write LEADSIG, STRUCTSIG, TRAILSIG                               
   */                                                                 
  FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
ffc0ecdc:	99 21 00 0a 	stb     r9,10(r1)                              
  /*                                                                  
   * write fsinfo sector                                              
   */                                                                 
  if ((ret_val == 0) &&                                               
      (fmt_params.fsinfo_sec != 0)) {                                 
    ret_val = msdos_format_write_sec(fd,                              
ffc0ece0:	7f a3 eb 78 	mr      r3,r29                                 
ffc0ece4:	38 c1 00 08 	addi    r6,r1,8                                
  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);
ffc0ece8:	99 21 01 ef 	stb     r9,495(r1)                             
  FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
ffc0ecec:	39 20 00 55 	li      r9,85                                  
ffc0ecf0:	99 21 02 06 	stb     r9,518(r1)                             
ffc0ecf4:	39 20 ff aa 	li      r9,-86                                 
  /*                                                                  
   * write fsinfo sector                                              
   */                                                                 
  if ((ret_val == 0) &&                                               
      (fmt_params.fsinfo_sec != 0)) {                                 
    ret_val = msdos_format_write_sec(fd,                              
ffc0ecf8:	80 a1 02 08 	lwz     r5,520(r1)                             
  /*                                                                  
   * 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);
  FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
ffc0ecfc:	99 21 02 07 	stb     r9,519(r1)                             
  /*                                                                  
   * write "empty" values for free cluster count and next cluster number
   */                                                                 
  FAT_SET_FSINFO_FREE_CLUSTER_COUNT(fsinfo+FAT_FSI_INFO,              
ffc0ed00:	39 20 ff ff 	li      r9,-1                                  
   */                                                                 
  memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);                             
  /*                                                                  
   * write LEADSIG, STRUCTSIG, TRAILSIG                               
   */                                                                 
  FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
ffc0ed04:	99 41 00 0b 	stb     r10,11(r1)                             
  FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
ffc0ed08:	99 01 01 ec 	stb     r8,492(r1)                             
ffc0ed0c:	99 01 01 ed 	stb     r8,493(r1)                             
ffc0ed10:	99 41 01 ee 	stb     r10,494(r1)                            
  FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
  /*                                                                  
   * write "empty" values for free cluster count and next cluster number
   */                                                                 
  FAT_SET_FSINFO_FREE_CLUSTER_COUNT(fsinfo+FAT_FSI_INFO,              
ffc0ed14:	99 21 01 f0 	stb     r9,496(r1)                             
ffc0ed18:	99 21 01 f1 	stb     r9,497(r1)                             
ffc0ed1c:	99 21 01 f2 	stb     r9,498(r1)                             
ffc0ed20:	99 21 01 f3 	stb     r9,499(r1)                             
				    0xffffffff);                                                  
  FAT_SET_FSINFO_NEXT_FREE_CLUSTER (fsinfo+FAT_FSI_INFO,              
ffc0ed24:	99 21 01 f4 	stb     r9,500(r1)                             
ffc0ed28:	99 21 01 f5 	stb     r9,501(r1)                             
ffc0ed2c:	99 21 01 f6 	stb     r9,502(r1)                             
ffc0ed30:	99 21 01 f7 	stb     r9,503(r1)                             
  /*                                                                  
   * write fsinfo sector                                              
   */                                                                 
  if ((ret_val == 0) &&                                               
      (fmt_params.fsinfo_sec != 0)) {                                 
    ret_val = msdos_format_write_sec(fd,                              
ffc0ed34:	4b ff f3 11 	bl      ffc0e044 <msdos_format_write_sec>      
  }                                                                   
  /*                                                                  
   * write FAT as all empty                                           
   * -> write all FAT sectors as zero                                 
   */                                                                 
  if (ret_val == 0) {                                                 
ffc0ed38:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0ed3c:	40 a2 02 c8 	bne+    ffc0f004 <msdos_format+0xd9c>          <== NEVER TAKEN
    ret_val = msdos_format_fill_sectors                               
      (rqdata,                                                        
ffc0ed40:	88 c1 02 38 	lbz     r6,568(r1)                             
  /*                                                                  
   * write FAT as all empty                                           
   * -> write all FAT sectors as zero                                 
   */                                                                 
  if (ret_val == 0) {                                                 
    ret_val = msdos_format_fill_sectors                               
ffc0ed44:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ed48:	81 21 02 18 	lwz     r9,536(r1)                             
ffc0ed4c:	7f a4 eb 78 	mr      r4,r29                                 
ffc0ed50:	80 a1 02 10 	lwz     r5,528(r1)                             
ffc0ed54:	39 00 00 00 	li      r8,0                                   
ffc0ed58:	7c c6 49 d6 	mullw   r6,r6,r9                               
ffc0ed5c:	80 e1 02 08 	lwz     r7,520(r1)                             
ffc0ed60:	4b ff f3 3d 	bl      ffc0e09c <msdos_format_fill_sectors>   
  }                                                                   
  /*                                                                  
   * clear/init root directory                                        
   * -> write all directory sectors as 0x00                           
   */                                                                 
  if (ret_val == 0) {                                                 
ffc0ed64:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0ed68:	40 82 02 9c 	bne-    ffc0f004 <msdos_format+0xd9c>          <== NEVER TAKEN
    ret_val = msdos_format_fill_sectors                               
ffc0ed6c:	80 a1 02 28 	lwz     r5,552(r1)                             
ffc0ed70:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ed74:	80 c1 02 2c 	lwz     r6,556(r1)                             
ffc0ed78:	7f a4 eb 78 	mr      r4,r29                                 
ffc0ed7c:	80 e1 02 08 	lwz     r7,520(r1)                             
ffc0ed80:	39 00 00 00 	li      r8,0                                   
ffc0ed84:	4b ff f3 19 	bl      ffc0e09c <msdos_format_fill_sectors>   
       0x00);                                                         
  }                                                                   
  /*                                                                  
   * write volume label to first entry of directory                   
   */                                                                 
  if ((ret_val == 0) && fmt_params.VolLabel_present) {                
ffc0ed88:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0ed8c:	40 82 02 78 	bne-    ffc0f004 <msdos_format+0xd9c>          <== NEVER TAKEN
ffc0ed90:	89 21 02 50 	lbz     r9,592(r1)                             
ffc0ed94:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ed98:	40 9e 00 34 	bne-    cr7,ffc0edcc <msdos_format+0xb64>      
    uint32_t start_sector;                                            
                                                                      
    /*                                                                
     * empty sector: all clusters are free/do not link further on     
     */                                                               
    memset(tmp_sec,0,sizeof(tmp_sec));                                
ffc0ed9c:	38 61 00 08 	addi    r3,r1,8                                
ffc0eda0:	38 80 00 00 	li      r4,0                                   
ffc0eda4:	38 a0 02 00 	li      r5,512                                 
ffc0eda8:	48 00 d3 a1 	bl      ffc1c148 <memset>                      
                                                                      
    switch(fmt_params.fattype) {                                      
ffc0edac:	89 21 02 3a 	lbz     r9,570(r1)                             
ffc0edb0:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc0edb4:	41 9e 00 7c 	beq-    cr7,ffc0ee30 <msdos_format+0xbc8>      
ffc0edb8:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc0edbc:	41 9e 00 94 	beq-    cr7,ffc0ee50 <msdos_format+0xbe8>      
ffc0edc0:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0edc4:	40 be 00 c0 	bne+    cr7,ffc0ee84 <msdos_format+0xc1c>      <== NEVER TAKEN
ffc0edc8:	48 00 00 4c 	b       ffc0ee14 <msdos_format+0xbac>          
  }                                                                   
  /*                                                                  
   * write volume label to first entry of directory                   
   */                                                                 
  if ((ret_val == 0) && fmt_params.VolLabel_present) {                
    memset(tmp_sec,0,sizeof(tmp_sec));                                
ffc0edcc:	3b 81 00 08 	addi    r28,r1,8                               
ffc0edd0:	38 a0 02 00 	li      r5,512                                 
ffc0edd4:	38 80 00 00 	li      r4,0                                   
ffc0edd8:	7f 83 e3 78 	mr      r3,r28                                 
ffc0eddc:	48 00 d3 6d 	bl      ffc1c148 <memset>                      
    memcpy(MSDOS_DIR_NAME(tmp_sec),fmt_params.VolLabel,MSDOS_SHORT_NAME_LEN);
ffc0ede0:	39 21 02 44 	addi    r9,r1,580                              
ffc0ede4:	7c a9 5c aa 	lswi    r5,r9,11                               
ffc0ede8:	7c bc 5d aa 	stswi   r5,r28,11                              
    *MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;                  
    ret_val = msdos_format_write_sec                                  
ffc0edec:	7f a3 eb 78 	mr      r3,r29                                 
   * 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);
    *MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;                  
ffc0edf0:	39 20 00 08 	li      r9,8                                   
    ret_val = msdos_format_write_sec                                  
ffc0edf4:	80 81 02 28 	lwz     r4,552(r1)                             
ffc0edf8:	7f 86 e3 78 	mr      r6,r28                                 
ffc0edfc:	80 a1 02 08 	lwz     r5,520(r1)                             
   * 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);
    *MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;                  
ffc0ee00:	99 21 00 13 	stb     r9,19(r1)                              
    ret_val = msdos_format_write_sec                                  
ffc0ee04:	4b ff f2 41 	bl      ffc0e044 <msdos_format_write_sec>      
  /*                                                                  
   * 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) {                                                 
ffc0ee08:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0ee0c:	40 a2 01 48 	bne+    ffc0ef54 <msdos_format+0xcec>          <== NEVER TAKEN
ffc0ee10:	4b ff ff 8c 	b       ffc0ed9c <msdos_format+0xb34>          
    memset(tmp_sec,0,sizeof(tmp_sec));                                
                                                                      
    switch(fmt_params.fattype) {                                      
    case FAT_FAT12:                                                   
      /* LSBits of FAT entry 0: media_type */                         
      FAT_SET_VAL8(tmp_sec,0,(fmt_params.media_code));                
ffc0ee14:	89 21 02 39 	lbz     r9,569(r1)                             
ffc0ee18:	99 21 00 08 	stb     r9,8(r1)                               
      /* 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)));          
ffc0ee1c:	39 20 ff 8f 	li      r9,-113                                
ffc0ee20:	99 21 00 09 	stb     r9,9(r1)                               
      /* MSBits of FAT entry 1: MSBits of EOC */                      
      FAT_SET_VAL8(tmp_sec,2,(FAT_FAT12_EOC >> 4));                   
ffc0ee24:	39 20 ff ff 	li      r9,-1                                  
ffc0ee28:	99 21 00 0a 	stb     r9,10(r1)                              
      break;                                                          
ffc0ee2c:	48 00 00 68 	b       ffc0ee94 <msdos_format+0xc2c>          
                                                                      
    case FAT_FAT16:                                                   
      /* FAT entry 0: 0xff00|media_type */                            
      FAT_SET_VAL8(tmp_sec,0,fmt_params.media_code);                  
ffc0ee30:	89 21 02 39 	lbz     r9,569(r1)                             
      FAT_SET_VAL8(tmp_sec,1,0xff);                                   
      /* FAT entry 1: EOC */                                          
      FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);                         
ffc0ee34:	39 40 ff f8 	li      r10,-8                                 
ffc0ee38:	99 41 00 0a 	stb     r10,10(r1)                             
      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);                  
ffc0ee3c:	99 21 00 08 	stb     r9,8(r1)                               
      FAT_SET_VAL8(tmp_sec,1,0xff);                                   
ffc0ee40:	39 20 ff ff 	li      r9,-1                                  
ffc0ee44:	99 21 00 09 	stb     r9,9(r1)                               
      /* FAT entry 1: EOC */                                          
      FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);                         
ffc0ee48:	99 21 00 0b 	stb     r9,11(r1)                              
      break;                                                          
ffc0ee4c:	48 00 00 48 	b       ffc0ee94 <msdos_format+0xc2c>          
                                                                      
    case FAT_FAT32:                                                   
      /* FAT entry 0: 0xffffff00|media_type */                        
      FAT_SET_VAL32(tmp_sec,0,0xffffff00|fmt_params.media_code);      
ffc0ee50:	89 21 02 39 	lbz     r9,569(r1)                             
      /* FAT entry 1: EOC */                                          
      FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);                         
ffc0ee54:	39 40 ff f8 	li      r10,-8                                 
ffc0ee58:	99 41 00 0c 	stb     r10,12(r1)                             
      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);      
ffc0ee5c:	99 21 00 08 	stb     r9,8(r1)                               
ffc0ee60:	39 20 ff ff 	li      r9,-1                                  
ffc0ee64:	99 21 00 09 	stb     r9,9(r1)                               
ffc0ee68:	99 21 00 0a 	stb     r9,10(r1)                              
ffc0ee6c:	99 21 00 0b 	stb     r9,11(r1)                              
      /* FAT entry 1: EOC */                                          
      FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);                         
ffc0ee70:	99 21 00 0d 	stb     r9,13(r1)                              
ffc0ee74:	99 21 00 0e 	stb     r9,14(r1)                              
ffc0ee78:	39 20 00 0f 	li      r9,15                                  
ffc0ee7c:	99 21 00 0f 	stb     r9,15(r1)                              
      break;                                                          
ffc0ee80:	48 00 00 14 	b       ffc0ee94 <msdos_format+0xc2c>          
                                                                      
    default:                                                          
      ret_val = -1;                                                   
      errno = EINVAL;                                                 
ffc0ee84:	48 00 c4 f1 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc0ee88:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc0ee8c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
      /* FAT entry 1: EOC */                                          
      FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);                         
      break;                                                          
                                                                      
    default:                                                          
      ret_val = -1;                                                   
ffc0ee90:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
      errno = EINVAL;                                                 
    }                                                                 
    if (fmt_params.fattype == FAT_FAT32) {                            
ffc0ee94:	89 21 02 3a 	lbz     r9,570(r1)                             
ffc0ee98:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc0ee9c:	40 be 00 20 	bne+    cr7,ffc0eebc <msdos_format+0xc54>      
      /*                                                              
       * 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);                         
ffc0eea0:	39 20 ff f8 	li      r9,-8                                  
ffc0eea4:	99 21 00 10 	stb     r9,16(r1)                              
ffc0eea8:	39 20 ff ff 	li      r9,-1                                  
ffc0eeac:	99 21 00 11 	stb     r9,17(r1)                              
ffc0eeb0:	99 21 00 12 	stb     r9,18(r1)                              
ffc0eeb4:	39 20 00 0f 	li      r9,15                                  
ffc0eeb8:	99 21 00 13 	stb     r9,19(r1)                              
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc0eebc:	89 41 02 58 	lbz     r10,600(r1)                            
       * 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,      
ffc0eec0:	83 81 02 10 	lwz     r28,528(r1)                            
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc0eec4:	2f 8a 00 00 	cmpwi   cr7,r10,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,      
ffc0eec8:	81 21 02 14 	lwz     r9,532(r1)                             
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc0eecc:	40 9e 00 14 	bne-    cr7,ffc0eee0 <msdos_format+0xc78>      
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc0eed0:	7f 9c 4a 14 	add     r28,r28,r9                             
ffc0eed4:	3b 9c ff ff 	addi    r28,r28,-1                             
ffc0eed8:	7d 29 00 d0 	neg     r9,r9                                  
ffc0eedc:	7f 9c 48 38 	and     r28,r28,r9                             
    }                                                                 
                                                                      
    start_sector = loc_align_object (fmt_params.rsvd_sector_cnt,      
                                     fmt_params.sectors_per_cluster,  
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
ffc0eee0:	7f c3 f3 78 	mr      r3,r30                                 
ffc0eee4:	3b c0 00 00 	li      r30,0                                  
ffc0eee8:	48 00 00 24 	b       ffc0ef0c <msdos_format+0xca4>          
	 (i < fmt_params.fat_num) && (ret_val == 0);                         
	 i++) {                                                              
      ret_val = msdos_format_write_sec                                
        (fd,                                                          
         start_sector                                                 
         + (i * fmt_params.sectors_per_fat),                          
ffc0eeec:	80 81 02 18 	lwz     r4,536(r1)                             
                                     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                                
ffc0eef0:	7f a3 eb 78 	mr      r3,r29                                 
ffc0eef4:	80 a1 02 08 	lwz     r5,520(r1)                             
ffc0eef8:	38 c1 00 08 	addi    r6,r1,8                                
        (fd,                                                          
         start_sector                                                 
         + (i * fmt_params.sectors_per_fat),                          
ffc0eefc:	7c 9e 21 d6 	mullw   r4,r30,r4                              
    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++) {                                                              
ffc0ef00:	3b de 00 01 	addi    r30,r30,1                              
      ret_val = msdos_format_write_sec                                
ffc0ef04:	7c 84 e2 14 	add     r4,r4,r28                              
ffc0ef08:	4b ff f1 3d 	bl      ffc0e044 <msdos_format_write_sec>      
                                                                      
    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);                         
ffc0ef0c:	89 21 02 38 	lbz     r9,568(r1)                             
ffc0ef10:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    }                                                                 
                                                                      
    start_sector = loc_align_object (fmt_params.rsvd_sector_cnt,      
                                     fmt_params.sectors_per_cluster,  
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
ffc0ef14:	7f 1e 48 00 	cmpw    cr6,r30,r9                             
ffc0ef18:	40 98 00 0c 	bge-    cr6,ffc0ef24 <msdos_format+0xcbc>      
	 (i < fmt_params.fat_num) && (ret_val == 0);                         
ffc0ef1c:	41 9e ff d0 	beq+    cr7,ffc0eeec <msdos_format+0xc84>      <== ALWAYS TAKEN
ffc0ef20:	48 00 00 34 	b       ffc0ef54 <msdos_format+0xcec>          <== NOT EXECUTED
    }                                                                 
                                                                      
    start_sector = loc_align_object (fmt_params.rsvd_sector_cnt,      
                                     fmt_params.sectors_per_cluster,  
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
ffc0ef24:	7c 7e 1b 78 	mr      r30,r3                                 
         fmt_params.bytes_per_sector,                                 
         tmp_sec);                                                    
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val == 0 && rqdata != NULL && rqdata->sync_device) {        
ffc0ef28:	40 9e 00 30 	bne-    cr7,ffc0ef58 <msdos_format+0xcf0>      <== NEVER TAKEN
ffc0ef2c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0ef30:	41 9e 00 28 	beq-    cr7,ffc0ef58 <msdos_format+0xcf0>      
ffc0ef34:	89 3f 00 17 	lbz     r9,23(r31)                             
ffc0ef38:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ef3c:	41 be 00 1c 	beq+    cr7,ffc0ef58 <msdos_format+0xcf0>      
  return ioctl(fd, RTEMS_BLKIO_GETDISKDEV, dd_ptr);                   
}                                                                     
                                                                      
static inline int rtems_disk_fd_sync(int fd)                          
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_SYNCDEV);                              
ffc0ef40:	3c 80 20 00 	lis     r4,8192                                
ffc0ef44:	7f a3 eb 78 	mr      r3,r29                                 
ffc0ef48:	60 84 42 06 	ori     r4,r4,16902                            
ffc0ef4c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0ef50:	48 00 65 d5 	bl      ffc15524 <ioctl>                       
ffc0ef54:	7c 7e 1b 78 	mr      r30,r3                                 
  /*                                                                  
   * cleanup:                                                         
   * sync and unlock disk                                             
   * free any data structures (not needed now)                        
   */                                                                 
  if (fd != -1) {                                                     
ffc0ef58:	2f 9d ff ff 	cmpwi   cr7,r29,-1                             
ffc0ef5c:	41 9e 00 e4 	beq-    cr7,ffc0f040 <msdos_format+0xdd8>      <== NEVER TAKEN
    close(fd);                                                        
ffc0ef60:	7f a3 eb 78 	mr      r3,r29                                 
ffc0ef64:	4b ff 6c f1 	bl      ffc05c54 <close>                       
ffc0ef68:	48 00 00 d8 	b       ffc0f040 <msdos_format+0xdd8>          
  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));                           
ffc0ef6c:	38 80 00 00 	li      r4,0                                   
ffc0ef70:	38 a0 00 54 	li      r5,84                                  
ffc0ef74:	38 61 02 08 	addi    r3,r1,520                              
ffc0ef78:	48 00 d1 d1 	bl      ffc1c148 <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);    
ffc0ef7c:	3c 80 40 04 	lis     r4,16388                               
ffc0ef80:	7f a3 eb 78 	mr      r3,r29                                 
ffc0ef84:	60 84 42 02 	ori     r4,r4,16898                            
ffc0ef88:	38 a1 02 08 	addi    r5,r1,520                              
ffc0ef8c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0ef90:	48 00 65 95 	bl      ffc15524 <ioctl>                       
   * 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) {                                                 
ffc0ef94:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0ef98:	40 82 f8 14 	bne+    ffc0e7ac <msdos_format+0x544>          <== NEVER TAKEN
ffc0ef9c:	4b ff f3 a0 	b       ffc0e33c <msdos_format+0xd4>           
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val == 0)                                                   
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc0efa0:	3c a0 ff c3 	lis     r5,-61                                 
ffc0efa4:	88 c1 02 38 	lbz     r6,568(r1)                             
ffc0efa8:	7f e3 fb 78 	mr      r3,r31                                 
ffc0efac:	38 80 00 02 	li      r4,2                                   
ffc0efb0:	38 a5 b8 63 	addi    r5,r5,-18333                           
ffc0efb4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0efb8:	4b ff ef e1 	bl      ffc0df98 <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) {         
ffc0efbc:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0efc0:	40 9e f4 08 	bne+    cr7,ffc0e3c8 <msdos_format+0x160>      
ffc0efc4:	4b ff f4 14 	b       ffc0e3d8 <msdos_format+0x170>          
  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) &&                                           
ffc0efc8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0efcc:	40 9e f9 7c 	bne+    cr7,ffc0e948 <msdos_format+0x6e0>      
ffc0efd0:	4b ff f9 90 	b       ffc0e960 <msdos_format+0x6f8>          
{                                                                     
  int ret_val = 0;                                                    
  int rc;                                                             
  struct timeval time_value;                                          
                                                                      
  rc = rtems_clock_get_tod_timeval(&time_value);                      
ffc0efd4:	38 61 00 08 	addi    r3,r1,8                                
ffc0efd8:	48 00 6e 75 	bl      ffc15e4c <rtems_clock_get_tod_timeval> 
  if (rc == RTEMS_SUCCESSFUL) {                                       
ffc0efdc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0efe0:	41 9e f9 e8 	beq+    cr7,ffc0e9c8 <msdos_format+0x760>      <== NEVER TAKEN
ffc0efe4:	4b ff f9 f4 	b       ffc0e9d8 <msdos_format+0x770>          
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
    ret_val = -1;                                                     
  }                                                                   
  if (ret_val == 0) {                                                 
    if (0 > read(fd,buffer,sector_size)) {                            
ffc0efe8:	7f a3 eb 78 	mr      r3,r29                                 
ffc0efec:	38 81 00 08 	addi    r4,r1,8                                
ffc0eff0:	7f c5 f3 78 	mr      r5,r30                                 
ffc0eff4:	48 00 68 ed 	bl      ffc158e0 <read>                        
ffc0eff8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0effc:	40 bc 00 10 	bge+    cr7,ffc0f00c <msdos_format+0xda4>      <== ALWAYS TAKEN
ffc0f000:	48 00 00 38 	b       ffc0f038 <msdos_format+0xdd0>          <== NOT EXECUTED
    }                                                                 
  }                                                                   
  if ( fmt_params->totl_sector_cnt == 0 )                             
  {                                                                   
    errno = EINVAL;                                                   
    ret_val = -1;                                                     
ffc0f004:	7f c3 f3 78 	mr      r3,r30                                 
ffc0f008:	4b ff ff 4c 	b       ffc0ef54 <msdos_format+0xcec>          
    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,       
ffc0f00c:	3c a0 ff c3 	lis     r5,-61                                 
ffc0f010:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f014:	38 80 00 02 	li      r4,2                                   
ffc0f018:	38 a5 b8 77 	addi    r5,r5,-18313                           
ffc0f01c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0f020:	4b ff ef 79 	bl      ffc0df98 <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) {                        
ffc0f024:	83 c1 02 0c 	lwz     r30,524(r1)                            
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
  uint32_t  total_sectors_num16 = 0;                                  
ffc0f028:	3b 80 00 00 	li      r28,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) {                        
ffc0f02c:	2b 9e ff ff 	cmplwi  cr7,r30,65535                          
ffc0f030:	41 bd fa 30 	bgt-    cr7,ffc0ea60 <msdos_format+0x7f8>      
ffc0f034:	4b ff fa 24 	b       ffc0ea58 <msdos_format+0x7f0>          
    }                                                                 
  }                                                                   
  if ( fmt_params->totl_sector_cnt == 0 )                             
  {                                                                   
    errno = EINVAL;                                                   
    ret_val = -1;                                                     
ffc0f038:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc0f03c:	4b ff ff c8 	b       ffc0f004 <msdos_format+0xd9c>          <== NOT EXECUTED
  if (fd != -1) {                                                     
    close(fd);                                                        
  }                                                                   
                                                                      
  return ret_val;                                                     
}                                                                     
ffc0f040:	81 81 02 ac 	lwz     r12,684(r1)                            
ffc0f044:	39 61 02 f8 	addi    r11,r1,760                             
ffc0f048:	7f c3 f3 78 	mr      r3,r30                                 
ffc0f04c:	7d 80 81 20 	mtcrf   8,r12                                  
ffc0f050:	4b ff 25 68 	b       ffc015b8 <_restgpr_14_x>               
                                                                      

ffc0e09c <msdos_format_fill_sectors>: ) /*-------------------------------------------------------------------------*\ | Return Value: | | 0, if success, -1 and errno if failed | \*=========================================================================*/ {
ffc0e09c:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc0e0a0:	7c 08 02 a6 	mflr    r0                                     
ffc0e0a4:	be a1 00 0c 	stmw    r21,12(r1)                             
ffc0e0a8:	7c 7d 1b 78 	mr      r29,r3                                 
                                                                      
  /*                                                                  
   * allocate and fill buffer                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    fill_buffer = malloc(sector_size);                                
ffc0e0ac:	7c e3 3b 78 	mr      r3,r7                                  
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc0e0b0:	90 01 00 3c 	stw     r0,60(r1)                              
ffc0e0b4:	7c 96 23 78 	mr      r22,r4                                 
ffc0e0b8:	7c bf 2b 78 	mr      r31,r5                                 
ffc0e0bc:	7c db 33 78 	mr      r27,r6                                 
ffc0e0c0:	7c fa 3b 78 	mr      r26,r7                                 
ffc0e0c4:	7d 1e 43 78 	mr      r30,r8                                 
                                                                      
  /*                                                                  
   * allocate and fill buffer                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    fill_buffer = malloc(sector_size);                                
ffc0e0c8:	4b ff 81 c5 	bl      ffc0628c <malloc>                      
    if (fill_buffer == NULL) {                                        
ffc0e0cc:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc0e0d0:	40 a2 00 18 	bne+    ffc0e0e8 <msdos_format_fill_sectors+0x4c><== ALWAYS TAKEN
      errno = ENOMEM;                                                 
ffc0e0d4:	48 00 d2 a1 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc0e0d8:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc0e0dc:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
      ret_val = -1;                                                   
ffc0e0e0:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc0e0e4:	48 00 00 14 	b       ffc0e0f8 <msdos_format_fill_sectors+0x5c><== NOT EXECUTED
    }                                                                 
    else {                                                            
      memset(fill_buffer,fill_byte,sector_size);                      
ffc0e0e8:	7f c4 f3 78 	mr      r4,r30                                 
ffc0e0ec:	7f 45 d3 78 	mr      r5,r26                                 
ffc0e0f0:	48 00 e0 59 	bl      ffc1c148 <memset>                      
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
  int ret_val = 0;                                                    
ffc0e0f4:	3b c0 00 00 	li      r30,0                                  
    else {                                                            
      memset(fill_buffer,fill_byte,sector_size);                      
    }                                                                 
  }                                                                   
                                                                      
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
ffc0e0f8:	3c a0 ff c3 	lis     r5,-61                                 
ffc0e0fc:	7f a3 eb 78 	mr      r3,r29                                 
ffc0e100:	38 80 00 02 	li      r4,2                                   
ffc0e104:	38 a5 b7 5d 	addi    r5,r5,-18595                           
  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, ".");
ffc0e108:	3e a0 ff c3 	lis     r21,-61                                
    else {                                                            
      memset(fill_buffer,fill_byte,sector_size);                      
    }                                                                 
  }                                                                   
                                                                      
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
ffc0e10c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0e110:	4b ff fe 89 	bl      ffc0df98 <msdos_format_printf>         
ffc0e114:	1f 3b 00 64 	mulli   r25,r27,100                            
}                                                                     
                                                                      
/*=========================================================================* \
| Function:                                                                 |
\*-------------------------------------------------------------------------*/
static int msdos_format_fill_sectors                                  
ffc0e118:	7e fb fa 14 	add     r23,r27,r31                            
\*=========================================================================*/
{                                                                     
  int ret_val = 0;                                                    
  char *fill_buffer = NULL;                                           
  uint32_t total_sectors = sector_cnt;                                
  int last_percent = -1;                                              
ffc0e11c:	3b 00 ff ff 	li      r24,-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, ".");
ffc0e120:	3a b5 bb ad 	addi    r21,r21,-17491                         
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
                       "Filling : ");                                 
  /*                                                                  
   * write to consecutive sectors                                     
   */                                                                 
  while ((ret_val == 0) &&                                            
ffc0e124:	48 00 00 50 	b       ffc0e174 <msdos_format_fill_sectors+0xd8>
	 (sector_cnt > 0)) {                                                 
    int percent = (sector_cnt * 100) / total_sectors;                 
ffc0e128:	7d 39 db 96 	divwu   r9,r25,r27                             
    if (percent != last_percent) {                                    
ffc0e12c:	7f 89 c0 00 	cmpw    cr7,r9,r24                             
ffc0e130:	41 9e 00 24 	beq-    cr7,ffc0e154 <msdos_format_fill_sectors+0xb8>
      if ((percent & 1) == 0)                                         
ffc0e134:	7d 38 4b 78 	mr      r24,r9                                 
ffc0e138:	73 09 00 01 	andi.   r9,r24,1                               
ffc0e13c:	40 a2 00 18 	bne+    ffc0e154 <msdos_format_fill_sectors+0xb8>
        msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
ffc0e140:	7f a3 eb 78 	mr      r3,r29                                 
ffc0e144:	38 80 00 02 	li      r4,2                                   
ffc0e148:	7e a5 ab 78 	mr      r5,r21                                 
ffc0e14c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0e150:	4b ff fe 49 	bl      ffc0df98 <msdos_format_printf>         
      last_percent = percent;                                         
    }                                                                 
    ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
ffc0e154:	7f e4 fb 78 	mr      r4,r31                                 
ffc0e158:	7e c3 b3 78 	mr      r3,r22                                 
ffc0e15c:	7f 45 d3 78 	mr      r5,r26                                 
ffc0e160:	7f 86 e3 78 	mr      r6,r28                                 
ffc0e164:	4b ff fe e1 	bl      ffc0e044 <msdos_format_write_sec>      
    start_sector++;                                                   
ffc0e168:	3b ff 00 01 	addi    r31,r31,1                              
    if (percent != last_percent) {                                    
      if ((percent & 1) == 0)                                         
        msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
      last_percent = percent;                                         
    }                                                                 
    ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
ffc0e16c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0e170:	3b 39 ff 9c 	addi    r25,r25,-100                           
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
                       "Filling : ");                                 
  /*                                                                  
   * write to consecutive sectors                                     
   */                                                                 
  while ((ret_val == 0) &&                                            
ffc0e174:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0e178:	40 9e 00 0c 	bne-    cr7,ffc0e184 <msdos_format_fill_sectors+0xe8><== NEVER TAKEN
ffc0e17c:	7f 9f b8 00 	cmpw    cr7,r31,r23                            
ffc0e180:	40 9e ff a8 	bne+    cr7,ffc0e128 <msdos_format_fill_sectors+0x8c>
    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");    
ffc0e184:	3c a0 ff c3 	lis     r5,-61                                 
ffc0e188:	7f a3 eb 78 	mr      r3,r29                                 
ffc0e18c:	38 80 00 02 	li      r4,2                                   
ffc0e190:	38 a5 b5 7f 	addi    r5,r5,-19073                           
ffc0e194:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0e198:	4b ff fe 01 	bl      ffc0df98 <msdos_format_printf>         
                                                                      
  if (ret_val)                                                        
ffc0e19c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0e1a0:	41 be 00 20 	beq+    cr7,ffc0e1c0 <msdos_format_fill_sectors+0x124><== ALWAYS TAKEN
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,           
ffc0e1a4:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc0e1a8:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc0e1ac:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc0e1b0:	38 a5 b7 68 	addi    r5,r5,-18584                           <== NOT EXECUTED
ffc0e1b4:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc0e1b8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc0e1bc:	4b ff fd dd 	bl      ffc0df98 <msdos_format_printf>         <== NOT EXECUTED
                         "filling error on sector: %d\n", start_sector);
                                                                      
  /*                                                                  
   * cleanup                                                          
   */                                                                 
  if (fill_buffer != NULL) {                                          
ffc0e1c0:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0e1c4:	41 9e 00 0c 	beq-    cr7,ffc0e1d0 <msdos_format_fill_sectors+0x134><== NEVER TAKEN
    free(fill_buffer);                                                
ffc0e1c8:	7f 83 e3 78 	mr      r3,r28                                 
ffc0e1cc:	4b ff 7b 11 	bl      ffc05cdc <free>                        
    fill_buffer = NULL;                                               
  }                                                                   
  return ret_val;                                                     
}                                                                     
ffc0e1d0:	39 61 00 38 	addi    r11,r1,56                              
ffc0e1d4:	7f c3 f3 78 	mr      r3,r30                                 
ffc0e1d8:	4b ff 33 fc 	b       ffc015d4 <_restgpr_21_x>               
                                                                      

ffc0df98 <msdos_format_printf>: */ static void msdos_format_printf (const msdos_format_request_param_t *rqdata, int info_level, const char *format, ...) {
ffc0df98:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0df9c:	7c 08 02 a6 	mflr    r0                                     
ffc0dfa0:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc0dfa4:	90 01 00 7c 	stw     r0,124(r1)                             
ffc0dfa8:	48 01 bf 41 	bl      ffc29ee8 <_savegpr_31>                 
ffc0dfac:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc0dfb0:	90 e1 00 20 	stw     r7,32(r1)                              
ffc0dfb4:	91 01 00 24 	stw     r8,36(r1)                              
ffc0dfb8:	91 21 00 28 	stw     r9,40(r1)                              
ffc0dfbc:	91 41 00 2c 	stw     r10,44(r1)                             
ffc0dfc0:	40 86 00 24 	bne-    cr1,ffc0dfe4 <msdos_format_printf+0x4c><== ALWAYS TAKEN
ffc0dfc4:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc0dfc8:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc0dfcc:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc0dfd0:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc0dfd4:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc0dfd8:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc0dfdc:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc0dfe0:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  va_list args;                                                       
  va_start (args, format);                                            
  if (rqdata != NULL && rqdata->info_level >= info_level)             
ffc0dfe4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
msdos_format_printf (const msdos_format_request_param_t *rqdata,      
                     int                                 info_level,  
                     const char                         *format, ...) 
{                                                                     
  va_list args;                                                       
  va_start (args, format);                                            
ffc0dfe8:	39 20 00 03 	li      r9,3                                   
ffc0dfec:	99 21 00 08 	stb     r9,8(r1)                               
ffc0dff0:	39 20 00 00 	li      r9,0                                   
ffc0dff4:	99 21 00 09 	stb     r9,9(r1)                               
ffc0dff8:	39 21 00 80 	addi    r9,r1,128                              
ffc0dffc:	91 21 00 0c 	stw     r9,12(r1)                              
ffc0e000:	39 21 00 10 	addi    r9,r1,16                               
ffc0e004:	91 21 00 10 	stw     r9,16(r1)                              
  if (rqdata != NULL && rqdata->info_level >= info_level)             
ffc0e008:	41 9e 00 34 	beq-    cr7,ffc0e03c <msdos_format_printf+0xa4>
ffc0e00c:	81 23 00 18 	lwz     r9,24(r3)                              
ffc0e010:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc0e014:	41 bc 00 28 	blt+    cr7,ffc0e03c <msdos_format_printf+0xa4><== ALWAYS TAKEN
  {                                                                   
    vfprintf (stdout, format, args);                                  
ffc0e018:	3f e0 00 00 	lis     r31,0                                  <== NOT EXECUTED
ffc0e01c:	81 3f 27 b0 	lwz     r9,10160(r31)                          <== NOT EXECUTED
ffc0e020:	7c a4 2b 78 	mr      r4,r5                                  <== NOT EXECUTED
ffc0e024:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc0e028:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc0e02c:	48 01 61 65 	bl      ffc24190 <vfprintf>                    <== NOT EXECUTED
    fflush (stdout);                                                  
ffc0e030:	81 3f 27 b0 	lwz     r9,10160(r31)                          <== NOT EXECUTED
ffc0e034:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc0e038:	48 00 d8 05 	bl      ffc1b83c <fflush>                      <== NOT EXECUTED
  }                                                                   
  va_end (args);                                                      
}                                                                     
ffc0e03c:	39 61 00 78 	addi    r11,r1,120                             
ffc0e040:	4b ff 35 bc 	b       ffc015fc <_restgpr_31_x>               
                                                                      

ffc0e044 <msdos_format_write_sec>: ) /*-------------------------------------------------------------------------*\ | Return Value: | | 0, if success, -1 and errno if failed | \*=========================================================================*/ {
ffc0e044:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0e048:	7c 08 02 a6 	mflr    r0                                     
  int ret_val = 0;                                                    
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
ffc0e04c:	38 e0 00 00 	li      r7,0                                   
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc0e050:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc0e054:	7c bf 2b 78 	mr      r31,r5                                 
ffc0e058:	7c de 33 78 	mr      r30,r6                                 
  int ret_val = 0;                                                    
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
ffc0e05c:	7c a4 28 16 	mulhwu  r5,r4,r5                               
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc0e060:	90 01 00 1c 	stw     r0,28(r1)                              
  int ret_val = 0;                                                    
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
ffc0e064:	7c c4 f9 d6 	mullw   r6,r4,r31                              
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc0e068:	7c 7d 1b 78 	mr      r29,r3                                 
  int ret_val = 0;                                                    
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
ffc0e06c:	48 00 75 49 	bl      ffc155b4 <lseek>                       
ffc0e070:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e074:	40 9c 00 0c 	bge-    cr7,ffc0e080 <msdos_format_write_sec+0x3c><== ALWAYS TAKEN
ffc0e078:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc0e07c:	48 00 00 18 	b       ffc0e094 <msdos_format_write_sec+0x50> <== NOT EXECUTED
    ret_val = -1;                                                     
  }                                                                   
  if (ret_val == 0) {                                                 
    if (0 > write(fd,buffer,sector_size)) {                           
ffc0e080:	7f a3 eb 78 	mr      r3,r29                                 
ffc0e084:	7f c4 f3 78 	mr      r4,r30                                 
ffc0e088:	7f e5 fb 78 	mr      r5,r31                                 
ffc0e08c:	4b ff bd 25 	bl      ffc09db0 <write>                       
ffc0e090:	7c 63 fe 70 	srawi   r3,r3,31                               
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  return ret_val;                                                     
}                                                                     
ffc0e094:	39 61 00 18 	addi    r11,r1,24                              
ffc0e098:	4b ff 35 5c 	b       ffc015f4 <_restgpr_29_x>               
                                                                      

ffc190e0 <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 ) {
ffc190e0:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc190e4:	7c 08 02 a6 	mflr    r0                                     
    int              rc = RC_OK;                                      
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    fat_file_fd_t   *fat_fd = NULL;                                   
ffc190e8:	39 20 00 00 	li      r9,0                                   
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    uint32_t                              cln,                        
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *dir_entry                   
    )                                                                 
{                                                                     
ffc190ec:	90 01 00 7c 	stw     r0,124(r1)                             
ffc190f0:	bf 21 00 5c 	stmw    r25,92(r1)                             
ffc190f4:	7c bd 2b 78 	mr      r29,r5                                 
    int              rc = RC_OK;                                      
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    fat_file_fd_t   *fat_fd = NULL;                                   
ffc190f8:	7c 25 0b 78 	mr      r5,r1                                  
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *dir_entry                   
    )                                                                 
{                                                                     
    int              rc = RC_OK;                                      
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc190fc:	83 e3 00 08 	lwz     r31,8(r3)                              
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    uint32_t                              cln,                        
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *dir_entry                   
    )                                                                 
{                                                                     
ffc19100:	7c 7c 1b 78 	mr      r28,r3                                 
    int              rc = RC_OK;                                      
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    fat_file_fd_t   *fat_fd = NULL;                                   
ffc19104:	95 25 00 48 	stwu    r9,72(r5)                              
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    uint32_t                              cln,                        
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *dir_entry                   
    )                                                                 
{                                                                     
ffc19108:	7c 9b 23 78 	mr      r27,r4                                 
    uint32_t         cl4find = 0;                                     
                                                                      
    /*                                                                
     * open fat-file corresponded to ".."                             
     */                                                               
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
ffc1910c:	7f e3 fb 78 	mr      r3,r31                                 
ffc19110:	7f a4 eb 78 	mr      r4,r29                                 
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    uint32_t                              cln,                        
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *dir_entry                   
    )                                                                 
{                                                                     
ffc19114:	7c d9 33 78 	mr      r25,r6                                 
    uint32_t         cl4find = 0;                                     
                                                                      
    /*                                                                
     * open fat-file corresponded to ".."                             
     */                                                               
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
ffc19118:	4b ff 9b f5 	bl      ffc12d0c <fat_file_open>               
    if (rc != RC_OK)                                                  
ffc1911c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc19120:	40 a2 02 34 	bne+    ffc19354 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x274><== NEVER TAKEN
        return rc;                                                    
                                                                      
    fat_fd->cln = cln;                                                
ffc19124:	80 81 00 48 	lwz     r4,72(r1)                              
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
ffc19128:	3d 40 00 20 	lis     r10,32                                 
                                                                      
    fat_fd->map.file_cln = 0;                                         
    fat_fd->map.disk_cln = fat_fd->cln;                               
                                                                      
    rc = fat_file_size(&fs_info->fat, fat_fd);                        
ffc1912c:	7f e3 fb 78 	mr      r3,r31                                 
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    fat_fd->cln = cln;                                                
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
ffc19130:	93 c4 00 10 	stw     r30,16(r4)                             
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
                                                                      
    fat_fd->map.file_cln = 0;                                         
ffc19134:	93 c4 00 34 	stw     r30,52(r4)                             
     */                                                               
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    fat_fd->cln = cln;                                                
ffc19138:	93 64 00 1c 	stw     r27,28(r4)                             
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
ffc1913c:	91 44 00 14 	stw     r10,20(r4)                             
                                                                      
    fat_fd->map.file_cln = 0;                                         
    fat_fd->map.disk_cln = fat_fd->cln;                               
ffc19140:	93 64 00 38 	stw     r27,56(r4)                             
                                                                      
    rc = fat_file_size(&fs_info->fat, fat_fd);                        
ffc19144:	4b ff a6 c5 	bl      ffc13808 <fat_file_size>               
    if (rc != RC_OK)                                                  
ffc19148:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1914c:	41 a2 00 08 	beq+    ffc19154 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x74><== ALWAYS TAKEN
ffc19150:	48 00 00 5c 	b       ffc191ac <msdos_get_dotdot_dir_info_cluster_num_and_offset+0xcc><== NOT EXECUTED
        return rc;                                                    
    }                                                                 
                                                                      
    /* find "." node in opened directory */                           
    memset(dot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);           
    msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);      
ffc19154:	3f c0 ff c3 	lis     r30,-61                                
ffc19158:	3b de bb ad 	addi    r30,r30,-17491                         
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* find "." node in opened directory */                           
    memset(dot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);           
ffc1915c:	38 80 00 00 	li      r4,0                                   
ffc19160:	38 a0 00 20 	li      r5,32                                  
ffc19164:	38 61 00 28 	addi    r3,r1,40                               
ffc19168:	48 00 2f e1 	bl      ffc1c148 <memset>                      
    msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);      
ffc1916c:	7f c3 f3 78 	mr      r3,r30                                 
ffc19170:	38 80 00 01 	li      r4,1                                   
ffc19174:	38 a1 00 28 	addi    r5,r1,40                               
ffc19178:	38 c0 00 0b 	li      r6,11                                  
ffc1917c:	4b ff ef 21 	bl      ffc1809c <msdos_long_to_short>         
    rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, ".", 1, 
ffc19180:	80 81 00 48 	lwz     r4,72(r1)                              
ffc19184:	7f c6 f3 78 	mr      r6,r30                                 
ffc19188:	7f 83 e3 78 	mr      r3,r28                                 
ffc1918c:	38 a0 00 00 	li      r5,0                                   
ffc19190:	38 e0 00 01 	li      r7,1                                   
ffc19194:	39 00 00 01 	li      r8,1                                   
ffc19198:	7f a9 eb 78 	mr      r9,r29                                 
ffc1919c:	39 41 00 28 	addi    r10,r1,40                              
ffc191a0:	4b ff f5 99 	bl      ffc18738 <msdos_find_name_in_fat_file> 
                                     MSDOS_NAME_SHORT, dir_pos, dot_node);
                                                                      
    if (rc != RC_OK)                                                  
ffc191a4:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc191a8:	41 a2 00 10 	beq+    ffc191b8 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0xd8><== ALWAYS TAKEN
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc191ac:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc191b0:	80 81 00 48 	lwz     r4,72(r1)                              <== NOT EXECUTED
ffc191b4:	48 00 01 90 	b       ffc19344 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x264><== NOT EXECUTED
        return rc;                                                    
    }                                                                 
                                                                      
    /* find ".." node in opened directory */                          
    memset(dotdot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);        
    msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);  
ffc191b8:	3f c0 ff c3 	lis     r30,-61                                
ffc191bc:	3b de bb ac 	addi    r30,r30,-17492                         
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* find ".." node in opened directory */                          
    memset(dotdot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);        
ffc191c0:	38 80 00 00 	li      r4,0                                   
ffc191c4:	38 a0 00 20 	li      r5,32                                  
ffc191c8:	38 61 00 08 	addi    r3,r1,8                                
ffc191cc:	48 00 2f 7d 	bl      ffc1c148 <memset>                      
    msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);  
ffc191d0:	7f c3 f3 78 	mr      r3,r30                                 
ffc191d4:	38 80 00 02 	li      r4,2                                   
ffc191d8:	38 a1 00 08 	addi    r5,r1,8                                
ffc191dc:	38 c0 00 0b 	li      r6,11                                  
ffc191e0:	4b ff ee bd 	bl      ffc1809c <msdos_long_to_short>         
    rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, "..", 2,
ffc191e4:	80 81 00 48 	lwz     r4,72(r1)                              
ffc191e8:	7f c6 f3 78 	mr      r6,r30                                 
ffc191ec:	7f 83 e3 78 	mr      r3,r28                                 
ffc191f0:	38 a0 00 00 	li      r5,0                                   
ffc191f4:	38 e0 00 02 	li      r7,2                                   
ffc191f8:	39 00 00 01 	li      r8,1                                   
ffc191fc:	7f a9 eb 78 	mr      r9,r29                                 
ffc19200:	39 41 00 08 	addi    r10,r1,8                               
ffc19204:	4b ff f5 35 	bl      ffc18738 <msdos_find_name_in_fat_file> 
ffc19208:	80 81 00 48 	lwz     r4,72(r1)                              
                                     MSDOS_NAME_SHORT, dir_pos,       
                                     dotdot_node);                    
                                                                      
    if (rc != RC_OK)                                                  
ffc1920c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc19210:	41 a2 00 08 	beq+    ffc19218 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x138><== ALWAYS TAKEN
ffc19214:	48 00 00 e8 	b       ffc192fc <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x21c><== NOT EXECUTED
    }                                                                 
                                                                      
    cl4find = MSDOS_EXTRACT_CLUSTER_NUM(dot_node);                    
                                                                      
    /* close fat-file corresponded to ".." directory */               
    rc = fat_file_close(&fs_info->fat, fat_fd);                       
ffc19218:	7f e3 fb 78 	mr      r3,r31                                 
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    cl4find = MSDOS_EXTRACT_CLUSTER_NUM(dot_node);                    
ffc1921c:	a3 61 00 42 	lhz     r27,66(r1)                             
ffc19220:	a3 41 00 3c 	lhz     r26,60(r1)                             
                                                                      
    /* close fat-file corresponded to ".." directory */               
    rc = fat_file_close(&fs_info->fat, fat_fd);                       
ffc19224:	4b ff 9f 59 	bl      ffc1317c <fat_file_close>              
    if ( rc != RC_OK )                                                
ffc19228:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1922c:	40 82 01 28 	bne-    ffc19354 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x274><== NEVER TAKEN
        return rc;                                                    
                                                                      
    if ( (MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)               
ffc19230:	a0 e1 00 1c 	lhz     r7,28(r1)                              
ffc19234:	a1 01 00 22 	lhz     r8,34(r1)                              
ffc19238:	54 ea c2 3e 	rlwinm  r10,r7,24,8,31                         
ffc1923c:	54 e7 44 2e 	rlwinm  r7,r7,8,16,23                          
ffc19240:	55 09 c2 3e 	rlwinm  r9,r8,24,8,31                          
ffc19244:	7d 4a 3b 78 	or      r10,r10,r7                             
ffc19248:	55 08 44 2e 	rlwinm  r8,r8,8,16,23                          
ffc1924c:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc19250:	7d 29 43 78 	or      r9,r9,r8                               
ffc19254:	7d 48 4b 79 	or.     r8,r10,r9                              
ffc19258:	40 82 00 1c 	bne-    ffc19274 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x194><== 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;                           
ffc1925c:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
fat_dir_pos_init(                                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
  dir_pos->sname.ofs = 0;                                             
ffc19260:	91 1d 00 04 	stw     r8,4(r29)                              <== NOT EXECUTED
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
ffc19264:	91 3d 00 08 	stw     r9,8(r29)                              <== NOT EXECUTED
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
ffc19268:	91 3d 00 0c 	stw     r9,12(r29)                             <== 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;                 
ffc1926c:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc19270:	91 3d 00 00 	stw     r9,0(r29)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    /* open fat-file corresponded to second ".." */                   
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
ffc19274:	7f e3 fb 78 	mr      r3,r31                                 
ffc19278:	7f a4 eb 78 	mr      r4,r29                                 
ffc1927c:	38 a1 00 48 	addi    r5,r1,72                               
ffc19280:	4b ff 9a 8d 	bl      ffc12d0c <fat_file_open>               
    if (rc != RC_OK)                                                  
ffc19284:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc19288:	40 82 00 cc 	bne-    ffc19354 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x274><== NEVER TAKEN
        return rc;                                                    
                                                                      
    if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)                
ffc1928c:	a0 e1 00 1c 	lhz     r7,28(r1)                              
ffc19290:	a1 01 00 22 	lhz     r8,34(r1)                              
ffc19294:	54 ea c2 3e 	rlwinm  r10,r7,24,8,31                         
ffc19298:	80 81 00 48 	lwz     r4,72(r1)                              
ffc1929c:	54 e7 44 2e 	rlwinm  r7,r7,8,16,23                          
ffc192a0:	55 09 c2 3e 	rlwinm  r9,r8,24,8,31                          
ffc192a4:	7d 4a 3b 78 	or      r10,r10,r7                             
ffc192a8:	55 08 44 2e 	rlwinm  r8,r8,8,16,23                          
ffc192ac:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc192b0:	7d 29 43 78 	or      r9,r9,r8                               
ffc192b4:	7d 48 4b 79 	or.     r8,r10,r9                              
ffc192b8:	40 82 00 10 	bne-    ffc192c8 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x1e8><== ALWAYS TAKEN
        fat_fd->cln = fs_info->fat.vol.rdir_cl;                       
ffc192bc:	81 3f 00 3c 	lwz     r9,60(r31)                             <== NOT EXECUTED
ffc192c0:	91 24 00 1c 	stw     r9,28(r4)                              <== NOT EXECUTED
ffc192c4:	48 00 00 08 	b       ffc192cc <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x1ec><== NOT EXECUTED
    else                                                              
        fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);         
ffc192c8:	91 04 00 1c 	stw     r8,28(r4)                              
                                                                      
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
ffc192cc:	39 20 00 00 	li      r9,0                                   
ffc192d0:	91 24 00 10 	stw     r9,16(r4)                              
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
ffc192d4:	3d 40 00 20 	lis     r10,32                                 
                                                                      
    fat_fd->map.file_cln = 0;                                         
    fat_fd->map.disk_cln = fat_fd->cln;                               
                                                                      
    rc = fat_file_size(&fs_info->fat, fat_fd);                        
ffc192d8:	7f e3 fb 78 	mr      r3,r31                                 
        fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);         
                                                                      
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
                                                                      
    fat_fd->map.file_cln = 0;                                         
ffc192dc:	91 24 00 34 	stw     r9,52(r4)                              
    fat_fd->map.disk_cln = fat_fd->cln;                               
ffc192e0:	81 24 00 1c 	lwz     r9,28(r4)                              
        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;                            
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
ffc192e4:	91 44 00 14 	stw     r10,20(r4)                             
                                                                      
    fat_fd->map.file_cln = 0;                                         
    fat_fd->map.disk_cln = fat_fd->cln;                               
ffc192e8:	91 24 00 38 	stw     r9,56(r4)                              
                                                                      
    rc = fat_file_size(&fs_info->fat, fat_fd);                        
ffc192ec:	4b ff a5 1d 	bl      ffc13808 <fat_file_size>               
ffc192f0:	80 81 00 48 	lwz     r4,72(r1)                              
    if (rc != RC_OK)                                                  
ffc192f4:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc192f8:	41 a2 00 0c 	beq+    ffc19304 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x224><== ALWAYS TAKEN
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc192fc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc19300:	48 00 00 44 	b       ffc19344 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x264><== NOT EXECUTED
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    cl4find = MSDOS_EXTRACT_CLUSTER_NUM(dot_node);                    
ffc19304:	57 45 c2 3e 	rlwinm  r5,r26,24,8,31                         
ffc19308:	57 5a 44 2e 	rlwinm  r26,r26,8,16,23                        
ffc1930c:	57 69 c2 3e 	rlwinm  r9,r27,24,8,31                         
ffc19310:	7c a5 d3 78 	or      r5,r5,r26                              
ffc19314:	57 7b 44 2e 	rlwinm  r27,r27,8,16,23                        
ffc19318:	7d 3b db 78 	or      r27,r9,r27                             
ffc1931c:	54 a5 80 1e 	rlwinm  r5,r5,16,0,15                          
        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,
ffc19320:	7f 83 e3 78 	mr      r3,r28                                 
ffc19324:	7c a5 db 78 	or      r5,r5,r27                              
ffc19328:	7f a6 eb 78 	mr      r6,r29                                 
ffc1932c:	7f 27 cb 78 	mr      r7,r25                                 
ffc19330:	4b ff fc 41 	bl      ffc18f70 <msdos_find_node_by_cluster_num_in_fat_file>
ffc19334:	80 81 00 48 	lwz     r4,72(r1)                              
                                                    dir_pos, dir_entry);
    if (rc != RC_OK)                                                  
ffc19338:	7c 7e 1b 79 	mr.     r30,r3                                 
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc1933c:	7f e3 fb 78 	mr      r3,r31                                 
    }                                                                 
                                                                      
    /* in this directory find slot with specified cluster num */      
    rc = msdos_find_node_by_cluster_num_in_fat_file(mt_entry, fat_fd, cl4find,
                                                    dir_pos, dir_entry);
    if (rc != RC_OK)                                                  
ffc19340:	41 a2 00 0c 	beq+    ffc1934c <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x26c><== ALWAYS TAKEN
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc19344:	4b ff 9e 39 	bl      ffc1317c <fat_file_close>              <== NOT EXECUTED
ffc19348:	48 00 00 0c 	b       ffc19354 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x274><== NOT EXECUTED
        return rc;                                                    
    }                                                                 
    rc = fat_file_close(&fs_info->fat, fat_fd);                       
ffc1934c:	4b ff 9e 31 	bl      ffc1317c <fat_file_close>              
ffc19350:	7c 7e 1b 78 	mr      r30,r3                                 
    return rc;                                                        
}                                                                     
ffc19354:	39 61 00 78 	addi    r11,r1,120                             
ffc19358:	7f c3 f3 78 	mr      r3,r30                                 
ffc1935c:	4b fe 82 88 	b       ffc015e4 <_restgpr_25_x>               
                                                                      

ffc0f0f8 <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 ) {
ffc0f0f8:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc0f0fc:	7c 08 02 a6 	mflr    r0                                     
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = NULL;                                
    fat_file_fd_t     *fat_fd = NULL;                                 
ffc0f100:	39 20 00 00 	li      r9,0                                   
    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       
    )                                                                 
{                                                                     
ffc0f104:	bf 41 00 28 	stmw    r26,40(r1)                             
ffc0f108:	7c 7d 1b 78 	mr      r29,r3                                 
ffc0f10c:	7c 9b 23 78 	mr      r27,r4                                 
    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));  
ffc0f110:	38 60 00 01 	li      r3,1                                   
    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       
    )                                                                 
{                                                                     
ffc0f114:	90 01 00 44 	stw     r0,68(r1)                              
    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));  
ffc0f118:	38 80 00 a4 	li      r4,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       
    )                                                                 
{                                                                     
ffc0f11c:	7c ba 2b 78 	mr      r26,r5                                 
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = NULL;                                
    fat_file_fd_t     *fat_fd = NULL;                                 
ffc0f120:	91 21 00 18 	stw     r9,24(r1)                              
    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       
    )                                                                 
{                                                                     
ffc0f124:	7c dc 33 78 	mr      r28,r6                                 
    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));  
ffc0f128:	4b ff 6a d1 	bl      ffc05bf8 <calloc>                      
    if (!fs_info)                                                     
ffc0f12c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0f130:	40 a2 00 08 	bne+    ffc0f138 <msdos_initialize_support+0x40><== ALWAYS TAKEN
ffc0f134:	48 00 01 14 	b       ffc0f248 <msdos_initialize_support+0x150><== NOT EXECUTED
        rtems_set_errno_and_return_minus_one(ENOMEM);                 
                                                                      
    temp_mt_entry->fs_info = fs_info;                                 
ffc0f138:	93 fd 00 08 	stw     r31,8(r29)                             
                                                                      
    rc = fat_init_volume_info(&fs_info->fat, temp_mt_entry->dev);     
ffc0f13c:	80 9d 00 38 	lwz     r4,56(r29)                             
ffc0f140:	48 00 4e 01 	bl      ffc13f40 <fat_init_volume_info>        
    if (rc != RC_OK)                                                  
ffc0f144:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0f148:	41 a2 00 08 	beq+    ffc0f150 <msdos_initialize_support+0x58><== ALWAYS TAKEN
ffc0f14c:	48 00 00 44 	b       ffc0f190 <msdos_initialize_support+0x98><== 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;                           
ffc0f150:	39 20 ff ff 	li      r9,-1                                  
    {                                                                 
        free(fs_info);                                                
        return rc;                                                    
    }                                                                 
                                                                      
    fs_info->file_handlers      = file_handlers;                      
ffc0f154:	93 5f 00 98 	stw     r26,152(r31)                           
     * 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);            
ffc0f158:	7f e3 fb 78 	mr      r3,r31                                 
        free(fs_info);                                                
        return rc;                                                    
    }                                                                 
                                                                      
    fs_info->file_handlers      = file_handlers;                      
    fs_info->directory_handlers = directory_handlers;                 
ffc0f15c:	93 9f 00 94 	stw     r28,148(r31)                           
     * 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);            
ffc0f160:	38 81 00 08 	addi    r4,r1,8                                
ffc0f164:	38 a1 00 18 	addi    r5,r1,24                               
ffc0f168:	91 21 00 10 	stw     r9,16(r1)                              
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
ffc0f16c:	91 21 00 14 	stw     r9,20(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;                     
ffc0f170:	39 20 00 01 	li      r9,1                                   
fat_dir_pos_init(                                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
  dir_pos->sname.ofs = 0;                                             
ffc0f174:	93 c1 00 0c 	stw     r30,12(r1)                             
ffc0f178:	91 21 00 08 	stw     r9,8(r1)                               
    rc = fat_file_open(&fs_info->fat, &root_pos, &fat_fd);            
ffc0f17c:	48 00 3b 91 	bl      ffc12d0c <fat_file_open>               
    if (rc != RC_OK)                                                  
ffc0f180:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0f184:	41 a2 00 18 	beq+    ffc0f19c <msdos_initialize_support+0xa4><== ALWAYS TAKEN
    {                                                                 
        fat_shutdown_drive(&fs_info->fat);                            
ffc0f188:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0f18c:	48 00 55 d9 	bl      ffc14764 <fat_shutdown_drive>          <== NOT EXECUTED
        free(fs_info);                                                
ffc0f190:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0f194:	4b ff 6b 49 	bl      ffc05cdc <free>                        <== NOT EXECUTED
ffc0f198:	48 00 01 24 	b       ffc0f2bc <msdos_initialize_support+0x1c4><== NOT EXECUTED
        return rc;                                                    
    }                                                                 
                                                                      
    /* again: unfortunately "fat-file" is just almost fat file :( */  
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
ffc0f19c:	80 81 00 18 	lwz     r4,24(r1)                              
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
ffc0f1a0:	3d 40 00 20 	lis     r10,32                                 
ffc0f1a4:	91 44 00 14 	stw     r10,20(r4)                             
    fat_fd->cln = fs_info->fat.vol.rdir_cl;                           
ffc0f1a8:	81 5f 00 3c 	lwz     r10,60(r31)                            
        free(fs_info);                                                
        return rc;                                                    
    }                                                                 
                                                                      
    /* again: unfortunately "fat-file" is just almost fat file :( */  
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
ffc0f1ac:	93 c4 00 10 	stw     r30,16(r4)                             
                                                                      
    fat_fd->map.file_cln = 0;                                         
    fat_fd->map.disk_cln = fat_fd->cln;                               
                                                                      
    /* if we have FAT12/16 */                                         
    if ( fat_fd->cln == 0 )                                           
ffc0f1b0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
    }                                                                 
                                                                      
    /* 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;                           
ffc0f1b4:	91 44 00 1c 	stw     r10,28(r4)                             
                                                                      
    fat_fd->map.file_cln = 0;                                         
ffc0f1b8:	93 c4 00 34 	stw     r30,52(r4)                             
    fat_fd->map.disk_cln = fat_fd->cln;                               
ffc0f1bc:	91 44 00 38 	stw     r10,56(r4)                             
                                                                      
    /* if we have FAT12/16 */                                         
    if ( fat_fd->cln == 0 )                                           
ffc0f1c0:	40 9e 00 20 	bne-    cr7,ffc0f1e0 <msdos_initialize_support+0xe8>
    {                                                                 
        fat_fd->fat_file_size = fs_info->fat.vol.rdir_size;           
ffc0f1c4:	81 5f 00 2c 	lwz     r10,44(r31)                            
        cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
                      fs_info->fat.vol.bpc                                :
ffc0f1c8:	a0 7f 00 06 	lhz     r3,6(r31)                              
    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;           
ffc0f1cc:	91 44 00 18 	stw     r10,24(r4)                             
        cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
ffc0f1d0:	7f 83 50 40 	cmplw   cr7,r3,r10                             
ffc0f1d4:	40 9c 00 44 	bge-    cr7,ffc0f218 <msdos_initialize_support+0x120>
ffc0f1d8:	7d 43 53 78 	mr      r3,r10                                 
ffc0f1dc:	48 00 00 3c 	b       ffc0f218 <msdos_initialize_support+0x120>
                      fs_info->fat.vol.bpc                                :
                      fs_info->fat.vol.rdir_size;                     
    }                                                                 
    else                                                              
    {                                                                 
        rc = fat_file_size(&fs_info->fat, fat_fd);                    
ffc0f1e0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f1e4:	48 00 46 25 	bl      ffc13808 <fat_file_size>               
        if ( rc != RC_OK )                                            
ffc0f1e8:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc0f1ec:	41 a2 00 28 	beq+    ffc0f214 <msdos_initialize_support+0x11c><== ALWAYS TAKEN
        {                                                             
            fat_file_close(&fs_info->fat, fat_fd);                    
ffc0f1f0:	80 81 00 18 	lwz     r4,24(r1)                              <== NOT EXECUTED
ffc0f1f4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
            fat_shutdown_drive(&fs_info->fat);                        
            free(fs_info);                                            
ffc0f1f8:	7f 5e d3 78 	mr      r30,r26                                <== NOT EXECUTED
    else                                                              
    {                                                                 
        rc = fat_file_size(&fs_info->fat, fat_fd);                    
        if ( rc != RC_OK )                                            
        {                                                             
            fat_file_close(&fs_info->fat, fat_fd);                    
ffc0f1fc:	48 00 3f 81 	bl      ffc1317c <fat_file_close>              <== NOT EXECUTED
            fat_shutdown_drive(&fs_info->fat);                        
ffc0f200:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0f204:	48 00 55 61 	bl      ffc14764 <fat_shutdown_drive>          <== NOT EXECUTED
            free(fs_info);                                            
ffc0f208:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0f20c:	4b ff 6a d1 	bl      ffc05cdc <free>                        <== NOT EXECUTED
ffc0f210:	48 00 00 ac 	b       ffc0f2bc <msdos_initialize_support+0x1c4><== NOT EXECUTED
            return rc;                                                
        }                                                             
        cl_buf_size = fs_info->fat.vol.bpc;                           
ffc0f214:	a0 7f 00 06 	lhz     r3,6(r31)                              
    }                                                                 
                                                                      
    fs_info->cl_buf = (uint8_t *)calloc(cl_buf_size, sizeof(char));   
ffc0f218:	38 80 00 01 	li      r4,1                                   
ffc0f21c:	4b ff 69 dd 	bl      ffc05bf8 <calloc>                      
    if (fs_info->cl_buf == NULL)                                      
ffc0f220:	2f 83 00 00 	cmpwi   cr7,r3,0                               
            return rc;                                                
        }                                                             
        cl_buf_size = fs_info->fat.vol.bpc;                           
    }                                                                 
                                                                      
    fs_info->cl_buf = (uint8_t *)calloc(cl_buf_size, sizeof(char));   
ffc0f224:	90 7f 00 a0 	stw     r3,160(r31)                            
    if (fs_info->cl_buf == NULL)                                      
ffc0f228:	40 be 00 34 	bne+    cr7,ffc0f25c <msdos_initialize_support+0x164><== ALWAYS TAKEN
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc0f22c:	80 81 00 18 	lwz     r4,24(r1)                              <== NOT EXECUTED
ffc0f230:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0f234:	48 00 3f 49 	bl      ffc1317c <fat_file_close>              <== NOT EXECUTED
        fat_shutdown_drive(&fs_info->fat);                            
ffc0f238:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0f23c:	48 00 55 29 	bl      ffc14764 <fat_shutdown_drive>          <== NOT EXECUTED
        free(fs_info);                                                
ffc0f240:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0f244:	4b ff 6a 99 	bl      ffc05cdc <free>                        <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one(ENOMEM);                 
ffc0f248:	48 00 c1 2d 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc0f24c:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc0f250:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc0f254:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc0f258:	48 00 00 64 	b       ffc0f2bc <msdos_initialize_support+0x1c4><== NOT EXECUTED
    }                                                                 
                                                                      
    sc = rtems_semaphore_create(3,                                    
ffc0f25c:	38 80 00 01 	li      r4,1                                   
ffc0f260:	38 60 00 03 	li      r3,3                                   
ffc0f264:	38 a0 00 10 	li      r5,16                                  
ffc0f268:	38 c0 00 00 	li      r6,0                                   
ffc0f26c:	38 ff 00 9c 	addi    r7,r31,156                             
ffc0f270:	4b ff b0 65 	bl      ffc0a2d4 <rtems_semaphore_create>      
ffc0f274:	80 81 00 18 	lwz     r4,24(r1)                              
                                1,                                    
                                RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,  
                                0,                                    
                                &fs_info->vol_sema);                  
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc0f278:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f27c:	41 be 00 30 	beq+    cr7,ffc0f2ac <msdos_initialize_support+0x1b4><== ALWAYS TAKEN
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc0f280:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0f284:	48 00 3e f9 	bl      ffc1317c <fat_file_close>              <== NOT EXECUTED
        fat_shutdown_drive(&fs_info->fat);                            
ffc0f288:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0f28c:	48 00 54 d9 	bl      ffc14764 <fat_shutdown_drive>          <== NOT EXECUTED
        free(fs_info->cl_buf);                                        
ffc0f290:	80 7f 00 a0 	lwz     r3,160(r31)                            <== NOT EXECUTED
ffc0f294:	4b ff 6a 49 	bl      ffc05cdc <free>                        <== NOT EXECUTED
        free(fs_info);                                                
ffc0f298:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0f29c:	4b ff 6a 41 	bl      ffc05cdc <free>                        <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one( EIO );                  
ffc0f2a0:	48 00 c0 d5 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc0f2a4:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc0f2a8:	4b ff ff a8 	b       ffc0f250 <msdos_initialize_support+0x158><== NOT EXECUTED
    }                                                                 
                                                                      
    temp_mt_entry->mt_fs_root->location.node_access = fat_fd;         
ffc0f2ac:	81 3d 00 24 	lwz     r9,36(r29)                             
ffc0f2b0:	90 89 00 08 	stw     r4,8(r9)                               
    temp_mt_entry->mt_fs_root->location.handlers = directory_handlers;
ffc0f2b4:	93 89 00 10 	stw     r28,16(r9)                             
    temp_mt_entry->ops = op_table;                                    
ffc0f2b8:	93 7d 00 0c 	stw     r27,12(r29)                            
                                                                      
    return rc;                                                        
}                                                                     
ffc0f2bc:	39 61 00 40 	addi    r11,r1,64                              
ffc0f2c0:	7f c3 f3 78 	mr      r3,r30                                 
ffc0f2c4:	4b ff 23 24 	b       ffc015e8 <_restgpr_26_x>               
                                                                      

ffc0f0b4 <msdos_lock>: .rename_h = msdos_rename, .statvfs_h = rtems_filesystem_default_statvfs }; void msdos_lock(const rtems_filesystem_mount_table_entry_t *mt_entry) {
ffc0f0b4:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0f0b8:	7c 08 02 a6 	mflr    r0                                     
  msdos_fs_info_t *fs_info = mt_entry->fs_info;                       
  rtems_status_code sc = rtems_semaphore_obtain(                      
ffc0f0bc:	38 80 00 00 	li      r4,0                                   
  .rename_h       =  msdos_rename,                                    
  .statvfs_h      =  rtems_filesystem_default_statvfs                 
};                                                                    
                                                                      
void msdos_lock(const rtems_filesystem_mount_table_entry_t *mt_entry) 
{                                                                     
ffc0f0c0:	90 01 00 0c 	stw     r0,12(r1)                              
  msdos_fs_info_t *fs_info = mt_entry->fs_info;                       
  rtems_status_code sc = rtems_semaphore_obtain(                      
ffc0f0c4:	38 a0 00 00 	li      r5,0                                   
    fs_info->vol_sema,                                                
ffc0f0c8:	81 23 00 08 	lwz     r9,8(r3)                               
};                                                                    
                                                                      
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(                      
ffc0f0cc:	80 69 00 9c 	lwz     r3,156(r9)                             
ffc0f0d0:	4b ff b4 89 	bl      ffc0a558 <rtems_semaphore_obtain>      
    fs_info->vol_sema,                                                
    RTEMS_WAIT,                                                       
    RTEMS_NO_TIMEOUT                                                  
  );                                                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc0f0d4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f0d8:	41 be 00 10 	beq+    cr7,ffc0f0e8 <msdos_lock+0x34>         <== ALWAYS TAKEN
    rtems_fatal_error_occurred(0xdeadbeef);                           
ffc0f0dc:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc0f0e0:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc0f0e4:	4b ff bc 01 	bl      ffc0ace4 <rtems_fatal_error_occurred>  <== NOT EXECUTED
  }                                                                   
}                                                                     
ffc0f0e8:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0f0ec:	38 21 00 08 	addi    r1,r1,8                                
ffc0f0f0:	7c 08 03 a6 	mtlr    r0                                     
ffc0f0f4:	4e 80 00 20 	blr                                            
                                                                      

ffc1809c <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) {
ffc1809c:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc180a0:	7c 08 02 a6 	mflr    r0                                     
ffc180a4:	be 81 00 08 	stmw    r20,8(r1)                              
ffc180a8:	7c 7b 1b 78 	mr      r27,r3                                 
ffc180ac:	7c 9e 23 78 	mr      r30,r4                                 
    int               i;                                              
                                                                      
    /*                                                                
     * Fill with spaces. This is how a short directory entry is padded.
     */                                                               
    memset (sfn, ' ', sfn_len);                                       
ffc180b0:	7c a3 2b 78 	mr      r3,r5                                  
 *                                                                    
 */                                                                   
#define MSDOS_L2S_PRINT 0                                             
msdos_name_type_t                                                     
msdos_long_to_short(const char *lfn, int lfn_len, char* sfn, int sfn_len)
{                                                                     
ffc180b4:	90 01 00 3c 	stw     r0,60(r1)                              
ffc180b8:	7c ba 2b 78 	mr      r26,r5                                 
    int               i;                                              
                                                                      
    /*                                                                
     * Fill with spaces. This is how a short directory entry is padded.
     */                                                               
    memset (sfn, ' ', sfn_len);                                       
ffc180bc:	38 80 00 20 	li      r4,32                                  
ffc180c0:	7c c5 33 78 	mr      r5,r6                                  
ffc180c4:	48 00 40 85 	bl      ffc1c148 <memset>                      
                                                                      
    /*                                                                
     * Handle '.' and '..' specially.                                 
     */                                                               
    if ((lfn[0] == '.') && (lfn_len == 1))                            
ffc180c8:	89 5b 00 00 	lbz     r10,0(r27)                             
ffc180cc:	39 20 00 00 	li      r9,0                                   
ffc180d0:	2f 8a 00 2e 	cmpwi   cr7,r10,46                             
ffc180d4:	40 be 00 7c 	bne+    cr7,ffc18150 <msdos_long_to_short+0xb4>
ffc180d8:	2f 9e 00 01 	cmpwi   cr7,r30,1                              
ffc180dc:	40 be 00 08 	bne+    cr7,ffc180e4 <msdos_long_to_short+0x48>
ffc180e0:	48 00 00 1c 	b       ffc180fc <msdos_long_to_short+0x60>    
        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))         
ffc180e4:	89 5b 00 01 	lbz     r10,1(r27)                             
ffc180e8:	2f 8a 00 2e 	cmpwi   cr7,r10,46                             
ffc180ec:	40 be 00 64 	bne+    cr7,ffc18150 <msdos_long_to_short+0xb4><== NEVER TAKEN
ffc180f0:	2f 9e 00 02 	cmpwi   cr7,r30,2                              
ffc180f4:	40 be 00 5c 	bne+    cr7,ffc18150 <msdos_long_to_short+0xb4><== NEVER TAKEN
    {                                                                 
        sfn[0] = sfn[1] = '.';                                        
ffc180f8:	99 5a 00 01 	stb     r10,1(r26)                             
ffc180fc:	99 5a 00 00 	stb     r10,0(r26)                             
#if MSDOS_L2S_PRINT                                                   
        printf ("MSDOS_L2S: SHORT[2]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif                                                                
        return MSDOS_NAME_SHORT;                                      
ffc18100:	3b e0 00 01 	li      r31,1                                  
ffc18104:	48 00 01 98 	b       ffc1829c <msdos_long_to_short+0x200>   
                                                                      
    /*                                                                
     * Filenames with only blanks and dots are not allowed!           
     */                                                               
    for (i = 0; i < lfn_len; i++)                                     
        if ((lfn[i] != ' ') && (lfn[i] != '.'))                       
ffc18108:	7d 1b 48 ae 	lbzx    r8,r27,r9                              
ffc1810c:	2f 88 00 20 	cmpwi   cr7,r8,32                              
ffc18110:	41 9e 00 38 	beq-    cr7,ffc18148 <msdos_long_to_short+0xac>
ffc18114:	2f 88 00 2e 	cmpwi   cr7,r8,46                              
ffc18118:	41 be 00 30 	beq+    cr7,ffc18148 <msdos_long_to_short+0xac><== NEVER TAKEN
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
        return MSDOS_NAME_LONG;                                       
                                                                      
    if ((ch == '.') || isalnum((unsigned char)ch) ||                  
ffc1811c:	3d 20 00 00 	lis     r9,0                                   
 *                                                                    
 */                                                                   
static msdos_name_type_t                                              
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
ffc18120:	3e a0 ff c3 	lis     r21,-61                                
        return MSDOS_NAME_LONG;                                       
                                                                      
    if ((ch == '.') || isalnum((unsigned char)ch) ||                  
ffc18124:	82 c9 27 a8 	lwz     r22,10152(r9)                          
        (strchr("$%'-_@~`!(){}^#&", ch) != NULL))                     
ffc18128:	3e 80 ff c3 	lis     r20,-61                                
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
        return MSDOS_NAME_LONG;                                       
                                                                      
    if ((ch == '.') || isalnum((unsigned char)ch) ||                  
ffc1812c:	3b a0 00 00 	li      r29,0                                  
ffc18130:	3b 20 ff ff 	li      r25,-1                                 
ffc18134:	3a e0 00 00 	li      r23,0                                  
ffc18138:	3b 00 00 00 	li      r24,0                                  
 *                                                                    
 */                                                                   
static msdos_name_type_t                                              
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
ffc1813c:	3a b5 bc 6f 	addi    r21,r21,-17297                         
        return MSDOS_NAME_LONG;                                       
                                                                      
    if ((ch == '.') || isalnum((unsigned char)ch) ||                  
        (strchr("$%'-_@~`!(){}^#&", ch) != NULL))                     
ffc18140:	3a 94 bc 77 	addi    r20,r20,-17289                         
ffc18144:	48 00 00 ec 	b       ffc18230 <msdos_long_to_short+0x194>   
    }                                                                 
                                                                      
    /*                                                                
     * Filenames with only blanks and dots are not allowed!           
     */                                                               
    for (i = 0; i < lfn_len; i++)                                     
ffc18148:	39 29 00 01 	addi    r9,r9,1                                
ffc1814c:	48 00 00 20 	b       ffc1816c <msdos_long_to_short+0xd0>    
ffc18150:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc18154:	39 5e 00 01 	addi    r10,r30,1                              
ffc18158:	41 9d 00 10 	bgt-    cr7,ffc18168 <msdos_long_to_short+0xcc><== NEVER TAKEN
ffc1815c:	3d 00 80 00 	lis     r8,-32768                              
ffc18160:	7f 9e 40 00 	cmpw    cr7,r30,r8                             
ffc18164:	40 be 00 08 	bne+    cr7,ffc1816c <msdos_long_to_short+0xd0><== ALWAYS TAKEN
ffc18168:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc1816c:	35 4a ff ff 	addic.  r10,r10,-1                             
ffc18170:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc18174:	40 82 ff 94 	bne+    ffc18108 <msdos_long_to_short+0x6c>    <== ALWAYS TAKEN
        if ((lfn[i] != ' ') && (lfn[i] != '.'))                       
            break;                                                    
                                                                      
    if (i == lfn_len)                                                 
ffc18178:	40 9e ff a4 	bne+    cr7,ffc1811c <msdos_long_to_short+0x80><== NOT EXECUTED
ffc1817c:	48 00 00 e8 	b       ffc18264 <msdos_long_to_short+0x1c8>   <== NOT EXECUTED
 *                                                                    
 */                                                                   
static msdos_name_type_t                                              
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
ffc18180:	7e a3 ab 78 	mr      r3,r21                                 
ffc18184:	7f e4 fb 78 	mr      r4,r31                                 
ffc18188:	48 00 4e a1 	bl      ffc1d028 <strchr>                      
ffc1818c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc18190:	40 be 00 dc 	bne+    cr7,ffc1826c <msdos_long_to_short+0x1d0>
        return MSDOS_NAME_LONG;                                       
                                                                      
    if ((ch == '.') || isalnum((unsigned char)ch) ||                  
ffc18194:	6b fc 00 2e 	xori    r28,r31,46                             
ffc18198:	7f 9c 00 34 	cntlzw  r28,r28                                
ffc1819c:	57 9c d9 7f 	rlwinm. r28,r28,27,5,31                        
ffc181a0:	40 82 00 f0 	bne-    ffc18290 <msdos_long_to_short+0x1f4>   
ffc181a4:	7d 36 fa 14 	add     r9,r22,r31                             
ffc181a8:	89 29 00 01 	lbz     r9,1(r9)                               
ffc181ac:	71 2a 00 07 	andi.   r10,r9,7                               
ffc181b0:	40 82 00 d4 	bne-    ffc18284 <msdos_long_to_short+0x1e8>   
        (strchr("$%'-_@~`!(){}^#&", ch) != NULL))                     
ffc181b4:	7e 83 a3 78 	mr      r3,r20                                 
ffc181b8:	7f e4 fb 78 	mr      r4,r31                                 
ffc181bc:	48 00 4e 6d 	bl      ffc1d028 <strchr>                      
                                                                      
#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))
ffc181c0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc181c4:	40 be 00 c0 	bne+    cr7,ffc18284 <msdos_long_to_short+0x1e8><== ALWAYS TAKEN
ffc181c8:	48 00 00 9c 	b       ffc18264 <msdos_long_to_short+0x1c8>   <== NOT EXECUTED
            return type;                                              
                                                                      
        if (dot_at >= 0)                                              
        {                                                             
            if (is_dot || ((count - dot_at) > 3))                     
ffc181cc:	7d 39 e8 50 	subf    r9,r25,r29                             
ffc181d0:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc181d4:	40 bd 00 20 	ble+    cr7,ffc181f4 <msdos_long_to_short+0x158><== ALWAYS TAKEN
ffc181d8:	48 00 00 94 	b       ffc1826c <msdos_long_to_short+0x1d0>   <== NOT EXECUTED
                return MSDOS_NAME_LONG;                               
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            if (count == 8 && !is_dot)                                
ffc181dc:	2f 9d 00 08 	cmpwi   cr7,r29,8                              
ffc181e0:	2f 1c 00 00 	cmpwi   cr6,r28,0                              
ffc181e4:	40 be 00 0c 	bne+    cr7,ffc181f0 <msdos_long_to_short+0x154>
ffc181e8:	40 ba 00 28 	bne+    cr6,ffc18210 <msdos_long_to_short+0x174><== NEVER TAKEN
ffc181ec:	48 00 00 80 	b       ffc1826c <msdos_long_to_short+0x1d0>   
#endif                                                                
                return MSDOS_NAME_LONG;                               
            }                                                         
        }                                                             
                                                                      
        if (is_dot)                                                   
ffc181f0:	40 ba 00 28 	bne+    cr6,ffc18218 <msdos_long_to_short+0x17c>
            dot_at = count;                                           
        else if ((*name >= 'A') && (*name <= 'Z'))                    
ffc181f4:	39 3f ff bf 	addi    r9,r31,-65                             
ffc181f8:	2b 89 00 19 	cmplwi  cr7,r9,25                              
ffc181fc:	40 9d 00 24 	ble-    cr7,ffc18220 <msdos_long_to_short+0x184>
            uppercase = true;                                         
        else if ((*name >= 'a') && (*name <= 'z'))                    
ffc18200:	3b ff ff 9f 	addi    r31,r31,-97                            
ffc18204:	2b 9f 00 19 	cmplwi  cr7,r31,25                             
ffc18208:	40 9d 00 20 	ble-    cr7,ffc18228 <msdos_long_to_short+0x18c>
ffc1820c:	48 00 00 20 	b       ffc1822c <msdos_long_to_short+0x190>   
                return MSDOS_NAME_LONG;                               
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            if (count == 8 && !is_dot)                                
ffc18210:	3b 20 00 08 	li      r25,8                                  <== NOT EXECUTED
ffc18214:	48 00 00 18 	b       ffc1822c <msdos_long_to_short+0x190>   <== NOT EXECUTED
#endif                                                                
                return MSDOS_NAME_LONG;                               
            }                                                         
        }                                                             
                                                                      
        if (is_dot)                                                   
ffc18218:	7f b9 eb 78 	mr      r25,r29                                
ffc1821c:	48 00 00 10 	b       ffc1822c <msdos_long_to_short+0x190>   
            dot_at = count;                                           
        else if ((*name >= 'A') && (*name <= 'Z'))                    
            uppercase = true;                                         
ffc18220:	3a e0 00 01 	li      r23,1                                  
ffc18224:	48 00 00 08 	b       ffc1822c <msdos_long_to_short+0x190>   
        else if ((*name >= 'a') && (*name <= 'z'))                    
            lowercase = true;                                         
ffc18228:	3b 00 00 01 	li      r24,1                                  
                                                                      
        count++;                                                      
ffc1822c:	3b bd 00 01 	addi    r29,r29,1                              
    bool lowercase = false;                                           
    bool uppercase = false;                                           
    int  dot_at = -1;                                                 
    int  count = 0;                                                   
                                                                      
    while (*name && (count < name_len))                               
ffc18230:	7f fb e8 ae 	lbzx    r31,r27,r29                            
ffc18234:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc18238:	41 9e 00 0c 	beq-    cr7,ffc18244 <msdos_long_to_short+0x1a8>
ffc1823c:	7f 9d f0 00 	cmpw    cr7,r29,r30                            
ffc18240:	41 9c ff 40 	blt+    cr7,ffc18180 <msdos_long_to_short+0xe4>
                                                                      
        count++;                                                      
        name++;                                                       
    }                                                                 
                                                                      
    if (lowercase && uppercase)                                       
ffc18244:	2f 98 00 00 	cmpwi   cr7,r24,0                              
    }                                                                 
                                                                      
#if MSDOS_NAME_TYPE_PRINT                                             
    printf ("MSDOS_NAME_TYPE: SHORT[1]\n");                           
#endif                                                                
    return MSDOS_NAME_SHORT;                                          
ffc18248:	3b e0 00 01 	li      r31,1                                  
                                                                      
        count++;                                                      
        name++;                                                       
    }                                                                 
                                                                      
    if (lowercase && uppercase)                                       
ffc1824c:	41 9e 00 24 	beq-    cr7,ffc18270 <msdos_long_to_short+0x1d4>
ffc18250:	2f 97 00 00 	cmpwi   cr7,r23,0                              
    {                                                                 
#if MSDOS_NAME_TYPE_PRINT                                             
        printf ("MSDOS_NAME_TYPE: LONG[3]\n");                        
#endif                                                                
        return MSDOS_NAME_LONG;                                       
ffc18254:	3b e0 00 02 	li      r31,2                                  
                                                                      
        count++;                                                      
        name++;                                                       
    }                                                                 
                                                                      
    if (lowercase && uppercase)                                       
ffc18258:	40 be 00 18 	bne+    cr7,ffc18270 <msdos_long_to_short+0x1d4><== NEVER TAKEN
    }                                                                 
                                                                      
#if MSDOS_NAME_TYPE_PRINT                                             
    printf ("MSDOS_NAME_TYPE: SHORT[1]\n");                           
#endif                                                                
    return MSDOS_NAME_SHORT;                                          
ffc1825c:	3b e0 00 01 	li      r31,1                                  
ffc18260:	48 00 00 10 	b       ffc18270 <msdos_long_to_short+0x1d4>   
    if (type == MSDOS_NAME_INVALID)                                   
    {                                                                 
#if MSDOS_L2S_PRINT                                                   
        printf ("MSDOS_L2S: INVALID[2]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif                                                                
        return MSDOS_NAME_INVALID;                                    
ffc18264:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
ffc18268:	48 00 00 34 	b       ffc1829c <msdos_long_to_short+0x200>   <== NOT EXECUTED
            {                                                         
#if MSDOS_NAME_TYPE_PRINT                                             
                printf ("MSDOS_NAME_TYPE: LONG[1]: is_dot:%d, at:%d cnt\n",
                        is_dot, dot_at, count);                       
#endif                                                                
                return MSDOS_NAME_LONG;                               
ffc1826c:	3b e0 00 02 	li      r31,2                                  
        printf ("MSDOS_L2S: INVALID[2]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif                                                                
        return MSDOS_NAME_INVALID;                                    
    }                                                                 
                                                                      
    msdos_filename_unix2dos (lfn, lfn_len, sfn);                      
ffc18270:	7f 63 db 78 	mr      r3,r27                                 
ffc18274:	7f c4 f3 78 	mr      r4,r30                                 
ffc18278:	7f 45 d3 78 	mr      r5,r26                                 
ffc1827c:	48 00 24 55 	bl      ffc1a6d0 <msdos_filename_unix2dos>     
                                                                      
#if MSDOS_L2S_PRINT                                                   
    printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif                                                                
    return type;                                                      
ffc18280:	48 00 00 1c 	b       ffc1829c <msdos_long_to_short+0x200>   
#endif                                                                
                                                                      
        if ((type == MSDOS_NAME_INVALID) || (type == MSDOS_NAME_LONG))
            return type;                                              
                                                                      
        if (dot_at >= 0)                                              
ffc18284:	2f 99 ff ff 	cmpwi   cr7,r25,-1                             
ffc18288:	40 9e ff 44 	bne+    cr7,ffc181cc <msdos_long_to_short+0x130>
ffc1828c:	4b ff ff 50 	b       ffc181dc <msdos_long_to_short+0x140>   
ffc18290:	2f 99 ff ff 	cmpwi   cr7,r25,-1                             
ffc18294:	40 9e ff d8 	bne+    cr7,ffc1826c <msdos_long_to_short+0x1d0>
ffc18298:	4b ff ff 44 	b       ffc181dc <msdos_long_to_short+0x140>   
                                                                      
#if MSDOS_L2S_PRINT                                                   
    printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif                                                                
    return type;                                                      
}                                                                     
ffc1829c:	39 61 00 38 	addi    r11,r1,56                              
ffc182a0:	7f e3 fb 78 	mr      r3,r31                                 
ffc182a4:	4b fe 93 2c 	b       ffc015d0 <_restgpr_20_x>               
                                                                      

ffc0f2c8 <msdos_mknod>: msdos_node_type_t type = 0; /* * Figure out what type of msdos node this is. */ if (S_ISDIR(mode))
ffc0f2c8:	54 ca 04 26 	rlwinm  r10,r6,0,16,19                         
ffc0f2cc:	2f 8a 40 00 	cmpwi   cr7,r10,16384                          
    const char *name,                                                 
    size_t namelen,                                                   
    mode_t mode,                                                      
    dev_t dev                                                         
)                                                                     
{                                                                     
ffc0f2d0:	7c 8b 23 78 	mr      r11,r4                                 
ffc0f2d4:	7c a8 2b 78 	mr      r8,r5                                  
ffc0f2d8:	7c c7 33 78 	mr      r7,r6                                  
    msdos_node_type_t    type = 0;                                    
                                                                      
    /*                                                                
     *  Figure out what type of msdos node this is.                   
     */                                                               
    if (S_ISDIR(mode))                                                
ffc0f2dc:	41 9e 00 24 	beq-    cr7,ffc0f300 <msdos_mknod+0x38>        
    {                                                                 
       type = MSDOS_DIRECTORY;                                        
    }                                                                 
    else if (S_ISREG(mode))                                           
ffc0f2e0:	6d 46 ff ff 	xoris   r6,r10,65535                           
ffc0f2e4:	2f 86 80 00 	cmpwi   cr7,r6,-32768                          
    {                                                                 
        type = MSDOS_REGULAR_FILE;                                    
ffc0f2e8:	38 80 00 04 	li      r4,4                                   
     */                                                               
    if (S_ISDIR(mode))                                                
    {                                                                 
       type = MSDOS_DIRECTORY;                                        
    }                                                                 
    else if (S_ISREG(mode))                                           
ffc0f2ec:	41 9e 00 18 	beq-    cr7,ffc0f304 <msdos_mknod+0x3c>        <== ALWAYS TAKEN
    const char *name,                                                 
    size_t namelen,                                                   
    mode_t mode,                                                      
    dev_t dev                                                         
)                                                                     
{                                                                     
ffc0f2f0:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc0f2f4:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc0f2f8:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
ffc0f2fc:	48 00 00 18 	b       ffc0f314 <msdos_mknod+0x4c>            <== NOT EXECUTED
    /*                                                                
     *  Figure out what type of msdos node this is.                   
     */                                                               
    if (S_ISDIR(mode))                                                
    {                                                                 
       type = MSDOS_DIRECTORY;                                        
ffc0f300:	38 80 00 00 	li      r4,0                                   
    }                                                                 
    else                                                              
        rtems_set_errno_and_return_minus_one(EINVAL);                 
                                                                      
    /* Create an MSDOS node */                                        
    rc = msdos_creat_node(parentloc, type, name, namelen, mode, NULL);
ffc0f304:	7d 06 43 78 	mr      r6,r8                                  
ffc0f308:	7d 65 5b 78 	mr      r5,r11                                 
ffc0f30c:	39 00 00 00 	li      r8,0                                   
ffc0f310:	48 00 88 68 	b       ffc17b78 <msdos_creat_node>            
    else if (S_ISREG(mode))                                           
    {                                                                 
        type = MSDOS_REGULAR_FILE;                                    
    }                                                                 
    else                                                              
        rtems_set_errno_and_return_minus_one(EINVAL);                 
ffc0f314:	48 00 c0 61 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
                                                                      
    /* Create an MSDOS node */                                        
    rc = msdos_creat_node(parentloc, type, name, namelen, mode, NULL);
                                                                      
    return rc;                                                        
}                                                                     
ffc0f318:	80 01 00 0c 	lwz     r0,12(r1)                              <== NOT EXECUTED
    else if (S_ISREG(mode))                                           
    {                                                                 
        type = MSDOS_REGULAR_FILE;                                    
    }                                                                 
    else                                                              
        rtems_set_errno_and_return_minus_one(EINVAL);                 
ffc0f31c:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
                                                                      
    /* Create an MSDOS node */                                        
    rc = msdos_creat_node(parentloc, type, name, namelen, mode, NULL);
                                                                      
    return rc;                                                        
}                                                                     
ffc0f320:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
    else if (S_ISREG(mode))                                           
    {                                                                 
        type = MSDOS_REGULAR_FILE;                                    
    }                                                                 
    else                                                              
        rtems_set_errno_and_return_minus_one(EINVAL);                 
ffc0f324:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
                                                                      
    /* Create an MSDOS node */                                        
    rc = msdos_creat_node(parentloc, type, name, namelen, mode, NULL);
                                                                      
    return rc;                                                        
}                                                                     
ffc0f328:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc0f32c:	38 21 00 08 	addi    r1,r1,8                                <== NOT EXECUTED
ffc0f330:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc0f340 <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 ) {
ffc0f340:	94 21 ff f0 	stwu    r1,-16(r1)                             <== NOT EXECUTED
ffc0f344:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
                                                                      
    /*                                                                
     * create new directory entry as "hard link", copying relevant info from
     * existing file                                                  
     */                                                               
    rc = msdos_creat_node(new_parent_loc,                             
ffc0f348:	7c a3 2b 78 	mr      r3,r5                                  <== 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                                                
)                                                                     
{                                                                     
ffc0f34c:	90 01 00 14 	stw     r0,20(r1)                              <== NOT EXECUTED
                                                                      
    /*                                                                
     * create new directory entry as "hard link", copying relevant info from
     * existing file                                                  
     */                                                               
    rc = msdos_creat_node(new_parent_loc,                             
ffc0f350:	7c c5 33 78 	mr      r5,r6                                  <== NOT EXECUTED
ffc0f354:	7c e6 3b 78 	mr      r6,r7                                  <== 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                                                
)                                                                     
{                                                                     
ffc0f358:	bf c1 00 08 	stmw    r30,8(r1)                              <== NOT EXECUTED
                                                                      
    /*                                                                
     * create new directory entry as "hard link", copying relevant info from
     * existing file                                                  
     */                                                               
    rc = msdos_creat_node(new_parent_loc,                             
ffc0f35c:	38 e0 00 00 	li      r7,0                                   <== 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                                                
)                                                                     
{                                                                     
ffc0f360:	7c 9e 23 78 	mr      r30,r4                                 <== NOT EXECUTED
    int                rc = RC_OK;                                    
    fat_file_fd_t     *old_fat_fd  = old_loc->node_access;            
ffc0f364:	83 e4 00 08 	lwz     r31,8(r4)                              <== NOT EXECUTED
                                                                      
    /*                                                                
     * create new directory entry as "hard link", copying relevant info from
     * existing file                                                  
     */                                                               
    rc = msdos_creat_node(new_parent_loc,                             
ffc0f368:	60 e7 80 00 	ori     r7,r7,32768                            <== NOT EXECUTED
ffc0f36c:	38 80 00 02 	li      r4,2                                   <== NOT EXECUTED
ffc0f370:	7f e8 fb 78 	mr      r8,r31                                 <== NOT EXECUTED
ffc0f374:	48 00 88 05 	bl      ffc17b78 <msdos_creat_node>            <== NOT EXECUTED
                          MSDOS_HARD_LINK,new_name,new_namelen,S_IFREG,
                          old_fat_fd);                                
    if (rc != RC_OK)                                                  
ffc0f378:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc0f37c:	40 be 00 24 	bne+    cr7,ffc0f3a0 <msdos_rename+0x60>       <== NOT EXECUTED
    rc = msdos_set_first_char4file_name(old_loc->mt_entry,            
                                        &old_fat_fd->dir_pos,         
                                        MSDOS_THIS_DIR_ENTRY_EMPTY);  
                                                                      
    return rc;                                                        
}                                                                     
ffc0f380:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * mark file removed                                              
     */                                                               
    rc = msdos_set_first_char4file_name(old_loc->mt_entry,            
ffc0f384:	38 9f 00 20 	addi    r4,r31,32                              <== NOT EXECUTED
ffc0f388:	80 7e 00 14 	lwz     r3,20(r30)                             <== NOT EXECUTED
ffc0f38c:	38 a0 00 e5 	li      r5,229                                 <== NOT EXECUTED
                                        &old_fat_fd->dir_pos,         
                                        MSDOS_THIS_DIR_ENTRY_EMPTY);  
                                                                      
    return rc;                                                        
}                                                                     
ffc0f390:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0f394:	bb c1 00 08 	lmw     r30,8(r1)                              <== NOT EXECUTED
ffc0f398:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * mark file removed                                              
     */                                                               
    rc = msdos_set_first_char4file_name(old_loc->mt_entry,            
ffc0f39c:	48 00 91 4c 	b       ffc184e8 <msdos_set_first_char4file_name><== NOT EXECUTED
                                        &old_fat_fd->dir_pos,         
                                        MSDOS_THIS_DIR_ENTRY_EMPTY);  
                                                                      
    return rc;                                                        
}                                                                     
ffc0f3a0:	39 61 00 10 	addi    r11,r1,16                              <== NOT EXECUTED
ffc0f3a4:	4b ff 22 54 	b       ffc015f8 <_restgpr_30_x>               <== NOT EXECUTED
                                                                      

ffc0f3a8 <msdos_rmnod>: #include "msdos.h" int msdos_rmnod(const rtems_filesystem_location_info_t *parent_pathloc, const rtems_filesystem_location_info_t *pathloc) {
ffc0f3a8:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0f3ac:	7c 08 02 a6 	mflr    r0                                     
ffc0f3b0:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0f3b4:	bf 81 00 18 	stmw    r28,24(r1)                             
ffc0f3b8:	7c 9d 23 78 	mr      r29,r4                                 
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = pathloc->mt_entry->fs_info;          
    fat_file_fd_t     *fat_fd = pathloc->node_access;                 
ffc0f3bc:	83 e4 00 08 	lwz     r31,8(r4)                              
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;          
ffc0f3c0:	80 64 00 14 	lwz     r3,20(r4)                              
    fat_file_fd_t     *fat_fd = pathloc->node_access;                 
                                                                      
    if (fat_fd->fat_file_type == MSDOS_DIRECTORY)                     
ffc0f3c4:	81 5f 00 10 	lwz     r10,16(r31)                            
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;          
ffc0f3c8:	83 83 00 08 	lwz     r28,8(r3)                              
    fat_file_fd_t     *fat_fd = pathloc->node_access;                 
                                                                      
    if (fat_fd->fat_file_type == MSDOS_DIRECTORY)                     
ffc0f3cc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0f3d0:	40 9e 00 54 	bne-    cr7,ffc0f424 <msdos_rmnod+0x7c>        
    {                                                                 
        bool is_empty = false;                                        
ffc0f3d4:	7c 25 0b 78 	mr      r5,r1                                  
ffc0f3d8:	9d 45 00 08 	stbu    r10,8(r5)                              
                                                                      
        /*                                                            
         * You cannot remove a node that still has children           
         */                                                           
        rc = msdos_dir_is_empty(pathloc->mt_entry, fat_fd, &is_empty);
ffc0f3dc:	7f e4 fb 78 	mr      r4,r31                                 
ffc0f3e0:	48 00 92 29 	bl      ffc18608 <msdos_dir_is_empty>          
        if (rc != RC_OK)                                              
ffc0f3e4:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0f3e8:	40 82 00 60 	bne-    ffc0f448 <msdos_rmnod+0xa0>            <== NEVER TAKEN
        {                                                             
            return rc;                                                
        }                                                             
                                                                      
        if (!is_empty)                                                
ffc0f3ec:	89 21 00 08 	lbz     r9,8(r1)                               
ffc0f3f0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f3f4:	40 be 00 10 	bne+    cr7,ffc0f404 <msdos_rmnod+0x5c>        
        {                                                             
            rtems_set_errno_and_return_minus_one(ENOTEMPTY);          
ffc0f3f8:	48 00 bf 7d 	bl      ffc1b374 <__errno>                     
ffc0f3fc:	39 20 00 5a 	li      r9,90                                  
ffc0f400:	48 00 00 18 	b       ffc0f418 <msdos_rmnod+0x70>            
                                                                      
        /*                                                            
         * We deny attempts to delete open directory (if directory is current
         * directory we assume it is open one)                        
         */                                                           
        if (fat_fd->links_num > 1)                                    
ffc0f404:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0f408:	2b 89 00 01 	cmplwi  cr7,r9,1                               
ffc0f40c:	40 9d 00 18 	ble-    cr7,ffc0f424 <msdos_rmnod+0x7c>        <== ALWAYS TAKEN
        {                                                             
            rtems_set_errno_and_return_minus_one(EBUSY);              
ffc0f410:	48 00 bf 65 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc0f414:	39 20 00 10 	li      r9,16                                  <== NOT EXECUTED
ffc0f418:	91 23 00 00 	stw     r9,0(r3)                               
ffc0f41c:	3b c0 ff ff 	li      r30,-1                                 
ffc0f420:	48 00 00 28 	b       ffc0f448 <msdos_rmnod+0xa0>            
         * not used - mount() not implemenetd yet.                    
         */                                                           
    }                                                                 
                                                                      
    /* mark file removed */                                           
    rc = msdos_set_first_char4file_name(pathloc->mt_entry, &fat_fd->dir_pos,
ffc0f424:	80 7d 00 14 	lwz     r3,20(r29)                             
ffc0f428:	38 9f 00 20 	addi    r4,r31,32                              
ffc0f42c:	38 a0 00 e5 	li      r5,229                                 
ffc0f430:	48 00 90 b9 	bl      ffc184e8 <msdos_set_first_char4file_name>
                                        MSDOS_THIS_DIR_ENTRY_EMPTY);  
    if (rc != RC_OK)                                                  
ffc0f434:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0f438:	40 a2 00 10 	bne+    ffc0f448 <msdos_rmnod+0xa0>            <== NEVER TAKEN
    {                                                                 
        return rc;                                                    
    }                                                                 
                                                                      
    fat_file_mark_removed(&fs_info->fat, fat_fd);                     
ffc0f43c:	7f 83 e3 78 	mr      r3,r28                                 
ffc0f440:	7f e4 fb 78 	mr      r4,r31                                 
ffc0f444:	48 00 43 6d 	bl      ffc137b0 <fat_file_mark_removed>       
                                                                      
    return rc;                                                        
}                                                                     
ffc0f448:	39 61 00 28 	addi    r11,r1,40                              
ffc0f44c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0f450:	4b ff 21 a0 	b       ffc015f0 <_restgpr_28_x>               
                                                                      

ffc182a8 <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 ) {
ffc182a8:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc182ac:	7c 08 02 a6 	mflr    r0                                     
ffc182b0:	90 01 00 34 	stw     r0,52(r1)                              
    uint16_t         time_val;                                        
    uint16_t         date;                                            
    uint32_t         sec = 0;                                         
    uint32_t         byte = 0;                                        
                                                                      
    msdos_date_unix2dos(fat_fd->mtime, &date, &time_val);             
ffc182b4:	38 a1 00 0a 	addi    r5,r1,10                               
int                                                                   
msdos_set_dir_wrt_time_and_date(                                      
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
ffc182b8:	bf 61 00 1c 	stmw    r27,28(r1)                             
ffc182bc:	7c 9e 23 78 	mr      r30,r4                                 
    ssize_t          ret1 = 0, ret2 = 0, ret3 = 0;                    
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc182c0:	83 e3 00 08 	lwz     r31,8(r3)                              
    uint16_t         time_val;                                        
    uint16_t         date;                                            
    uint32_t         sec = 0;                                         
    uint32_t         byte = 0;                                        
                                                                      
    msdos_date_unix2dos(fat_fd->mtime, &date, &time_val);             
ffc182c4:	80 64 00 40 	lwz     r3,64(r4)                              
ffc182c8:	38 81 00 08 	addi    r4,r1,8                                
ffc182cc:	48 00 21 e5 	bl      ffc1a4b0 <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);
ffc182d0:	80 9e 00 20 	lwz     r4,32(r30)                             
ffc182d4:	7f e3 fb 78 	mr      r3,r31                                 
ffc182d8:	4b ff fd 91 	bl      ffc18068 <fat_cluster_num_to_sector_num>
    sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);  
ffc182dc:	81 3e 00 24 	lwz     r9,36(r30)                             
    /* byte points to start of 32bytes structure */                   
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
ffc182e0:	a3 df 00 00 	lhz     r30,0(r31)                             
                                                                      
    time_val = CT_LE_W(time_val);                                     
    ret1 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WTIME_OFFSET,
ffc182e4:	38 c0 00 02 	li      r6,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);
    sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);  
ffc182e8:	8b bf 00 02 	lbz     r29,2(r31)                             
    /* 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,
ffc182ec:	38 e1 00 0a 	addi    r7,r1,10                               
     * (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);  
    /* byte points to start of 32bytes structure */                   
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
ffc182f0:	3b de ff ff 	addi    r30,r30,-1                             
ffc182f4:	7f de 48 38 	and     r30,r30,r9                             
    /*                                                                
     * 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);  
ffc182f8:	7d 3d ec 30 	srw     r29,r9,r29                             
    /* 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);                                     
ffc182fc:	a1 21 00 0a 	lhz     r9,10(r1)                              
    /*                                                                
     * 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);  
ffc18300:	7f a3 ea 14 	add     r29,r3,r29                             
    /* 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);                                     
ffc18304:	55 2a 40 2e 	rlwinm  r10,r9,8,0,23                          
ffc18308:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc1830c:	7d 49 4b 78 	or      r9,r10,r9                              
    ret1 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WTIME_OFFSET,
ffc18310:	7f a4 eb 78 	mr      r4,r29                                 
    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);                                     
ffc18314:	b1 21 00 0a 	sth     r9,10(r1)                              
    ret1 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WTIME_OFFSET,
ffc18318:	38 be 00 16 	addi    r5,r30,22                              
ffc1831c:	7f e3 fb 78 	mr      r3,r31                                 
ffc18320:	4b ff b9 15 	bl      ffc13c34 <fat_sector_write>            
                            2, (char *)(&time_val));                  
    date = CT_LE_W(date);                                             
ffc18324:	a1 21 00 08 	lhz     r9,8(r1)                               
    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,
ffc18328:	7c 7b 1b 78 	mr      r27,r3                                 
                            2, (char *)(&time_val));                  
    date = CT_LE_W(date);                                             
ffc1832c:	55 2a 40 2e 	rlwinm  r10,r9,8,0,23                          
ffc18330:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc18334:	7d 49 4b 78 	or      r9,r10,r9                              
    ret2 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WDATE_OFFSET,
ffc18338:	7f a4 eb 78 	mr      r4,r29                                 
    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);                                             
ffc1833c:	b1 21 00 08 	sth     r9,8(r1)                               
    ret2 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WDATE_OFFSET,
ffc18340:	38 be 00 18 	addi    r5,r30,24                              
ffc18344:	38 c0 00 02 	li      r6,2                                   
ffc18348:	38 e1 00 08 	addi    r7,r1,8                                
ffc1834c:	7f e3 fb 78 	mr      r3,r31                                 
ffc18350:	4b ff b8 e5 	bl      ffc13c34 <fat_sector_write>            
                            2, (char *)(&date));                      
    ret3 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_ADATE_OFFSET,
ffc18354:	7f a4 eb 78 	mr      r4,r29                                 
                                                                      
    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,
ffc18358:	7c 7c 1b 78 	mr      r28,r3                                 
                            2, (char *)(&date));                      
    ret3 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_ADATE_OFFSET,
ffc1835c:	38 be 00 12 	addi    r5,r30,18                              
ffc18360:	7f e3 fb 78 	mr      r3,r31                                 
ffc18364:	38 c0 00 02 	li      r6,2                                   
ffc18368:	38 e1 00 08 	addi    r7,r1,8                                
ffc1836c:	4b ff b8 c9 	bl      ffc13c34 <fat_sector_write>            
                            2, (char *)(&date));                      
                                                                      
    if ( (ret1 < 0) || (ret2 < 0) || (ret3 < 0) )                     
ffc18370:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc18374:	40 bc 00 0c 	bge+    cr7,ffc18380 <msdos_set_dir_wrt_time_and_date+0xd8><== ALWAYS TAKEN
        return -1;                                                    
ffc18378:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1837c:	48 00 00 18 	b       ffc18394 <msdos_set_dir_wrt_time_and_date+0xec><== NOT EXECUTED
    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) )                     
ffc18380:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc18384:	41 bc ff f4 	blt-    cr7,ffc18378 <msdos_set_dir_wrt_time_and_date+0xd0><== NEVER TAKEN
ffc18388:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1838c:	41 bc ff ec 	blt-    cr7,ffc18378 <msdos_set_dir_wrt_time_and_date+0xd0><== NEVER TAKEN
        return -1;                                                    
                                                                      
    return RC_OK;                                                     
ffc18390:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc18394:	39 61 00 30 	addi    r11,r1,48                              
ffc18398:	4b fe 92 54 	b       ffc015ec <_restgpr_27_x>               
                                                                      

ffc184e8 <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 ) {
ffc184e8:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc184ec:	7c 08 02 a6 	mflr    r0                                     
ffc184f0:	90 01 00 34 	stw     r0,52(r1)                              
ffc184f4:	bf 81 00 20 	stmw    r28,32(r1)                             
    ssize_t          ret;                                             
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         dir_block_size;                                  
    fat_pos_t        start = dir_pos->lname;                          
ffc184f8:	81 24 00 08 	lwz     r9,8(r4)                               
    fat_dir_pos_t                        *dir_pos,                    
    unsigned char                         fchar                       
    )                                                                 
{                                                                     
    ssize_t          ret;                                             
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc184fc:	83 e3 00 08 	lwz     r31,8(r3)                              
    uint32_t         dir_block_size;                                  
    fat_pos_t        start = dir_pos->lname;                          
ffc18500:	91 21 00 08 	stw     r9,8(r1)                               
    fat_pos_t        end = dir_pos->sname;                            
ffc18504:	83 c4 00 00 	lwz     r30,0(r4)                              
                                                                      
    if ((end.cln == fs_info->fat.vol.rdir_cl) &&                      
ffc18508:	81 3f 00 3c 	lwz     r9,60(r31)                             
    )                                                                 
{                                                                     
    ssize_t          ret;                                             
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         dir_block_size;                                  
    fat_pos_t        start = dir_pos->lname;                          
ffc1850c:	81 44 00 0c 	lwz     r10,12(r4)                             
    fat_pos_t        end = dir_pos->sname;                            
                                                                      
    if ((end.cln == fs_info->fat.vol.rdir_cl) &&                      
ffc18510:	7f 9e 48 00 	cmpw    cr7,r30,r9                             
msdos_set_first_char4file_name(                                       
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_dir_pos_t                        *dir_pos,                    
    unsigned char                         fchar                       
    )                                                                 
{                                                                     
ffc18514:	98 a1 00 18 	stb     r5,24(r1)                              
    ssize_t          ret;                                             
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         dir_block_size;                                  
    fat_pos_t        start = dir_pos->lname;                          
ffc18518:	91 41 00 0c 	stw     r10,12(r1)                             
    fat_pos_t        end = dir_pos->sname;                            
ffc1851c:	83 84 00 04 	lwz     r28,4(r4)                              
                                                                      
    if ((end.cln == fs_info->fat.vol.rdir_cl) &&                      
ffc18520:	40 be 00 18 	bne+    cr7,ffc18538 <msdos_set_first_char4file_name+0x50><== NEVER TAKEN
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
ffc18524:	89 3f 00 0e 	lbz     r9,14(r31)                             
    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) &&                      
ffc18528:	71 2a 00 03 	andi.   r10,r9,3                               
ffc1852c:	41 82 00 0c 	beq-    ffc18538 <msdos_set_first_char4file_name+0x50><== NEVER TAKEN
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
      dir_block_size = fs_info->fat.vol.rdir_size;                    
ffc18530:	83 bf 00 2c 	lwz     r29,44(r31)                            
ffc18534:	48 00 00 08 	b       ffc1853c <msdos_set_first_char4file_name+0x54>
    else                                                              
      dir_block_size = fs_info->fat.vol.bpc;                          
ffc18538:	a3 bf 00 06 	lhz     r29,6(r31)                             <== NOT EXECUTED
                                                                      
    if (dir_pos->lname.cln == FAT_FILE_SHORT_NAME)                    
ffc1853c:	81 24 00 08 	lwz     r9,8(r4)                               
ffc18540:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc18544:	40 be 00 14 	bne+    cr7,ffc18558 <msdos_set_first_char4file_name+0x70>
      start = dir_pos->sname;                                         
ffc18548:	81 24 00 00 	lwz     r9,0(r4)                               
ffc1854c:	81 44 00 04 	lwz     r10,4(r4)                              
ffc18550:	91 21 00 08 	stw     r9,8(r1)                               
ffc18554:	91 41 00 0c 	stw     r10,12(r1)                             
     * 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) +
ffc18558:	80 81 00 08 	lwz     r4,8(r1)                               
ffc1855c:	7f e3 fb 78 	mr      r3,r31                                 
ffc18560:	4b ff fb 09 	bl      ffc18068 <fat_cluster_num_to_sector_num>
                      (start.ofs >> fs_info->fat.vol.sec_log2));      
ffc18564:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc18568:	88 9f 00 02 	lbz     r4,2(r31)                              
      uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));       
                                                                      
      ret = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_NAME_OFFSET,
ffc1856c:	38 c0 00 01 	li      r6,1                                   
     */                                                               
    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));       
ffc18570:	a0 bf 00 00 	lhz     r5,0(r31)                              
                                                                      
      ret = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_NAME_OFFSET,
ffc18574:	38 e1 00 18 	addi    r7,r1,24                               
     * interface.                                                     
     */                                                               
    while (true)                                                      
    {                                                                 
      uint32_t sec = (fat_cluster_num_to_sector_num(&fs_info->fat, start.cln) +
                      (start.ofs >> fs_info->fat.vol.sec_log2));      
ffc18578:	7d 24 24 30 	srw     r4,r9,r4                               
      uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));       
ffc1857c:	38 a5 ff ff 	addi    r5,r5,-1                               
     * 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) +
ffc18580:	7c 83 22 14 	add     r4,r3,r4                               
                      (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,
ffc18584:	7c a5 48 38 	and     r5,r5,r9                               
ffc18588:	7f e3 fb 78 	mr      r3,r31                                 
ffc1858c:	4b ff b6 a9 	bl      ffc13c34 <fat_sector_write>            
                             1, &fchar);                              
      if (ret < 0)                                                    
ffc18590:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc18594:	41 9c 00 68 	blt-    cr7,ffc185fc <msdos_set_first_char4file_name+0x114><== NEVER TAKEN
        return -1;                                                    
                                                                      
      if ((start.cln == end.cln) && (start.ofs == end.ofs))           
ffc18598:	80 81 00 08 	lwz     r4,8(r1)                               
ffc1859c:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc185a0:	7f 84 f0 00 	cmpw    cr7,r4,r30                             
ffc185a4:	40 be 00 14 	bne+    cr7,ffc185b8 <msdos_set_first_char4file_name+0xd0><== NEVER TAKEN
ffc185a8:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
ffc185ac:	40 be 00 0c 	bne+    cr7,ffc185b8 <msdos_set_first_char4file_name+0xd0>
          return rc;                                                  
        start.ofs = 0;                                                
      }                                                               
    }                                                                 
                                                                      
    return  RC_OK;                                                    
ffc185b0:	38 60 00 00 	li      r3,0                                   
ffc185b4:	48 00 00 4c 	b       ffc18600 <msdos_set_first_char4file_name+0x118>
        return -1;                                                    
                                                                      
      if ((start.cln == end.cln) && (start.ofs == end.ofs))           
        break;                                                        
                                                                      
      start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;                 
ffc185b8:	39 29 00 20 	addi    r9,r9,32                               
      if (start.ofs >= dir_block_size)                                
ffc185bc:	7f 89 e8 40 	cmplw   cr7,r9,r29                             
        return -1;                                                    
                                                                      
      if ((start.cln == end.cln) && (start.ofs == end.ofs))           
        break;                                                        
                                                                      
      start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;                 
ffc185c0:	91 21 00 0c 	stw     r9,12(r1)                              
      if (start.ofs >= dir_block_size)                                
ffc185c4:	41 9c ff 94 	blt+    cr7,ffc18558 <msdos_set_first_char4file_name+0x70><== ALWAYS TAKEN
      {                                                               
        int rc;                                                       
        if ((end.cln == fs_info->fat.vol.rdir_cl) &&                  
ffc185c8:	81 3f 00 3c 	lwz     r9,60(r31)                             <== NOT EXECUTED
ffc185cc:	7f 9e 48 00 	cmpw    cr7,r30,r9                             <== NOT EXECUTED
ffc185d0:	40 9e 00 10 	bne-    cr7,ffc185e0 <msdos_set_first_char4file_name+0xf8><== NOT EXECUTED
            (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))        
ffc185d4:	89 3f 00 0e 	lbz     r9,14(r31)                             <== 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) &&                  
ffc185d8:	71 2a 00 03 	andi.   r10,r9,3                               <== NOT EXECUTED
ffc185dc:	40 a2 ff d4 	bne-    ffc185b0 <msdos_set_first_char4file_name+0xc8><== NOT EXECUTED
            (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))        
          break;                                                      
        rc = fat_get_fat_cluster(&fs_info->fat, start.cln, &start.cln);
ffc185e0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc185e4:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc185e8:	48 00 11 bd 	bl      ffc197a4 <fat_get_fat_cluster>         <== NOT EXECUTED
        if ( rc != RC_OK )                                            
ffc185ec:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc185f0:	40 82 00 10 	bne-    ffc18600 <msdos_set_first_char4file_name+0x118><== NOT EXECUTED
          return rc;                                                  
        start.ofs = 0;                                                
ffc185f4:	90 61 00 0c 	stw     r3,12(r1)                              <== NOT EXECUTED
ffc185f8:	4b ff ff 60 	b       ffc18558 <msdos_set_first_char4file_name+0x70><== 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;                                                    
ffc185fc:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
        start.ofs = 0;                                                
      }                                                               
    }                                                                 
                                                                      
    return  RC_OK;                                                    
}                                                                     
ffc18600:	39 61 00 30 	addi    r11,r1,48                              
ffc18604:	4b fe 8f ec 	b       ffc015f0 <_restgpr_28_x>               
                                                                      

ffc1839c <msdos_set_first_cluster_num>: int msdos_set_first_cluster_num( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) {
ffc1839c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc183a0:	7c 08 02 a6 	mflr    r0                                     
    ssize_t          ret1 = 0, ret2 = 0;                              
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         new_cln = fat_fd->cln;                           
    uint16_t         le_cl_low = 0;                                   
ffc183a4:	39 20 00 00 	li      r9,0                                   
int                                                                   
msdos_set_first_cluster_num(                                          
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
ffc183a8:	90 01 00 34 	stw     r0,52(r1)                              
ffc183ac:	bf 61 00 1c 	stmw    r27,28(r1)                             
ffc183b0:	7c 9d 23 78 	mr      r29,r4                                 
    ssize_t          ret1 = 0, ret2 = 0;                              
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc183b4:	83 e3 00 08 	lwz     r31,8(r3)                              
    uint32_t         new_cln = fat_fd->cln;                           
ffc183b8:	83 c4 00 1c 	lwz     r30,28(r4)                             
                                                                      
    /*                                                                
     * 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);
ffc183bc:	80 84 00 20 	lwz     r4,32(r4)                              
ffc183c0:	7f e3 fb 78 	mr      r3,r31                                 
    )                                                                 
{                                                                     
    ssize_t          ret1 = 0, ret2 = 0;                              
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         new_cln = fat_fd->cln;                           
    uint16_t         le_cl_low = 0;                                   
ffc183c4:	b1 21 00 0a 	sth     r9,10(r1)                              
    uint16_t         le_cl_hi = 0;                                    
ffc183c8:	b1 21 00 08 	sth     r9,8(r1)                               
                                                                      
    /*                                                                
     * 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);
ffc183cc:	4b ff fc 9d 	bl      ffc18068 <fat_cluster_num_to_sector_num>
    sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);  
    /* byte from points to start of 32bytes structure */              
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
                                                                      
    le_cl_low = CT_LE_W((uint16_t  )(new_cln & 0x0000FFFF));          
ffc183d0:	57 ca 42 2e 	rlwinm  r10,r30,8,8,23                         
    /*                                                                
     * 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);  
ffc183d4:	81 3d 00 24 	lwz     r9,36(r29)                             
    /* byte from points to start of 32bytes structure */              
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
                                                                      
    le_cl_low = CT_LE_W((uint16_t  )(new_cln & 0x0000FFFF));          
ffc183d8:	7c 27 0b 78 	mr      r7,r1                                  
     * (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);  
    /* byte from points to start of 32bytes structure */              
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
ffc183dc:	a3 bf 00 00 	lhz     r29,0(r31)                             
                                                                      
    le_cl_low = CT_LE_W((uint16_t  )(new_cln & 0x0000FFFF));          
    ret1 = fat_sector_write(&fs_info->fat, sec,                       
ffc183e0:	38 c0 00 02 	li      r6,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);
    sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);  
ffc183e4:	8b 9f 00 02 	lbz     r28,2(r31)                             
    /* byte from points to start of 32bytes structure */              
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
ffc183e8:	3b bd ff ff 	addi    r29,r29,-1                             
ffc183ec:	7f bd 48 38 	and     r29,r29,r9                             
    /*                                                                
     * 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);  
ffc183f0:	7d 3c e4 30 	srw     r28,r9,r28                             
    /* byte from points to start of 32bytes structure */              
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
                                                                      
    le_cl_low = CT_LE_W((uint16_t  )(new_cln & 0x0000FFFF));          
ffc183f4:	57 c9 c6 3e 	rlwinm  r9,r30,24,24,31                        
ffc183f8:	7d 49 4b 78 	or      r9,r10,r9                              
    /*                                                                
     * 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);  
ffc183fc:	7f 83 e2 14 	add     r28,r3,r28                             
    /* byte from points to start of 32bytes structure */              
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
                                                                      
    le_cl_low = CT_LE_W((uint16_t  )(new_cln & 0x0000FFFF));          
ffc18400:	b5 27 00 0a 	sthu    r9,10(r7)                              
    ret1 = fat_sector_write(&fs_info->fat, sec,                       
ffc18404:	7f 84 e3 78 	mr      r4,r28                                 
ffc18408:	38 bd 00 1a 	addi    r5,r29,26                              
                            byte + MSDOS_FIRST_CLUSTER_LOW_OFFSET, 2, 
                            (char *)(&le_cl_low));                    
    le_cl_hi = CT_LE_W((uint16_t  )((new_cln & 0xFFFF0000) >> 16));   
ffc1840c:	57 de 84 3e 	rlwinm  r30,r30,16,16,31                       
    sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);  
    /* byte from points to start of 32bytes structure */              
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
                                                                      
    le_cl_low = CT_LE_W((uint16_t  )(new_cln & 0x0000FFFF));          
    ret1 = fat_sector_write(&fs_info->fat, sec,                       
ffc18410:	7f e3 fb 78 	mr      r3,r31                                 
ffc18414:	4b ff b8 21 	bl      ffc13c34 <fat_sector_write>            
                            byte + MSDOS_FIRST_CLUSTER_LOW_OFFSET, 2, 
                            (char *)(&le_cl_low));                    
    le_cl_hi = CT_LE_W((uint16_t  )((new_cln & 0xFFFF0000) >> 16));   
ffc18418:	57 c9 40 2e 	rlwinm  r9,r30,8,0,23                          
ffc1841c:	57 de c2 3e 	rlwinm  r30,r30,24,8,31                        
ffc18420:	7d 3e f3 78 	or      r30,r9,r30                             
ffc18424:	7c 27 0b 78 	mr      r7,r1                                  
ffc18428:	b7 c7 00 08 	sthu    r30,8(r7)                              
    sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);  
    /* byte from points to start of 32bytes structure */              
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
                                                                      
    le_cl_low = CT_LE_W((uint16_t  )(new_cln & 0x0000FFFF));          
    ret1 = fat_sector_write(&fs_info->fat, sec,                       
ffc1842c:	7c 7b 1b 78 	mr      r27,r3                                 
                            byte + MSDOS_FIRST_CLUSTER_LOW_OFFSET, 2, 
                            (char *)(&le_cl_low));                    
    le_cl_hi = CT_LE_W((uint16_t  )((new_cln & 0xFFFF0000) >> 16));   
    ret2 = fat_sector_write(&fs_info->fat, sec,                       
ffc18430:	7f 84 e3 78 	mr      r4,r28                                 
ffc18434:	7f e3 fb 78 	mr      r3,r31                                 
ffc18438:	38 bd 00 14 	addi    r5,r29,20                              
ffc1843c:	38 c0 00 02 	li      r6,2                                   
ffc18440:	4b ff b7 f5 	bl      ffc13c34 <fat_sector_write>            
                            byte + MSDOS_FIRST_CLUSTER_HI_OFFSET, 2,  
                            (char *)(&le_cl_hi));                     
    if ( (ret1 < 0) || (ret2 < 0) )                                   
ffc18444:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc18448:	40 bc 00 0c 	bge+    cr7,ffc18454 <msdos_set_first_cluster_num+0xb8><== ALWAYS TAKEN
        return -1;                                                    
ffc1844c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc18450:	48 00 00 10 	b       ffc18460 <msdos_set_first_cluster_num+0xc4><== NOT EXECUTED
                            (char *)(&le_cl_low));                    
    le_cl_hi = CT_LE_W((uint16_t  )((new_cln & 0xFFFF0000) >> 16));   
    ret2 = fat_sector_write(&fs_info->fat, sec,                       
                            byte + MSDOS_FIRST_CLUSTER_HI_OFFSET, 2,  
                            (char *)(&le_cl_hi));                     
    if ( (ret1 < 0) || (ret2 < 0) )                                   
ffc18454:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc18458:	41 bc ff f4 	blt-    cr7,ffc1844c <msdos_set_first_cluster_num+0xb0><== NEVER TAKEN
        return -1;                                                    
                                                                      
    return RC_OK;                                                     
ffc1845c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc18460:	39 61 00 30 	addi    r11,r1,48                              
ffc18464:	4b fe 91 88 	b       ffc015ec <_restgpr_27_x>               
                                                                      

ffc0e1dc <msdos_set_sectors_per_cluster_from_request>: msdos_format_param_t *fmt_params ) { int ret_val = -1; uint32_t onebit; if ( rqdata != NULL && rqdata->sectors_per_cluster > 0 ) {
ffc0e1dc:	2c 03 00 00 	cmpwi   r3,0                                   
                                                                      
static int                                                            
msdos_set_sectors_per_cluster_from_request(                           
  const msdos_format_request_param_t *rqdata,                         
  msdos_format_param_t               *fmt_params )                    
{                                                                     
ffc0e1e0:	7c 08 02 a6 	mflr    r0                                     
ffc0e1e4:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0e1e8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0e1ec:	90 01 00 14 	stw     r0,20(r1)                              
ffc0e1f0:	48 01 bc f9 	bl      ffc29ee8 <_savegpr_31>                 
  int      ret_val = -1;                                              
  uint32_t onebit;                                                    
                                                                      
  if ( rqdata != NULL && rqdata->sectors_per_cluster > 0 ) {          
ffc0e1f4:	41 82 00 14 	beq-    ffc0e208 <msdos_set_sectors_per_cluster_from_request+0x2c>
ffc0e1f8:	81 23 00 08 	lwz     r9,8(r3)                               
ffc0e1fc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e200:	41 9e 00 08 	beq-    cr7,ffc0e208 <msdos_set_sectors_per_cluster_from_request+0x2c>
    fmt_params->sectors_per_cluster = rqdata->sectors_per_cluster;    
ffc0e204:	91 24 00 0c 	stw     r9,12(r4)                              
   */                                                                 
  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                          
          <= 32768L / fmt_params->bytes_per_sector ) {                
ffc0e208:	39 00 00 00 	li      r8,0                                   
                                                                      
static int                                                            
msdos_set_sectors_per_cluster_from_request(                           
  const msdos_format_request_param_t *rqdata,                         
  msdos_format_param_t               *fmt_params )                    
{                                                                     
ffc0e20c:	39 20 00 80 	li      r9,128                                 
ffc0e210:	3b e0 ff ff 	li      r31,-1                                 
   */                                                                 
  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                          
          <= 32768L / fmt_params->bytes_per_sector ) {                
ffc0e214:	61 08 80 00 	ori     r8,r8,32768                            
   * 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 ) {                
ffc0e218:	81 44 00 0c 	lwz     r10,12(r4)                             
ffc0e21c:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc0e220:	41 9c 00 20 	blt-    cr7,ffc0e240 <msdos_set_sectors_per_cluster_from_request+0x64>
      fmt_params->sectors_per_cluster = onebit;                       
      if (   fmt_params->sectors_per_cluster                          
          <= 32768L / fmt_params->bytes_per_sector ) {                
ffc0e224:	81 44 00 00 	lwz     r10,0(r4)                              
   * 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;                       
ffc0e228:	91 24 00 0c 	stw     r9,12(r4)                              
      if (   fmt_params->sectors_per_cluster                          
          <= 32768L / fmt_params->bytes_per_sector ) {                
ffc0e22c:	7d 48 53 96 	divwu   r10,r8,r10                             
   * 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                          
ffc0e230:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc0e234:	41 9d 00 0c 	bgt-    cr7,ffc0e240 <msdos_set_sectors_per_cluster_from_request+0x64><== NEVER TAKEN
          <= 32768L / fmt_params->bytes_per_sector ) {                
        /* value is small enough so this value is ok */               
        onebit = 1;                                                   
ffc0e238:	39 20 00 01 	li      r9,1                                   
        ret_val = 0;                                                  
ffc0e23c:	3b e0 00 00 	li      r31,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 ) {           
ffc0e240:	55 29 f8 7f 	rlwinm. r9,r9,31,1,31                          
ffc0e244:	40 82 ff d4 	bne+    ffc0e218 <msdos_set_sectors_per_cluster_from_request+0x3c>
        ret_val = 0;                                                  
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val != 0) {                                                 
ffc0e248:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0e24c:	41 be 00 10 	beq+    cr7,ffc0e25c <msdos_set_sectors_per_cluster_from_request+0x80><== ALWAYS TAKEN
    errno = EINVAL;                                                   
ffc0e250:	48 00 d1 25 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc0e254:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc0e258:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
  }                                                                   
                                                                      
  return ret_val;                                                     
}                                                                     
ffc0e25c:	39 61 00 10 	addi    r11,r1,16                              
ffc0e260:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e264:	4b ff 33 98 	b       ffc015fc <_restgpr_31_x>               
                                                                      

ffc19648 <msdos_sync>: return MSDOS_NAME_NOT_FOUND_ERR; } int msdos_sync(rtems_libio_t *iop) {
ffc19648:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1964c:	7c 08 02 a6 	mflr    r0                                     
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc19650:	38 80 00 00 	li      r4,0                                   
    return MSDOS_NAME_NOT_FOUND_ERR;                                  
}                                                                     
                                                                      
int                                                                   
msdos_sync(rtems_libio_t *iop)                                        
{                                                                     
ffc19654:	90 01 00 14 	stw     r0,20(r1)                              
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc19658:	38 a0 00 00 	li      r5,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;     
ffc1965c:	81 23 00 28 	lwz     r9,40(r3)                              
    return MSDOS_NAME_NOT_FOUND_ERR;                                  
}                                                                     
                                                                      
int                                                                   
msdos_sync(rtems_libio_t *iop)                                        
{                                                                     
ffc19660:	bf c1 00 08 	stmw    r30,8(r1)                              
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc19664:	83 e9 00 08 	lwz     r31,8(r9)                              
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc19668:	80 7f 00 9c 	lwz     r3,156(r31)                            
ffc1966c:	4b ff 0e ed 	bl      ffc0a558 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc19670:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc19674:	41 be 00 18 	beq+    cr7,ffc1968c <msdos_sync+0x44>         <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
ffc19678:	48 00 1c fd 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc1967c:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc19680:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc19684:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc19688:	48 00 00 18 	b       ffc196a0 <msdos_sync+0x58>             <== NOT EXECUTED
                                                                      
    rc = fat_sync(&fs_info->fat);                                     
ffc1968c:	7f e3 fb 78 	mr      r3,r31                                 
ffc19690:	4b ff af d9 	bl      ffc14668 <fat_sync>                    
ffc19694:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc19698:	80 7f 00 9c 	lwz     r3,156(r31)                            
ffc1969c:	4b ff 0f e1 	bl      ffc0a67c <rtems_semaphore_release>     
    return rc;                                                        
}                                                                     
ffc196a0:	39 61 00 10 	addi    r11,r1,16                              
ffc196a4:	7f c3 f3 78 	mr      r3,r30                                 
ffc196a8:	4b fe 7f 50 	b       ffc015f8 <_restgpr_30_x>               
                                                                      

ffc0f078 <msdos_unlock>: rtems_fatal_error_occurred(0xdeadbeef); } } void msdos_unlock(const rtems_filesystem_mount_table_entry_t *mt_entry) {
ffc0f078:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0f07c:	7c 08 02 a6 	mflr    r0                                     
ffc0f080:	90 01 00 0c 	stw     r0,12(r1)                              
  msdos_fs_info_t *fs_info = mt_entry->fs_info;                       
  rtems_status_code sc = rtems_semaphore_release(fs_info->vol_sema);  
ffc0f084:	81 23 00 08 	lwz     r9,8(r3)                               
ffc0f088:	80 69 00 9c 	lwz     r3,156(r9)                             
ffc0f08c:	4b ff b5 f1 	bl      ffc0a67c <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc0f090:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f094:	41 be 00 10 	beq+    cr7,ffc0f0a4 <msdos_unlock+0x2c>       <== ALWAYS TAKEN
    rtems_fatal_error_occurred(0xdeadbeef);                           
ffc0f098:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc0f09c:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc0f0a0:	4b ff bc 45 	bl      ffc0ace4 <rtems_fatal_error_occurred>  <== NOT EXECUTED
  }                                                                   
}                                                                     
ffc0f0a4:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0f0a8:	38 21 00 08 	addi    r1,r1,8                                
ffc0f0ac:	7c 08 03 a6 	mtlr    r0                                     
ffc0f0b0:	4e 80 00 20 	blr                                            
                                                                      

ffc050ec <newlib_delete_hook>: /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) {
ffc050ec:	7f 83 20 00 	cmpw    cr7,r3,r4                              
                                                                      
void newlib_delete_hook(                                              
  rtems_tcb *current_task,                                            
  rtems_tcb *deleted_task                                             
)                                                                     
{                                                                     
ffc050f0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc050f4:	7c 08 02 a6 	mflr    r0                                     
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
    ptr = _REENT;                                                     
ffc050f8:	3d 20 00 00 	lis     r9,0                                   
                                                                      
void newlib_delete_hook(                                              
  rtems_tcb *current_task,                                            
  rtems_tcb *deleted_task                                             
)                                                                     
{                                                                     
ffc050fc:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc05100:	7c 7d 1b 78 	mr      r29,r3                                 
ffc05104:	7c 9e 23 78 	mr      r30,r4                                 
ffc05108:	90 01 00 1c 	stw     r0,28(r1)                              
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
    ptr = _REENT;                                                     
ffc0510c:	83 e9 27 a8 	lwz     r31,10152(r9)                          
                                                                      
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
ffc05110:	41 9e 00 08 	beq-    cr7,ffc05118 <newlib_delete_hook+0x2c> 
    ptr = _REENT;                                                     
  } else {                                                            
    ptr = deleted_task->libc_reent;                                   
ffc05114:	83 e4 01 44 	lwz     r31,324(r4)                            
  }                                                                   
                                                                      
  if (ptr && ptr != _global_impure_ptr) {                             
ffc05118:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0511c:	41 9e 00 2c 	beq-    cr7,ffc05148 <newlib_delete_hook+0x5c> <== NEVER TAKEN
ffc05120:	3d 20 00 00 	lis     r9,0                                   
ffc05124:	81 29 27 a4 	lwz     r9,10148(r9)                           
ffc05128:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc0512c:	41 9e 00 1c 	beq-    cr7,ffc05148 <newlib_delete_hook+0x5c> 
    _reclaim_reent(ptr);                                              
*/                                                                    
    /*                                                                
     *  Just in case there are some buffers lying around.             
     */                                                               
    _fwalk(ptr, newlib_free_buffers);                                 
ffc05130:	3c 80 ff c0 	lis     r4,-64                                 
ffc05134:	7f e3 fb 78 	mr      r3,r31                                 
ffc05138:	38 84 4e d0 	addi    r4,r4,20176                            
ffc0513c:	48 00 b1 a1 	bl      ffc102dc <_fwalk>                      
#if REENT_MALLOCED                                                    
    free(ptr);                                                        
#else                                                                 
    _Workspace_Free(ptr);                                             
ffc05140:	7f e3 fb 78 	mr      r3,r31                                 
ffc05144:	48 00 71 75 	bl      ffc0c2b8 <_Workspace_Free>             
                                                                      
  /*                                                                  
   * Require the switch back to another task to install its own       
   */                                                                 
                                                                      
  if ( current_task == deleted_task ) {                               
ffc05148:	7f 9d f0 00 	cmpw    cr7,r29,r30                            
#else                                                                 
    _Workspace_Free(ptr);                                             
#endif                                                                
  }                                                                   
                                                                      
  deleted_task->libc_reent = NULL;                                    
ffc0514c:	39 20 00 00 	li      r9,0                                   
ffc05150:	91 3e 01 44 	stw     r9,324(r30)                            
                                                                      
  /*                                                                  
   * Require the switch back to another task to install its own       
   */                                                                 
                                                                      
  if ( current_task == deleted_task ) {                               
ffc05154:	40 be 00 0c 	bne+    cr7,ffc05160 <newlib_delete_hook+0x74> 
    _REENT = 0;                                                       
ffc05158:	3d 40 00 00 	lis     r10,0                                  
ffc0515c:	91 2a 27 a8 	stw     r9,10152(r10)                          
  }                                                                   
}                                                                     
ffc05160:	39 61 00 18 	addi    r11,r1,24                              
ffc05164:	4b ff b4 58 	b       ffc005bc <_restgpr_29_x>               
                                                                      

ffc04ed0 <newlib_free_buffers>: * task. */ int newlib_free_buffers( FILE *fp ) {
ffc04ed0:	7c 2b 0b 78 	mr      r11,r1                                 
ffc04ed4:	7c 08 02 a6 	mflr    r0                                     
ffc04ed8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc04edc:	48 01 51 6d 	bl      ffc1a048 <_savegpr_31>                 
ffc04ee0:	90 01 00 14 	stw     r0,20(r1)                              
ffc04ee4:	7c 7f 1b 78 	mr      r31,r3                                 
  switch ( fileno(fp) ) {                                             
ffc04ee8:	48 00 ae 41 	bl      ffc0fd28 <fileno>                      
ffc04eec:	2b 83 00 02 	cmplwi  cr7,r3,2                               
ffc04ef0:	41 9d 00 38 	bgt-    cr7,ffc04f28 <newlib_free_buffers+0x58><== NEVER TAKEN
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
ffc04ef4:	a1 3f 00 0c 	lhz     r9,12(r31)                             
ffc04ef8:	55 29 06 30 	rlwinm  r9,r9,0,24,24                          
ffc04efc:	7d 2a 07 35 	extsh.  r10,r9                                 
ffc04f00:	41 a2 00 30 	beq+    ffc04f30 <newlib_free_buffers+0x60>    <== ALWAYS TAKEN
        free( fp->_bf._base );                                        
ffc04f04:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc04f08:	4b ff f6 55 	bl      ffc0455c <free>                        <== NOT EXECUTED
        fp->_flags &= ~__SMBF;                                        
ffc04f0c:	a1 3f 00 0c 	lhz     r9,12(r31)                             <== NOT EXECUTED
ffc04f10:	55 29 06 6e 	rlwinm  r9,r9,0,25,23                          <== NOT EXECUTED
ffc04f14:	b1 3f 00 0c 	sth     r9,12(r31)                             <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
ffc04f18:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc04f1c:	91 3f 00 00 	stw     r9,0(r31)                              <== NOT EXECUTED
ffc04f20:	91 3f 00 10 	stw     r9,16(r31)                             <== NOT EXECUTED
ffc04f24:	48 00 00 0c 	b       ffc04f30 <newlib_free_buffers+0x60>    <== NOT EXECUTED
      }                                                               
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
ffc04f28:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc04f2c:	48 00 aa 99 	bl      ffc0f9c4 <fclose>                      <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
}                                                                     
ffc04f30:	39 61 00 10 	addi    r11,r1,16                              
ffc04f34:	38 60 00 00 	li      r3,0                                   
ffc04f38:	4b ff b6 8c 	b       ffc005c4 <_restgpr_31_x>               
                                                                      

ffc00ba8 <notify>: void notify (s) char *s; {
ffc00ba8:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc00bac:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc00bb0:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
    printf ("%s test appears to be inconsistent...\n", s);            
ffc00bb4:	3c 60 ff c2 	lis     r3,-62                                 <== NOT EXECUTED
}                                                                     
                                                                      
void                                                                  
notify (s)                                                            
     char   *s;                                                       
{                                                                     
ffc00bb8:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
    printf ("%s test appears to be inconsistent...\n", s);            
ffc00bbc:	38 63 1b 96 	addi    r3,r3,7062                             <== NOT EXECUTED
ffc00bc0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc00bc4:	48 01 64 09 	bl      ffc16fcc <printf>                      <== NOT EXECUTED
    printf ("   PLEASE NOTIFY KARPINKSI!\n");                         
}                                                                     
ffc00bc8:	80 01 00 0c 	lwz     r0,12(r1)                              <== NOT EXECUTED
void                                                                  
notify (s)                                                            
     char   *s;                                                       
{                                                                     
    printf ("%s test appears to be inconsistent...\n", s);            
    printf ("   PLEASE NOTIFY KARPINKSI!\n");                         
ffc00bcc:	3c 60 ff c2 	lis     r3,-62                                 <== NOT EXECUTED
}                                                                     
ffc00bd0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
void                                                                  
notify (s)                                                            
     char   *s;                                                       
{                                                                     
    printf ("%s test appears to be inconsistent...\n", s);            
    printf ("   PLEASE NOTIFY KARPINKSI!\n");                         
ffc00bd4:	38 63 1b bd 	addi    r3,r3,7101                             <== NOT EXECUTED
}                                                                     
ffc00bd8:	38 21 00 08 	addi    r1,r1,8                                <== NOT EXECUTED
void                                                                  
notify (s)                                                            
     char   *s;                                                       
{                                                                     
    printf ("%s test appears to be inconsistent...\n", s);            
    printf ("   PLEASE NOTIFY KARPINKSI!\n");                         
ffc00bdc:	48 01 65 6c 	b       ffc17148 <puts>                        <== NOT EXECUTED
                                                                      

ffc07e28 <null_op_fsmount_me>: rtems_filesystem_mount_table_entry_t *mt_entry, const void *data ) { return -1; }
ffc07e28:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc07e2c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc07e38 <null_op_fsunmount_me>: static void null_op_fsunmount_me( rtems_filesystem_mount_table_entry_t *mt_entry ) {
ffc07e38:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc07e00 <null_op_link>: const char *name, size_t namelen ) { return -1; }
ffc07e00:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc07e04:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc07e20 <null_op_mount>: static int null_op_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { return -1; }
ffc07e20:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc07e24:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc07e4c <null_op_readlink>: char *buf, size_t bufsize ) { return -1; }
ffc07e4c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc07e50:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc07e54 <null_op_rename>: const char *name, size_t namelen ) { return -1; }
ffc07e54:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc07e58:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc07df8 <null_op_rmnod>: const rtems_filesystem_location_info_t *parentloc, const rtems_filesystem_location_info_t *loc ) { return -1; }
ffc07df8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc07dfc:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc06f70 <oproc>: /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) {
ffc06f70:	7c 2b 0b 78 	mr      r11,r1                                 
ffc06f74:	7c 08 02 a6 	mflr    r0                                     
ffc06f78:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc06f7c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc06f80:	48 01 30 c9 	bl      ffc1a048 <_savegpr_31>                 
ffc06f84:	7c 9f 23 78 	mr      r31,r4                                 
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
ffc06f88:	81 24 00 34 	lwz     r9,52(r4)                              
/*                                                                    
 * Handle output processing                                           
 */                                                                   
static void                                                           
oproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
ffc06f8c:	98 61 00 08 	stb     r3,8(r1)                               
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
ffc06f90:	71 2a 00 01 	andi.   r10,r9,1                               
ffc06f94:	41 82 01 38 	beq-    ffc070cc <oproc+0x15c>                 <== NEVER TAKEN
    switch (c) {                                                      
ffc06f98:	2f 83 00 09 	cmpwi   cr7,r3,9                               
ffc06f9c:	41 9e 00 98 	beq-    cr7,ffc07034 <oproc+0xc4>              
ffc06fa0:	2b 83 00 09 	cmplwi  cr7,r3,9                               
ffc06fa4:	41 9d 00 10 	bgt-    cr7,ffc06fb4 <oproc+0x44>              <== ALWAYS TAKEN
ffc06fa8:	2f 83 00 08 	cmpwi   cr7,r3,8                               <== NOT EXECUTED
ffc06fac:	40 be 00 c8 	bne+    cr7,ffc07074 <oproc+0x104>             <== NOT EXECUTED
ffc06fb0:	48 00 00 b0 	b       ffc07060 <oproc+0xf0>                  <== NOT EXECUTED
ffc06fb4:	2f 83 00 0a 	cmpwi   cr7,r3,10                              
ffc06fb8:	41 9e 00 10 	beq-    cr7,ffc06fc8 <oproc+0x58>              
ffc06fbc:	2f 83 00 0d 	cmpwi   cr7,r3,13                              
ffc06fc0:	40 be 00 b4 	bne+    cr7,ffc07074 <oproc+0x104>             <== ALWAYS TAKEN
ffc06fc4:	48 00 00 34 	b       ffc06ff8 <oproc+0x88>                  <== NOT EXECUTED
    case '\n':                                                        
      if (tty->termios.c_oflag & ONLRET)                              
ffc06fc8:	71 2a 00 20 	andi.   r10,r9,32                              
ffc06fcc:	41 82 00 0c 	beq-    ffc06fd8 <oproc+0x68>                  <== ALWAYS TAKEN
        tty->column = 0;                                              
ffc06fd0:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc06fd4:	91 44 00 28 	stw     r10,40(r4)                             <== NOT EXECUTED
      if (tty->termios.c_oflag & ONLCR) {                             
ffc06fd8:	71 2a 00 04 	andi.   r10,r9,4                               
ffc06fdc:	41 a2 00 f0 	beq+    ffc070cc <oproc+0x15c>                 <== NEVER TAKEN
        rtems_termios_puts ("\r", 1, tty);                            
ffc06fe0:	3c 60 ff c2 	lis     r3,-62                                 
ffc06fe4:	38 63 be bc 	addi    r3,r3,-16708                           
ffc06fe8:	38 80 00 01 	li      r4,1                                   
ffc06fec:	7f e5 fb 78 	mr      r5,r31                                 
ffc06ff0:	4b ff fe 55 	bl      ffc06e44 <rtems_termios_puts>          
ffc06ff4:	48 00 00 30 	b       ffc07024 <oproc+0xb4>                  
        tty->column = 0;                                              
      }                                                               
      break;                                                          
                                                                      
    case '\r':                                                        
      if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))       
ffc06ff8:	71 2a 00 10 	andi.   r10,r9,16                              <== NOT EXECUTED
ffc06ffc:	41 82 00 10 	beq-    ffc0700c <oproc+0x9c>                  <== NOT EXECUTED
ffc07000:	81 44 00 28 	lwz     r10,40(r4)                             <== NOT EXECUTED
ffc07004:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc07008:	41 9e 00 d4 	beq-    cr7,ffc070dc <oproc+0x16c>             <== NOT EXECUTED
        return;                                                       
      if (tty->termios.c_oflag & OCRNL) {                             
ffc0700c:	71 2a 00 08 	andi.   r10,r9,8                               <== NOT EXECUTED
ffc07010:	41 82 00 1c 	beq-    ffc0702c <oproc+0xbc>                  <== NOT EXECUTED
        c = '\n';                                                     
ffc07014:	39 40 00 0a 	li      r10,10                                 <== NOT EXECUTED
ffc07018:	99 41 00 08 	stb     r10,8(r1)                              <== NOT EXECUTED
        if (tty->termios.c_oflag & ONLRET)                            
ffc0701c:	71 2a 00 20 	andi.   r10,r9,32                              <== NOT EXECUTED
ffc07020:	41 82 00 ac 	beq-    ffc070cc <oproc+0x15c>                 <== NOT EXECUTED
          tty->column = 0;                                            
ffc07024:	39 20 00 00 	li      r9,0                                   
ffc07028:	48 00 00 a0 	b       ffc070c8 <oproc+0x158>                 
        break;                                                        
      }                                                               
      tty->column = 0;                                                
ffc0702c:	91 5f 00 28 	stw     r10,40(r31)                            <== NOT EXECUTED
      break;                                                          
ffc07030:	48 00 00 9c 	b       ffc070cc <oproc+0x15c>                 <== NOT EXECUTED
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
ffc07034:	55 29 04 e8 	rlwinm  r9,r9,0,19,20                          
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
ffc07038:	81 44 00 28 	lwz     r10,40(r4)                             
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
ffc0703c:	2f 89 18 00 	cmpwi   cr7,r9,6144                            
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
ffc07040:	55 44 07 7e 	clrlwi  r4,r10,29                              
ffc07044:	20 84 00 08 	subfic  r4,r4,8                                
ffc07048:	7d 4a 22 14 	add     r10,r10,r4                             
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
        tty->column += i;                                             
ffc0704c:	91 5f 00 28 	stw     r10,40(r31)                            
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
ffc07050:	40 be 00 7c 	bne+    cr7,ffc070cc <oproc+0x15c>             <== NEVER TAKEN
        tty->column += i;                                             
        rtems_termios_puts ( "        ",  i, tty);                    
ffc07054:	3c 60 ff c2 	lis     r3,-62                                 
ffc07058:	38 63 b6 31 	addi    r3,r3,-18895                           
ffc0705c:	48 00 00 78 	b       ffc070d4 <oproc+0x164>                 
      }                                                               
      tty->column += i;                                               
      break;                                                          
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
ffc07060:	81 24 00 28 	lwz     r9,40(r4)                              <== NOT EXECUTED
ffc07064:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc07068:	40 9d 00 64 	ble-    cr7,ffc070cc <oproc+0x15c>             <== NOT EXECUTED
        tty->column--;                                                
ffc0706c:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc07070:	48 00 00 58 	b       ffc070c8 <oproc+0x158>                 <== NOT EXECUTED
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
ffc07074:	71 2a 00 02 	andi.   r10,r9,2                               
ffc07078:	41 82 00 28 	beq-    ffc070a0 <oproc+0x130>                 <== ALWAYS TAKEN
        c = toupper(c);                                               
ffc0707c:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
ffc07080:	81 29 27 a0 	lwz     r9,10144(r9)                           <== NOT EXECUTED
ffc07084:	7d 29 1a 14 	add     r9,r9,r3                               <== NOT EXECUTED
ffc07088:	89 29 00 01 	lbz     r9,1(r9)                               <== NOT EXECUTED
ffc0708c:	55 29 07 be 	clrlwi  r9,r9,30                               <== NOT EXECUTED
ffc07090:	2f 89 00 02 	cmpwi   cr7,r9,2                               <== NOT EXECUTED
ffc07094:	40 be 00 08 	bne+    cr7,ffc0709c <oproc+0x12c>             <== NOT EXECUTED
ffc07098:	38 63 ff e0 	addi    r3,r3,-32                              <== NOT EXECUTED
ffc0709c:	98 61 00 08 	stb     r3,8(r1)                               <== NOT EXECUTED
      if (!iscntrl(c))                                                
ffc070a0:	3d 40 00 00 	lis     r10,0                                  
ffc070a4:	89 21 00 08 	lbz     r9,8(r1)                               
ffc070a8:	81 4a 27 a0 	lwz     r10,10144(r10)                         
ffc070ac:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc070b0:	89 29 00 01 	lbz     r9,1(r9)                               
ffc070b4:	55 29 06 b4 	rlwinm  r9,r9,0,26,26                          
ffc070b8:	71 2a 00 ff 	andi.   r10,r9,255                             
ffc070bc:	40 82 00 10 	bne-    ffc070cc <oproc+0x15c>                 <== NEVER TAKEN
        tty->column++;                                                
ffc070c0:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc070c4:	39 29 00 01 	addi    r9,r9,1                                
ffc070c8:	91 3f 00 28 	stw     r9,40(r31)                             
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
ffc070cc:	38 61 00 08 	addi    r3,r1,8                                
ffc070d0:	38 80 00 01 	li      r4,1                                   
ffc070d4:	7f e5 fb 78 	mr      r5,r31                                 
ffc070d8:	4b ff fd 6d 	bl      ffc06e44 <rtems_termios_puts>          
}                                                                     
ffc070dc:	39 61 00 18 	addi    r11,r1,24                              
ffc070e0:	4b ff 94 e4 	b       ffc005c4 <_restgpr_31_x>               
                                                                      

ffc05800 <partition_free>: * RETURNS: * N/A */ static void partition_free(rtems_part_desc_t *part_desc) {
ffc05800:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc05804:	7c 08 02 a6 	mflr    r0                                     
ffc05808:	bf c1 00 08 	stmw    r30,8(r1)                              
    int part_num;                                                     
                                                                      
    if (part_desc == NULL)                                            
ffc0580c:	7c 7e 1b 79 	mr.     r30,r3                                 
 * RETURNS:                                                           
 *      N/A                                                           
 */                                                                   
static void                                                           
partition_free(rtems_part_desc_t *part_desc)                          
{                                                                     
ffc05810:	90 01 00 14 	stw     r0,20(r1)                              
    int part_num;                                                     
                                                                      
    if (part_desc == NULL)                                            
ffc05814:	41 82 00 64 	beq-    ffc05878 <partition_free+0x78>         
        return;                                                       
                                                                      
    if (is_extended(part_desc->sys_type))                             
ffc05818:	89 3e 00 01 	lbz     r9,1(r30)                              
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
ffc0581c:	2f 89 00 05 	cmpwi   cr7,r9,5                               
ffc05820:	41 9e 00 14 	beq-    cr7,ffc05834 <partition_free+0x34>     <== NEVER TAKEN
ffc05824:	69 29 00 85 	xori    r9,r9,133                              
ffc05828:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0582c:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc05830:	48 00 00 08 	b       ffc05838 <partition_free+0x38>         
ffc05834:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
    int part_num;                                                     
                                                                      
    if (part_desc == NULL)                                            
        return;                                                       
                                                                      
    if (is_extended(part_desc->sys_type))                             
ffc05838:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0583c:	40 9e 00 1c 	bne-    cr7,ffc05858 <partition_free+0x58>     <== NEVER TAKEN
            partition_free(part_desc->sub_part[part_num]);            
        }                                                             
    }                                                                 
                                                                      
    free(part_desc);                                                  
}                                                                     
ffc05840:	80 01 00 14 	lwz     r0,20(r1)                              
        {                                                             
            partition_free(part_desc->sub_part[part_num]);            
        }                                                             
    }                                                                 
                                                                      
    free(part_desc);                                                  
ffc05844:	7f c3 f3 78 	mr      r3,r30                                 
}                                                                     
ffc05848:	bb c1 00 08 	lmw     r30,8(r1)                              
ffc0584c:	7c 08 03 a6 	mtlr    r0                                     
ffc05850:	38 21 00 10 	addi    r1,r1,16                               
        {                                                             
            partition_free(part_desc->sub_part[part_num]);            
        }                                                             
    }                                                                 
                                                                      
    free(part_desc);                                                  
ffc05854:	48 00 0e d8 	b       ffc0672c <free>                        
    int part_num;                                                     
                                                                      
    if (part_desc == NULL)                                            
        return;                                                       
                                                                      
    if (is_extended(part_desc->sys_type))                             
ffc05858:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
 *                                                                    
 * RETURNS:                                                           
 *      N/A                                                           
 */                                                                   
static void                                                           
partition_free(rtems_part_desc_t *part_desc)                          
ffc0585c:	7d 3e fa 14 	add     r9,r30,r31                             <== 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]);            
ffc05860:	80 69 00 18 	lwz     r3,24(r9)                              <== NOT EXECUTED
ffc05864:	4b ff ff 9d 	bl      ffc05800 <partition_free>              <== NOT EXECUTED
    if (part_desc == NULL)                                            
        return;                                                       
                                                                      
    if (is_extended(part_desc->sys_type))                             
    {                                                                 
        for (part_num = 0;                                            
ffc05868:	2f 9f 00 0c 	cmpwi   cr7,r31,12                             <== NOT EXECUTED
ffc0586c:	3b ff 00 04 	addi    r31,r31,4                              <== NOT EXECUTED
ffc05870:	40 9e ff ec 	bne+    cr7,ffc0585c <partition_free+0x5c>     <== NOT EXECUTED
ffc05874:	4b ff ff cc 	b       ffc05840 <partition_free+0x40>         <== NOT EXECUTED
            partition_free(part_desc->sub_part[part_num]);            
        }                                                             
    }                                                                 
                                                                      
    free(part_desc);                                                  
}                                                                     
ffc05878:	39 61 00 10 	addi    r11,r1,16                              
ffc0587c:	4b ff af 74 	b       ffc007f0 <_restgpr_30_x>               
                                                                      

ffc05b5c <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) {
ffc05b5c:	94 21 ff 90 	stwu    r1,-112(r1)                            
ffc05b60:	7c 08 02 a6 	mflr    r0                                     
ffc05b64:	bf 41 00 58 	stmw    r26,88(r1)                             
ffc05b68:	7c 9e 23 78 	mr      r30,r4                                 
    struct stat         dev_stat;                                     
    rtems_status_code   rc;                                           
    int                 fd;                                           
                                                                      
    fd = open(dev_name, O_RDONLY);                                    
ffc05b6c:	38 80 00 00 	li      r4,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)
{                                                                     
ffc05b70:	90 01 00 74 	stw     r0,116(r1)                             
ffc05b74:	7c 7f 1b 78 	mr      r31,r3                                 
    struct stat         dev_stat;                                     
    rtems_status_code   rc;                                           
    int                 fd;                                           
                                                                      
    fd = open(dev_name, O_RDONLY);                                    
ffc05b78:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc05b7c:	48 00 1a e1 	bl      ffc0765c <open>                        
    if (fd < 0)                                                       
ffc05b80:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc05b84:	41 a0 01 d8 	blt+    ffc05d5c <partition_table_get+0x200>   <== NEVER TAKEN
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    rc = fstat(fd, &dev_stat);                                        
ffc05b88:	38 81 00 08 	addi    r4,r1,8                                
ffc05b8c:	48 00 0c 71 	bl      ffc067fc <fstat>                       
    if (rc != RTEMS_SUCCESSFUL)                                       
ffc05b90:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05b94:	41 9e 00 10 	beq-    cr7,ffc05ba4 <partition_table_get+0x48><== ALWAYS TAKEN
    {                                                                 
        close(fd);                                                    
ffc05b98:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc05b9c:	48 00 0b 09 	bl      ffc066a4 <close>                       <== NOT EXECUTED
ffc05ba0:	48 00 01 bc 	b       ffc05d5c <partition_table_get+0x200>   <== NOT EXECUTED
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    strncpy (disk_desc->dev_name, dev_name, 15);                      
ffc05ba4:	38 7e 00 08 	addi    r3,r30,8                               
ffc05ba8:	7f e4 fb 78 	mr      r4,r31                                 
ffc05bac:	38 a0 00 0f 	li      r5,15                                  
ffc05bb0:	48 01 0e 59 	bl      ffc16a08 <strncpy>                     
    disk_desc->dev = dev_stat.st_rdev;                                
ffc05bb4:	81 41 00 24 	lwz     r10,36(r1)                             
ffc05bb8:	81 21 00 20 	lwz     r9,32(r1)                              
ffc05bbc:	91 5e 00 04 	stw     r10,4(r30)                             
    disk_desc->sector_size = (dev_stat.st_blksize) ? dev_stat.st_blksize :
ffc05bc0:	81 41 00 48 	lwz     r10,72(r1)                             
        close(fd);                                                    
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    strncpy (disk_desc->dev_name, dev_name, 15);                      
    disk_desc->dev = dev_stat.st_rdev;                                
ffc05bc4:	91 3e 00 00 	stw     r9,0(r30)                              
    disk_desc->sector_size = (dev_stat.st_blksize) ? dev_stat.st_blksize :
ffc05bc8:	39 20 02 00 	li      r9,512                                 
ffc05bcc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc05bd0:	41 9e 00 08 	beq-    cr7,ffc05bd8 <partition_table_get+0x7c><== ALWAYS TAKEN
ffc05bd4:	7d 49 53 78 	mr      r9,r10                                 <== NOT EXECUTED
ffc05bd8:	91 3e 00 18 	stw     r9,24(r30)                             
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    off = sector_num * RTEMS_IDE_SECTOR_SIZE;                         
    new_off = lseek(fd, off, SEEK_SET);                               
ffc05bdc:	7f 83 e3 78 	mr      r3,r28                                 
 */                                                                   
static rtems_status_code                                              
read_mbr(int fd, rtems_disk_desc_t *disk_desc)                        
{                                                                     
    int                  part_num;                                    
    rtems_sector_data_t *sector = NULL;                               
ffc05be0:	39 20 00 00 	li      r9,0                                   
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    off = sector_num * RTEMS_IDE_SECTOR_SIZE;                         
    new_off = lseek(fd, off, SEEK_SET);                               
ffc05be4:	38 a0 00 00 	li      r5,0                                   
 */                                                                   
static rtems_status_code                                              
read_mbr(int fd, rtems_disk_desc_t *disk_desc)                        
{                                                                     
    int                  part_num;                                    
    rtems_sector_data_t *sector = NULL;                               
ffc05be8:	91 21 00 54 	stw     r9,84(r1)                              
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    off = sector_num * RTEMS_IDE_SECTOR_SIZE;                         
    new_off = lseek(fd, off, SEEK_SET);                               
ffc05bec:	38 c0 00 00 	li      r6,0                                   
ffc05bf0:	38 e0 00 00 	li      r7,0                                   
ffc05bf4:	48 00 10 2d 	bl      ffc06c20 <lseek>                       
    if (new_off != off) {                                             
        return RTEMS_IO_ERROR;                                        
ffc05bf8:	3b e0 00 1b 	li      r31,27                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    off = sector_num * RTEMS_IDE_SECTOR_SIZE;                         
    new_off = lseek(fd, off, SEEK_SET);                               
    if (new_off != off) {                                             
ffc05bfc:	7c 6a 23 79 	or.     r10,r3,r4                              
ffc05c00:	40 a2 00 1c 	bne+    ffc05c1c <partition_table_get+0xc0>    <== NEVER TAKEN
ffc05c04:	7f 83 e3 78 	mr      r3,r28                                 
ffc05c08:	38 80 00 00 	li      r4,0                                   
ffc05c0c:	38 a1 00 54 	addi    r5,r1,84                               
ffc05c10:	4b ff fb 81 	bl      ffc05790 <get_sector.part.0>           
    uint8_t             *data;                                        
    rtems_status_code    rc;                                          
                                                                      
    /* get MBR sector */                                              
    rc = get_sector(fd, 0, §or);                                  
    if (rc != RTEMS_SUCCESSFUL)                                       
ffc05c14:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc05c18:	41 a2 00 14 	beq+    ffc05c2c <partition_table_get+0xd0>    <== ALWAYS TAKEN
    {                                                                 
        if (sector)                                                   
ffc05c1c:	80 61 00 54 	lwz     r3,84(r1)                              <== NOT EXECUTED
ffc05c20:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc05c24:	41 9e 01 2c 	beq-    cr7,ffc05d50 <partition_table_get+0x1f4><== NOT EXECUTED
ffc05c28:	48 00 00 64 	b       ffc05c8c <partition_table_get+0x130>   <== NOT EXECUTED
            free(sector);                                             
        return rc;                                                    
    }                                                                 
                                                                      
    /* check if the partition table structure is MS-DOS style */      
    if (!msdos_signature_check(sector))                               
ffc05c2c:	80 61 00 54 	lwz     r3,84(r1)                              
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) &&    
ffc05c30:	39 20 00 00 	li      r9,0                                   
ffc05c34:	89 43 02 02 	lbz     r10,514(r3)                            
ffc05c38:	2f 8a 00 55 	cmpwi   cr7,r10,85                             
ffc05c3c:	40 be 00 14 	bne+    cr7,ffc05c50 <partition_table_get+0xf4><== NEVER TAKEN
ffc05c40:	89 23 02 03 	lbz     r9,515(r3)                             
ffc05c44:	69 29 00 aa 	xori    r9,r9,170                              
ffc05c48:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc05c4c:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
            free(sector);                                             
        return rc;                                                    
    }                                                                 
                                                                      
    /* check if the partition table structure is MS-DOS style */      
    if (!msdos_signature_check(sector))                               
ffc05c50:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05c54:	40 9e 00 10 	bne-    cr7,ffc05c64 <partition_table_get+0x108><== ALWAYS TAKEN
    {                                                                 
        free(sector);                                                 
ffc05c58:	48 00 0a d5 	bl      ffc0672c <free>                        <== NOT EXECUTED
        return RTEMS_INTERNAL_ERROR;                                  
ffc05c5c:	3b e0 00 19 	li      r31,25                                 <== NOT EXECUTED
ffc05c60:	48 00 00 f0 	b       ffc05d50 <partition_table_get+0x1f4>   <== NOT EXECUTED
    }                                                                 
                                                                      
    /* read and process 4 primary partition descriptors */            
                                                                      
    data = sector->data + RTEMS_IDE_PARTITION_TABLE_OFFSET;           
ffc05c64:	3b 43 01 c2 	addi    r26,r3,450                             
ffc05c68:	7f db f3 78 	mr      r27,r30                                
                                                                      
    for (part_num = 0;                                                
ffc05c6c:	3b a0 00 00 	li      r29,0                                  
 * 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)
ffc05c70:	57 a3 20 36 	rlwinm  r3,r29,4,0,27                          
ffc05c74:	7c 7a 1a 14 	add     r3,r26,r3                              
ffc05c78:	38 81 00 50 	addi    r4,r1,80                               
ffc05c7c:	4b ff fc 4d 	bl      ffc058c8 <data_to_part_desc.part.1>    
    for (part_num = 0;                                                
         part_num < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER;     
         part_num++)                                                  
    {                                                                 
        rc = data_to_part_desc(data, &part_desc);                     
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc05c80:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc05c84:	41 a2 00 10 	beq+    ffc05c94 <partition_table_get+0x138>   <== ALWAYS TAKEN
        {                                                             
            free(sector);                                             
ffc05c88:	80 61 00 54 	lwz     r3,84(r1)                              <== NOT EXECUTED
ffc05c8c:	48 00 0a a1 	bl      ffc0672c <free>                        <== NOT EXECUTED
ffc05c90:	48 00 00 c0 	b       ffc05d50 <partition_table_get+0x1f4>   <== NOT EXECUTED
            return rc;                                                
        }                                                             
                                                                      
        if (part_desc != NULL)                                        
ffc05c94:	81 21 00 50 	lwz     r9,80(r1)                              
ffc05c98:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05c9c:	41 9e 00 2c 	beq-    cr7,ffc05cc8 <partition_table_get+0x16c><== 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)
ffc05ca0:	39 5d 00 01 	addi    r10,r29,1                              
                                                                      
        if (part_desc != NULL)                                        
        {                                                             
            part_desc->log_id = part_num + 1;                         
            part_desc->disk_desc = disk_desc;                         
            part_desc->end = part_desc->start + part_desc->size - 1;  
ffc05ca4:	81 09 00 04 	lwz     r8,4(r9)                               
            return rc;                                                
        }                                                             
                                                                      
        if (part_desc != NULL)                                        
        {                                                             
            part_desc->log_id = part_num + 1;                         
ffc05ca8:	99 49 00 02 	stb     r10,2(r9)                              
            part_desc->disk_desc = disk_desc;                         
            part_desc->end = part_desc->start + part_desc->size - 1;  
ffc05cac:	81 49 00 08 	lwz     r10,8(r9)                              
        }                                                             
                                                                      
        if (part_desc != NULL)                                        
        {                                                             
            part_desc->log_id = part_num + 1;                         
            part_desc->disk_desc = disk_desc;                         
ffc05cb0:	93 c9 00 10 	stw     r30,16(r9)                             
            part_desc->end = part_desc->start + part_desc->size - 1;  
ffc05cb4:	7d 48 52 14 	add     r10,r8,r10                             
ffc05cb8:	39 4a ff ff 	addi    r10,r10,-1                             
ffc05cbc:	91 49 00 0c 	stw     r10,12(r9)                             
            disk_desc->partitions[part_num] = part_desc;              
ffc05cc0:	91 3b 00 28 	stw     r9,40(r27)                             
ffc05cc4:	48 00 00 08 	b       ffc05ccc <partition_table_get+0x170>   
        }                                                             
        else                                                          
        {                                                             
            disk_desc->partitions[part_num] = NULL;                   
ffc05cc8:	93 fb 00 28 	stw     r31,40(r27)                            <== NOT EXECUTED
                                                                      
    /* read and process 4 primary partition descriptors */            
                                                                      
    data = sector->data + RTEMS_IDE_PARTITION_TABLE_OFFSET;           
                                                                      
    for (part_num = 0;                                                
ffc05ccc:	2f 9d 00 03 	cmpwi   cr7,r29,3                              
ffc05cd0:	3b 7b 00 04 	addi    r27,r27,4                              
ffc05cd4:	3b bd 00 01 	addi    r29,r29,1                              
ffc05cd8:	40 9e ff 98 	bne+    cr7,ffc05c70 <partition_table_get+0x114>
        }                                                             
                                                                      
        data += RTEMS_IDE_PARTITION_DESCRIPTOR_SIZE;                  
    }                                                                 
                                                                      
    free(sector);                                                     
ffc05cdc:	80 61 00 54 	lwz     r3,84(r1)                              
        part_desc = disk_desc->partitions[part_num];                  
        if (part_desc != NULL && is_extended(part_desc->sys_type))    
        {                                                             
            read_extended_partition(fd, part_desc->start, part_desc); 
            free(part_desc);                                          
            disk_desc->partitions[part_num] = NULL;                   
ffc05ce0:	3b 40 00 00 	li      r26,0                                  
        }                                                             
                                                                      
        data += RTEMS_IDE_PARTITION_DESCRIPTOR_SIZE;                  
    }                                                                 
                                                                      
    free(sector);                                                     
ffc05ce4:	48 00 0a 49 	bl      ffc0672c <free>                        
                                                                      
    disk_desc->last_log_id = RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER;
ffc05ce8:	93 be 00 24 	stw     r29,36(r30)                            
ffc05cec:	3b a0 00 00 	li      r29,0                                  
 * 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)
ffc05cf0:	7f 7e ea 14 	add     r27,r30,r29                            
       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];                  
ffc05cf4:	80 bb 00 28 	lwz     r5,40(r27)                             
        if (part_desc != NULL && is_extended(part_desc->sys_type))    
ffc05cf8:	2f 85 00 00 	cmpwi   cr7,r5,0                               
       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];                  
ffc05cfc:	90 a1 00 50 	stw     r5,80(r1)                              
        if (part_desc != NULL && is_extended(part_desc->sys_type))    
ffc05d00:	41 9e 00 44 	beq-    cr7,ffc05d44 <partition_table_get+0x1e8><== NEVER TAKEN
ffc05d04:	89 25 00 01 	lbz     r9,1(r5)                               
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
ffc05d08:	2f 89 00 05 	cmpwi   cr7,r9,5                               
ffc05d0c:	41 9e 00 14 	beq-    cr7,ffc05d20 <partition_table_get+0x1c4>
ffc05d10:	69 29 00 85 	xori    r9,r9,133                              
ffc05d14:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc05d18:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc05d1c:	48 00 00 08 	b       ffc05d24 <partition_table_get+0x1c8>   
ffc05d20:	39 20 00 01 	li      r9,1                                   
    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))    
ffc05d24:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05d28:	41 be 00 1c 	beq+    cr7,ffc05d44 <partition_table_get+0x1e8>
        {                                                             
            read_extended_partition(fd, part_desc->start, part_desc); 
ffc05d2c:	80 85 00 04 	lwz     r4,4(r5)                               
ffc05d30:	7f 83 e3 78 	mr      r3,r28                                 
ffc05d34:	4b ff fc 71 	bl      ffc059a4 <read_extended_partition>     
            free(part_desc);                                          
ffc05d38:	80 61 00 50 	lwz     r3,80(r1)                              
ffc05d3c:	48 00 09 f1 	bl      ffc0672c <free>                        
            disk_desc->partitions[part_num] = NULL;                   
ffc05d40:	93 5b 00 28 	stw     r26,40(r27)                            
                                                                      
    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;                                                
ffc05d44:	2f 9d 00 0c 	cmpwi   cr7,r29,12                             
ffc05d48:	3b bd 00 04 	addi    r29,r29,4                              
ffc05d4c:	40 9e ff a4 	bne+    cr7,ffc05cf0 <partition_table_get+0x194>
    disk_desc->sector_size = (dev_stat.st_blksize) ? dev_stat.st_blksize :
                                              RTEMS_IDE_SECTOR_SIZE;  
                                                                      
    rc = read_mbr(fd, disk_desc);                                     
                                                                      
    close(fd);                                                        
ffc05d50:	7f 83 e3 78 	mr      r3,r28                                 
ffc05d54:	48 00 09 51 	bl      ffc066a4 <close>                       
ffc05d58:	48 00 00 08 	b       ffc05d60 <partition_table_get+0x204>   
    int                 fd;                                           
                                                                      
    fd = open(dev_name, O_RDONLY);                                    
    if (fd < 0)                                                       
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
ffc05d5c:	3b e0 00 19 	li      r31,25                                 <== NOT EXECUTED
    rc = read_mbr(fd, disk_desc);                                     
                                                                      
    close(fd);                                                        
                                                                      
    return rc;                                                        
}                                                                     
ffc05d60:	39 61 00 70 	addi    r11,r1,112                             
ffc05d64:	7f e3 fb 78 	mr      r3,r31                                 
ffc05d68:	4b ff aa 78 	b       ffc007e0 <_restgpr_26_x>               
                                                                      

ffc05a78 <pathconf>: */ long pathconf( const char *path, int name ) {
ffc05a78:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc05a7c:	7c 08 02 a6 	mflr    r0                                     
ffc05a80:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc05a84:	7c 9e 23 78 	mr      r30,r4                                 
  int status;                                                         
  int fd;                                                             
                                                                      
  fd = open( path, O_RDONLY );                                        
ffc05a88:	38 80 00 00 	li      r4,0                                   
 */                                                                   
long pathconf(                                                        
  const char *path,                                                   
  int         name                                                    
)                                                                     
{                                                                     
ffc05a8c:	90 01 00 14 	stw     r0,20(r1)                              
  int status;                                                         
  int fd;                                                             
                                                                      
  fd = open( path, O_RDONLY );                                        
ffc05a90:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc05a94:	4b ff fd c1 	bl      ffc05854 <open>                        
  if ( fd == -1 )                                                     
ffc05a98:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
)                                                                     
{                                                                     
  int status;                                                         
  int fd;                                                             
                                                                      
  fd = open( path, O_RDONLY );                                        
ffc05a9c:	7c 7f 1b 78 	mr      r31,r3                                 
  if ( fd == -1 )                                                     
ffc05aa0:	41 9e 00 1c 	beq-    cr7,ffc05abc <pathconf+0x44>           <== ALWAYS TAKEN
    return -1;                                                        
                                                                      
  status = fpathconf( fd, name );                                     
ffc05aa4:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc05aa8:	48 00 51 91 	bl      ffc0ac38 <fpathconf>                   <== NOT EXECUTED
ffc05aac:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
                                                                      
  (void) close( fd );                                                 
ffc05ab0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc05ab4:	48 00 50 fd 	bl      ffc0abb0 <close>                       <== NOT EXECUTED
                                                                      
  return status;                                                      
ffc05ab8:	48 00 00 08 	b       ffc05ac0 <pathconf+0x48>               <== NOT EXECUTED
  int status;                                                         
  int fd;                                                             
                                                                      
  fd = open( path, O_RDONLY );                                        
  if ( fd == -1 )                                                     
    return -1;                                                        
ffc05abc:	3b c0 ff ff 	li      r30,-1                                 
  status = fpathconf( fd, name );                                     
                                                                      
  (void) close( fd );                                                 
                                                                      
  return status;                                                      
}                                                                     
ffc05ac0:	39 61 00 10 	addi    r11,r1,16                              
ffc05ac4:	7f c3 f3 78 	mr      r3,r30                                 
ffc05ac8:	48 00 ac f8 	b       ffc107c0 <_restgpr_30_x>               
                                                                      

ffc0db04 <pipe_create>: static uint16_t rtems_pipe_no = 0; int pipe_create( int filsdes[2] ) {
ffc0db04:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0db08:	7c 08 02 a6 	mflr    r0                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
ffc0db0c:	38 80 01 ff 	li      r4,511                                 
static uint16_t rtems_pipe_no = 0;                                    
                                                                      
int pipe_create(                                                      
  int filsdes[2]                                                      
)                                                                     
{                                                                     
ffc0db10:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc0db14:	7c 7d 1b 78 	mr      r29,r3                                 
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
ffc0db18:	3c 60 ff c2 	lis     r3,-62                                 
ffc0db1c:	38 63 df 0f 	addi    r3,r3,-8433                            
static uint16_t rtems_pipe_no = 0;                                    
                                                                      
int pipe_create(                                                      
  int filsdes[2]                                                      
)                                                                     
{                                                                     
ffc0db20:	90 01 00 2c 	stw     r0,44(r1)                              
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
ffc0db24:	48 00 15 1d 	bl      ffc0f040 <rtems_mkdir>                 
ffc0db28:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0db2c:	40 9e 01 00 	bne-    cr7,ffc0dc2c <pipe_create+0x128>       
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
ffc0db30:	3d 20 ff c2 	lis     r9,-62                                 
ffc0db34:	3b c1 00 08 	addi    r30,r1,8                               
ffc0db38:	39 29 df 14 	addi    r9,r9,-8428                            
ffc0db3c:	7c a9 54 aa 	lswi    r5,r9,10                               
ffc0db40:	7c be 55 aa 	stswi   r5,r30,10                              
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
ffc0db44:	3d 20 00 00 	lis     r9,0                                   
ffc0db48:	3c 80 ff c2 	lis     r4,-62                                 
ffc0db4c:	a0 a9 29 a4 	lhz     r5,10660(r9)                           
ffc0db50:	38 84 df 1f 	addi    r4,r4,-8417                            
ffc0db54:	38 61 00 12 	addi    r3,r1,18                               
ffc0db58:	39 45 00 01 	addi    r10,r5,1                               
ffc0db5c:	b1 49 29 a4 	sth     r10,10660(r9)                          
ffc0db60:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0db64:	48 00 3a a5 	bl      ffc11608 <sprintf>                     
                                                                      
  /* Try creating FIFO file until find an available file name */      
  while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {                    
ffc0db68:	7f c3 f3 78 	mr      r3,r30                                 
ffc0db6c:	38 80 01 80 	li      r4,384                                 
ffc0db70:	48 00 12 1d 	bl      ffc0ed8c <mkfifo>                      
ffc0db74:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0db78:	41 be 00 0c 	beq+    cr7,ffc0db84 <pipe_create+0x80>        <== ALWAYS TAKEN
    if (errno != EEXIST){                                             
ffc0db7c:	48 00 2b d1 	bl      ffc1074c <__errno>                     <== NOT EXECUTED
ffc0db80:	48 00 00 ac 	b       ffc0dc2c <pipe_create+0x128>           <== 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);                 
ffc0db84:	7f c3 f3 78 	mr      r3,r30                                 
ffc0db88:	38 80 40 00 	li      r4,16384                               
ffc0db8c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0db90:	4b ff 7d 8d 	bl      ffc0591c <open>                        
  if (filsdes[0] < 0) {                                               
ffc0db94:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    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);                 
ffc0db98:	90 7d 00 00 	stw     r3,0(r29)                              
  if (filsdes[0] < 0) {                                               
ffc0db9c:	40 bc 00 14 	bge+    cr7,ffc0dbb0 <pipe_create+0xac>        
    err = errno;                                                      
ffc0dba0:	48 00 2b ad 	bl      ffc1074c <__errno>                     
ffc0dba4:	83 e3 00 00 	lwz     r31,0(r3)                              
    /* 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);                                                 
ffc0dba8:	7f c3 f3 78 	mr      r3,r30                                 
ffc0dbac:	48 00 00 68 	b       ffc0dc14 <pipe_create+0x110>           
  }                                                                   
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
ffc0dbb0:	3d 40 00 00 	lis     r10,0                                  
ffc0dbb4:	81 0a 27 38 	lwz     r8,10040(r10)                          
ffc0dbb8:	39 40 00 00 	li      r10,0                                  
ffc0dbbc:	7f 83 40 40 	cmplw   cr7,r3,r8                              
ffc0dbc0:	40 9c 00 14 	bge-    cr7,ffc0dbd4 <pipe_create+0xd0>        <== NEVER TAKEN
ffc0dbc4:	3d 40 00 00 	lis     r10,0                                  
ffc0dbc8:	1d 23 00 38 	mulli   r9,r3,56                               
ffc0dbcc:	81 4a 27 e4 	lwz     r10,10212(r10)                         
ffc0dbd0:	7d 4a 4a 14 	add     r10,r10,r9                             
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
ffc0dbd4:	81 2a 00 10 	lwz     r9,16(r10)                             
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
ffc0dbd8:	38 61 00 08 	addi    r3,r1,8                                
ffc0dbdc:	38 80 00 01 	li      r4,1                                   
    unlink(fifopath);                                                 
  }                                                                   
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
ffc0dbe0:	55 29 00 3c 	rlwinm  r9,r9,0,0,30                           
ffc0dbe4:	91 2a 00 10 	stw     r9,16(r10)                             
int pipe_create(                                                      
  int filsdes[2]                                                      
)                                                                     
{                                                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
ffc0dbe8:	3b e0 00 00 	li      r31,0                                  
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
ffc0dbec:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0dbf0:	4b ff 7d 2d 	bl      ffc0591c <open>                        
                                                                      
    if (filsdes[1] < 0) {                                             
ffc0dbf4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
ffc0dbf8:	90 7d 00 04 	stw     r3,4(r29)                              
                                                                      
    if (filsdes[1] < 0) {                                             
ffc0dbfc:	40 bc 00 14 	bge+    cr7,ffc0dc10 <pipe_create+0x10c>       
    err = errno;                                                      
ffc0dc00:	48 00 2b 4d 	bl      ffc1074c <__errno>                     
ffc0dc04:	83 e3 00 00 	lwz     r31,0(r3)                              
    close(filsdes[0]);                                                
ffc0dc08:	80 7d 00 00 	lwz     r3,0(r29)                              
ffc0dc0c:	4b ff 6f 21 	bl      ffc04b2c <close>                       
    }                                                                 
  unlink(fifopath);                                                   
ffc0dc10:	38 61 00 08 	addi    r3,r1,8                                
ffc0dc14:	4b ff ad 89 	bl      ffc0899c <unlink>                      
  }                                                                   
  if(err != 0)                                                        
ffc0dc18:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
    rtems_set_errno_and_return_minus_one(err);                        
  return 0;                                                           
ffc0dc1c:	38 60 00 00 	li      r3,0                                   
    err = errno;                                                      
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
  }                                                                   
  if(err != 0)                                                        
ffc0dc20:	41 be 00 10 	beq+    cr7,ffc0dc30 <pipe_create+0x12c>       
    rtems_set_errno_and_return_minus_one(err);                        
ffc0dc24:	48 00 2b 29 	bl      ffc1074c <__errno>                     
ffc0dc28:	93 e3 00 00 	stw     r31,0(r3)                              
{                                                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
    return -1;                                                        
ffc0dc2c:	38 60 ff ff 	li      r3,-1                                  
  unlink(fifopath);                                                   
  }                                                                   
  if(err != 0)                                                        
    rtems_set_errno_and_return_minus_one(err);                        
  return 0;                                                           
}                                                                     
ffc0dc30:	39 61 00 28 	addi    r11,r1,40                              
ffc0dc34:	48 00 e3 6c 	b       ffc1bfa0 <_restgpr_29_x>               
                                                                      

ffc0f034 <pipe_ioctl>: ioctl_command_t cmd, void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) {
ffc0f034:	6c 89 40 04 	xoris   r9,r4,16388                            
ffc0f038:	2f 89 66 7f 	cmpwi   cr7,r9,26239                           
ffc0f03c:	40 9e 00 54 	bne-    cr7,ffc0f090 <pipe_ioctl+0x5c>         
    if (buffer == NULL)                                               
ffc0f040:	2f 85 00 00 	cmpwi   cr7,r5,0                               
  pipe_control_t  *pipe,                                              
  ioctl_command_t  cmd,                                               
  void            *buffer,                                            
  rtems_libio_t   *iop                                                
)                                                                     
{                                                                     
ffc0f044:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0f048:	7c 08 02 a6 	mflr    r0                                     
ffc0f04c:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc0f050:	7c be 2b 78 	mr      r30,r5                                 
ffc0f054:	90 01 00 14 	stw     r0,20(r1)                              
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
ffc0f058:	41 9e 00 40 	beq-    cr7,ffc0f098 <pipe_ioctl+0x64>         
ffc0f05c:	7c 7f 1b 78 	mr      r31,r3                                 
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
ffc0f060:	80 63 00 28 	lwz     r3,40(r3)                              
ffc0f064:	38 80 00 00 	li      r4,0                                   
ffc0f068:	38 a0 00 00 	li      r5,0                                   
ffc0f06c:	4b ff ad c5 	bl      ffc09e30 <rtems_semaphore_obtain>      
ffc0f070:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f074:	40 9e 00 2c 	bne-    cr7,ffc0f0a0 <pipe_ioctl+0x6c>         <== NEVER TAKEN
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
ffc0f078:	81 3f 00 0c 	lwz     r9,12(r31)                             
    PIPE_UNLOCK(pipe);                                                
ffc0f07c:	80 7f 00 28 	lwz     r3,40(r31)                             
                                                                      
    if (! PIPE_LOCK(pipe))                                            
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
ffc0f080:	91 3e 00 00 	stw     r9,0(r30)                              
    PIPE_UNLOCK(pipe);                                                
ffc0f084:	4b ff ae d1 	bl      ffc09f54 <rtems_semaphore_release>     
    return 0;                                                         
ffc0f088:	38 60 00 00 	li      r3,0                                   
ffc0f08c:	48 00 00 18 	b       ffc0f0a4 <pipe_ioctl+0x70>             
  }                                                                   
                                                                      
  return -EINVAL;                                                     
ffc0f090:	38 60 ff ea 	li      r3,-22                                 
}                                                                     
ffc0f094:	4e 80 00 20 	blr                                            
  rtems_libio_t   *iop                                                
)                                                                     
{                                                                     
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
      return -EFAULT;                                                 
ffc0f098:	38 60 ff f2 	li      r3,-14                                 
ffc0f09c:	48 00 00 08 	b       ffc0f0a4 <pipe_ioctl+0x70>             
                                                                      
    if (! PIPE_LOCK(pipe))                                            
      return -EINTR;                                                  
ffc0f0a0:	38 60 ff fc 	li      r3,-4                                  <== NOT EXECUTED
    PIPE_UNLOCK(pipe);                                                
    return 0;                                                         
  }                                                                   
                                                                      
  return -EINVAL;                                                     
}                                                                     
ffc0f0a4:	39 61 00 10 	addi    r11,r1,16                              
ffc0f0a8:	48 01 06 e4 	b       ffc1f78c <_restgpr_30_x>               
                                                                      

ffc0ecac <pipe_read>: pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) {
ffc0ecac:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc0ecb0:	7c 08 02 a6 	mflr    r0                                     
ffc0ecb4:	90 01 00 3c 	stw     r0,60(r1)                              
ffc0ecb8:	bf 21 00 1c 	stmw    r25,28(r1)                             
ffc0ecbc:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0ecc0:	7c 9a 23 78 	mr      r26,r4                                 
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc0ecc4:	80 63 00 28 	lwz     r3,40(r3)                              
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
ffc0ecc8:	7c bb 2b 78 	mr      r27,r5                                 
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc0eccc:	38 80 00 00 	li      r4,0                                   
ffc0ecd0:	38 a0 00 00 	li      r5,0                                   
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
ffc0ecd4:	7c d9 33 78 	mr      r25,r6                                 
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc0ecd8:	4b ff b1 59 	bl      ffc09e30 <rtems_semaphore_obtain>      
ffc0ecdc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ece0:	40 9e 01 64 	bne-    cr7,ffc0ee44 <pipe_read+0x198>         <== NEVER TAKEN
ffc0ece4:	3b c0 00 00 	li      r30,0                                  
ffc0ece8:	48 00 01 30 	b       ffc0ee18 <pipe_read+0x16c>             
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
ffc0ecec:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0ecf0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ecf4:	40 be 00 0c 	bne+    cr7,ffc0ed00 <pipe_read+0x54>          
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc0ecf8:	3b a0 00 00 	li      r29,0                                  
ffc0ecfc:	48 00 01 2c 	b       ffc0ee28 <pipe_read+0x17c>             
    while (PIPE_EMPTY(pipe)) {                                        
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
ffc0ed00:	81 39 00 10 	lwz     r9,16(r25)                             
ffc0ed04:	71 2a 00 01 	andi.   r10,r9,1                               
ffc0ed08:	40 82 01 1c 	bne-    ffc0ee24 <pipe_read+0x178>             
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
ffc0ed0c:	81 3f 00 18 	lwz     r9,24(r31)                             
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
        ret = -EINTR;                                                 
ffc0ed10:	3b a0 ff fc 	li      r29,-4                                 
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
      PIPE_UNLOCK(pipe);                                              
ffc0ed14:	80 7f 00 28 	lwz     r3,40(r31)                             
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
ffc0ed18:	39 29 00 01 	addi    r9,r9,1                                
ffc0ed1c:	91 3f 00 18 	stw     r9,24(r31)                             
      PIPE_UNLOCK(pipe);                                              
ffc0ed20:	4b ff b2 35 	bl      ffc09f54 <rtems_semaphore_release>     
      if (! PIPE_READWAIT(pipe))                                      
ffc0ed24:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc0ed28:	38 80 00 00 	li      r4,0                                   
ffc0ed2c:	48 00 0f 2d 	bl      ffc0fc58 <rtems_barrier_wait>          
ffc0ed30:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ed34:	40 9e 00 08 	bne-    cr7,ffc0ed3c <pipe_read+0x90>          <== NEVER TAKEN
ffc0ed38:	3b a0 00 00 	li      r29,0                                  
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
ffc0ed3c:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0ed40:	38 80 00 00 	li      r4,0                                   
ffc0ed44:	38 a0 00 00 	li      r5,0                                   
ffc0ed48:	4b ff b0 e9 	bl      ffc09e30 <rtems_semaphore_obtain>      
ffc0ed4c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ed50:	40 9e 00 e4 	bne-    cr7,ffc0ee34 <pipe_read+0x188>         <== NEVER TAKEN
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
      if (ret != 0)                                                   
ffc0ed54:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
ffc0ed58:	81 3f 00 18 	lwz     r9,24(r31)                             
ffc0ed5c:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0ed60:	91 3f 00 18 	stw     r9,24(r31)                             
      if (ret != 0)                                                   
ffc0ed64:	40 9e 00 c4 	bne-    cr7,ffc0ee28 <pipe_read+0x17c>         <== NEVER TAKEN
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
ffc0ed68:	83 bf 00 0c 	lwz     r29,12(r31)                            
ffc0ed6c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0ed70:	41 9e ff 7c 	beq+    cr7,ffc0ecec <pipe_read+0x40>          
      if (ret != 0)                                                   
        goto out_locked;                                              
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
ffc0ed74:	7d 3e d8 50 	subf    r9,r30,r27                             
ffc0ed78:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc0ed7c:	40 9d 00 08 	ble-    cr7,ffc0ed84 <pipe_read+0xd8>          
ffc0ed80:	7d 3d 4b 78 	mr      r29,r9                                 
    chunk1 = pipe->Size - pipe->Start;                                
ffc0ed84:	81 3f 00 08 	lwz     r9,8(r31)                              
    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);       
ffc0ed88:	7f a5 eb 78 	mr      r5,r29                                 
        goto out_locked;                                              
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
    chunk1 = pipe->Size - pipe->Start;                                
ffc0ed8c:	83 9f 00 04 	lwz     r28,4(r31)                             
ffc0ed90:	7c 7a f2 14 	add     r3,r26,r30                             
ffc0ed94:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc0ed98:	7f 89 e0 50 	subf    r28,r9,r28                             
    if (chunk > chunk1) {                                             
ffc0ed9c:	7f 9d e0 00 	cmpw    cr7,r29,r28                            
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
ffc0eda0:	7c 84 4a 14 	add     r4,r4,r9                               
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
    chunk1 = pipe->Size - pipe->Start;                                
    if (chunk > chunk1) {                                             
ffc0eda4:	40 9d 00 20 	ble-    cr7,ffc0edc4 <pipe_read+0x118>         
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
ffc0eda8:	7f 85 e3 78 	mr      r5,r28                                 
ffc0edac:	48 00 35 c1 	bl      ffc1236c <memcpy>                      
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
ffc0edb0:	7c 7e e2 14 	add     r3,r30,r28                             
ffc0edb4:	7c 7a 1a 14 	add     r3,r26,r3                              
ffc0edb8:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc0edbc:	7c bc e8 50 	subf    r5,r28,r29                             
ffc0edc0:	48 00 00 04 	b       ffc0edc4 <pipe_read+0x118>             
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
ffc0edc4:	48 00 35 a9 	bl      ffc1236c <memcpy>                      
                                                                      
    pipe->Start += chunk;                                             
ffc0edc8:	81 5f 00 08 	lwz     r10,8(r31)                             
    pipe->Start %= pipe->Size;                                        
ffc0edcc:	81 3f 00 04 	lwz     r9,4(r31)                              
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
ffc0edd0:	7d 5d 52 14 	add     r10,r29,r10                            
    pipe->Start %= pipe->Size;                                        
ffc0edd4:	7d 0a 4b 96 	divwu   r8,r10,r9                              
ffc0edd8:	7d 28 49 d6 	mullw   r9,r8,r9                               
ffc0eddc:	7d 49 50 50 	subf    r10,r9,r10                             
    pipe->Length -= chunk;                                            
ffc0ede0:	81 3f 00 0c 	lwz     r9,12(r31)                             
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
    pipe->Start %= pipe->Size;                                        
ffc0ede4:	91 5f 00 08 	stw     r10,8(r31)                             
    pipe->Length -= chunk;                                            
ffc0ede8:	7d 3d 48 50 	subf    r9,r29,r9                              
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
ffc0edec:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
    pipe->Start %= pipe->Size;                                        
    pipe->Length -= chunk;                                            
ffc0edf0:	91 3f 00 0c 	stw     r9,12(r31)                             
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
ffc0edf4:	40 9e 00 08 	bne-    cr7,ffc0edfc <pipe_read+0x150>         
      pipe->Start = 0;                                                
ffc0edf8:	91 3f 00 08 	stw     r9,8(r31)                              
                                                                      
    if (pipe->waitingWriters > 0)                                     
ffc0edfc:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc0ee00:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ee04:	41 be 00 10 	beq+    cr7,ffc0ee14 <pipe_read+0x168>         
      PIPE_WAKEUPWRITERS(pipe);                                       
ffc0ee08:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0ee0c:	38 81 00 08 	addi    r4,r1,8                                
ffc0ee10:	48 00 0d d9 	bl      ffc0fbe8 <rtems_barrier_release>       
    read += chunk;                                                    
ffc0ee14:	7f de ea 14 	add     r30,r30,r29                            
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
ffc0ee18:	7f 9e d8 40 	cmplw   cr7,r30,r27                            
ffc0ee1c:	41 9c ff 4c 	blt+    cr7,ffc0ed68 <pipe_read+0xbc>          
ffc0ee20:	4b ff fe d8 	b       ffc0ecf8 <pipe_read+0x4c>              
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
ffc0ee24:	3b a0 ff f5 	li      r29,-11                                
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
ffc0ee28:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0ee2c:	4b ff b1 29 	bl      ffc09f54 <rtems_semaphore_release>     
ffc0ee30:	48 00 00 08 	b       ffc0ee38 <pipe_read+0x18c>             
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
ffc0ee34:	3b a0 ff fc 	li      r29,-4                                 <== NOT EXECUTED
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
                                                                      
out_nolock:                                                           
  if (read > 0)                                                       
ffc0ee38:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0ee3c:	41 bd 00 14 	bgt+    cr7,ffc0ee50 <pipe_read+0x1a4>         
ffc0ee40:	48 00 00 0c 	b       ffc0ee4c <pipe_read+0x1a0>             
)                                                                     
{                                                                     
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
ffc0ee44:	3b c0 ff fc 	li      r30,-4                                 <== NOT EXECUTED
ffc0ee48:	48 00 00 08 	b       ffc0ee50 <pipe_read+0x1a4>             <== NOT EXECUTED
  PIPE_UNLOCK(pipe);                                                  
                                                                      
out_nolock:                                                           
  if (read > 0)                                                       
    return read;                                                      
  return ret;                                                         
ffc0ee4c:	7f be eb 78 	mr      r30,r29                                
}                                                                     
ffc0ee50:	39 61 00 38 	addi    r11,r1,56                              
ffc0ee54:	7f c3 f3 78 	mr      r3,r30                                 
ffc0ee58:	48 01 09 20 	b       ffc1f778 <_restgpr_25_x>               
                                                                      

ffc0e814 <pipe_release>: void pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) {
ffc0e814:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0e818:	7c 08 02 a6 	mflr    r0                                     
ffc0e81c:	90 01 00 2c 	stw     r0,44(r1)                              
    /* WARN pipe not released! */                                     
    if (!PIPE_LOCK(pipe))                                             
      rtems_fatal_error_occurred(0xdeadbeef);                         
  #endif                                                              
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
ffc0e820:	81 24 00 10 	lwz     r9,16(r4)                              
                                                                      
void pipe_release(                                                    
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
ffc0e824:	bf 81 00 18 	stmw    r28,24(r1)                             
ffc0e828:	7c 7e 1b 78 	mr      r30,r3                                 
    if (!PIPE_LOCK(pipe))                                             
      rtems_fatal_error_occurred(0xdeadbeef);                         
  #endif                                                              
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
  if (mode & LIBIO_FLAGS_READ)                                        
ffc0e82c:	71 2a 00 02 	andi.   r10,r9,2                               
void pipe_release(                                                    
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
  pipe_control_t *pipe = *pipep;                                      
ffc0e830:	83 e3 00 00 	lwz     r31,0(r3)                              
    /* WARN pipe not released! */                                     
    if (!PIPE_LOCK(pipe))                                             
      rtems_fatal_error_occurred(0xdeadbeef);                         
  #endif                                                              
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
ffc0e834:	55 3d 07 7c 	rlwinm  r29,r9,0,29,30                         
  if (mode & LIBIO_FLAGS_READ)                                        
ffc0e838:	41 82 00 10 	beq-    ffc0e848 <pipe_release+0x34>           
     pipe->Readers --;                                                
ffc0e83c:	81 5f 00 10 	lwz     r10,16(r31)                            
ffc0e840:	39 4a ff ff 	addi    r10,r10,-1                             
ffc0e844:	91 5f 00 10 	stw     r10,16(r31)                            
  if (mode & LIBIO_FLAGS_WRITE)                                       
ffc0e848:	71 2a 00 04 	andi.   r10,r9,4                               
ffc0e84c:	41 82 00 10 	beq-    ffc0e85c <pipe_release+0x48>           
     pipe->Writers --;                                                
ffc0e850:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0e854:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0e858:	91 3f 00 14 	stw     r9,20(r31)                             
                                                                      
  PIPE_UNLOCK(pipe);                                                  
ffc0e85c:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0e860:	4b ff b6 f5 	bl      ffc09f54 <rtems_semaphore_release>     
                                                                      
  if (pipe->Readers == 0 && pipe->Writers == 0) {                     
ffc0e864:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0e868:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e86c:	40 9e 00 30 	bne-    cr7,ffc0e89c <pipe_release+0x88>       
ffc0e870:	83 9f 00 14 	lwz     r28,20(r31)                            
ffc0e874:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0e878:	40 be 00 14 	bne+    cr7,ffc0e88c <pipe_release+0x78>       
#if 0                                                                 
    /* To delete an anonymous pipe file when all users closed it */   
    if (pipe->Anonymous)                                              
      delfile = TRUE;                                                 
#endif                                                                
    pipe_free(pipe);                                                  
ffc0e87c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e880:	4b ff ff 45 	bl      ffc0e7c4 <pipe_free>                   
    *pipep = NULL;                                                    
ffc0e884:	93 9e 00 00 	stw     r28,0(r30)                             
ffc0e888:	48 00 00 34 	b       ffc0e8bc <pipe_release+0xa8>           
  }                                                                   
  else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)           
ffc0e88c:	2f 9d 00 04 	cmpwi   cr7,r29,4                              
ffc0e890:	41 be 00 0c 	beq+    cr7,ffc0e89c <pipe_release+0x88>       <== NEVER TAKEN
    /* Notify waiting Writers that all their partners left */         
    PIPE_WAKEUPWRITERS(pipe);                                         
ffc0e894:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0e898:	48 00 00 1c 	b       ffc0e8b4 <pipe_release+0xa0>           
  else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)            
ffc0e89c:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0e8a0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e8a4:	40 9e 00 18 	bne-    cr7,ffc0e8bc <pipe_release+0xa8>       <== NEVER TAKEN
ffc0e8a8:	2f 9d 00 02 	cmpwi   cr7,r29,2                              
ffc0e8ac:	41 9e 00 10 	beq-    cr7,ffc0e8bc <pipe_release+0xa8>       <== NEVER TAKEN
    PIPE_WAKEUPREADERS(pipe);                                         
ffc0e8b0:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc0e8b4:	38 81 00 08 	addi    r4,r1,8                                
ffc0e8b8:	48 00 13 31 	bl      ffc0fbe8 <rtems_barrier_release>       
#ifdef RTEMS_DEBUG                                                    
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc =                                                                
#endif                                                                
   rtems_semaphore_release(pipe_semaphore);                           
ffc0e8bc:	3d 20 00 00 	lis     r9,0                                   
ffc0e8c0:	80 69 29 a4 	lwz     r3,10660(r9)                           
ffc0e8c4:	4b ff b6 91 	bl      ffc09f54 <rtems_semaphore_release>     
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
ffc0e8c8:	39 61 00 28 	addi    r11,r1,40                              
ffc0e8cc:	48 01 0e b8 	b       ffc1f784 <_restgpr_28_x>               
                                                                      

ffc0ee5c <pipe_write>: pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) {
ffc0ee5c:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc0ee60:	7c 08 02 a6 	mflr    r0                                     
ffc0ee64:	bf 01 00 18 	stmw    r24,24(r1)                             
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
ffc0ee68:	7c bc 2b 79 	mr.     r28,r5                                 
    return 0;                                                         
ffc0ee6c:	3b c0 00 00 	li      r30,0                                  
  pipe_control_t *pipe,                                               
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
ffc0ee70:	90 01 00 3c 	stw     r0,60(r1)                              
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
ffc0ee74:	41 a2 01 b4 	beq+    ffc0f028 <pipe_write+0x1cc>            <== NEVER TAKEN
ffc0ee78:	7c 7f 1b 78 	mr      r31,r3                                 
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc0ee7c:	80 63 00 28 	lwz     r3,40(r3)                              
ffc0ee80:	7c 99 23 78 	mr      r25,r4                                 
ffc0ee84:	38 a0 00 00 	li      r5,0                                   
ffc0ee88:	38 80 00 00 	li      r4,0                                   
ffc0ee8c:	7c d8 33 78 	mr      r24,r6                                 
ffc0ee90:	4b ff af a1 	bl      ffc09e30 <rtems_semaphore_obtain>      
ffc0ee94:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ee98:	40 9e 01 84 	bne-    cr7,ffc0f01c <pipe_write+0x1c0>        <== NEVER TAKEN
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
ffc0ee9c:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0eea0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0eea4:	41 9e 01 44 	beq-    cr7,ffc0efe8 <pipe_write+0x18c>        
    ret = -EPIPE;                                                     
    goto out_locked;                                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
ffc0eea8:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0eeac:	3b 40 00 01 	li      r26,1                                  
ffc0eeb0:	7f 9c 48 40 	cmplw   cr7,r28,r9                             
ffc0eeb4:	41 9d 00 08 	bgt-    cr7,ffc0eebc <pipe_write+0x60>         <== NEVER TAKEN
ffc0eeb8:	7f 9a e3 78 	mr      r26,r28                                
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
ffc0eebc:	3b c0 00 00 	li      r30,0                                  
ffc0eec0:	48 00 01 18 	b       ffc0efd8 <pipe_write+0x17c>            
  /* 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)) {                                       
ffc0eec4:	81 38 00 10 	lwz     r9,16(r24)                             
ffc0eec8:	71 2a 00 01 	andi.   r10,r9,1                               
ffc0eecc:	40 82 01 28 	bne-    ffc0eff4 <pipe_write+0x198>            
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
ffc0eed0:	81 3f 00 1c 	lwz     r9,28(r31)                             
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
ffc0eed4:	3b a0 ff fc 	li      r29,-4                                 
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
ffc0eed8:	80 7f 00 28 	lwz     r3,40(r31)                             
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
ffc0eedc:	39 29 00 01 	addi    r9,r9,1                                
ffc0eee0:	91 3f 00 1c 	stw     r9,28(r31)                             
      PIPE_UNLOCK(pipe);                                              
ffc0eee4:	4b ff b0 71 	bl      ffc09f54 <rtems_semaphore_release>     
      if (! PIPE_WRITEWAIT(pipe))                                     
ffc0eee8:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc0eeec:	38 80 00 00 	li      r4,0                                   
ffc0eef0:	48 00 0d 69 	bl      ffc0fc58 <rtems_barrier_wait>          
ffc0eef4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0eef8:	40 9e 00 08 	bne-    cr7,ffc0ef00 <pipe_write+0xa4>         <== NEVER TAKEN
ffc0eefc:	3b a0 00 00 	li      r29,0                                  
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
ffc0ef00:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0ef04:	38 80 00 00 	li      r4,0                                   
ffc0ef08:	38 a0 00 00 	li      r5,0                                   
ffc0ef0c:	4b ff af 25 	bl      ffc09e30 <rtems_semaphore_obtain>      
ffc0ef10:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ef14:	40 9e 00 f8 	bne-    cr7,ffc0f00c <pipe_write+0x1b0>        <== NEVER TAKEN
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
      if (ret != 0)                                                   
ffc0ef18:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
ffc0ef1c:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc0ef20:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0ef24:	91 3f 00 1c 	stw     r9,28(r31)                             
      if (ret != 0)                                                   
ffc0ef28:	40 9e 00 d8 	bne-    cr7,ffc0f000 <pipe_write+0x1a4>        <== NEVER TAKEN
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
ffc0ef2c:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0ef30:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ef34:	41 9e 00 c8 	beq-    cr7,ffc0effc <pipe_write+0x1a0>        <== 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) {                                
ffc0ef38:	83 7f 00 04 	lwz     r27,4(r31)                             
ffc0ef3c:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc0ef40:	7f a9 d8 50 	subf    r29,r9,r27                             
ffc0ef44:	7f 9d d0 40 	cmplw   cr7,r29,r26                            
ffc0ef48:	41 9c ff 7c 	blt+    cr7,ffc0eec4 <pipe_write+0x68>         
        ret = -EPIPE;                                                 
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
ffc0ef4c:	7d 5e e0 50 	subf    r10,r30,r28                            
ffc0ef50:	7f 9d 50 40 	cmplw   cr7,r29,r10                            
ffc0ef54:	40 9d 00 08 	ble-    cr7,ffc0ef5c <pipe_write+0x100>        
ffc0ef58:	7d 5d 53 78 	mr      r29,r10                                
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
ffc0ef5c:	81 5f 00 08 	lwz     r10,8(r31)                             
    if (chunk > chunk1) {                                             
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
ffc0ef60:	7f a5 eb 78 	mr      r5,r29                                 
ffc0ef64:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc0ef68:	7c 99 f2 14 	add     r4,r25,r30                             
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
ffc0ef6c:	7d 49 52 14 	add     r10,r9,r10                             
ffc0ef70:	7d 2a db 96 	divwu   r9,r10,r27                             
ffc0ef74:	7d 29 d9 d6 	mullw   r9,r9,r27                              
ffc0ef78:	7d 29 50 50 	subf    r9,r9,r10                              
ffc0ef7c:	7f 69 d8 50 	subf    r27,r9,r27                             
    if (chunk > chunk1) {                                             
ffc0ef80:	7f 9d d8 00 	cmpw    cr7,r29,r27                            
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
ffc0ef84:	7c 63 4a 14 	add     r3,r3,r9                               
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
    if (chunk > chunk1) {                                             
ffc0ef88:	40 9d 00 20 	ble-    cr7,ffc0efa8 <pipe_write+0x14c>        
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
ffc0ef8c:	7f 65 db 78 	mr      r5,r27                                 
ffc0ef90:	48 00 33 dd 	bl      ffc1236c <memcpy>                      
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
ffc0ef94:	7c 9b f2 14 	add     r4,r27,r30                             
ffc0ef98:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc0ef9c:	7c 99 22 14 	add     r4,r25,r4                              
ffc0efa0:	7c bb e8 50 	subf    r5,r27,r29                             
ffc0efa4:	48 00 00 04 	b       ffc0efa8 <pipe_write+0x14c>            
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
ffc0efa8:	48 00 33 c5 	bl      ffc1236c <memcpy>                      
                                                                      
    pipe->Length += chunk;                                            
ffc0efac:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc0efb0:	7d 29 ea 14 	add     r9,r9,r29                              
ffc0efb4:	91 3f 00 0c 	stw     r9,12(r31)                             
    if (pipe->waitingReaders > 0)                                     
ffc0efb8:	81 3f 00 18 	lwz     r9,24(r31)                             
ffc0efbc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0efc0:	41 be 00 10 	beq+    cr7,ffc0efd0 <pipe_write+0x174>        
      PIPE_WAKEUPREADERS(pipe);                                       
ffc0efc4:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc0efc8:	38 81 00 08 	addi    r4,r1,8                                
ffc0efcc:	48 00 0c 1d 	bl      ffc0fbe8 <rtems_barrier_release>       
    written += chunk;                                                 
ffc0efd0:	7f de ea 14 	add     r30,r30,r29                            
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
ffc0efd4:	3b 40 00 01 	li      r26,1                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
ffc0efd8:	7f 9e e0 40 	cmplw   cr7,r30,r28                            
ffc0efdc:	41 9c ff 5c 	blt+    cr7,ffc0ef38 <pipe_write+0xdc>         
ffc0efe0:	3b a0 00 00 	li      r29,0                                  
ffc0efe4:	48 00 00 1c 	b       ffc0f000 <pipe_write+0x1a4>            
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
    ret = -EPIPE;                                                     
ffc0efe8:	3b a0 ff e0 	li      r29,-32                                
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, written = 0, ret = 0;                            
ffc0efec:	3b c0 00 00 	li      r30,0                                  
ffc0eff0:	48 00 00 10 	b       ffc0f000 <pipe_write+0x1a4>            
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
ffc0eff4:	3b a0 ff f5 	li      r29,-11                                
ffc0eff8:	48 00 00 08 	b       ffc0f000 <pipe_write+0x1a4>            
      pipe->waitingWriters --;                                        
      if (ret != 0)                                                   
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
        ret = -EPIPE;                                                 
ffc0effc:	3b a0 ff e0 	li      r29,-32                                <== NOT EXECUTED
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
ffc0f000:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc0f004:	4b ff af 51 	bl      ffc09f54 <rtems_semaphore_release>     
ffc0f008:	48 00 00 08 	b       ffc0f010 <pipe_write+0x1b4>            
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
ffc0f00c:	3b a0 ff fc 	li      r29,-4                                 <== NOT EXECUTED
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
    kill(getpid(), SIGPIPE);                                          
#endif                                                                
                                                                      
  if (written > 0)                                                    
ffc0f010:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0f014:	41 bd 00 14 	bgt+    cr7,ffc0f028 <pipe_write+0x1cc>        
ffc0f018:	48 00 00 0c 	b       ffc0f024 <pipe_write+0x1c8>            
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
ffc0f01c:	3b c0 ff fc 	li      r30,-4                                 <== NOT EXECUTED
ffc0f020:	48 00 00 08 	b       ffc0f028 <pipe_write+0x1cc>            <== NOT EXECUTED
    kill(getpid(), SIGPIPE);                                          
#endif                                                                
                                                                      
  if (written > 0)                                                    
    return written;                                                   
  return ret;                                                         
ffc0f024:	7f be eb 78 	mr      r30,r29                                
}                                                                     
ffc0f028:	39 61 00 38 	addi    r11,r1,56                              
ffc0f02c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0f030:	48 01 07 44 	b       ffc1f774 <_restgpr_24_x>               
                                                                      

ffc08608 <posix_memalign>: ) { /* * Update call statistics */ MSBUMP(memalign_calls, 1);
ffc08608:	3d 40 00 00 	lis     r10,0                                  
ffc0860c:	39 4a 34 08 	addi    r10,r10,13320                          
ffc08610:	81 0a 00 08 	lwz     r8,8(r10)                              
ffc08614:	39 08 00 01 	addi    r8,r8,1                                
ffc08618:	91 0a 00 08 	stw     r8,8(r10)                              
                                                                      
  if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
ffc0861c:	39 44 ff ff 	addi    r10,r4,-1                              
ffc08620:	7d 48 20 39 	and.    r8,r10,r4                              
ffc08624:	40 a2 00 10 	bne+    ffc08634 <posix_memalign+0x2c>         <== NEVER TAKEN
ffc08628:	2b 84 00 03 	cmplwi  cr7,r4,3                               
ffc0862c:	40 bd 00 08 	ble+    cr7,ffc08634 <posix_memalign+0x2c>     
                                                                      
  /*                                                                  
   *  rtems_memalign does all of the error checking work EXCEPT       
   *  for adding restrictionso on the alignment.                      
   */                                                                 
  return rtems_memalign( pointer, alignment, size );                  
ffc08630:	48 00 02 d8 	b       ffc08908 <rtems_memalign>              
}                                                                     
ffc08634:	38 60 00 16 	li      r3,22                                  
ffc08638:	4e 80 00 20 	blr                                            
                                                                      

ffc0541c <printk>: /** * Kernel printf function requiring minimal infrastructure. */ void printk(const char *fmt, ...) {
ffc0541c:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc05420:	7c 08 02 a6 	mflr    r0                                     
ffc05424:	90 81 00 1c 	stw     r4,28(r1)                              
ffc05428:	90 01 00 7c 	stw     r0,124(r1)                             
ffc0542c:	90 a1 00 20 	stw     r5,32(r1)                              
ffc05430:	90 c1 00 24 	stw     r6,36(r1)                              
ffc05434:	90 e1 00 28 	stw     r7,40(r1)                              
ffc05438:	91 01 00 2c 	stw     r8,44(r1)                              
ffc0543c:	91 21 00 30 	stw     r9,48(r1)                              
ffc05440:	91 41 00 34 	stw     r10,52(r1)                             
ffc05444:	40 86 00 24 	bne-    cr1,ffc05468 <printk+0x4c>             <== ALWAYS TAKEN
ffc05448:	d8 21 00 38 	stfd    f1,56(r1)                              <== NOT EXECUTED
ffc0544c:	d8 41 00 40 	stfd    f2,64(r1)                              <== NOT EXECUTED
ffc05450:	d8 61 00 48 	stfd    f3,72(r1)                              <== NOT EXECUTED
ffc05454:	d8 81 00 50 	stfd    f4,80(r1)                              <== NOT EXECUTED
ffc05458:	d8 a1 00 58 	stfd    f5,88(r1)                              <== NOT EXECUTED
ffc0545c:	d8 c1 00 60 	stfd    f6,96(r1)                              <== NOT EXECUTED
ffc05460:	d8 e1 00 68 	stfd    f7,104(r1)                             <== NOT EXECUTED
ffc05464:	d9 01 00 70 	stfd    f8,112(r1)                             <== NOT EXECUTED
  va_list  ap;       /* points to each unnamed argument in turn */    
                                                                      
  va_start(ap, fmt); /* make ap point to 1st unnamed arg */           
ffc05468:	39 20 00 01 	li      r9,1                                   
ffc0546c:	99 21 00 08 	stb     r9,8(r1)                               
ffc05470:	39 20 00 00 	li      r9,0                                   
  vprintk(fmt, ap);                                                   
ffc05474:	38 81 00 08 	addi    r4,r1,8                                
 */                                                                   
void printk(const char *fmt, ...)                                     
{                                                                     
  va_list  ap;       /* points to each unnamed argument in turn */    
                                                                      
  va_start(ap, fmt); /* make ap point to 1st unnamed arg */           
ffc05478:	99 21 00 09 	stb     r9,9(r1)                               
ffc0547c:	39 21 00 80 	addi    r9,r1,128                              
ffc05480:	91 21 00 0c 	stw     r9,12(r1)                              
ffc05484:	39 21 00 18 	addi    r9,r1,24                               
ffc05488:	91 21 00 10 	stw     r9,16(r1)                              
  vprintk(fmt, ap);                                                   
ffc0548c:	48 00 29 d9 	bl      ffc07e64 <vprintk>                     
  va_end(ap);        /* clean up when done */                         
}                                                                     
ffc05490:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc05494:	38 21 00 78 	addi    r1,r1,120                              
ffc05498:	7c 08 03 a6 	mtlr    r0                                     
ffc0549c:	4e 80 00 20 	blr                                            
                                                                      

ffc06504 <printk_plugin>: int printk_plugin( void *ignored __attribute__((unused)), const char *format, ... ) {
ffc06504:	94 21 ff 90 	stwu    r1,-112(r1)                            
ffc06508:	7c 08 02 a6 	mflr    r0                                     
ffc0650c:	90 a1 00 18 	stw     r5,24(r1)                              
ffc06510:	90 01 00 74 	stw     r0,116(r1)                             
ffc06514:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc06518:	90 e1 00 20 	stw     r7,32(r1)                              
ffc0651c:	91 01 00 24 	stw     r8,36(r1)                              
ffc06520:	91 21 00 28 	stw     r9,40(r1)                              
ffc06524:	91 41 00 2c 	stw     r10,44(r1)                             
ffc06528:	40 86 00 24 	bne-    cr1,ffc0654c <printk_plugin+0x48>      <== ALWAYS TAKEN
ffc0652c:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc06530:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc06534:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc06538:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc0653c:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc06540:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc06544:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc06548:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  va_list arg_pointer;                                                
                                                                      
  va_start (arg_pointer, format);                                     
ffc0654c:	39 20 00 02 	li      r9,2                                   
ffc06550:	99 21 00 08 	stb     r9,8(r1)                               
ffc06554:	39 20 00 00 	li      r9,0                                   
                                                                      
  vprintk( format, arg_pointer );                                     
ffc06558:	7c 83 23 78 	mr      r3,r4                                  
  ...                                                                 
)                                                                     
{                                                                     
  va_list arg_pointer;                                                
                                                                      
  va_start (arg_pointer, format);                                     
ffc0655c:	99 21 00 09 	stb     r9,9(r1)                               
ffc06560:	39 21 00 78 	addi    r9,r1,120                              
                                                                      
  vprintk( format, arg_pointer );                                     
ffc06564:	38 81 00 08 	addi    r4,r1,8                                
  ...                                                                 
)                                                                     
{                                                                     
  va_list arg_pointer;                                                
                                                                      
  va_start (arg_pointer, format);                                     
ffc06568:	91 21 00 0c 	stw     r9,12(r1)                              
ffc0656c:	39 21 00 10 	addi    r9,r1,16                               
ffc06570:	91 21 00 10 	stw     r9,16(r1)                              
                                                                      
  vprintk( format, arg_pointer );                                     
ffc06574:	48 00 29 dd 	bl      ffc08f50 <vprintk>                     
                                                                      
  va_end(arg_pointer); /* clean up when done */                       
                                                                      
  return 0;                                                           
}                                                                     
ffc06578:	38 60 00 00 	li      r3,0                                   
ffc0657c:	80 01 00 74 	lwz     r0,116(r1)                             
ffc06580:	38 21 00 70 	addi    r1,r1,112                              
ffc06584:	7c 08 03 a6 	mtlr    r0                                     
ffc06588:	4e 80 00 20 	blr                                            
                                                                      

ffc0d558 <ramdisk_allocate>: void *area_begin, uint32_t media_block_size, rtems_blkdev_bnum media_block_count, bool trace ) {
ffc0d558:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0d55c:	7c 08 02 a6 	mflr    r0                                     
ffc0d560:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc0d564:	7c 7e 1b 78 	mr      r30,r3                                 
  struct ramdisk *rd = malloc(sizeof(struct ramdisk));                
ffc0d568:	38 60 00 10 	li      r3,16                                  
  void *area_begin,                                                   
  uint32_t media_block_size,                                          
  rtems_blkdev_bnum media_block_count,                                
  bool trace                                                          
)                                                                     
{                                                                     
ffc0d56c:	90 01 00 24 	stw     r0,36(r1)                              
ffc0d570:	7c 9d 23 78 	mr      r29,r4                                 
ffc0d574:	7c bc 2b 78 	mr      r28,r5                                 
ffc0d578:	7c db 33 78 	mr      r27,r6                                 
  struct ramdisk *rd = malloc(sizeof(struct ramdisk));                
ffc0d57c:	4b ff 83 ad 	bl      ffc05928 <malloc>                      
                                                                      
  if (rd == NULL) {                                                   
ffc0d580:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0d584:	41 82 00 54 	beq-    ffc0d5d8 <ramdisk_allocate+0x80>       <== NEVER TAKEN
    return NULL;                                                      
  }                                                                   
                                                                      
  if (area_begin == NULL) {                                           
ffc0d588:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
                                                                      
      return NULL;                                                    
    }                                                                 
    rd->malloced = true;                                              
  } else {                                                            
    rd->malloced = false;                                             
ffc0d58c:	39 20 00 00 	li      r9,0                                   
                                                                      
  if (rd == NULL) {                                                   
    return NULL;                                                      
  }                                                                   
                                                                      
  if (area_begin == NULL) {                                           
ffc0d590:	40 be 00 2c 	bne+    cr7,ffc0d5bc <ramdisk_allocate+0x64>   
    area_begin = calloc(media_block_count, media_block_size);         
ffc0d594:	7f 83 e3 78 	mr      r3,r28                                 
ffc0d598:	7f a4 eb 78 	mr      r4,r29                                 
ffc0d59c:	4b ff 7d 19 	bl      ffc052b4 <calloc>                      
    if (area_begin == NULL) {                                         
      free(rd);                                                       
                                                                      
      return NULL;                                                    
    }                                                                 
    rd->malloced = true;                                              
ffc0d5a0:	39 20 00 01 	li      r9,1                                   
    return NULL;                                                      
  }                                                                   
                                                                      
  if (area_begin == NULL) {                                           
    area_begin = calloc(media_block_count, media_block_size);         
    if (area_begin == NULL) {                                         
ffc0d5a4:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0d5a8:	40 a2 00 14 	bne+    ffc0d5bc <ramdisk_allocate+0x64>       <== ALWAYS TAKEN
      free(rd);                                                       
ffc0d5ac:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0d5b0:	4b ff 7d e9 	bl      ffc05398 <free>                        <== NOT EXECUTED
                                                                      
      return NULL;                                                    
ffc0d5b4:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
ffc0d5b8:	48 00 00 20 	b       ffc0d5d8 <ramdisk_allocate+0x80>       <== NOT EXECUTED
    }                                                                 
    rd->malloced = true;                                              
  } else {                                                            
    rd->malloced = false;                                             
ffc0d5bc:	99 3f 00 0d 	stb     r9,13(r31)                             
  }                                                                   
  rd->block_size = media_block_size;                                  
  rd->block_num = media_block_count;                                  
  rd->area = area_begin;                                              
  rd->trace = trace;                                                  
  rd->initialized = true;                                             
ffc0d5c0:	39 20 00 01 	li      r9,1                                   
    }                                                                 
    rd->malloced = true;                                              
  } else {                                                            
    rd->malloced = false;                                             
  }                                                                   
  rd->block_size = media_block_size;                                  
ffc0d5c4:	93 bf 00 00 	stw     r29,0(r31)                             
  rd->block_num = media_block_count;                                  
ffc0d5c8:	93 9f 00 04 	stw     r28,4(r31)                             
  rd->area = area_begin;                                              
ffc0d5cc:	93 df 00 08 	stw     r30,8(r31)                             
  rd->trace = trace;                                                  
ffc0d5d0:	9b 7f 00 0e 	stb     r27,14(r31)                            
  rd->initialized = true;                                             
ffc0d5d4:	99 3f 00 0c 	stb     r9,12(r31)                             
                                                                      
  return rd;                                                          
}                                                                     
ffc0d5d8:	39 61 00 20 	addi    r11,r1,32                              
ffc0d5dc:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d5e0:	48 00 b3 ec 	b       ffc189cc <_restgpr_27_x>               
                                                                      

ffc0d5e4 <ramdisk_free>: void ramdisk_free(ramdisk *rd) {
ffc0d5e4:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0d5e8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0d5ec:	7c 08 02 a6 	mflr    r0                                     
ffc0d5f0:	48 00 b3 a1 	bl      ffc18990 <_savegpr_31>                 
  if (rd != NULL) {                                                   
ffc0d5f4:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
  return rd;                                                          
}                                                                     
                                                                      
void ramdisk_free(ramdisk *rd)                                        
{                                                                     
ffc0d5f8:	90 01 00 14 	stw     r0,20(r1)                              
  if (rd != NULL) {                                                   
ffc0d5fc:	41 82 00 30 	beq-    ffc0d62c <ramdisk_free+0x48>           <== NEVER TAKEN
    if (rd->malloced) {                                               
ffc0d600:	89 3f 00 0d 	lbz     r9,13(r31)                             
ffc0d604:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0d608:	41 be 00 0c 	beq+    cr7,ffc0d614 <ramdisk_free+0x30>       
      free(rd->area);                                                 
ffc0d60c:	80 7f 00 08 	lwz     r3,8(r31)                              
ffc0d610:	4b ff 7d 89 	bl      ffc05398 <free>                        
    }                                                                 
    free(rd);                                                         
  }                                                                   
}                                                                     
ffc0d614:	80 01 00 14 	lwz     r0,20(r1)                              
{                                                                     
  if (rd != NULL) {                                                   
    if (rd->malloced) {                                               
      free(rd->area);                                                 
    }                                                                 
    free(rd);                                                         
ffc0d618:	7f e3 fb 78 	mr      r3,r31                                 
  }                                                                   
}                                                                     
ffc0d61c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0d620:	7c 08 03 a6 	mtlr    r0                                     
ffc0d624:	38 21 00 10 	addi    r1,r1,16                               
{                                                                     
  if (rd != NULL) {                                                   
    if (rd->malloced) {                                               
      free(rd->area);                                                 
    }                                                                 
    free(rd);                                                         
ffc0d628:	4b ff 7d 70 	b       ffc05398 <free>                        
  }                                                                   
}                                                                     
ffc0d62c:	39 61 00 10 	addi    r11,r1,16                              <== NOT EXECUTED
ffc0d630:	48 00 b3 ac 	b       ffc189dc <_restgpr_31_x>               <== NOT EXECUTED
                                                                      

ffc0e95c <ramdisk_initialize>: rtems_device_driver ramdisk_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *arg __attribute__((unused))) {
ffc0e95c:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc0e960:	7c 08 02 a6 	mflr    r0                                     
ffc0e964:	be a1 00 1c 	stmw    r21,28(r1)                             
ffc0e968:	7c 77 1b 78 	mr      r23,r3                                 
ffc0e96c:	90 01 00 4c 	stw     r0,76(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();                                  
ffc0e970:	4b ff 6c d1 	bl      ffc05640 <rtems_disk_io_initialize>    
    if (rc != RTEMS_SUCCESSFUL)                                       
ffc0e974:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0e978:	40 a2 01 08 	bne+    ffc0ea80 <ramdisk_initialize+0x124>    <== 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));
ffc0e97c:	3f 80 00 00 	lis     r28,0                                  
ffc0e980:	80 7c 27 68 	lwz     r3,10088(r28)                          
ffc0e984:	38 80 00 10 	li      r4,16                                  
ffc0e988:	3f a0 00 00 	lis     r29,0                                  
ffc0e98c:	4b ff 7c bd 	bl      ffc06648 <calloc>                      
        {                                                             
            r->malloced = false;                                      
            r->initialized = true;                                    
            r->area = c->location;                                    
        }                                                             
        rc = rtems_disk_create_phys(dev, c->block_size, c->block_num, 
ffc0e990:	3e a0 ff c1 	lis     r21,-63                                
     * 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));
    r->trace = false;                                                 
ffc0e994:	9b c3 00 0e 	stb     r30,14(r3)                             
    for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)  
ffc0e998:	7f 98 e3 78 	mr      r24,r28                                
     * 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));
ffc0e99c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0e9a0:	3b bd 20 e0 	addi    r29,r29,8416                           
    r->trace = false;                                                 
    for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)  
ffc0e9a4:	3b c0 00 00 	li      r30,0                                  
    {                                                                 
        dev_t dev = rtems_filesystem_make_dev_t(major, i);            
        char name [] = RAMDISK_DEVICE_BASE_NAME "a";                  
ffc0e9a8:	3e c0 ff c2 	lis     r22,-62                                
        {                                                             
            r->malloced = false;                                      
            r->initialized = true;                                    
            r->area = c->location;                                    
        }                                                             
        rc = rtems_disk_create_phys(dev, c->block_size, c->block_num, 
ffc0e9ac:	3a b5 ea 8c 	addi    r21,r21,-5492                          
        {                                                             
            if (r->malloced)                                          
            {                                                         
                free(r->area);                                        
            }                                                         
            r->initialized = false;                                   
ffc0e9b0:	3b 20 00 00 	li      r25,0                                  
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            r->malloced = false;                                      
            r->initialized = true;                                    
ffc0e9b4:	3b 80 00 01 	li      r28,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++)  
ffc0e9b8:	48 00 00 b4 	b       ffc0ea6c <ramdisk_initialize+0x110>    
    {                                                                 
        dev_t dev = rtems_filesystem_make_dev_t(major, i);            
        char name [] = RAMDISK_DEVICE_BASE_NAME "a";                  
ffc0e9bc:	39 21 00 08 	addi    r9,r1,8                                
ffc0e9c0:	39 56 53 1f 	addi    r10,r22,21279                          
ffc0e9c4:	7c aa 4c aa 	lswi    r5,r10,9                               
ffc0e9c8:	7c a9 4d aa 	stswi   r5,r9,9                                
        name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;                 
        r->block_size = c->block_size;                                
        r->block_num = c->block_num;                                  
        if (c->location == NULL)                                      
ffc0e9cc:	81 3d ff fc 	lwz     r9,-4(r29)                             
    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;                 
        r->block_size = c->block_size;                                
ffc0e9d0:	83 5d ff f4 	lwz     r26,-12(r29)                           
        r->block_num = c->block_num;                                  
        if (c->location == NULL)                                      
ffc0e9d4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    {                                                                 
        dev_t dev = rtems_filesystem_make_dev_t(major, i);            
        char name [] = RAMDISK_DEVICE_BASE_NAME "a";                  
        name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;                 
        r->block_size = c->block_size;                                
        r->block_num = c->block_num;                                  
ffc0e9d8:	83 7d ff f8 	lwz     r27,-8(r29)                            
    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;                 
ffc0e9dc:	9b c1 00 10 	stb     r30,16(r1)                             
        r->block_size = c->block_size;                                
ffc0e9e0:	93 5f 00 00 	stw     r26,0(r31)                             
        r->block_num = c->block_num;                                  
ffc0e9e4:	93 7f 00 04 	stw     r27,4(r31)                             
        if (c->location == NULL)                                      
ffc0e9e8:	40 be 00 2c 	bne+    cr7,ffc0ea14 <ramdisk_initialize+0xb8> <== NEVER TAKEN
        {                                                             
            r->malloced = true;                                       
            r->area = malloc(r->block_size * r->block_num);           
ffc0e9ec:	7c 7b d1 d6 	mullw   r3,r27,r26                             
        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;                                       
ffc0e9f0:	9b 9f 00 0d 	stb     r28,13(r31)                            
            r->area = malloc(r->block_size * r->block_num);           
ffc0e9f4:	4b ff 84 01 	bl      ffc06df4 <malloc>                      
            if (r->area == NULL) /* No enough memory for this disk */ 
ffc0e9f8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
        r->block_size = c->block_size;                                
        r->block_num = c->block_num;                                  
        if (c->location == NULL)                                      
        {                                                             
            r->malloced = true;                                       
            r->area = malloc(r->block_size * r->block_num);           
ffc0e9fc:	90 7f 00 08 	stw     r3,8(r31)                              
            if (r->area == NULL) /* No enough memory for this disk */ 
ffc0ea00:	40 be 00 0c 	bne+    cr7,ffc0ea0c <ramdisk_initialize+0xb0> <== ALWAYS TAKEN
            {                                                         
                r->initialized = false;                               
ffc0ea04:	98 7f 00 0c 	stb     r3,12(r31)                             <== NOT EXECUTED
ffc0ea08:	48 00 00 58 	b       ffc0ea60 <ramdisk_initialize+0x104>    <== NOT EXECUTED
                continue;                                             
            }                                                         
            else                                                      
            {                                                         
                r->initialized = true;                                
ffc0ea0c:	9b 9f 00 0c 	stb     r28,12(r31)                            
ffc0ea10:	48 00 00 10 	b       ffc0ea20 <ramdisk_initialize+0xc4>     
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            r->malloced = false;                                      
ffc0ea14:	9b 3f 00 0d 	stb     r25,13(r31)                            <== NOT EXECUTED
            r->initialized = true;                                    
ffc0ea18:	9b 9f 00 0c 	stb     r28,12(r31)                            <== NOT EXECUTED
            r->area = c->location;                                    
ffc0ea1c:	91 3f 00 08 	stw     r9,8(r31)                              <== NOT EXECUTED
        }                                                             
        rc = rtems_disk_create_phys(dev, c->block_size, c->block_num, 
ffc0ea20:	7e e3 bb 78 	mr      r3,r23                                 
ffc0ea24:	7f c4 f3 78 	mr      r4,r30                                 
ffc0ea28:	7f 45 d3 78 	mr      r5,r26                                 
ffc0ea2c:	7f 66 db 78 	mr      r6,r27                                 
ffc0ea30:	7e a7 ab 78 	mr      r7,r21                                 
ffc0ea34:	7f e8 fb 78 	mr      r8,r31                                 
ffc0ea38:	39 21 00 08 	addi    r9,r1,8                                
ffc0ea3c:	4b ff 69 51 	bl      ffc0538c <rtems_disk_create_phys>      
                                    ramdisk_ioctl, r, name);          
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc0ea40:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ea44:	41 9e 00 1c 	beq-    cr7,ffc0ea60 <ramdisk_initialize+0x104><== ALWAYS TAKEN
        {                                                             
            if (r->malloced)                                          
ffc0ea48:	89 3f 00 0d 	lbz     r9,13(r31)                             <== NOT EXECUTED
ffc0ea4c:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc0ea50:	41 be 00 0c 	beq+    cr7,ffc0ea5c <ramdisk_initialize+0x100><== NOT EXECUTED
            {                                                         
                free(r->area);                                        
ffc0ea54:	80 7f 00 08 	lwz     r3,8(r31)                              <== NOT EXECUTED
ffc0ea58:	4b ff 7c d5 	bl      ffc0672c <free>                        <== NOT EXECUTED
            }                                                         
            r->initialized = false;                                   
ffc0ea5c:	9b 3f 00 0c 	stb     r25,12(r31)                            <== 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++)  
ffc0ea60:	3b de 00 01 	addi    r30,r30,1                              
ffc0ea64:	3b ff 00 10 	addi    r31,r31,16                             
ffc0ea68:	3b bd 00 0c 	addi    r29,r29,12                             
ffc0ea6c:	81 38 27 68 	lwz     r9,10088(r24)                          
ffc0ea70:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc0ea74:	41 9c ff 48 	blt+    cr7,ffc0e9bc <ramdisk_initialize+0x60> 
                free(r->area);                                        
            }                                                         
            r->initialized = false;                                   
        }                                                             
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
ffc0ea78:	38 60 00 00 	li      r3,0                                   
ffc0ea7c:	48 00 00 08 	b       ffc0ea84 <ramdisk_initialize+0x128>    
    rtems_ramdisk_config *c = rtems_ramdisk_configuration;            
    struct ramdisk *r;                                                
    rtems_status_code rc;                                             
                                                                      
    rc = rtems_disk_io_initialize();                                  
    if (rc != RTEMS_SUCCESSFUL)                                       
ffc0ea80:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
            }                                                         
            r->initialized = false;                                   
        }                                                             
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc0ea84:	39 61 00 48 	addi    r11,r1,72                              
ffc0ea88:	4b ff 1d 44 	b       ffc007cc <_restgpr_21_x>               
                                                                      

ffc0d42c <ramdisk_ioctl>: int ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp) { struct ramdisk *rd = rtems_disk_get_driver_data(dd); switch (req)
ffc0d42c:	6c 8a 20 00 	xoris   r10,r4,8192                            
    return 0;                                                         
}                                                                     
                                                                      
int                                                                   
ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)        
{                                                                     
ffc0d430:	94 21 ff e0 	stwu    r1,-32(r1)                             
    struct ramdisk *rd = rtems_disk_get_driver_data(dd);              
                                                                      
    switch (req)                                                      
ffc0d434:	2f 8a 42 07 	cmpwi   cr7,r10,16903                          
    return 0;                                                         
}                                                                     
                                                                      
int                                                                   
ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)        
{                                                                     
ffc0d438:	7c 08 02 a6 	mflr    r0                                     
ffc0d43c:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc0d440:	90 01 00 24 	stw     r0,36(r1)                              
            break;                                                    
    }                                                                 
                                                                      
    errno = EINVAL;                                                   
    return -1;                                                        
}                                                                     
ffc0d444:	83 c3 00 3c 	lwz     r30,60(r3)                             
int                                                                   
ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)        
{                                                                     
    struct ramdisk *rd = rtems_disk_get_driver_data(dd);              
                                                                      
    switch (req)                                                      
ffc0d448:	41 9e 00 cc 	beq-    cr7,ffc0d514 <ramdisk_ioctl+0xe8>      
ffc0d44c:	6c 8a c0 18 	xoris   r10,r4,49176                           
ffc0d450:	2f 8a 42 01 	cmpwi   cr7,r10,16897                          
ffc0d454:	40 9e 00 d8 	bne-    cr7,ffc0d52c <ramdisk_ioctl+0x100>     
    {                                                                 
        case RTEMS_BLKIO_REQUEST:                                     
        {                                                             
            rtems_blkdev_request *r = argp;                           
                                                                      
            switch (r->req)                                           
ffc0d458:	81 25 00 00 	lwz     r9,0(r5)                               
ffc0d45c:	7c bf 2b 78 	mr      r31,r5                                 
ffc0d460:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0d464:	41 9e 00 10 	beq-    cr7,ffc0d474 <ramdisk_ioctl+0x48>      
ffc0d468:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0d46c:	40 be 00 d4 	bne+    cr7,ffc0d540 <ramdisk_ioctl+0x114>     <== NEVER TAKEN
ffc0d470:	48 00 00 48 	b       ffc0d4b8 <ramdisk_ioctl+0x8c>          
#endif                                                                
                                                                      
static int                                                            
ramdisk_read(struct ramdisk *rd, rtems_blkdev_request *req)           
{                                                                     
    uint8_t *from = rd->area;                                         
ffc0d474:	83 7e 00 08 	lwz     r27,8(r30)                             
#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++)           
ffc0d478:	3b a5 00 18 	addi    r29,r5,24                              
ffc0d47c:	3b 80 00 00 	li      r28,0                                  
ffc0d480:	48 00 00 28 	b       ffc0d4a8 <ramdisk_ioctl+0x7c>          
#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);
ffc0d484:	80 9d 00 00 	lwz     r4,0(r29)                              
#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++)           
ffc0d488:	3b 9c 00 01 	addi    r28,r28,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);
ffc0d48c:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc0d490:	80 7d 00 08 	lwz     r3,8(r29)                              
ffc0d494:	7c 84 49 d6 	mullw   r4,r4,r9                               
ffc0d498:	80 bd 00 04 	lwz     r5,4(r29)                              
#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++)           
ffc0d49c:	3b bd 00 10 	addi    r29,r29,16                             
#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);
ffc0d4a0:	7c 9b 22 14 	add     r4,r27,r4                              
ffc0d4a4:	48 00 72 ed 	bl      ffc14790 <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++)           
ffc0d4a8:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0d4ac:	7f 9c 48 40 	cmplw   cr7,r28,r9                             
ffc0d4b0:	41 9c ff d4 	blt+    cr7,ffc0d484 <ramdisk_ioctl+0x58>      
ffc0d4b4:	48 00 00 44 	b       ffc0d4f8 <ramdisk_ioctl+0xcc>          
}                                                                     
                                                                      
static int                                                            
ramdisk_write(struct ramdisk *rd, rtems_blkdev_request *req)          
{                                                                     
    uint8_t *to = rd->area;                                           
ffc0d4b8:	83 7e 00 08 	lwz     r27,8(r30)                             
                                                                      
#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++)           
ffc0d4bc:	3b a5 00 18 	addi    r29,r5,24                              
ffc0d4c0:	3b 80 00 00 	li      r28,0                                  
ffc0d4c4:	48 00 00 28 	b       ffc0d4ec <ramdisk_ioctl+0xc0>          
#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);
ffc0d4c8:	80 7d 00 00 	lwz     r3,0(r29)                              
                                                                      
#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++)           
ffc0d4cc:	3b 9c 00 01 	addi    r28,r28,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);
ffc0d4d0:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc0d4d4:	80 9d 00 08 	lwz     r4,8(r29)                              
ffc0d4d8:	7c 63 49 d6 	mullw   r3,r3,r9                               
ffc0d4dc:	80 bd 00 04 	lwz     r5,4(r29)                              
                                                                      
#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++)           
ffc0d4e0:	3b bd 00 10 	addi    r29,r29,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);
ffc0d4e4:	7c 7b 1a 14 	add     r3,r27,r3                              
ffc0d4e8:	48 00 72 a9 	bl      ffc14790 <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++)           
ffc0d4ec:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0d4f0:	7f 9c 48 40 	cmplw   cr7,r28,r9                             
ffc0d4f4:	41 9c ff d4 	blt+    cr7,ffc0d4c8 <ramdisk_ioctl+0x9c>      
static inline void rtems_blkdev_request_done(                         
  rtems_blkdev_request *req,                                          
  rtems_status_code status                                            
)                                                                     
{                                                                     
  (*req->done)(req, status);                                          
ffc0d4f8:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0d4fc:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d500:	38 80 00 00 	li      r4,0                                   
ffc0d504:	7d 29 03 a6 	mtctr   r9                                     
ffc0d508:	4e 80 04 21 	bctrl                                          
            {                                                         
                case RTEMS_BLKDEV_REQ_READ:                           
                    return ramdisk_read(rd, r);                       
                                                                      
                case RTEMS_BLKDEV_REQ_WRITE:                          
                    return ramdisk_write(rd, r);                      
ffc0d50c:	38 60 00 00 	li      r3,0                                   
ffc0d510:	48 00 00 40 	b       ffc0d550 <ramdisk_ioctl+0x124>         
            }                                                         
            break;                                                    
        }                                                             
                                                                      
        case RTEMS_BLKIO_DELETED:                                     
            if (rd->free_at_delete_request) {                         
ffc0d514:	89 3e 00 0f 	lbz     r9,15(r30)                             
ffc0d518:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0d51c:	41 be 00 24 	beq+    cr7,ffc0d540 <ramdisk_ioctl+0x114>     
              ramdisk_free(rd);                                       
ffc0d520:	7f c3 f3 78 	mr      r3,r30                                 
ffc0d524:	48 00 00 c1 	bl      ffc0d5e4 <ramdisk_free>                
ffc0d528:	48 00 00 18 	b       ffc0d540 <ramdisk_ioctl+0x114>         
            break;                                                    
    }                                                                 
                                                                      
    errno = EINVAL;                                                   
    return -1;                                                        
}                                                                     
ffc0d52c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0d530:	bb 61 00 0c 	lmw     r27,12(r1)                             
ffc0d534:	7c 08 03 a6 	mtlr    r0                                     
ffc0d538:	38 21 00 20 	addi    r1,r1,32                               
              ramdisk_free(rd);                                       
            }                                                         
            break;                                                    
                                                                      
        default:                                                      
            return rtems_blkdev_ioctl (dd, req, argp);                
ffc0d53c:	48 00 29 28 	b       ffc0fe64 <rtems_blkdev_ioctl>          
            break;                                                    
    }                                                                 
                                                                      
    errno = EINVAL;                                                   
ffc0d540:	48 00 66 5d 	bl      ffc13b9c <__errno>                     
ffc0d544:	39 20 00 16 	li      r9,22                                  
ffc0d548:	91 23 00 00 	stw     r9,0(r3)                               
    return -1;                                                        
ffc0d54c:	38 60 ff ff 	li      r3,-1                                  
}                                                                     
ffc0d550:	39 61 00 20 	addi    r11,r1,32                              
ffc0d554:	48 00 b4 78 	b       ffc189cc <_restgpr_27_x>               
                                                                      

ffc0d634 <ramdisk_register>: rtems_blkdev_bnum media_block_count, bool trace, const char *disk, dev_t *dev_ptr ) {
ffc0d634:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0d638:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
ffc0d63c:	39 20 00 00 	li      r9,0                                   
  rtems_blkdev_bnum media_block_count,                                
  bool trace,                                                         
  const char *disk,                                                   
  dev_t *dev_ptr                                                      
)                                                                     
{                                                                     
ffc0d640:	bf 41 00 18 	stmw    r26,24(r1)                             
ffc0d644:	7c bf 2b 78 	mr      r31,r5                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
ffc0d648:	7c 25 0b 78 	mr      r5,r1                                  
  rtems_blkdev_bnum media_block_count,                                
  bool trace,                                                         
  const char *disk,                                                   
  dev_t *dev_ptr                                                      
)                                                                     
{                                                                     
ffc0d64c:	90 01 00 34 	stw     r0,52(r1)                              
ffc0d650:	7c 9d 23 78 	mr      r29,r4                                 
  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);             
ffc0d654:	3c 80 ff c2 	lis     r4,-62                                 
  const char *disk,                                                   
  dev_t *dev_ptr                                                      
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
ffc0d658:	95 25 00 08 	stwu    r9,8(r5)                               
  rtems_blkdev_bnum media_block_count,                                
  bool trace,                                                         
  const char *disk,                                                   
  dev_t *dev_ptr                                                      
)                                                                     
{                                                                     
ffc0d65c:	7c 7c 1b 78 	mr      r28,r3                                 
  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);             
ffc0d660:	38 84 a4 48 	addi    r4,r4,-23480                           
ffc0d664:	38 60 00 00 	li      r3,0                                   
  rtems_blkdev_bnum media_block_count,                                
  bool trace,                                                         
  const char *disk,                                                   
  dev_t *dev_ptr                                                      
)                                                                     
{                                                                     
ffc0d668:	7c da 33 78 	mr      r26,r6                                 
ffc0d66c:	7c fe 3b 78 	mr      r30,r7                                 
  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);             
ffc0d670:	4b ff cb 41 	bl      ffc0a1b0 <rtems_io_register_driver>    
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc0d674:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0d678:	40 be 00 74 	bne+    cr7,ffc0d6ec <ramdisk_register+0xb8>   <== NEVER TAKEN
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  rd = ramdisk_allocate(NULL, media_block_size, media_block_count, trace);
ffc0d67c:	7f e6 fb 78 	mr      r6,r31                                 
ffc0d680:	7f 84 e3 78 	mr      r4,r28                                 
ffc0d684:	7f a5 eb 78 	mr      r5,r29                                 
ffc0d688:	4b ff fe d1 	bl      ffc0d558 <ramdisk_allocate>            
ffc0d68c:	83 e1 00 08 	lwz     r31,8(r1)                              
  if (rd == NULL) {                                                   
ffc0d690:	7c 7b 1b 79 	mr.     r27,r3                                 
    rtems_io_unregister_driver(major);                                
ffc0d694:	7f e3 fb 78 	mr      r3,r31                                 
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  rd = ramdisk_allocate(NULL, media_block_size, media_block_count, trace);
  if (rd == NULL) {                                                   
ffc0d698:	40 a2 00 08 	bne+    ffc0d6a0 <ramdisk_register+0x6c>       <== ALWAYS TAKEN
ffc0d69c:	48 00 00 38 	b       ffc0d6d4 <ramdisk_register+0xa0>       <== NOT EXECUTED
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  dev = rtems_filesystem_make_dev_t(major, 0);                        
                                                                      
  sc = rtems_disk_create_phys(                                        
ffc0d6a0:	3c e0 ff c1 	lis     r7,-63                                 
ffc0d6a4:	38 80 00 00 	li      r4,0                                   
ffc0d6a8:	7f 85 e3 78 	mr      r5,r28                                 
ffc0d6ac:	7f a6 eb 78 	mr      r6,r29                                 
ffc0d6b0:	38 e7 d4 2c 	addi    r7,r7,-11220                           
ffc0d6b4:	7f 68 db 78 	mr      r8,r27                                 
ffc0d6b8:	7f 49 d3 78 	mr      r9,r26                                 
ffc0d6bc:	4b ff 70 25 	bl      ffc046e0 <rtems_disk_create_phys>      
    media_block_count,                                                
    ramdisk_ioctl,                                                    
    rd,                                                               
    disk                                                              
  );                                                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc0d6c0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0d6c4:	41 82 00 18 	beq-    ffc0d6dc <ramdisk_register+0xa8>       <== ALWAYS TAKEN
    ramdisk_free(rd);                                                 
ffc0d6c8:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc0d6cc:	4b ff ff 19 	bl      ffc0d5e4 <ramdisk_free>                <== NOT EXECUTED
    rtems_io_unregister_driver(major);                                
ffc0d6d0:	80 61 00 08 	lwz     r3,8(r1)                               <== NOT EXECUTED
ffc0d6d4:	4b ff cc 65 	bl      ffc0a338 <rtems_io_unregister_driver>  <== NOT EXECUTED
ffc0d6d8:	48 00 00 14 	b       ffc0d6ec <ramdisk_register+0xb8>       <== NOT EXECUTED
                                                                      
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  *dev_ptr = dev;                                                     
ffc0d6dc:	90 7e 00 04 	stw     r3,4(r30)                              
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0d6e0:	38 60 00 00 	li      r3,0                                   
    rtems_io_unregister_driver(major);                                
                                                                      
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  *dev_ptr = dev;                                                     
ffc0d6e4:	93 fe 00 00 	stw     r31,0(r30)                             
ffc0d6e8:	48 00 00 08 	b       ffc0d6f0 <ramdisk_register+0xbc>       
  ramdisk *rd = NULL;                                                 
  dev_t dev = 0;                                                      
                                                                      
  sc = rtems_io_register_driver(0, &ramdisk_ops, &major);             
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return RTEMS_UNSATISFIED;                                         
ffc0d6ec:	38 60 00 0d 	li      r3,13                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  *dev_ptr = dev;                                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0d6f0:	39 61 00 30 	addi    r11,r1,48                              
ffc0d6f4:	48 00 b2 d4 	b       ffc189c8 <_restgpr_26_x>               
                                                                      

ffc1a568 <read>: size_t count ) { rtems_libio_t *iop; rtems_libio_check_fd( fd );
ffc1a568:	3d 20 00 00 	lis     r9,0                                   
ssize_t read(                                                         
  int         fd,                                                     
  void       *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
ffc1a56c:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc1a570:	7c 08 02 a6 	mflr    r0                                     
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc1a574:	81 29 27 58 	lwz     r9,10072(r9)                           
ssize_t read(                                                         
  int         fd,                                                     
  void       *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
ffc1a578:	90 01 00 0c 	stw     r0,12(r1)                              
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc1a57c:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc1a580:	41 bc 00 08 	blt+    cr7,ffc1a588 <read+0x20>               
ffc1a584:	48 00 00 48 	b       ffc1a5cc <read+0x64>                   
  iop = rtems_libio_iop( fd );                                        
ffc1a588:	3d 20 00 00 	lis     r9,0                                   
ffc1a58c:	81 29 28 08 	lwz     r9,10248(r9)                           
ffc1a590:	1c 63 00 38 	mulli   r3,r3,56                               
ffc1a594:	7c 69 1a 14 	add     r3,r9,r3                               
  rtems_libio_check_is_open( iop );                                   
ffc1a598:	81 23 00 10 	lwz     r9,16(r3)                              
ffc1a59c:	71 27 01 00 	andi.   r7,r9,256                              
ffc1a5a0:	40 a2 00 08 	bne+    ffc1a5a8 <read+0x40>                   
ffc1a5a4:	48 00 00 28 	b       ffc1a5cc <read+0x64>                   
  rtems_libio_check_buffer( buffer );                                 
ffc1a5a8:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc1a5ac:	40 be 00 10 	bne+    cr7,ffc1a5bc <read+0x54>               <== ALWAYS TAKEN
ffc1a5b0:	4b ff 52 89 	bl      ffc0f838 <__errno>                     <== NOT EXECUTED
ffc1a5b4:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc1a5b8:	48 00 00 1c 	b       ffc1a5d4 <read+0x6c>                   <== NOT EXECUTED
  rtems_libio_check_count( count );                                   
ffc1a5bc:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc1a5c0:	41 9e 00 3c 	beq-    cr7,ffc1a5fc <read+0x94>               
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
ffc1a5c4:	71 2a 00 02 	andi.   r10,r9,2                               
ffc1a5c8:	40 a2 00 18 	bne+    ffc1a5e0 <read+0x78>                   
ffc1a5cc:	4b ff 52 6d 	bl      ffc0f838 <__errno>                     
ffc1a5d0:	39 20 00 09 	li      r9,9                                   
ffc1a5d4:	91 23 00 00 	stw     r9,0(r3)                               
ffc1a5d8:	38 60 ff ff 	li      r3,-1                                  
ffc1a5dc:	48 00 00 24 	b       ffc1a600 <read+0x98>                   
                                                                      
  /*                                                                  
   *  Now process the read().                                         
   */                                                                 
  return (*iop->pathinfo.handlers->read_h)( iop, buffer, count );     
ffc1a5e0:	81 23 00 24 	lwz     r9,36(r3)                              
}                                                                     
ffc1a5e4:	80 01 00 0c 	lwz     r0,12(r1)                              
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
                                                                      
  /*                                                                  
   *  Now process the read().                                         
   */                                                                 
  return (*iop->pathinfo.handlers->read_h)( iop, buffer, count );     
ffc1a5e8:	81 29 00 08 	lwz     r9,8(r9)                               
}                                                                     
ffc1a5ec:	7c 08 03 a6 	mtlr    r0                                     
ffc1a5f0:	38 21 00 08 	addi    r1,r1,8                                
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
                                                                      
  /*                                                                  
   *  Now process the read().                                         
   */                                                                 
  return (*iop->pathinfo.handlers->read_h)( iop, buffer, count );     
ffc1a5f4:	7d 29 03 a6 	mtctr   r9                                     
ffc1a5f8:	4e 80 04 20 	bctr                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_buffer( buffer );                                 
  rtems_libio_check_count( count );                                   
ffc1a5fc:	38 60 00 00 	li      r3,0                                   
                                                                      
  /*                                                                  
   *  Now process the read().                                         
   */                                                                 
  return (*iop->pathinfo.handlers->read_h)( iop, buffer, count );     
}                                                                     
ffc1a600:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc1a604:	38 21 00 08 	addi    r1,r1,8                                
ffc1a608:	7c 08 03 a6 	mtlr    r0                                     
ffc1a60c:	4e 80 00 20 	blr                                            
                                                                      

ffc059a4 <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) {
ffc059a4:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc059a8:	7c 08 02 a6 	mflr    r0                                     
    int                  i;                                           
    rtems_sector_data_t *sector = NULL;                               
ffc059ac:	39 20 00 00 	li      r9,0                                   
 *      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)
{                                                                     
ffc059b0:	be e1 00 1c 	stmw    r23,28(r1)                             
    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))          
ffc059b4:	7c be 2b 79 	mr.     r30,r5                                 
 *      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)
{                                                                     
ffc059b8:	90 01 00 44 	stw     r0,68(r1)                              
    int                  i;                                           
    rtems_sector_data_t *sector = NULL;                               
ffc059bc:	91 21 00 0c 	stw     r9,12(r1)                              
    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))          
ffc059c0:	41 82 01 8c 	beq-    ffc05b4c <read_extended_partition+0x1a8><== NEVER TAKEN
ffc059c4:	81 3e 00 10 	lwz     r9,16(r30)                             
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
ffc059c8:	3b e0 00 19 	li      r31,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))          
ffc059cc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc059d0:	41 9e 01 80 	beq-    cr7,ffc05b50 <read_extended_partition+0x1ac><== NEVER TAKEN
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    /* get start sector of current extended partition */              
    here = ext_part->start;                                           
ffc059d4:	83 9e 00 04 	lwz     r28,4(r30)                             
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    off = sector_num * RTEMS_IDE_SECTOR_SIZE;                         
    new_off = lseek(fd, off, SEEK_SET);                               
ffc059d8:	38 a0 00 00 	li      r5,0                                   
ffc059dc:	38 e0 00 00 	li      r7,0                                   
    if (sector == NULL)                                               
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    off = sector_num * RTEMS_IDE_SECTOR_SIZE;                         
ffc059e0:	57 9f 48 2c 	rlwinm  r31,r28,9,0,22                         
    new_off = lseek(fd, off, SEEK_SET);                               
ffc059e4:	7f e6 fb 78 	mr      r6,r31                                 
ffc059e8:	7c 7a 1b 78 	mr      r26,r3                                 
ffc059ec:	7c 99 23 78 	mr      r25,r4                                 
ffc059f0:	48 00 12 31 	bl      ffc06c20 <lseek>                       
    if (new_off != off) {                                             
ffc059f4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc059f8:	40 be 00 28 	bne+    cr7,ffc05a20 <read_extended_partition+0x7c><== NEVER TAKEN
ffc059fc:	7f 84 f8 00 	cmpw    cr7,r4,r31                             
ffc05a00:	40 be 00 20 	bne+    cr7,ffc05a20 <read_extended_partition+0x7c><== NEVER TAKEN
ffc05a04:	7f 43 d3 78 	mr      r3,r26                                 
ffc05a08:	7f 84 e3 78 	mr      r4,r28                                 
ffc05a0c:	38 a1 00 0c 	addi    r5,r1,12                               
ffc05a10:	4b ff fd 81 	bl      ffc05790 <get_sector.part.0>           
    here = ext_part->start;                                           
                                                                      
    /* get first extended partition sector */                         
                                                                      
    rc = get_sector(fd, here, §or);                               
    if (rc != RTEMS_SUCCESSFUL)                                       
ffc05a14:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc05a18:	41 a2 00 1c 	beq+    ffc05a34 <read_extended_partition+0x90><== ALWAYS TAKEN
ffc05a1c:	48 00 00 08 	b       ffc05a24 <read_extended_partition+0x80><== NOT EXECUTED
    }                                                                 
                                                                      
    off = sector_num * RTEMS_IDE_SECTOR_SIZE;                         
    new_off = lseek(fd, off, SEEK_SET);                               
    if (new_off != off) {                                             
        return RTEMS_IO_ERROR;                                        
ffc05a20:	3b e0 00 1b 	li      r31,27                                 <== NOT EXECUTED
    /* get first extended partition sector */                         
                                                                      
    rc = get_sector(fd, here, §or);                               
    if (rc != RTEMS_SUCCESSFUL)                                       
    {                                                                 
        if (sector)                                                   
ffc05a24:	80 61 00 0c 	lwz     r3,12(r1)                              <== NOT EXECUTED
ffc05a28:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc05a2c:	41 9e 01 24 	beq-    cr7,ffc05b50 <read_extended_partition+0x1ac><== NOT EXECUTED
ffc05a30:	48 00 00 60 	b       ffc05a90 <read_extended_partition+0xec><== NOT EXECUTED
            free(sector);                                             
        return rc;                                                    
    }                                                                 
                                                                      
    if (!msdos_signature_check(sector))                               
ffc05a34:	80 61 00 0c 	lwz     r3,12(r1)                              
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) &&    
ffc05a38:	39 20 00 00 	li      r9,0                                   
ffc05a3c:	89 03 02 02 	lbz     r8,514(r3)                             
ffc05a40:	2f 88 00 55 	cmpwi   cr7,r8,85                              
ffc05a44:	40 be 00 14 	bne+    cr7,ffc05a58 <read_extended_partition+0xb4><== NEVER TAKEN
ffc05a48:	89 23 02 03 	lbz     r9,515(r3)                             
ffc05a4c:	69 29 00 aa 	xori    r9,r9,170                              
ffc05a50:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc05a54:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
        if (sector)                                                   
            free(sector);                                             
        return rc;                                                    
    }                                                                 
                                                                      
    if (!msdos_signature_check(sector))                               
ffc05a58:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05a5c:	40 9e 00 0c 	bne-    cr7,ffc05a68 <read_extended_partition+0xc4><== ALWAYS TAKEN
    {                                                                 
        free(sector);                                                 
ffc05a60:	48 00 0c cd 	bl      ffc0672c <free>                        <== NOT EXECUTED
ffc05a64:	48 00 00 e8 	b       ffc05b4c <read_extended_partition+0x1a8><== NOT EXECUTED
 *      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)
ffc05a68:	3b 63 01 d2 	addi    r27,r3,466                             
ffc05a6c:	7f dd f3 78 	mr      r29,r30                                
ffc05a70:	3b 1e 00 10 	addi    r24,r30,16                             
        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;                  
ffc05a74:	3a e0 00 00 	li      r23,0                                  
ffc05a78:	38 7b ff f0 	addi    r3,r27,-16                             
ffc05a7c:	38 81 00 08 	addi    r4,r1,8                                
ffc05a80:	4b ff fe 49 	bl      ffc058c8 <data_to_part_desc.part.1>    
    {                                                                 
        /* if data_to_part_desc fails skip this partition             
         * and parse the next one                                     
         */                                                           
        rc = data_to_part_desc(data, &new_part_desc);                 
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc05a84:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc05a88:	41 a2 00 10 	beq+    ffc05a98 <read_extended_partition+0xf4><== ALWAYS TAKEN
        {                                                             
            free(sector);                                             
ffc05a8c:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc05a90:	48 00 0c 9d 	bl      ffc0672c <free>                        
ffc05a94:	48 00 00 bc 	b       ffc05b50 <read_extended_partition+0x1ac>
            return rc;                                                
        }                                                             
                                                                      
        if (new_part_desc == NULL)                                    
ffc05a98:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc05a9c:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc05aa0:	41 9e 00 98 	beq-    cr7,ffc05b38 <read_extended_partition+0x194>
        {                                                             
            data += RTEMS_IDE_PARTITION_DESCRIPTOR_SIZE;              
            continue;                                                 
        }                                                             
                                                                      
        ext_part->sub_part[i] = new_part_desc;                        
ffc05aa4:	90 bd 00 18 	stw     r5,24(r29)                             
        new_part_desc->ext_part = ext_part;                           
        new_part_desc->disk_desc = ext_part->disk_desc;               
                                                                      
        if (is_extended(new_part_desc->sys_type))                     
ffc05aa8:	89 25 00 01 	lbz     r9,1(r5)                               
            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;               
ffc05aac:	81 5e 00 10 	lwz     r10,16(r30)                            
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
ffc05ab0:	2f 89 00 05 	cmpwi   cr7,r9,5                               
            data += RTEMS_IDE_PARTITION_DESCRIPTOR_SIZE;              
            continue;                                                 
        }                                                             
                                                                      
        ext_part->sub_part[i] = new_part_desc;                        
        new_part_desc->ext_part = ext_part;                           
ffc05ab4:	93 c5 00 14 	stw     r30,20(r5)                             
        new_part_desc->disk_desc = ext_part->disk_desc;               
ffc05ab8:	91 45 00 10 	stw     r10,16(r5)                             
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
ffc05abc:	41 9e 00 14 	beq-    cr7,ffc05ad0 <read_extended_partition+0x12c>
ffc05ac0:	69 29 00 85 	xori    r9,r9,133                              
ffc05ac4:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc05ac8:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc05acc:	48 00 00 08 	b       ffc05ad4 <read_extended_partition+0x130>
ffc05ad0:	39 20 00 01 	li      r9,1                                   
                                                                      
        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))                     
ffc05ad4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05ad8:	41 be 00 24 	beq+    cr7,ffc05afc <read_extended_partition+0x158>
        {                                                             
            new_part_desc->log_id = EMPTY_PARTITION;                  
            new_part_desc->start += start;                            
ffc05adc:	81 25 00 04 	lwz     r9,4(r5)                               
            read_extended_partition(fd, start, new_part_desc);        
ffc05ae0:	7f 43 d3 78 	mr      r3,r26                                 
        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;                  
ffc05ae4:	9a e5 00 02 	stb     r23,2(r5)                              
            new_part_desc->start += start;                            
            read_extended_partition(fd, start, new_part_desc);        
ffc05ae8:	7f 24 cb 78 	mr      r4,r25                                 
        new_part_desc->disk_desc = ext_part->disk_desc;               
                                                                      
        if (is_extended(new_part_desc->sys_type))                     
        {                                                             
            new_part_desc->log_id = EMPTY_PARTITION;                  
            new_part_desc->start += start;                            
ffc05aec:	7d 29 ca 14 	add     r9,r9,r25                              
ffc05af0:	91 25 00 04 	stw     r9,4(r5)                               
            read_extended_partition(fd, start, new_part_desc);        
ffc05af4:	4b ff fe b1 	bl      ffc059a4 <read_extended_partition>     
ffc05af8:	48 00 00 40 	b       ffc05b38 <read_extended_partition+0x194>
        }                                                             
        else                                                          
        {                                                             
            rtems_disk_desc_t *disk_desc = new_part_desc->disk_desc;  
            disk_desc->partitions[disk_desc->last_log_id] = new_part_desc;
ffc05afc:	81 2a 00 24 	lwz     r9,36(r10)                             
ffc05b00:	39 09 00 08 	addi    r8,r9,8                                
ffc05b04:	55 08 10 3a 	rlwinm  r8,r8,2,0,29                           
            new_part_desc->log_id = ++disk_desc->last_log_id;         
ffc05b08:	39 29 00 01 	addi    r9,r9,1                                
            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;
ffc05b0c:	7d 0a 42 14 	add     r8,r10,r8                              
            new_part_desc->log_id = ++disk_desc->last_log_id;         
ffc05b10:	91 2a 00 24 	stw     r9,36(r10)                             
            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;
ffc05b14:	90 a8 00 08 	stw     r5,8(r8)                               
            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;
ffc05b18:	81 45 00 08 	lwz     r10,8(r5)                              
        }                                                             
        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;         
ffc05b1c:	99 25 00 02 	stb     r9,2(r5)                               
            new_part_desc->start += here;                             
            new_part_desc->end = new_part_desc->start + new_part_desc->size - 1;
ffc05b20:	39 4a ff ff 	addi    r10,r10,-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;                             
ffc05b24:	81 25 00 04 	lwz     r9,4(r5)                               
ffc05b28:	7d 3c 4a 14 	add     r9,r28,r9                              
ffc05b2c:	91 25 00 04 	stw     r9,4(r5)                               
            new_part_desc->end = new_part_desc->start + new_part_desc->size - 1;
ffc05b30:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc05b34:	91 25 00 0c 	stw     r9,12(r5)                              
ffc05b38:	3b bd 00 04 	addi    r29,r29,4                              
                                                                      
    /* 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++)
ffc05b3c:	7f 9d c0 00 	cmpw    cr7,r29,r24                            
ffc05b40:	3b 7b 00 10 	addi    r27,r27,16                             
ffc05b44:	40 9e ff 34 	bne+    cr7,ffc05a78 <read_extended_partition+0xd4>
ffc05b48:	4b ff ff 44 	b       ffc05a8c <read_extended_partition+0xe8>
    rtems_part_desc_t   *new_part_desc;                               
    rtems_status_code    rc;                                          
                                                                      
    if ((ext_part == NULL) || (ext_part->disk_desc == NULL))          
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
ffc05b4c:	3b e0 00 19 	li      r31,25                                 <== NOT EXECUTED
    }                                                                 
                                                                      
    free(sector);                                                     
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc05b50:	39 61 00 40 	addi    r11,r1,64                              
ffc05b54:	7f e3 fb 78 	mr      r3,r31                                 
ffc05b58:	4b ff ac 7c 	b       ffc007d4 <_restgpr_23_x>               
                                                                      

ffc05f34 <readv>: int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd );
ffc05f34:	3d 20 00 00 	lis     r9,0                                   
ssize_t readv(                                                        
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc05f38:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc05f3c:	7c 08 02 a6 	mflr    r0                                     
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc05f40:	81 29 27 18 	lwz     r9,10008(r9)                           
ssize_t readv(                                                        
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc05f44:	90 01 00 24 	stw     r0,36(r1)                              
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc05f48:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ssize_t readv(                                                        
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc05f4c:	bf 41 00 08 	stmw    r26,8(r1)                              
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc05f50:	41 bc 00 08 	blt+    cr7,ffc05f58 <readv+0x24>              
ffc05f54:	48 00 00 2c 	b       ffc05f80 <readv+0x4c>                  
  iop = rtems_libio_iop( fd );                                        
ffc05f58:	3d 20 00 00 	lis     r9,0                                   
ffc05f5c:	83 89 27 c4 	lwz     r28,10180(r9)                          
ffc05f60:	1c 63 00 38 	mulli   r3,r3,56                               
ffc05f64:	7f 9c 1a 14 	add     r28,r28,r3                             
  rtems_libio_check_is_open( iop );                                   
ffc05f68:	81 3c 00 10 	lwz     r9,16(r28)                             
ffc05f6c:	71 2a 01 00 	andi.   r10,r9,256                             
ffc05f70:	40 a2 00 08 	bne+    ffc05f78 <readv+0x44>                  
ffc05f74:	48 00 00 0c 	b       ffc05f80 <readv+0x4c>                  
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
ffc05f78:	71 2a 00 02 	andi.   r10,r9,2                               
ffc05f7c:	40 a2 00 10 	bne+    ffc05f8c <readv+0x58>                  <== ALWAYS TAKEN
ffc05f80:	48 00 a2 6d 	bl      ffc101ec <__errno>                     
ffc05f84:	39 20 00 09 	li      r9,9                                   
ffc05f88:	48 00 00 80 	b       ffc06008 <readv+0xd4>                  
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
ffc05f8c:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc05f90:	7c 9d 23 78 	mr      r29,r4                                 
ffc05f94:	40 be 00 08 	bne+    cr7,ffc05f9c <readv+0x68>              
ffc05f98:	48 00 00 68 	b       ffc06000 <readv+0xcc>                  
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
ffc05f9c:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc05fa0:	41 bd 00 08 	bgt+    cr7,ffc05fa8 <readv+0x74>              
ffc05fa4:	48 00 00 5c 	b       ffc06000 <readv+0xcc>                  
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
ffc05fa8:	2f 85 04 00 	cmpwi   cr7,r5,1024                            
ffc05fac:	40 bd 00 08 	ble+    cr7,ffc05fb4 <readv+0x80>              <== ALWAYS TAKEN
ffc05fb0:	48 00 00 50 	b       ffc06000 <readv+0xcc>                  <== NOT EXECUTED
 *                                                                    
 *  OpenGroup URL:                                                    
 *                                                                    
 *  http://www.opengroup.org/onlinepubs/009695399/functions/readv.html
 */                                                                   
ssize_t readv(                                                        
ffc05fb4:	54 bb 18 38 	rlwinm  r27,r5,3,0,28                          
ffc05fb8:	38 fb ff f8 	addi    r7,r27,-8                              
ffc05fbc:	54 e7 e8 fe 	rlwinm  r7,r7,29,3,31                          
ffc05fc0:	38 e7 00 01 	addi    r7,r7,1                                
ffc05fc4:	39 20 00 00 	li      r9,0                                   
ffc05fc8:	7c e9 03 a6 	mtctr   r7                                     
ffc05fcc:	39 40 00 01 	li      r10,1                                  
ffc05fd0:	39 00 00 00 	li      r8,0                                   
ffc05fd4:	48 00 00 08 	b       ffc05fdc <readv+0xa8>                  
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
ffc05fd8:	7c c8 33 78 	mr      r8,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 )                                       
ffc05fdc:	7c fd 48 2e 	lwzx    r7,r29,r9                              
ffc05fe0:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc05fe4:	40 be 00 08 	bne+    cr7,ffc05fec <readv+0xb8>              
ffc05fe8:	48 00 00 18 	b       ffc06000 <readv+0xcc>                  
 *                                                                    
 *  OpenGroup URL:                                                    
 *                                                                    
 *  http://www.opengroup.org/onlinepubs/009695399/functions/readv.html
 */                                                                   
ssize_t readv(                                                        
ffc05fec:	7c fd 4a 14 	add     r7,r29,r9                              
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
ffc05ff0:	80 e7 00 04 	lwz     r7,4(r7)                               
ffc05ff4:	7c c7 42 14 	add     r6,r7,r8                               
    if ( total < old )                                                
ffc05ff8:	7f 86 40 00 	cmpw    cr7,r6,r8                              
ffc05ffc:	40 bc 00 14 	bge+    cr7,ffc06010 <readv+0xdc>              
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc06000:	48 00 a1 ed 	bl      ffc101ec <__errno>                     
ffc06004:	39 20 00 16 	li      r9,22                                  
ffc06008:	91 23 00 00 	stw     r9,0(r3)                               
ffc0600c:	48 00 00 74 	b       ffc06080 <readv+0x14c>                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
ffc06010:	30 e7 ff ff 	addic   r7,r7,-1                               
ffc06014:	7c e7 39 10 	subfe   r7,r7,r7                               
ffc06018:	7d 4a 38 38 	and     r10,r10,r7                             
ffc0601c:	39 29 00 08 	addi    r9,r9,8                                
   *  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++ ) {                           
ffc06020:	42 00 ff b8 	bdnz+   ffc05fd8 <readv+0xa4>                  
  /*                                                                  
   *  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 ) {                                          
ffc06024:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
    return 0;                                                         
ffc06028:	3b e0 00 00 	li      r31,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 ) {                                          
ffc0602c:	40 9e 00 58 	bne-    cr7,ffc06084 <readv+0x150>             
ffc06030:	3b c0 00 00 	li      r30,0                                  
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    bytes = (*iop->pathinfo.handlers->read_h)(                        
ffc06034:	81 3c 00 24 	lwz     r9,36(r28)                             
 *                                                                    
 *  OpenGroup URL:                                                    
 *                                                                    
 *  http://www.opengroup.org/onlinepubs/009695399/functions/readv.html
 */                                                                   
ssize_t readv(                                                        
ffc06038:	7f 5d f2 14 	add     r26,r29,r30                            
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    bytes = (*iop->pathinfo.handlers->read_h)(                        
ffc0603c:	7f 83 e3 78 	mr      r3,r28                                 
ffc06040:	7c 9d f0 2e 	lwzx    r4,r29,r30                             
ffc06044:	81 29 00 08 	lwz     r9,8(r9)                               
ffc06048:	80 ba 00 04 	lwz     r5,4(r26)                              
ffc0604c:	7d 29 03 a6 	mtctr   r9                                     
ffc06050:	4e 80 04 21 	bctrl                                          
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
ffc06054:	2c 03 00 00 	cmpwi   r3,0                                   
ffc06058:	41 80 00 28 	blt-    ffc06080 <readv+0x14c>                 <== NEVER TAKEN
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
ffc0605c:	41 82 00 08 	beq-    ffc06064 <readv+0x130>                 <== NEVER TAKEN
      total       += bytes;                                           
ffc06060:	7f ff 1a 14 	add     r31,r31,r3                             
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
ffc06064:	81 5a 00 04 	lwz     r10,4(r26)                             
ffc06068:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc0606c:	40 9e 00 18 	bne-    cr7,ffc06084 <readv+0x150>             <== NEVER TAKEN
ffc06070:	3b de 00 08 	addi    r30,r30,8                              
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
ffc06074:	7f 9e d8 00 	cmpw    cr7,r30,r27                            
ffc06078:	40 9e ff bc 	bne+    cr7,ffc06034 <readv+0x100>             
ffc0607c:	48 00 00 08 	b       ffc06084 <readv+0x150>                 
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
ffc06080:	3b e0 ff ff 	li      r31,-1                                 
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
ffc06084:	39 61 00 20 	addi    r11,r1,32                              
ffc06088:	7f e3 fb 78 	mr      r3,r31                                 
ffc0608c:	4b ff ab 64 	b       ffc00bf0 <_restgpr_26_x>               
                                                                      

ffc1a63c <realloc>: void *realloc( void *ptr, size_t size ) {
ffc1a63c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc1a640:	7c 08 02 a6 	mflr    r0                                     
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
ffc1a644:	3d 20 00 00 	lis     r9,0                                   
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
ffc1a648:	90 01 00 2c 	stw     r0,44(r1)                              
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
ffc1a64c:	39 29 2b 20 	addi    r9,r9,11040                            
ffc1a650:	81 49 00 10 	lwz     r10,16(r9)                             
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
ffc1a654:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc1a658:	7c 7f 1b 78 	mr      r31,r3                                 
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
ffc1a65c:	39 4a 00 01 	addi    r10,r10,1                              
ffc1a660:	91 49 00 10 	stw     r10,16(r9)                             
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
ffc1a664:	3d 20 00 00 	lis     r9,0                                   
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
ffc1a668:	7c 9e 23 78 	mr      r30,r4                                 
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
ffc1a66c:	81 29 28 4c 	lwz     r9,10316(r9)                           
ffc1a670:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc1a674:	40 be 00 18 	bne+    cr7,ffc1a68c <realloc+0x50>            
   * 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 )                      
ffc1a678:	3d 20 00 00 	lis     r9,0                                   
ffc1a67c:	81 29 28 24 	lwz     r9,10276(r9)                           
ffc1a680:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1a684:	41 9e 00 d8 	beq-    cr7,ffc1a75c <realloc+0x120>           <== ALWAYS TAKEN
ffc1a688:	48 00 00 60 	b       ffc1a6e8 <realloc+0xac>                <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
ffc1a68c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc1a690:	40 be 00 1c 	bne+    cr7,ffc1a6ac <realloc+0x70>            
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
ffc1a694:	80 01 00 2c 	lwz     r0,44(r1)                              
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
    return malloc( size );                                            
ffc1a698:	7f c3 f3 78 	mr      r3,r30                                 
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
ffc1a69c:	bb a1 00 1c 	lmw     r29,28(r1)                             
ffc1a6a0:	7c 08 03 a6 	mtlr    r0                                     
ffc1a6a4:	38 21 00 28 	addi    r1,r1,40                               
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
    return malloc( size );                                            
ffc1a6a8:	4b fe a2 50 	b       ffc048f8 <malloc>                      
                                                                      
  if ( !size ) {                                                      
ffc1a6ac:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc1a6b0:	40 be 00 10 	bne+    cr7,ffc1a6c0 <realloc+0x84>            <== ALWAYS TAKEN
    free( ptr );                                                      
ffc1a6b4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1a6b8:	4b fe 9e a5 	bl      ffc0455c <free>                        <== NOT EXECUTED
ffc1a6bc:	48 00 00 2c 	b       ffc1a6e8 <realloc+0xac>                <== NOT EXECUTED
    return (void *) 0;                                                
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
ffc1a6c0:	3f a0 00 00 	lis     r29,0                                  
ffc1a6c4:	80 7d 27 50 	lwz     r3,10064(r29)                          
ffc1a6c8:	7f e4 fb 78 	mr      r4,r31                                 
ffc1a6cc:	38 a1 00 08 	addi    r5,r1,8                                
ffc1a6d0:	48 00 01 55 	bl      ffc1a824 <_Protected_heap_Get_block_size>
ffc1a6d4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1a6d8:	40 be 00 18 	bne+    cr7,ffc1a6f0 <realloc+0xb4>            
    errno = EINVAL;                                                   
ffc1a6dc:	4b ff 51 5d 	bl      ffc0f838 <__errno>                     
ffc1a6e0:	39 20 00 16 	li      r9,22                                  
ffc1a6e4:	91 23 00 00 	stw     r9,0(r3)                               
    return (void *) 0;                                                
ffc1a6e8:	3b e0 00 00 	li      r31,0                                  
ffc1a6ec:	48 00 00 84 	b       ffc1a770 <realloc+0x134>               
  }                                                                   
                                                                      
  /*                                                                  
   *  Now resize it.                                                  
   */                                                                 
  if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, size ) ) {
ffc1a6f0:	80 7d 27 50 	lwz     r3,10064(r29)                          
ffc1a6f4:	7f e4 fb 78 	mr      r4,r31                                 
ffc1a6f8:	7f c5 f3 78 	mr      r5,r30                                 
ffc1a6fc:	48 00 01 79 	bl      ffc1a874 <_Protected_heap_Resize_block>
ffc1a700:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1a704:	40 be 00 6c 	bne+    cr7,ffc1a770 <realloc+0x134>           
   *  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 );                                          
ffc1a708:	7f c3 f3 78 	mr      r3,r30                                 
ffc1a70c:	4b fe a1 ed 	bl      ffc048f8 <malloc>                      
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
ffc1a710:	3d 20 00 00 	lis     r9,0                                   
                                                                      
  if ( !new_area ) {                                                  
ffc1a714:	7c 7d 1b 79 	mr.     r29,r3                                 
   *  and the C Standard.                                             
   */                                                                 
                                                                      
  new_area = malloc( size );                                          
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
ffc1a718:	39 29 2b 20 	addi    r9,r9,11040                            
ffc1a71c:	81 49 00 04 	lwz     r10,4(r9)                              
ffc1a720:	39 4a ff ff 	addi    r10,r10,-1                             
ffc1a724:	91 49 00 04 	stw     r10,4(r9)                              
                                                                      
  if ( !new_area ) {                                                  
ffc1a728:	41 a2 ff c0 	beq-    ffc1a6e8 <realloc+0xac>                
    return (void *) 0;                                                
  }                                                                   
                                                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
ffc1a72c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1a730:	7f c5 f3 78 	mr      r5,r30                                 
ffc1a734:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc1a738:	40 9d 00 08 	ble-    cr7,ffc1a740 <realloc+0x104>           <== NEVER TAKEN
ffc1a73c:	7d 25 4b 78 	mr      r5,r9                                  
ffc1a740:	7f e4 fb 78 	mr      r4,r31                                 
ffc1a744:	7f a3 eb 78 	mr      r3,r29                                 
ffc1a748:	4b ff 5d f5 	bl      ffc1053c <memcpy>                      
  free( ptr );                                                        
ffc1a74c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1a750:	4b fe 9e 0d 	bl      ffc0455c <free>                        
ffc1a754:	7f bf eb 78 	mr      r31,r29                                
ffc1a758:	48 00 00 18 	b       ffc1a770 <realloc+0x134>               
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
    if (_Thread_Dispatch_in_critical_section())                       
      return (void *) 0;                                              
                                                                      
    if (_ISR_Nest_level > 0)                                          
ffc1a75c:	3d 20 00 00 	lis     r9,0                                   
ffc1a760:	81 29 2e 08 	lwz     r9,11784(r9)                           
ffc1a764:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1a768:	41 9e ff 24 	beq+    cr7,ffc1a68c <realloc+0x50>            <== ALWAYS TAKEN
ffc1a76c:	4b ff ff 7c 	b       ffc1a6e8 <realloc+0xac>                <== NOT EXECUTED
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
ffc1a770:	39 61 00 28 	addi    r11,r1,40                              
ffc1a774:	7f e3 fb 78 	mr      r3,r31                                 
ffc1a778:	4b fe 5e 44 	b       ffc005bc <_restgpr_29_x>               
                                                                      

ffc0df28 <rtems_bdbuf_add_to_modified_list_after_access>: } } static void rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd) {
ffc0df28:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0df2c:	7c 08 02 a6 	mflr    r0                                     
ffc0df30:	bf c1 00 08 	stmw    r30,8(r1)                              
  if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dd)   
ffc0df34:	3f c0 00 00 	lis     r30,0                                  
ffc0df38:	3b de 29 68 	addi    r30,r30,10600                          
ffc0df3c:	89 3e 00 30 	lbz     r9,48(r30)                             
  }                                                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd)
{                                                                     
ffc0df40:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0df44:	90 01 00 14 	stw     r0,20(r1)                              
  if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dd)   
ffc0df48:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0df4c:	41 9e 00 34 	beq-    cr7,ffc0df80 <rtems_bdbuf_add_to_modified_list_after_access+0x58><== ALWAYS TAKEN
ffc0df50:	81 5e 00 38 	lwz     r10,56(r30)                            <== NOT EXECUTED
ffc0df54:	81 23 00 14 	lwz     r9,20(r3)                              <== NOT EXECUTED
ffc0df58:	7f 8a 48 00 	cmpw    cr7,r10,r9                             <== NOT EXECUTED
ffc0df5c:	40 be 00 24 	bne+    cr7,ffc0df80 <rtems_bdbuf_add_to_modified_list_after_access+0x58><== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_unlock_cache ();                                      
ffc0df60:	4b ff f8 75 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    <== NOT EXECUTED
 * Lock the cache's sync. A single task can nest calls.               
 */                                                                   
static void                                                           
rtems_bdbuf_lock_sync (void)                                          
{                                                                     
  rtems_bdbuf_lock (bdbuf_cache.sync_lock, RTEMS_BDBUF_FATAL_SYNC_LOCK);
ffc0df64:	80 7e 00 2c 	lwz     r3,44(r30)                             <== NOT EXECUTED
ffc0df68:	38 80 00 19 	li      r4,25                                  <== NOT EXECUTED
ffc0df6c:	4b ff f7 d1 	bl      ffc0d73c <rtems_bdbuf_lock>            <== NOT EXECUTED
 * Unlock the cache's sync lock. Any blocked writers are woken.       
 */                                                                   
static void                                                           
rtems_bdbuf_unlock_sync (void)                                        
{                                                                     
  rtems_bdbuf_unlock (bdbuf_cache.sync_lock,                          
ffc0df70:	80 7e 00 2c 	lwz     r3,44(r30)                             <== NOT EXECUTED
ffc0df74:	38 80 00 1a 	li      r4,26                                  <== NOT EXECUTED
ffc0df78:	4b ff f8 29 	bl      ffc0d7a0 <rtems_bdbuf_unlock>          <== NOT EXECUTED
     * Wait for the sync lock.                                        
     */                                                               
    rtems_bdbuf_lock_sync ();                                         
                                                                      
    rtems_bdbuf_unlock_sync ();                                       
    rtems_bdbuf_lock_cache ();                                        
ffc0df7c:	4b ff f7 fd 	bl      ffc0d778 <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                    
ffc0df80:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc0df84:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc0df88:	41 9e 00 0c 	beq-    cr7,ffc0df94 <rtems_bdbuf_add_to_modified_list_after_access+0x6c>
        || bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)               
ffc0df8c:	2f 89 00 05 	cmpwi   cr7,r9,5                               
ffc0df90:	40 be 00 10 	bne+    cr7,ffc0dfa0 <rtems_bdbuf_add_to_modified_list_after_access+0x78>
    bd->hold_timer = bdbuf_config.swap_block_hold;                    
ffc0df94:	3d 20 ff c2 	lis     r9,-62                                 
ffc0df98:	81 29 96 0c 	lwz     r9,-27124(r9)                          
ffc0df9c:	91 3f 00 2c 	stw     r9,44(r31)                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc0dfa0:	3c 60 00 00 	lis     r3,0                                   
ffc0dfa4:	38 63 29 68 	addi    r3,r3,10600                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0dfa8:	39 20 00 07 	li      r9,7                                   
ffc0dfac:	91 3f 00 20 	stw     r9,32(r31)                             
                                                                      
  the_node->next = tail;                                              
ffc0dfb0:	39 43 00 50 	addi    r10,r3,80                              
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc0dfb4:	81 23 00 54 	lwz     r9,84(r3)                              
                                                                      
  the_node->next = tail;                                              
ffc0dfb8:	91 5f 00 00 	stw     r10,0(r31)                             
  tail->previous = the_node;                                          
ffc0dfbc:	93 e3 00 54 	stw     r31,84(r3)                             
  old_last->next = the_node;                                          
ffc0dfc0:	93 e9 00 00 	stw     r31,0(r9)                              
  the_node->previous = old_last;                                      
ffc0dfc4:	91 3f 00 04 	stw     r9,4(r31)                              
    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)                                                    
ffc0dfc8:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc0dfcc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0dfd0:	41 be 00 1c 	beq+    cr7,ffc0dfec <rtems_bdbuf_add_to_modified_list_after_access+0xc4>
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
  else if (rtems_bdbuf_has_buffer_waiters ())                         
    rtems_bdbuf_wake_swapper ();                                      
}                                                                     
ffc0dfd4:	80 01 00 14 	lwz     r0,20(r1)                              
                                                                      
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_MODIFIED);             
  rtems_chain_append_unprotected (&bdbuf_cache.modified, &bd->link);  
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
ffc0dfd8:	38 63 00 64 	addi    r3,r3,100                              
  else if (rtems_bdbuf_has_buffer_waiters ())                         
    rtems_bdbuf_wake_swapper ();                                      
}                                                                     
ffc0dfdc:	bb c1 00 08 	lmw     r30,8(r1)                              
ffc0dfe0:	7c 08 03 a6 	mtlr    r0                                     
ffc0dfe4:	38 21 00 10 	addi    r1,r1,16                               
                                                                      
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_MODIFIED);             
  rtems_chain_append_unprotected (&bdbuf_cache.modified, &bd->link);  
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
ffc0dfe8:	4b ff fa a0 	b       ffc0da88 <rtems_bdbuf_wake>            
  else if (rtems_bdbuf_has_buffer_waiters ())                         
ffc0dfec:	81 23 00 74 	lwz     r9,116(r3)                             
ffc0dff0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0dff4:	41 be 00 18 	beq+    cr7,ffc0e00c <rtems_bdbuf_add_to_modified_list_after_access+0xe4>
    rtems_bdbuf_wake_swapper ();                                      
}                                                                     
ffc0dff8:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0dffc:	bb c1 00 08 	lmw     r30,8(r1)                              
ffc0e000:	7c 08 03 a6 	mtlr    r0                                     
ffc0e004:	38 21 00 10 	addi    r1,r1,16                               
  rtems_chain_append_unprotected (&bdbuf_cache.modified, &bd->link);  
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
  else if (rtems_bdbuf_has_buffer_waiters ())                         
    rtems_bdbuf_wake_swapper ();                                      
ffc0e008:	4b ff f7 dc 	b       ffc0d7e4 <rtems_bdbuf_wake_swapper>    
}                                                                     
ffc0e00c:	39 61 00 10 	addi    r11,r1,16                              
ffc0e010:	48 00 a9 c8 	b       ffc189d8 <_restgpr_30_x>               
                                                                      

ffc0d8a8 <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) {
ffc0d8a8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0d8ac:	7c 08 02 a6 	mflr    r0                                     
ffc0d8b0:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_mode        prev_mode;                                        
                                                                      
  /*                                                                  
   * Indicate we are waiting.                                         
   */                                                                 
  ++waiters->count;                                                   
ffc0d8b4:	81 23 00 00 	lwz     r9,0(r3)                               
 * 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)             
{                                                                     
ffc0d8b8:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc0d8bc:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_mode        prev_mode;                                        
                                                                      
  /*                                                                  
   * Indicate we are waiting.                                         
   */                                                                 
  ++waiters->count;                                                   
ffc0d8c0:	39 29 00 01 	addi    r9,r9,1                                
ffc0d8c4:	91 23 00 00 	stw     r9,0(r3)                               
   * 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 ();                      
ffc0d8c8:	4b ff ff 59 	bl      ffc0d820 <rtems_bdbuf_disable_preemption>
ffc0d8cc:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  /*                                                                  
   * Unlock the cache, wait, and lock the cache when we return.       
   */                                                                 
  rtems_bdbuf_unlock_cache ();                                        
ffc0d8d0:	4b ff ff 05 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    
                                                                      
  sc = rtems_semaphore_obtain (waiters->sema, RTEMS_WAIT, RTEMS_BDBUF_WAIT_TIMEOUT);
ffc0d8d4:	80 7f 00 04 	lwz     r3,4(r31)                              
ffc0d8d8:	38 80 00 00 	li      r4,0                                   
ffc0d8dc:	38 a0 00 00 	li      r5,0                                   
ffc0d8e0:	4b ff c0 c5 	bl      ffc099a4 <rtems_semaphore_obtain>      
                                                                      
  if (sc == RTEMS_TIMEOUT)                                            
ffc0d8e4:	2f 83 00 06 	cmpwi   cr7,r3,6                               
ffc0d8e8:	40 be 00 0c 	bne+    cr7,ffc0d8f4 <rtems_bdbuf_anonymous_wait+0x4c><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_CACHE_WAIT_TO);              
ffc0d8ec:	38 60 00 03 	li      r3,3                                   <== NOT EXECUTED
ffc0d8f0:	48 00 00 10 	b       ffc0d900 <rtems_bdbuf_anonymous_wait+0x58><== NOT EXECUTED
                                                                      
  if (sc != RTEMS_UNSATISFIED)                                        
ffc0d8f4:	2f 83 00 0d 	cmpwi   cr7,r3,13                              
ffc0d8f8:	41 be 00 0c 	beq+    cr7,ffc0d904 <rtems_bdbuf_anonymous_wait+0x5c><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_CACHE_WAIT_2);               
ffc0d8fc:	38 60 00 02 	li      r3,2                                   <== NOT EXECUTED
ffc0d900:	4b ff fe 25 	bl      ffc0d724 <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc0d904:	4b ff fe 75 	bl      ffc0d778 <rtems_bdbuf_lock_cache>      
                                                                      
  rtems_bdbuf_restore_preemption (prev_mode);                         
ffc0d908:	7f c3 f3 78 	mr      r3,r30                                 
ffc0d90c:	4b ff ff 5d 	bl      ffc0d868 <rtems_bdbuf_restore_preemption>
                                                                      
  --waiters->count;                                                   
ffc0d910:	81 3f 00 00 	lwz     r9,0(r31)                              
}                                                                     
ffc0d914:	39 61 00 10 	addi    r11,r1,16                              
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  rtems_bdbuf_restore_preemption (prev_mode);                         
                                                                      
  --waiters->count;                                                   
ffc0d918:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0d91c:	91 3f 00 00 	stw     r9,0(r31)                              
}                                                                     
ffc0d920:	48 00 b0 b8 	b       ffc189d8 <_restgpr_30_x>               
                                                                      

ffc0dac8 <rtems_bdbuf_create_task.constprop.14>: return NULL; } static rtems_status_code rtems_bdbuf_create_task(
ffc0dac8:	94 21 ff e8 	stwu    r1,-24(r1)                             
  rtems_task_argument arg,                                            
  rtems_id *id                                                        
)                                                                     
{                                                                     
  rtems_status_code sc;                                               
  size_t stack_size = bdbuf_config.task_stack_size ?                  
ffc0dacc:	3d 20 ff c2 	lis     r9,-62                                 
                                                                      
  return NULL;                                                        
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_create_task(                                              
ffc0dad0:	7c 08 02 a6 	mflr    r0                                     
ffc0dad4:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc0dad8:	7c bd 2b 78 	mr      r29,r5                                 
ffc0dadc:	7c de 33 78 	mr      r30,r6                                 
  rtems_task_argument arg,                                            
  rtems_id *id                                                        
)                                                                     
{                                                                     
  rtems_status_code sc;                                               
  size_t stack_size = bdbuf_config.task_stack_size ?                  
ffc0dae0:	80 a9 96 18 	lwz     r5,-27112(r9)                          
                                                                      
  return NULL;                                                        
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_create_task(                                              
ffc0dae4:	7c ff 3b 78 	mr      r31,r7                                 
ffc0dae8:	90 01 00 1c 	stw     r0,28(r1)                              
  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;
ffc0daec:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc0daf0:	40 9e 00 08 	bne-    cr7,ffc0daf8 <rtems_bdbuf_create_task.constprop.14+0x30><== ALWAYS TAKEN
ffc0daf4:	38 a0 20 00 	li      r5,8192                                <== NOT EXECUTED
                                                                      
  priority = priority != 0 ? priority : default_priority;             
ffc0daf8:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0dafc:	40 9e 00 08 	bne-    cr7,ffc0db04 <rtems_bdbuf_create_task.constprop.14+0x3c><== ALWAYS TAKEN
ffc0db00:	38 80 00 0f 	li      r4,15                                  <== NOT EXECUTED
                                                                      
  sc = rtems_task_create (name,                                       
ffc0db04:	38 c0 04 00 	li      r6,1024                                
ffc0db08:	38 e0 00 00 	li      r7,0                                   
ffc0db0c:	7f e8 fb 78 	mr      r8,r31                                 
ffc0db10:	4b ff c0 d1 	bl      ffc09be0 <rtems_task_create>           
                          stack_size,                                 
                          RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
                          RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,      
                          id);                                        
                                                                      
  if (sc == RTEMS_SUCCESSFUL)                                         
ffc0db14:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0db18:	40 be 00 24 	bne+    cr7,ffc0db3c <rtems_bdbuf_create_task.constprop.14+0x74><== NEVER TAKEN
    sc = rtems_task_start (*id, entry, arg);                          
                                                                      
  return sc;                                                          
}                                                                     
ffc0db1c:	80 01 00 1c 	lwz     r0,28(r1)                              
                          RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
                          RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,      
                          id);                                        
                                                                      
  if (sc == RTEMS_SUCCESSFUL)                                         
    sc = rtems_task_start (*id, entry, arg);                          
ffc0db20:	7f a4 eb 78 	mr      r4,r29                                 
ffc0db24:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc0db28:	7f c5 f3 78 	mr      r5,r30                                 
                                                                      
  return sc;                                                          
}                                                                     
ffc0db2c:	7c 08 03 a6 	mtlr    r0                                     
ffc0db30:	bb a1 00 0c 	lmw     r29,12(r1)                             
ffc0db34:	38 21 00 18 	addi    r1,r1,24                               
                          RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
                          RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,      
                          id);                                        
                                                                      
  if (sc == RTEMS_SUCCESSFUL)                                         
    sc = rtems_task_start (*id, entry, arg);                          
ffc0db38:	4b ff c2 fc 	b       ffc09e34 <rtems_task_start>            
                                                                      
  return sc;                                                          
}                                                                     
ffc0db3c:	39 61 00 18 	addi    r11,r1,24                              <== NOT EXECUTED
ffc0db40:	48 00 ae 94 	b       ffc189d4 <_restgpr_29_x>               <== NOT EXECUTED
                                                                      

ffc0d820 <rtems_bdbuf_disable_preemption>: --bd->group->users; } static rtems_mode rtems_bdbuf_disable_preemption (void) {
ffc0d820:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0d824:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_mode prev_mode = 0;                                           
ffc0d828:	39 20 00 00 	li      r9,0                                   
ffc0d82c:	7c 25 0b 78 	mr      r5,r1                                  
  --bd->group->users;                                                 
}                                                                     
                                                                      
static rtems_mode                                                     
rtems_bdbuf_disable_preemption (void)                                 
{                                                                     
ffc0d830:	90 01 00 1c 	stw     r0,28(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_mode prev_mode = 0;                                           
                                                                      
  sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
ffc0d834:	38 60 01 00 	li      r3,256                                 
                                                                      
static rtems_mode                                                     
rtems_bdbuf_disable_preemption (void)                                 
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_mode prev_mode = 0;                                           
ffc0d838:	95 25 00 08 	stwu    r9,8(r5)                               
                                                                      
  sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
ffc0d83c:	38 80 01 00 	li      r4,256                                 
ffc0d840:	48 00 40 65 	bl      ffc118a4 <rtems_task_mode>             
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0d844:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0d848:	41 be 00 0c 	beq+    cr7,ffc0d854 <rtems_bdbuf_disable_preemption+0x34><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_PREEMPT_DIS);                
ffc0d84c:	38 60 00 05 	li      r3,5                                   <== NOT EXECUTED
ffc0d850:	4b ff fe d5 	bl      ffc0d724 <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      
  return prev_mode;                                                   
}                                                                     
ffc0d854:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0d858:	80 61 00 08 	lwz     r3,8(r1)                               
ffc0d85c:	7c 08 03 a6 	mtlr    r0                                     
ffc0d860:	38 21 00 18 	addi    r1,r1,24                               
ffc0d864:	4e 80 00 20 	blr                                            
                                                                      

ffc0eeb0 <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) {
ffc0eeb0:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0eeb4:	7c 08 02 a6 	mflr    r0                                     
  /*                                                                  
   * 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) +                  
ffc0eeb8:	54 a9 20 36 	rlwinm  r9,r5,4,0,27                           
                                                                      
static rtems_status_code                                              
rtems_bdbuf_execute_read_request (rtems_disk_device  *dd,             
                                  rtems_bdbuf_buffer *bd,             
                                  uint32_t            transfer_count) 
{                                                                     
ffc0eebc:	90 01 00 34 	stw     r0,52(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) +                  
ffc0eec0:	21 29 ff d0 	subfic  r9,r9,-48                              
ffc0eec4:	81 41 00 00 	lwz     r10,0(r1)                              
                                                                      
static rtems_status_code                                              
rtems_bdbuf_execute_read_request (rtems_disk_device  *dd,             
                                  rtems_bdbuf_buffer *bd,             
                                  uint32_t            transfer_count) 
{                                                                     
ffc0eec8:	be c1 00 08 	stmw    r22,8(r1)                              
ffc0eecc:	7c 3f 0b 78 	mr      r31,r1                                 
#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;                                   
ffc0eed0:	3b 40 00 00 	li      r26,0                                  
rtems_bdbuf_execute_read_request (rtems_disk_device  *dd,             
                                  rtems_bdbuf_buffer *bd,             
                                  uint32_t            transfer_count) 
{                                                                     
  rtems_blkdev_request *req = NULL;                                   
  rtems_blkdev_bnum media_block = bd->block;                          
ffc0eed4:	83 84 00 18 	lwz     r28,24(r4)                             
                                                                      
static rtems_status_code                                              
rtems_bdbuf_execute_read_request (rtems_disk_device  *dd,             
                                  rtems_bdbuf_buffer *bd,             
                                  uint32_t            transfer_count) 
{                                                                     
ffc0eed8:	7c 9d 23 78 	mr      r29,r4                                 
  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;                               
ffc0eedc:	83 23 00 24 	lwz     r25,36(r3)                             
                                                                      
static rtems_status_code                                              
rtems_bdbuf_execute_read_request (rtems_disk_device  *dd,             
                                  rtems_bdbuf_buffer *bd,             
                                  uint32_t            transfer_count) 
{                                                                     
ffc0eee0:	7c 7b 1b 78 	mr      r27,r3                                 
  rtems_blkdev_request *req = NULL;                                   
  rtems_blkdev_bnum media_block = bd->block;                          
  uint32_t media_blocks_per_block = dd->media_blocks_per_block;       
ffc0eee4:	82 e3 00 2c 	lwz     r23,44(r3)                             
                                                                      
static rtems_status_code                                              
rtems_bdbuf_execute_read_request (rtems_disk_device  *dd,             
                                  rtems_bdbuf_buffer *bd,             
                                  uint32_t            transfer_count) 
{                                                                     
ffc0eee8:	7c b8 2b 78 	mr      r24,r5                                 
  /*                                                                  
   * 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) +                  
ffc0eeec:	7d 41 49 6e 	stwux   r10,r1,r9                              
                     sizeof (rtems_blkdev_sg_buffer) * transfer_count);
                                                                      
  req->req = RTEMS_BLKDEV_REQ_READ;                                   
  req->done = rtems_bdbuf_transfer_done;                              
ffc0eef0:	3d 20 ff c1 	lis     r9,-63                                 
ffc0eef4:	39 29 e7 b0 	addi    r9,r9,-6224                            
  /*                                                                  
   * 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) +                  
ffc0eef8:	3b c1 00 17 	addi    r30,r1,23                              
ffc0eefc:	57 de 00 36 	rlwinm  r30,r30,0,0,27                         
                     sizeof (rtems_blkdev_sg_buffer) * transfer_count);
                                                                      
  req->req = RTEMS_BLKDEV_REQ_READ;                                   
ffc0ef00:	93 5e 00 00 	stw     r26,0(r30)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0ef04:	3a c0 00 09 	li      r22,9                                  
                                                                      
  req = bdbuf_alloc (sizeof (rtems_blkdev_request) +                  
                     sizeof (rtems_blkdev_sg_buffer) * transfer_count);
                                                                      
  req->req = RTEMS_BLKDEV_REQ_READ;                                   
  req->done = rtems_bdbuf_transfer_done;                              
ffc0ef08:	91 3e 00 04 	stw     r9,4(r30)                              
  req->io_task = rtems_task_self ();                                  
ffc0ef0c:	48 00 2b 39 	bl      ffc11a44 <rtems_task_self>             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0ef10:	39 20 00 09 	li      r9,9                                   
                     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 ();                                  
  req->bufnum = 0;                                                    
ffc0ef14:	93 5e 00 10 	stw     r26,16(r30)                            
{                                                                     
  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;                                        
ffc0ef18:	3b 40 00 01 	li      r26,1                                  
  req = bdbuf_alloc (sizeof (rtems_blkdev_request) +                  
                     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 ();                                  
ffc0ef1c:	90 7e 00 14 	stw     r3,20(r30)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0ef20:	91 3d 00 20 	stw     r9,32(r29)                             
  req->io_task = rtems_task_self ();                                  
  req->bufnum = 0;                                                    
                                                                      
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);             
                                                                      
  req->bufs [0].user   = bd;                                          
ffc0ef24:	93 be 00 24 	stw     r29,36(r30)                            
  req->bufs [0].block  = media_block;                                 
  req->bufs [0].length = block_size;                                  
  req->bufs [0].buffer = bd->buffer;                                  
ffc0ef28:	81 3d 00 1c 	lwz     r9,28(r29)                             
ffc0ef2c:	7f dd f3 78 	mr      r29,r30                                
  req->bufnum = 0;                                                    
                                                                      
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);             
                                                                      
  req->bufs [0].user   = bd;                                          
  req->bufs [0].block  = media_block;                                 
ffc0ef30:	93 9e 00 18 	stw     r28,24(r30)                            
  req->bufs [0].length = block_size;                                  
ffc0ef34:	93 3e 00 1c 	stw     r25,28(r30)                            
  req->bufs [0].buffer = bd->buffer;                                  
ffc0ef38:	91 3e 00 20 	stw     r9,32(r30)                             
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_users ("read", bd);                              
                                                                      
  while (transfer_index < transfer_count)                             
ffc0ef3c:	48 00 00 54 	b       ffc0ef90 <rtems_bdbuf_execute_read_request+0xe0>
  {                                                                   
    media_block += media_blocks_per_block;                            
ffc0ef40:	7f 9c ba 14 	add     r28,r28,r23                            
                                                                      
    bd = rtems_bdbuf_get_buffer_for_read_ahead (dd, media_block);     
ffc0ef44:	7f 63 db 78 	mr      r3,r27                                 
ffc0ef48:	7f 84 e3 78 	mr      r4,r28                                 
ffc0ef4c:	4b ff f4 b9 	bl      ffc0e404 <rtems_bdbuf_get_buffer_for_read_ahead>
ffc0ef50:	3b bd 00 10 	addi    r29,r29,16                             
                                                                      
    if (bd == NULL)                                                   
ffc0ef54:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0ef58:	40 a2 00 1c 	bne+    ffc0ef74 <rtems_bdbuf_execute_read_request+0xc4><== ALWAYS TAKEN
      rtems_bdbuf_show_users ("read", bd);                            
                                                                      
    ++transfer_index;                                                 
  }                                                                   
                                                                      
  req->bufnum = transfer_index;                                       
ffc0ef5c:	93 5e 00 10 	stw     r26,16(r30)                            
                                                                      
  return rtems_bdbuf_execute_transfer_request (dd, req, true);        
ffc0ef60:	7f 63 db 78 	mr      r3,r27                                 
ffc0ef64:	7f c4 f3 78 	mr      r4,r30                                 
ffc0ef68:	38 a0 00 01 	li      r5,1                                   
ffc0ef6c:	4b ff f8 55 	bl      ffc0e7c0 <rtems_bdbuf_execute_transfer_request>
ffc0ef70:	48 00 00 2c 	b       ffc0ef9c <rtems_bdbuf_execute_read_request+0xec>
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0ef74:	92 c3 00 20 	stw     r22,32(r3)                             
    req->bufs [transfer_index].buffer = bd->buffer;                   
                                                                      
    if (rtems_bdbuf_tracer)                                           
      rtems_bdbuf_show_users ("read", bd);                            
                                                                      
    ++transfer_index;                                                 
ffc0ef78:	3b 5a 00 01 	addi    r26,r26,1                              
    if (bd == NULL)                                                   
      break;                                                          
                                                                      
    rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);           
                                                                      
    req->bufs [transfer_index].user   = bd;                           
ffc0ef7c:	90 7d 00 24 	stw     r3,36(r29)                             
    req->bufs [transfer_index].block  = media_block;                  
ffc0ef80:	93 9d 00 18 	stw     r28,24(r29)                            
    req->bufs [transfer_index].length = block_size;                   
ffc0ef84:	93 3d 00 1c 	stw     r25,28(r29)                            
    req->bufs [transfer_index].buffer = bd->buffer;                   
ffc0ef88:	81 23 00 1c 	lwz     r9,28(r3)                              
ffc0ef8c:	91 3d 00 20 	stw     r9,32(r29)                             
  req->bufs [0].buffer = bd->buffer;                                  
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_users ("read", bd);                              
                                                                      
  while (transfer_index < transfer_count)                             
ffc0ef90:	7f 9a c0 40 	cmplw   cr7,r26,r24                            
ffc0ef94:	41 9c ff ac 	blt+    cr7,ffc0ef40 <rtems_bdbuf_execute_read_request+0x90>
ffc0ef98:	4b ff ff c4 	b       ffc0ef5c <rtems_bdbuf_execute_read_request+0xac>
  }                                                                   
                                                                      
  req->bufnum = transfer_index;                                       
                                                                      
  return rtems_bdbuf_execute_transfer_request (dd, req, true);        
}                                                                     
ffc0ef9c:	39 7f 00 30 	addi    r11,r31,48                             
ffc0efa0:	48 00 9a 18 	b       ffc189b8 <_restgpr_22_x>               
                                                                      

ffc0d724 <rtems_bdbuf_fatal>: #define RTEMS_BDBUF_AVL_MAX_HEIGHT (32) #endif static void rtems_bdbuf_fatal (rtems_fatal_code error) {
ffc0d724:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc0d728:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc0d72c:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
  rtems_fatal (RTEMS_FATAL_SOURCE_BDBUF, error);                      
ffc0d730:	38 60 00 03 	li      r3,3                                   <== NOT EXECUTED
#define RTEMS_BDBUF_AVL_MAX_HEIGHT (32)                               
#endif                                                                
                                                                      
static void                                                           
rtems_bdbuf_fatal (rtems_fatal_code error)                            
{                                                                     
ffc0d734:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
  rtems_fatal (RTEMS_FATAL_SOURCE_BDBUF, error);                      
ffc0d738:	4b ff c9 51 	bl      ffc0a088 <rtems_fatal>                 <== NOT EXECUTED
                                                                      

ffc0d788 <rtems_bdbuf_fatal_with_state>: } static void rtems_bdbuf_fatal_with_state (rtems_bdbuf_buf_state state, rtems_bdbuf_fatal_code error) {
ffc0d788:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc0d78c:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
  rtems_bdbuf_fatal ((((uint32_t) state) << 16) | error);             
ffc0d790:	54 63 80 1e 	rlwinm  r3,r3,16,0,15                          <== NOT EXECUTED
ffc0d794:	7c 83 1b 78 	or      r3,r4,r3                               <== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_fatal_with_state (rtems_bdbuf_buf_state state,            
                              rtems_bdbuf_fatal_code error)           
{                                                                     
ffc0d798:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
  rtems_bdbuf_fatal ((((uint32_t) state) << 16) | error);             
ffc0d79c:	4b ff ff 89 	bl      ffc0d724 <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      

ffc0f58c <rtems_bdbuf_get>: rtems_status_code rtems_bdbuf_get (rtems_disk_device *dd, rtems_blkdev_bnum block, rtems_bdbuf_buffer **bd_ptr) {
ffc0f58c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0f590:	7c 08 02 a6 	mflr    r0                                     
ffc0f594:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc0f598:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0f59c:	7c 9e 23 78 	mr      r30,r4                                 
ffc0f5a0:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0f5a4:	7c bd 2b 78 	mr      r29,r5                                 
  rtems_status_code   sc = RTEMS_SUCCESSFUL;                          
  rtems_bdbuf_buffer *bd = NULL;                                      
  rtems_blkdev_bnum   media_block;                                    
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc0f5a8:	4b ff e1 d1 	bl      ffc0d778 <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)                                        
ffc0f5ac:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc0f5b0:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc0f5b4:	40 bc 00 94 	bge+    cr7,ffc0f648 <rtems_bdbuf_get+0xbc>    <== 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)                            
ffc0f5b8:	80 9f 00 30 	lwz     r4,48(r31)                             
ffc0f5bc:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0f5c0:	41 9c 00 0c 	blt-    cr7,ffc0f5cc <rtems_bdbuf_get+0x40>    <== NEVER TAKEN
    return block << dd->block_to_media_block_shift;                   
ffc0f5c4:	7f c4 20 30 	slw     r4,r30,r4                              
ffc0f5c8:	48 00 00 24 	b       ffc0f5ec <rtems_bdbuf_get+0x60>        
    /*                                                                
     * 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); 
ffc0f5cc:	80 7f 00 24 	lwz     r3,36(r31)                             <== NOT EXECUTED
ffc0f5d0:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc0f5d4:	80 df 00 20 	lwz     r6,32(r31)                             <== NOT EXECUTED
ffc0f5d8:	7d 5e 19 d6 	mullw   r10,r30,r3                             <== NOT EXECUTED
ffc0f5dc:	7d 3e 18 16 	mulhwu  r9,r30,r3                              <== NOT EXECUTED
ffc0f5e0:	7d 44 53 78 	mr      r4,r10                                 <== NOT EXECUTED
ffc0f5e4:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc0f5e8:	48 00 8b e5 	bl      ffc181cc <__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;
ffc0f5ec:	81 3f 00 18 	lwz     r9,24(r31)                             
     */                                                               
    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);         
ffc0f5f0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f5f4:	7c 84 4a 14 	add     r4,r4,r9                               
ffc0f5f8:	4b ff ee 75 	bl      ffc0e46c <rtems_bdbuf_get_buffer_for_access>
ffc0f5fc:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
    switch (bd->state)                                                
ffc0f600:	80 63 00 20 	lwz     r3,32(r3)                              
ffc0f604:	2f 83 00 02 	cmpwi   cr7,r3,2                               
ffc0f608:	41 9e 00 18 	beq-    cr7,ffc0f620 <rtems_bdbuf_get+0x94>    
ffc0f60c:	2f 83 00 07 	cmpwi   cr7,r3,7                               
ffc0f610:	41 9e 00 28 	beq-    cr7,ffc0f638 <rtems_bdbuf_get+0xac>    
ffc0f614:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc0f618:	40 be 00 28 	bne+    cr7,ffc0f640 <rtems_bdbuf_get+0xb4>    <== NEVER TAKEN
ffc0f61c:	48 00 00 0c 	b       ffc0f628 <rtems_bdbuf_get+0x9c>        
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0f620:	39 20 00 03 	li      r9,3                                   
ffc0f624:	48 00 00 08 	b       ffc0f62c <rtems_bdbuf_get+0xa0>        
ffc0f628:	39 20 00 05 	li      r9,5                                   
ffc0f62c:	91 3f 00 20 	stw     r9,32(r31)                             
ffc0f630:	3b c0 00 00 	li      r30,0                                  
ffc0f634:	48 00 00 1c 	b       ffc0f650 <rtems_bdbuf_get+0xc4>        
ffc0f638:	39 20 00 04 	li      r9,4                                   
ffc0f63c:	4b ff ff f0 	b       ffc0f62c <rtems_bdbuf_get+0xa0>        
         * 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);
ffc0f640:	38 80 00 0f 	li      r4,15                                  <== NOT EXECUTED
ffc0f644:	4b ff e1 45 	bl      ffc0d788 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
     */                                                               
    *media_block_ptr = rtems_bdbuf_media_block (dd, block) + dd->start;
  }                                                                   
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_ID;                                            
ffc0f648:	3b c0 00 04 	li      r30,4                                  <== NOT EXECUTED
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;                                      
ffc0f64c:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
      rtems_bdbuf_show_users ("get", bd);                             
      rtems_bdbuf_show_usage ();                                      
    }                                                                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc0f650:	4b ff e1 85 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    
                                                                      
  *bd_ptr = bd;                                                       
                                                                      
  return sc;                                                          
}                                                                     
ffc0f654:	39 61 00 18 	addi    r11,r1,24                              
    }                                                                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  *bd_ptr = bd;                                                       
ffc0f658:	93 fd 00 00 	stw     r31,0(r29)                             
                                                                      
  return sc;                                                          
}                                                                     
ffc0f65c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0f660:	48 00 93 74 	b       ffc189d4 <_restgpr_29_x>               
                                                                      

ffc0e46c <rtems_bdbuf_get_buffer_for_access>: static rtems_bdbuf_buffer * rtems_bdbuf_get_buffer_for_access (rtems_disk_device *dd, rtems_blkdev_bnum block) {
ffc0e46c:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc0e470:	7c 08 02 a6 	mflr    r0                                     
ffc0e474:	be a1 00 0c 	stmw    r21,12(r1)                             
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  do                                                                  
  {                                                                   
    bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);       
ffc0e478:	3f c0 00 00 	lis     r30,0                                  
ffc0e47c:	3b de 29 68 	addi    r30,r30,10600                          
static bool                                                           
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)                 
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
ffc0e480:	3f 40 ff c2 	lis     r26,-62                                
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_for_access (rtems_disk_device *dd,             
                                   rtems_blkdev_bnum  block)          
{                                                                     
ffc0e484:	90 01 00 3c 	stw     r0,60(r1)                              
ffc0e488:	7c 7d 1b 78 	mr      r29,r3                                 
ffc0e48c:	7c 9b 23 78 	mr      r27,r4                                 
static bool                                                           
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)                 
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
ffc0e490:	3b 5a a4 60 	addi    r26,r26,-23456                         
        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);         
ffc0e494:	3b 3e 00 6c 	addi    r25,r30,108                            
        }                                                             
      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);           
ffc0e498:	3b 1e 00 64 	addi    r24,r30,100                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0e49c:	3a e0 00 08 	li      r23,8                                  
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
ffc0e4a0:	3a de 00 5c 	addi    r22,r30,92                             
      {                                                               
        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);             
ffc0e4a4:	3b 9e 00 74 	addi    r28,r30,116                            
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(         
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return &the_chain->Tail.Node;                                       
ffc0e4a8:	3a be 00 50 	addi    r21,r30,80                             
{                                                                     
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  do                                                                  
  {                                                                   
    bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);       
ffc0e4ac:	80 7e 00 3c 	lwz     r3,60(r30)                             
ffc0e4b0:	7f a4 eb 78 	mr      r4,r29                                 
ffc0e4b4:	7f 65 db 78 	mr      r5,r27                                 
ffc0e4b8:	4b ff f5 81 	bl      ffc0da38 <rtems_bdbuf_avl_search.isra.1>
                                                                      
    if (bd != NULL)                                                   
ffc0e4bc:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0e4c0:	41 82 00 a4 	beq-    ffc0e564 <rtems_bdbuf_get_buffer_for_access+0xf8>
    {                                                                 
      if (bd->group->bds_per_group != dd->bds_per_group)              
ffc0e4c4:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc0e4c8:	81 49 00 08 	lwz     r10,8(r9)                              
ffc0e4cc:	81 3d 00 34 	lwz     r9,52(r29)                             
ffc0e4d0:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc0e4d4:	41 9e 00 b8 	beq-    cr7,ffc0e58c <rtems_bdbuf_get_buffer_for_access+0x120>
static bool                                                           
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)                 
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
ffc0e4d8:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc0e4dc:	2b 83 00 0a 	cmplwi  cr7,r3,10                              
ffc0e4e0:	41 9d 00 7c 	bgt-    cr7,ffc0e55c <rtems_bdbuf_get_buffer_for_access+0xf0><== NEVER TAKEN
ffc0e4e4:	54 63 10 3a 	rlwinm  r3,r3,2,0,29                           
ffc0e4e8:	7d 3a 18 2e 	lwzx    r9,r26,r3                              
ffc0e4ec:	7d 29 d2 14 	add     r9,r9,r26                              
ffc0e4f0:	7d 29 03 a6 	mtctr   r9                                     
ffc0e4f4:	4e 80 04 20 	bctr                                           
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc0e4f8:	81 3f 00 00 	lwz     r9,0(r31)                              <== NOT EXECUTED
  previous       = the_node->previous;                                
ffc0e4fc:	81 5f 00 04 	lwz     r10,4(r31)                             <== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0e500:	92 ff 00 20 	stw     r23,32(r31)                            <== NOT EXECUTED
  next->previous = previous;                                          
ffc0e504:	91 49 00 04 	stw     r10,4(r9)                              <== NOT EXECUTED
  previous->next = next;                                              
ffc0e508:	91 2a 00 00 	stw     r9,0(r10)                              <== NOT EXECUTED
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc0e50c:	81 3e 00 60 	lwz     r9,96(r30)                             <== NOT EXECUTED
                                                                      
  the_node->next = tail;                                              
ffc0e510:	92 df 00 00 	stw     r22,0(r31)                             <== NOT EXECUTED
  tail->previous = the_node;                                          
ffc0e514:	93 fe 00 60 	stw     r31,96(r30)                            <== NOT EXECUTED
  old_last->next = the_node;                                          
ffc0e518:	93 e9 00 00 	stw     r31,0(r9)                              <== NOT EXECUTED
  the_node->previous = old_last;                                      
ffc0e51c:	91 3f 00 04 	stw     r9,4(r31)                              <== 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 ();                                        
ffc0e520:	4b ff f2 c5 	bl      ffc0d7e4 <rtems_bdbuf_wake_swapper>    <== NOT EXECUTED
ffc0e524:	4b ff ff b4 	b       ffc0e4d8 <rtems_bdbuf_get_buffer_for_access+0x6c><== 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)                                         
ffc0e528:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc0e52c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e530:	41 be 00 e0 	beq+    cr7,ffc0e610 <rtems_bdbuf_get_buffer_for_access+0x1a4><== NEVER TAKEN
           * It is essential that we wait here without a special wait count and
           * without the group in use.  Otherwise we could trigger a wait ping
           * pong with another recycle waiter.  The state of the buffer is
           * arbitrary afterwards.                                    
           */                                                         
          rtems_bdbuf_anonymous_wait (&bdbuf_cache.buffer_waiters);   
ffc0e534:	7f 83 e3 78 	mr      r3,r28                                 
ffc0e538:	4b ff f3 71 	bl      ffc0d8a8 <rtems_bdbuf_anonymous_wait>  
ffc0e53c:	4b ff ff 70 	b       ffc0e4ac <rtems_bdbuf_get_buffer_for_access+0x40>
        }                                                             
      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);           
ffc0e540:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e544:	7f 04 c3 78 	mr      r4,r24                                 
ffc0e548:	48 00 00 0c 	b       ffc0e554 <rtems_bdbuf_get_buffer_for_access+0xe8>
        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);         
ffc0e54c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0e550:	7f 24 cb 78 	mr      r4,r25                                 <== NOT EXECUTED
ffc0e554:	4b ff f3 d1 	bl      ffc0d924 <rtems_bdbuf_wait>            
ffc0e558:	4b ff ff 80 	b       ffc0e4d8 <rtems_bdbuf_get_buffer_for_access+0x6c>
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_8);
ffc0e55c:	38 80 00 14 	li      r4,20                                  <== NOT EXECUTED
ffc0e560:	48 00 00 ac 	b       ffc0e60c <rtems_bdbuf_get_buffer_for_access+0x1a0><== NOT EXECUTED
        bd = NULL;                                                    
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      bd = rtems_bdbuf_get_buffer_from_lru_list (dd, block);          
ffc0e564:	7f a3 eb 78 	mr      r3,r29                                 
ffc0e568:	7f 64 db 78 	mr      r4,r27                                 
ffc0e56c:	4b ff fb 01 	bl      ffc0e06c <rtems_bdbuf_get_buffer_from_lru_list>
                                                                      
      if (bd == NULL)                                                 
ffc0e570:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0e574:	40 a2 00 18 	bne+    ffc0e58c <rtems_bdbuf_get_buffer_for_access+0x120>
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wait_for_buffer (void)                                    
{                                                                     
  if (!rtems_chain_is_empty (&bdbuf_cache.modified))                  
ffc0e578:	81 3e 00 4c 	lwz     r9,76(r30)                             
ffc0e57c:	7f 89 a8 00 	cmpw    cr7,r9,r21                             
ffc0e580:	41 be ff b4 	beq-    cr7,ffc0e534 <rtems_bdbuf_get_buffer_for_access+0xc8>
    rtems_bdbuf_wake_swapper ();                                      
ffc0e584:	4b ff f2 61 	bl      ffc0d7e4 <rtems_bdbuf_wake_swapper>    
ffc0e588:	4b ff ff ac 	b       ffc0e534 <rtems_bdbuf_get_buffer_for_access+0xc8>
        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);         
ffc0e58c:	3d 20 00 00 	lis     r9,0                                   
ffc0e590:	39 29 29 68 	addi    r9,r9,10600                            
static void                                                           
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)                  
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
ffc0e594:	3f c0 ff c2 	lis     r30,-62                                
ffc0e598:	3b de a4 8c 	addi    r30,r30,-23412                         
        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);         
ffc0e59c:	3b a9 00 6c 	addi    r29,r9,108                             
        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);           
ffc0e5a0:	3b 89 00 64 	addi    r28,r9,100                             
static void                                                           
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)                  
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
ffc0e5a4:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc0e5a8:	39 23 ff ff 	addi    r9,r3,-1                               
ffc0e5ac:	2b 89 00 09 	cmplwi  cr7,r9,9                               
ffc0e5b0:	41 9d 00 58 	bgt-    cr7,ffc0e608 <rtems_bdbuf_get_buffer_for_access+0x19c><== NEVER TAKEN
ffc0e5b4:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0e5b8:	7d 3e 48 2e 	lwzx    r9,r30,r9                              
ffc0e5bc:	7d 29 f2 14 	add     r9,r9,r30                              
ffc0e5c0:	7d 29 03 a6 	mtctr   r9                                     
ffc0e5c4:	4e 80 04 20 	bctr                                           
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 ();                                        
}                                                                     
ffc0e5c8:	81 3f 00 28 	lwz     r9,40(r31)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)                    
{                                                                     
  --bd->group->users;                                                 
ffc0e5cc:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0e5d0:	39 4a ff ff 	addi    r10,r10,-1                             
ffc0e5d4:	91 49 00 0c 	stw     r10,12(r9)                             
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc0e5d8:	81 3f 00 00 	lwz     r9,0(r31)                              
  previous       = the_node->previous;                                
ffc0e5dc:	81 5f 00 04 	lwz     r10,4(r31)                             
  next->previous = previous;                                          
ffc0e5e0:	91 49 00 04 	stw     r10,4(r9)                              
  previous->next = next;                                              
ffc0e5e4:	91 2a 00 00 	stw     r9,0(r10)                              
ffc0e5e8:	48 00 00 44 	b       ffc0e62c <rtems_bdbuf_get_buffer_for_access+0x1c0>
        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);           
ffc0e5ec:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e5f0:	7f 84 e3 78 	mr      r4,r28                                 
ffc0e5f4:	48 00 00 0c 	b       ffc0e600 <rtems_bdbuf_get_buffer_for_access+0x194>
        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);         
ffc0e5f8:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e5fc:	7f a4 eb 78 	mr      r4,r29                                 
ffc0e600:	4b ff f3 25 	bl      ffc0d924 <rtems_bdbuf_wait>            
ffc0e604:	4b ff ff a0 	b       ffc0e5a4 <rtems_bdbuf_get_buffer_for_access+0x138>
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_7);
ffc0e608:	38 80 00 13 	li      r4,19                                  <== NOT EXECUTED
ffc0e60c:	4b ff f1 7d 	bl      ffc0d788 <rtems_bdbuf_fatal_with_state><== 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);             
ffc0e610:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0e614:	4b ff fa 01 	bl      ffc0e014 <rtems_bdbuf_remove_from_tree_and_lru_list><== NOT EXECUTED
          rtems_bdbuf_make_free_and_add_to_lru_list (bd);             
ffc0e618:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0e61c:	4b ff f8 e1 	bl      ffc0defc <rtems_bdbuf_make_free_and_add_to_lru_list><== NOT EXECUTED
          rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);             
ffc0e620:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc0e624:	4b ff f4 65 	bl      ffc0da88 <rtems_bdbuf_wake>            <== NOT EXECUTED
ffc0e628:	4b ff fe 84 	b       ffc0e4ac <rtems_bdbuf_get_buffer_for_access+0x40><== 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 ();                                        
}                                                                     
ffc0e62c:	81 3f 00 28 	lwz     r9,40(r31)                             
                                                                      
  rtems_bdbuf_wait_for_access (bd);                                   
  rtems_bdbuf_group_obtain (bd);                                      
                                                                      
  return bd;                                                          
}                                                                     
ffc0e630:	39 61 00 38 	addi    r11,r1,56                              
ffc0e634:	7f e3 fb 78 	mr      r3,r31                                 
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)                     
{                                                                     
  ++bd->group->users;                                                 
ffc0e638:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0e63c:	39 4a 00 01 	addi    r10,r10,1                              
ffc0e640:	91 49 00 0c 	stw     r10,12(r9)                             
                                                                      
  rtems_bdbuf_wait_for_access (bd);                                   
  rtems_bdbuf_group_obtain (bd);                                      
                                                                      
  return bd;                                                          
}                                                                     
ffc0e644:	48 00 a3 70 	b       ffc189b4 <_restgpr_21_x>               
                                                                      

ffc0e404 <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) {
ffc0e404:	94 21 ff f0 	stwu    r1,-16(r1)                             
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);         
ffc0e408:	3d 20 00 00 	lis     r9,0                                   
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_for_read_ahead (rtems_disk_device *dd,         
                                       rtems_blkdev_bnum  block)      
{                                                                     
ffc0e40c:	7c 08 02 a6 	mflr    r0                                     
ffc0e410:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc0e414:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0e418:	7c 9f 23 78 	mr      r31,r4                                 
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);         
ffc0e41c:	80 69 29 a4 	lwz     r3,10660(r9)                           
ffc0e420:	7f c4 f3 78 	mr      r4,r30                                 
ffc0e424:	7f e5 fb 78 	mr      r5,r31                                 
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_for_read_ahead (rtems_disk_device *dd,         
                                       rtems_blkdev_bnum  block)      
{                                                                     
ffc0e428:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);         
ffc0e42c:	4b ff f6 0d 	bl      ffc0da38 <rtems_bdbuf_avl_search.isra.1>
                                                                      
  if (bd == NULL)                                                     
ffc0e430:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e434:	40 be 00 2c 	bne+    cr7,ffc0e460 <rtems_bdbuf_get_buffer_for_read_ahead+0x5c><== NEVER TAKEN
  {                                                                   
    bd = rtems_bdbuf_get_buffer_from_lru_list (dd, block);            
ffc0e438:	7f c3 f3 78 	mr      r3,r30                                 
ffc0e43c:	7f e4 fb 78 	mr      r4,r31                                 
ffc0e440:	4b ff fc 2d 	bl      ffc0e06c <rtems_bdbuf_get_buffer_from_lru_list>
                                                                      
    if (bd != NULL)                                                   
ffc0e444:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0e448:	41 82 00 1c 	beq-    ffc0e464 <rtems_bdbuf_get_buffer_for_read_ahead+0x60><== 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 ();                                        
}                                                                     
ffc0e44c:	81 23 00 28 	lwz     r9,40(r3)                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)                     
{                                                                     
  ++bd->group->users;                                                 
ffc0e450:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0e454:	39 4a 00 01 	addi    r10,r10,1                              
ffc0e458:	91 49 00 0c 	stw     r10,12(r9)                             
ffc0e45c:	48 00 00 08 	b       ffc0e464 <rtems_bdbuf_get_buffer_for_read_ahead+0x60>
  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;                                                        
ffc0e460:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
                                                                      
  return bd;                                                          
}                                                                     
ffc0e464:	39 61 00 10 	addi    r11,r1,16                              
ffc0e468:	48 00 a5 70 	b       ffc189d8 <_restgpr_30_x>               
                                                                      

ffc0e06c <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) {
ffc0e06c:	94 21 ff 48 	stwu    r1,-184(r1)                            
ffc0e070:	7c 08 02 a6 	mflr    r0                                     
ffc0e074:	be a1 00 8c 	stmw    r21,140(r1)                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc0e078:	3f 80 00 00 	lis     r28,0                                  
ffc0e07c:	3b 9c 29 68 	addi    r28,r28,10600                          
ffc0e080:	90 01 00 bc 	stw     r0,188(r1)                             
ffc0e084:	7c 7d 1b 78 	mr      r29,r3                                 
ffc0e088:	7c 9a 23 78 	mr      r26,r4                                 
ffc0e08c:	83 dc 00 40 	lwz     r30,64(r28)                            
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(         
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return &the_chain->Tail.Node;                                       
ffc0e090:	3a fc 00 44 	addi    r23,r28,68                             
       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);                   
ffc0e094:	3a dc 00 74 	addi    r22,r28,116                            
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))               
ffc0e098:	48 00 03 54 	b       ffc0e3ec <rtems_bdbuf_get_buffer_from_lru_list+0x380>
              bd->group->bds_per_group, dd->bds_per_group);           
                                                                      
    /*                                                                
     * If nobody waits for this BD, we may recycle it.                
     */                                                               
    if (bd->waiters == 0)                                             
ffc0e09c:	81 3e 00 24 	lwz     r9,36(r30)                             
ffc0e0a0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e0a4:	40 9e 03 44 	bne-    cr7,ffc0e3e8 <rtems_bdbuf_get_buffer_from_lru_list+0x37c>
    {                                                                 
      if (bd->group->bds_per_group == dd->bds_per_group)              
ffc0e0a8:	83 fe 00 28 	lwz     r31,40(r30)                            
ffc0e0ac:	83 7d 00 34 	lwz     r27,52(r29)                            
ffc0e0b0:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0e0b4:	7f 89 d8 00 	cmpw    cr7,r9,r27                             
ffc0e0b8:	40 be 00 14 	bne+    cr7,ffc0e0cc <rtems_bdbuf_get_buffer_from_lru_list+0x60>
      {                                                               
        rtems_bdbuf_remove_from_tree_and_lru_list (bd);               
ffc0e0bc:	7f c3 f3 78 	mr      r3,r30                                 
ffc0e0c0:	4b ff ff 55 	bl      ffc0e014 <rtems_bdbuf_remove_from_tree_and_lru_list>
ffc0e0c4:	7f ca f3 78 	mr      r10,r30                                
ffc0e0c8:	48 00 00 9c 	b       ffc0e164 <rtems_bdbuf_get_buffer_from_lru_list+0xf8>
                                                                      
        empty_bd = bd;                                                
      }                                                               
      else if (bd->group->users == 0)                                 
ffc0e0cc:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc0e0d0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0e0d4:	40 be 03 14 	bne+    cr7,ffc0e3e8 <rtems_bdbuf_get_buffer_from_lru_list+0x37c>
  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; 
ffc0e0d8:	82 bc 00 20 	lwz     r21,32(r28)                            
                                                                      
  for (b = 0, bd = group->bdbuf;                                      
ffc0e0dc:	3b 20 00 00 	li      r25,0                                  
ffc0e0e0:	83 1f 00 10 	lwz     r24,16(r31)                            
  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; 
ffc0e0e4:	7e b5 4b 96 	divwu   r21,r21,r9                             
                                                                      
  for (b = 0, bd = group->bdbuf;                                      
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
ffc0e0e8:	1e b5 00 38 	mulli   r21,r21,56                             
ffc0e0ec:	48 00 00 14 	b       ffc0e100 <rtems_bdbuf_get_buffer_from_lru_list+0x94>
    rtems_bdbuf_remove_from_tree_and_lru_list (bd);                   
ffc0e0f0:	7f 03 c3 78 	mr      r3,r24                                 
ffc0e0f4:	4b ff ff 21 	bl      ffc0e014 <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)                                        
ffc0e0f8:	3b 39 00 01 	addi    r25,r25,1                              
ffc0e0fc:	7f 18 aa 14 	add     r24,r24,r21                            
            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;                                      
ffc0e100:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0e104:	7f 99 48 40 	cmplw   cr7,r25,r9                             
ffc0e108:	41 9c ff e8 	blt+    cr7,ffc0e0f0 <rtems_bdbuf_get_buffer_from_lru_list+0x84>
       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;    
ffc0e10c:	83 1c 00 20 	lwz     r24,32(r28)                            
                                                                      
  for (b = 1, bd = group->bdbuf + bufs_per_bd;                        
ffc0e110:	83 3f 00 10 	lwz     r25,16(r31)                            
       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;    
ffc0e114:	7f 18 db 96 	divwu   r24,r24,r27                            
  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;                           
ffc0e118:	93 7f 00 08 	stw     r27,8(r31)                             
  bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;    
                                                                      
  for (b = 1, bd = group->bdbuf + bufs_per_bd;                        
ffc0e11c:	1f 18 00 38 	mulli   r24,r24,56                             
ffc0e120:	3b 60 00 01 	li      r27,1                                  
ffc0e124:	7f 39 c2 14 	add     r25,r25,r24                            
ffc0e128:	48 00 00 14 	b       ffc0e13c <rtems_bdbuf_get_buffer_from_lru_list+0xd0>
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
    rtems_bdbuf_make_free_and_add_to_lru_list (bd);                   
ffc0e12c:	7f 23 cb 78 	mr      r3,r25                                 
ffc0e130:	4b ff fd cd 	bl      ffc0defc <rtems_bdbuf_make_free_and_add_to_lru_list>
  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)                                        
ffc0e134:	3b 7b 00 01 	addi    r27,r27,1                              
ffc0e138:	7f 39 c2 14 	add     r25,r25,r24                            
    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;                        
ffc0e13c:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0e140:	7f 9b 48 40 	cmplw   cr7,r27,r9                             
ffc0e144:	41 9c ff e8 	blt+    cr7,ffc0e12c <rtems_bdbuf_get_buffer_from_lru_list+0xc0>
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
    rtems_bdbuf_make_free_and_add_to_lru_list (bd);                   
                                                                      
  if (b > 1)                                                          
ffc0e148:	2b 9b 00 01 	cmplwi  cr7,r27,1                              
ffc0e14c:	40 9d 00 0c 	ble-    cr7,ffc0e158 <rtems_bdbuf_get_buffer_from_lru_list+0xec>
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
ffc0e150:	7e c3 b3 78 	mr      r3,r22                                 
ffc0e154:	4b ff f9 35 	bl      ffc0da88 <rtems_bdbuf_wake>            
                                                                      
  return group->bdbuf;                                                
ffc0e158:	81 5f 00 10 	lwz     r10,16(r31)                            
      }                                                               
      else if (bd->group->users == 0)                                 
        empty_bd = rtems_bdbuf_group_realloc (bd->group, dd->bds_per_group);
    }                                                                 
                                                                      
    if (empty_bd != NULL)                                             
ffc0e15c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0e160:	41 be 02 88 	beq+    cr7,ffc0e3e8 <rtems_bdbuf_get_buffer_from_lru_list+0x37c><== NEVER TAKEN
                                rtems_disk_device  *dd,               
                                rtems_blkdev_bnum   block)            
{                                                                     
  bd->dd        = dd ;                                                
  bd->block     = block;                                              
  bd->avl.left  = NULL;                                               
ffc0e164:	39 20 00 00 	li      r9,0                                   
static void                                                           
rtems_bdbuf_setup_empty_buffer (rtems_bdbuf_buffer *bd,               
                                rtems_disk_device  *dd,               
                                rtems_blkdev_bnum   block)            
{                                                                     
  bd->dd        = dd ;                                                
ffc0e168:	93 aa 00 14 	stw     r29,20(r10)                            
                       rtems_bdbuf_buffer*  node)                     
{                                                                     
  const rtems_disk_device *dd = node->dd;                             
  rtems_blkdev_bnum block = node->block;                              
                                                                      
  rtems_bdbuf_buffer*  p = *root;                                     
ffc0e16c:	3d 00 00 00 	lis     r8,0                                   
                                rtems_disk_device  *dd,               
                                rtems_blkdev_bnum   block)            
{                                                                     
  bd->dd        = dd ;                                                
  bd->block     = block;                                              
  bd->avl.left  = NULL;                                               
ffc0e170:	91 2a 00 08 	stw     r9,8(r10)                              
                       rtems_bdbuf_buffer*  node)                     
{                                                                     
  const rtems_disk_device *dd = node->dd;                             
  rtems_blkdev_bnum block = node->block;                              
                                                                      
  rtems_bdbuf_buffer*  p = *root;                                     
ffc0e174:	39 08 29 68 	addi    r8,r8,10600                            
                                rtems_blkdev_bnum   block)            
{                                                                     
  bd->dd        = dd ;                                                
  bd->block     = block;                                              
  bd->avl.left  = NULL;                                               
  bd->avl.right = NULL;                                               
ffc0e178:	91 2a 00 0c 	stw     r9,12(r10)                             
  bd->waiters   = 0;                                                  
ffc0e17c:	91 2a 00 24 	stw     r9,36(r10)                             
                       rtems_bdbuf_buffer*  node)                     
{                                                                     
  const rtems_disk_device *dd = node->dd;                             
  rtems_blkdev_bnum block = node->block;                              
                                                                      
  rtems_bdbuf_buffer*  p = *root;                                     
ffc0e180:	81 28 00 3c 	lwz     r9,60(r8)                              
rtems_bdbuf_setup_empty_buffer (rtems_bdbuf_buffer *bd,               
                                rtems_disk_device  *dd,               
                                rtems_blkdev_bnum   block)            
{                                                                     
  bd->dd        = dd ;                                                
  bd->block     = block;                                              
ffc0e184:	93 4a 00 18 	stw     r26,24(r10)                            
  rtems_bdbuf_buffer*  buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];         
  rtems_bdbuf_buffer** buf_prev = buf_stack;                          
                                                                      
  bool modified = false;                                              
                                                                      
  if (p == NULL)                                                      
ffc0e188:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e18c:	41 9e 00 14 	beq-    cr7,ffc0e1a0 <rtems_bdbuf_get_buffer_from_lru_list+0x134>
                                                                      
  rtems_bdbuf_make_empty (bd);                                        
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_from_lru_list (rtems_disk_device *dd,          
ffc0e190:	38 a1 00 04 	addi    r5,r1,4                                
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
    {                                                                 
      p->avl.cache = 1;                                               
ffc0e194:	38 e0 00 01 	li      r7,1                                   
        break;                                                        
      }                                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
    {                                                                 
      p->avl.cache = -1;                                              
ffc0e198:	38 c0 ff ff 	li      r6,-1                                  
ffc0e19c:	48 00 00 68 	b       ffc0e204 <rtems_bdbuf_get_buffer_from_lru_list+0x198>
                                                                      
  bool modified = false;                                              
                                                                      
  if (p == NULL)                                                      
  {                                                                   
    *root = node;                                                     
ffc0e1a0:	91 48 00 3c 	stw     r10,60(r8)                             
    node->avl.left = NULL;                                            
ffc0e1a4:	91 2a 00 08 	stw     r9,8(r10)                              
    node->avl.right = NULL;                                           
ffc0e1a8:	91 2a 00 0c 	stw     r9,12(r10)                             
    node->avl.bal = 0;                                                
ffc0e1ac:	99 2a 00 11 	stb     r9,17(r10)                             
ffc0e1b0:	48 00 02 2c 	b       ffc0e3dc <rtems_bdbuf_get_buffer_from_lru_list+0x370>
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
ffc0e1b4:	7f 88 e8 00 	cmpw    cr7,r8,r29                             
ffc0e1b8:	40 be 00 30 	bne+    cr7,ffc0e1e8 <rtems_bdbuf_get_buffer_from_lru_list+0x17c><== NEVER TAKEN
ffc0e1bc:	81 09 00 18 	lwz     r8,24(r9)                              
ffc0e1c0:	7f 88 d0 40 	cmplw   cr7,r8,r26                             
ffc0e1c4:	40 9c 00 1c 	bge-    cr7,ffc0e1e0 <rtems_bdbuf_get_buffer_from_lru_list+0x174>
    {                                                                 
      p->avl.cache = 1;                                               
      q = p->avl.right;                                               
ffc0e1c8:	81 09 00 0c 	lwz     r8,12(r9)                              
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
    {                                                                 
      p->avl.cache = 1;                                               
ffc0e1cc:	98 e9 00 10 	stb     r7,16(r9)                              
      q = p->avl.right;                                               
      if (q == NULL)                                                  
ffc0e1d0:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0e1d4:	40 be 00 2c 	bne+    cr7,ffc0e200 <rtems_bdbuf_get_buffer_from_lru_list+0x194>
      {                                                               
        q = node;                                                     
        p->avl.right = q = node;                                      
ffc0e1d8:	91 49 00 0c 	stw     r10,12(r9)                             
ffc0e1dc:	48 00 00 3c 	b       ffc0e218 <rtems_bdbuf_get_buffer_from_lru_list+0x1ac>
        break;                                                        
      }                                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
ffc0e1e0:	7f 88 d0 00 	cmpw    cr7,r8,r26                             
ffc0e1e4:	41 9e 01 f0 	beq-    cr7,ffc0e3d4 <rtems_bdbuf_get_buffer_from_lru_list+0x368><== NEVER TAKEN
    {                                                                 
      p->avl.cache = -1;                                              
      q = p->avl.left;                                                
ffc0e1e8:	81 09 00 08 	lwz     r8,8(r9)                               
        break;                                                        
      }                                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
    {                                                                 
      p->avl.cache = -1;                                              
ffc0e1ec:	98 c9 00 10 	stb     r6,16(r9)                              
      q = p->avl.left;                                                
      if (q == NULL)                                                  
ffc0e1f0:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0e1f4:	40 be 00 0c 	bne+    cr7,ffc0e200 <rtems_bdbuf_get_buffer_from_lru_list+0x194>
      {                                                               
        q = node;                                                     
        p->avl.left = q;                                              
ffc0e1f8:	91 49 00 08 	stw     r10,8(r9)                              
ffc0e1fc:	48 00 00 1c 	b       ffc0e218 <rtems_bdbuf_get_buffer_from_lru_list+0x1ac>
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
    {                                                                 
      p->avl.cache = -1;                                              
      q = p->avl.left;                                                
      if (q == NULL)                                                  
ffc0e200:	7d 09 43 78 	mr      r9,r8                                  
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
ffc0e204:	81 09 00 14 	lwz     r8,20(r9)                              
    return 0;                                                         
  }                                                                   
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
ffc0e208:	95 25 00 04 	stwu    r9,4(r5)                               
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
ffc0e20c:	7f 88 e8 40 	cmplw   cr7,r8,r29                             
ffc0e210:	41 bc ff b8 	blt-    cr7,ffc0e1c8 <rtems_bdbuf_get_buffer_from_lru_list+0x15c><== NEVER TAKEN
ffc0e214:	4b ff ff a0 	b       ffc0e1b4 <rtems_bdbuf_get_buffer_from_lru_list+0x148>
    }                                                                 
                                                                      
    p = q;                                                            
  }                                                                   
                                                                      
  q->avl.left = q->avl.right = NULL;                                  
ffc0e218:	39 00 00 00 	li      r8,0                                   
ffc0e21c:	91 0a 00 0c 	stw     r8,12(r10)                             
  modified = true;                                                    
  buf_prev--;                                                         
                                                                      
  while (modified)                                                    
  {                                                                   
    if (p->avl.cache == -1)                                           
ffc0e220:	38 00 ff ff 	li      r0,-1                                  
          p->avl.bal = 0;                                             
          modified = false;                                           
          break;                                                      
                                                                      
        case 0:                                                       
          p->avl.bal = 1;                                             
ffc0e224:	38 80 00 01 	li      r4,1                                   
    }                                                                 
                                                                      
    p = q;                                                            
  }                                                                   
                                                                      
  q->avl.left = q->avl.right = NULL;                                  
ffc0e228:	91 0a 00 08 	stw     r8,8(r10)                              
            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;
ffc0e22c:	3b e0 ff ff 	li      r31,-1                                 
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
    q = p;                                                            
    if (buf_prev > buf_stack)                                         
ffc0e230:	3b c1 00 08 	addi    r30,r1,8                               
                                                                      
    p = q;                                                            
  }                                                                   
                                                                      
  q->avl.left = q->avl.right = NULL;                                  
  q->avl.bal = 0;                                                     
ffc0e234:	99 0a 00 11 	stb     r8,17(r10)                             
ffc0e238:	48 00 00 08 	b       ffc0e240 <rtems_bdbuf_get_buffer_from_lru_list+0x1d4>
  modified = true;                                                    
  buf_prev--;                                                         
                                                                      
  while (modified)                                                    
ffc0e23c:	7c c9 33 78 	mr      r9,r6                                  
  {                                                                   
    if (p->avl.cache == -1)                                           
ffc0e240:	88 c9 00 10 	lbz     r6,16(r9)                              
ffc0e244:	7c c7 07 74 	extsb   r7,r6                                  
ffc0e248:	2f 87 ff ff 	cmpwi   cr7,r7,-1                              
ffc0e24c:	88 e9 00 11 	lbz     r7,17(r9)                              
ffc0e250:	40 be 00 90 	bne+    cr7,ffc0e2e0 <rtems_bdbuf_get_buffer_from_lru_list+0x274>
    {                                                                 
      switch (p->avl.bal)                                             
ffc0e254:	7c e3 07 75 	extsb.  r3,r7                                  
ffc0e258:	41 82 00 18 	beq-    ffc0e270 <rtems_bdbuf_get_buffer_from_lru_list+0x204>
ffc0e25c:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc0e260:	41 9e 00 98 	beq-    cr7,ffc0e2f8 <rtems_bdbuf_get_buffer_from_lru_list+0x28c>
ffc0e264:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc0e268:	40 be 01 24 	bne+    cr7,ffc0e38c <rtems_bdbuf_get_buffer_from_lru_list+0x320><== NEVER TAKEN
ffc0e26c:	48 00 00 0c 	b       ffc0e278 <rtems_bdbuf_get_buffer_from_lru_list+0x20c>
          p->avl.bal = 0;                                             
          modified = false;                                           
          break;                                                      
                                                                      
        case 0:                                                       
          p->avl.bal = -1;                                            
ffc0e270:	98 c9 00 11 	stb     r6,17(r9)                              
ffc0e274:	48 00 01 18 	b       ffc0e38c <rtems_bdbuf_get_buffer_from_lru_list+0x320>
          break;                                                      
                                                                      
        case -1:                                                      
          p1 = p->avl.left;                                           
ffc0e278:	80 e9 00 08 	lwz     r7,8(r9)                               
          if (p1->avl.bal == -1) /* simple LL-turn */                 
ffc0e27c:	88 c7 00 11 	lbz     r6,17(r7)                              
ffc0e280:	2f 86 00 ff 	cmpwi   cr7,r6,255                             
ffc0e284:	80 c7 00 0c 	lwz     r6,12(r7)                              
ffc0e288:	40 be 00 10 	bne+    cr7,ffc0e298 <rtems_bdbuf_get_buffer_from_lru_list+0x22c>
          {                                                           
            p->avl.left = p1->avl.right;                              
ffc0e28c:	90 c9 00 08 	stw     r6,8(r9)                               
            p1->avl.right = p;                                        
ffc0e290:	91 27 00 0c 	stw     r9,12(r7)                              
ffc0e294:	48 00 00 90 	b       ffc0e324 <rtems_bdbuf_get_buffer_from_lru_list+0x2b8>
            p = p1;                                                   
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
ffc0e298:	81 66 00 08 	lwz     r11,8(r6)                              
            p->avl.bal = 0;                                           
            p = p1;                                                   
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
ffc0e29c:	7c c3 33 78 	mr      r3,r6                                  
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
ffc0e2a0:	90 e6 00 08 	stw     r7,8(r6)                               
            p = p1;                                                   
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
ffc0e2a4:	91 67 00 0c 	stw     r11,12(r7)                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
ffc0e2a8:	81 66 00 0c 	lwz     r11,12(r6)                             
            p2->avl.right = p;                                        
ffc0e2ac:	91 26 00 0c 	stw     r9,12(r6)                              
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
ffc0e2b0:	91 69 00 08 	stw     r11,8(r9)                              
            p2->avl.right = p;                                        
            if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
ffc0e2b4:	89 66 00 11 	lbz     r11,17(r6)                             
ffc0e2b8:	2f 8b 00 ff 	cmpwi   cr7,r11,255                            
ffc0e2bc:	40 be 00 0c 	bne+    cr7,ffc0e2c8 <rtems_bdbuf_get_buffer_from_lru_list+0x25c>
ffc0e2c0:	98 89 00 11 	stb     r4,17(r9)                              
ffc0e2c4:	48 00 00 08 	b       ffc0e2cc <rtems_bdbuf_get_buffer_from_lru_list+0x260>
ffc0e2c8:	99 09 00 11 	stb     r8,17(r9)                              
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
ffc0e2cc:	89 26 00 11 	lbz     r9,17(r6)                              
ffc0e2d0:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0e2d4:	40 be 00 a4 	bne+    cr7,ffc0e378 <rtems_bdbuf_get_buffer_from_lru_list+0x30c>
ffc0e2d8:	9b e7 00 11 	stb     r31,17(r7)                             
ffc0e2dc:	48 00 00 a0 	b       ffc0e37c <rtems_bdbuf_get_buffer_from_lru_list+0x310>
          break;                                                      
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      switch (p->avl.bal)                                             
ffc0e2e0:	7c e6 07 75 	extsb.  r6,r7                                  
ffc0e2e4:	41 82 00 1c 	beq-    ffc0e300 <rtems_bdbuf_get_buffer_from_lru_list+0x294>
ffc0e2e8:	2f 86 00 01 	cmpwi   cr7,r6,1                               
ffc0e2ec:	41 9e 00 1c 	beq-    cr7,ffc0e308 <rtems_bdbuf_get_buffer_from_lru_list+0x29c>
ffc0e2f0:	2f 86 ff ff 	cmpwi   cr7,r6,-1                              
ffc0e2f4:	40 be 00 98 	bne+    cr7,ffc0e38c <rtems_bdbuf_get_buffer_from_lru_list+0x320><== NEVER TAKEN
      {                                                               
        case -1:                                                      
          p->avl.bal = 0;                                             
ffc0e2f8:	99 09 00 11 	stb     r8,17(r9)                              
ffc0e2fc:	48 00 00 88 	b       ffc0e384 <rtems_bdbuf_get_buffer_from_lru_list+0x318>
          modified = false;                                           
          break;                                                      
                                                                      
        case 0:                                                       
          p->avl.bal = 1;                                             
ffc0e300:	98 89 00 11 	stb     r4,17(r9)                              
ffc0e304:	48 00 00 88 	b       ffc0e38c <rtems_bdbuf_get_buffer_from_lru_list+0x320>
          break;                                                      
                                                                      
        case 1:                                                       
          p1 = p->avl.right;                                          
ffc0e308:	80 e9 00 0c 	lwz     r7,12(r9)                              
          if (p1->avl.bal == 1) /* simple RR-turn */                  
ffc0e30c:	88 c7 00 11 	lbz     r6,17(r7)                              
ffc0e310:	2f 86 00 01 	cmpwi   cr7,r6,1                               
ffc0e314:	80 c7 00 08 	lwz     r6,8(r7)                               
ffc0e318:	40 be 00 18 	bne+    cr7,ffc0e330 <rtems_bdbuf_get_buffer_from_lru_list+0x2c4>
          {                                                           
            p->avl.right = p1->avl.left;                              
ffc0e31c:	90 c9 00 0c 	stw     r6,12(r9)                              
            p1->avl.left = p;                                         
ffc0e320:	91 27 00 08 	stw     r9,8(r7)                               
            p->avl.bal = 0;                                           
ffc0e324:	99 09 00 11 	stb     r8,17(r9)                              
ffc0e328:	7c e3 3b 78 	mr      r3,r7                                  
ffc0e32c:	48 00 00 50 	b       ffc0e37c <rtems_bdbuf_get_buffer_from_lru_list+0x310>
            p = p1;                                                   
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
ffc0e330:	81 66 00 0c 	lwz     r11,12(r6)                             
            p->avl.bal = 0;                                           
            p = p1;                                                   
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
ffc0e334:	7c c3 33 78 	mr      r3,r6                                  
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
ffc0e338:	90 e6 00 0c 	stw     r7,12(r6)                              
            p = p1;                                                   
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
ffc0e33c:	91 67 00 08 	stw     r11,8(r7)                              
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
ffc0e340:	81 66 00 08 	lwz     r11,8(r6)                              
            p2->avl.left = p;                                         
ffc0e344:	91 26 00 08 	stw     r9,8(r6)                               
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
ffc0e348:	91 69 00 0c 	stw     r11,12(r9)                             
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
ffc0e34c:	89 66 00 11 	lbz     r11,17(r6)                             
ffc0e350:	2f 8b 00 01 	cmpwi   cr7,r11,1                              
ffc0e354:	40 be 00 0c 	bne+    cr7,ffc0e360 <rtems_bdbuf_get_buffer_from_lru_list+0x2f4><== ALWAYS TAKEN
ffc0e358:	98 09 00 11 	stb     r0,17(r9)                              <== NOT EXECUTED
ffc0e35c:	48 00 00 08 	b       ffc0e364 <rtems_bdbuf_get_buffer_from_lru_list+0x2f8><== NOT EXECUTED
ffc0e360:	99 09 00 11 	stb     r8,17(r9)                              
            if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
ffc0e364:	89 26 00 11 	lbz     r9,17(r6)                              
ffc0e368:	2f 89 00 ff 	cmpwi   cr7,r9,255                             
ffc0e36c:	40 be 00 0c 	bne+    cr7,ffc0e378 <rtems_bdbuf_get_buffer_from_lru_list+0x30c><== ALWAYS TAKEN
ffc0e370:	98 87 00 11 	stb     r4,17(r7)                              <== NOT EXECUTED
ffc0e374:	48 00 00 08 	b       ffc0e37c <rtems_bdbuf_get_buffer_from_lru_list+0x310><== NOT EXECUTED
ffc0e378:	99 07 00 11 	stb     r8,17(r7)                              
            p = p2;                                                   
          }                                                           
          p->avl.bal = 0;                                             
ffc0e37c:	99 03 00 11 	stb     r8,17(r3)                              
ffc0e380:	7c 69 1b 78 	mr      r9,r3                                  
          modified = false;                                           
ffc0e384:	38 e0 00 00 	li      r7,0                                   
ffc0e388:	48 00 00 08 	b       ffc0e390 <rtems_bdbuf_get_buffer_from_lru_list+0x324>
          break;                                                      
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      switch (p->avl.bal)                                             
ffc0e38c:	38 e0 00 01 	li      r7,1                                   
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
    q = p;                                                            
    if (buf_prev > buf_stack)                                         
ffc0e390:	7f 85 f0 40 	cmplw   cr7,r5,r30                             
ffc0e394:	40 9d 00 24 	ble-    cr7,ffc0e3b8 <rtems_bdbuf_get_buffer_from_lru_list+0x34c>
    {                                                                 
      p = *--buf_prev;                                                
ffc0e398:	80 c5 ff fc 	lwz     r6,-4(r5)                              
                                                                      
      if (p->avl.cache == -1)                                         
ffc0e39c:	88 66 00 10 	lbz     r3,16(r6)                              
ffc0e3a0:	2f 83 00 ff 	cmpwi   cr7,r3,255                             
ffc0e3a4:	40 be 00 0c 	bne+    cr7,ffc0e3b0 <rtems_bdbuf_get_buffer_from_lru_list+0x344>
      {                                                               
        p->avl.left = q;                                              
ffc0e3a8:	91 26 00 08 	stw     r9,8(r6)                               
ffc0e3ac:	48 00 00 18 	b       ffc0e3c4 <rtems_bdbuf_get_buffer_from_lru_list+0x358>
      }                                                               
      else                                                            
      {                                                               
        p->avl.right = q;                                             
ffc0e3b0:	91 26 00 0c 	stw     r9,12(r6)                              
ffc0e3b4:	48 00 00 10 	b       ffc0e3c4 <rtems_bdbuf_get_buffer_from_lru_list+0x358>
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      *root = p;                                                      
ffc0e3b8:	3d 00 00 00 	lis     r8,0                                   
ffc0e3bc:	91 28 29 a4 	stw     r9,10660(r8)                           
ffc0e3c0:	48 00 00 1c 	b       ffc0e3dc <rtems_bdbuf_get_buffer_from_lru_list+0x370>
  q->avl.left = q->avl.right = NULL;                                  
  q->avl.bal = 0;                                                     
  modified = true;                                                    
  buf_prev--;                                                         
                                                                      
  while (modified)                                                    
ffc0e3c4:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc0e3c8:	38 a5 ff fc 	addi    r5,r5,-4                               
ffc0e3cc:	40 9e fe 70 	bne+    cr7,ffc0e23c <rtems_bdbuf_get_buffer_from_lru_list+0x1d0>
ffc0e3d0:	48 00 00 0c 	b       ffc0e3dc <rtems_bdbuf_get_buffer_from_lru_list+0x370>
  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);                    
ffc0e3d4:	38 60 00 08 	li      r3,8                                   <== NOT EXECUTED
ffc0e3d8:	4b ff f3 4d 	bl      ffc0d724 <rtems_bdbuf_fatal>           <== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0e3dc:	39 20 00 01 	li      r9,1                                   
ffc0e3e0:	91 2a 00 20 	stw     r9,32(r10)                             
ffc0e3e4:	48 00 00 14 	b       ffc0e3f8 <rtems_bdbuf_get_buffer_from_lru_list+0x38c>
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 ();                                        
}                                                                     
ffc0e3e8:	83 de 00 00 	lwz     r30,0(r30)                             
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))               
ffc0e3ec:	7f 9e b8 00 	cmpw    cr7,r30,r23                            
ffc0e3f0:	40 9e fc ac 	bne+    cr7,ffc0e09c <rtems_bdbuf_get_buffer_from_lru_list+0x30>
    }                                                                 
                                                                      
    node = rtems_chain_next (node);                                   
  }                                                                   
                                                                      
  return NULL;                                                        
ffc0e3f4:	39 40 00 00 	li      r10,0                                  
}                                                                     
ffc0e3f8:	39 61 00 b8 	addi    r11,r1,184                             
ffc0e3fc:	7d 43 53 78 	mr      r3,r10                                 
ffc0e400:	48 00 a5 b4 	b       ffc189b4 <_restgpr_21_x>               
                                                                      

ffc0f1a0 <rtems_bdbuf_init>: rtems_mode prev_mode; if (rtems_bdbuf_tracer) printf ("bdbuf:init\n"); if (rtems_interrupt_is_in_progress())
ffc0f1a0:	3d 20 00 00 	lis     r9,0                                   
ffc0f1a4:	81 29 2e 48 	lwz     r9,11848(r9)                           
    return RTEMS_CALLED_FROM_ISR;                                     
ffc0f1a8:	38 60 00 12 	li      r3,18                                  
  rtems_mode          prev_mode;                                      
                                                                      
  if (rtems_bdbuf_tracer)                                             
    printf ("bdbuf:init\n");                                          
                                                                      
  if (rtems_interrupt_is_in_progress())                               
ffc0f1ac:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f1b0:	4c be 00 20 	bnelr+  cr7                                    
 *                                                                    
 * @return rtems_status_code The initialisation status.               
 */                                                                   
rtems_status_code                                                     
rtems_bdbuf_init (void)                                               
{                                                                     
ffc0f1b4:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0f1b8:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  /*                                                                  
   * Check the configuration table values.                            
   */                                                                 
  if ((bdbuf_config.buffer_max % bdbuf_config.buffer_min) != 0)       
    return RTEMS_INVALID_NUMBER;                                      
ffc0f1bc:	38 60 00 0a 	li      r3,10                                  
 *                                                                    
 * @return rtems_status_code The initialisation status.               
 */                                                                   
rtems_status_code                                                     
rtems_bdbuf_init (void)                                               
{                                                                     
ffc0f1c0:	bf 41 00 08 	stmw    r26,8(r1)                              
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  /*                                                                  
   * Check the configuration table values.                            
   */                                                                 
  if ((bdbuf_config.buffer_max % bdbuf_config.buffer_min) != 0)       
ffc0f1c4:	3f 60 ff c2 	lis     r27,-62                                
ffc0f1c8:	3b 7b 95 fc 	addi    r27,r27,-27140                         
ffc0f1cc:	81 3b 00 28 	lwz     r9,40(r27)                             
ffc0f1d0:	83 bb 00 24 	lwz     r29,36(r27)                            
 *                                                                    
 * @return rtems_status_code The initialisation status.               
 */                                                                   
rtems_status_code                                                     
rtems_bdbuf_init (void)                                               
{                                                                     
ffc0f1d4:	90 01 00 24 	stw     r0,36(r1)                              
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  /*                                                                  
   * Check the configuration table values.                            
   */                                                                 
  if ((bdbuf_config.buffer_max % bdbuf_config.buffer_min) != 0)       
ffc0f1d8:	7f 89 eb 96 	divwu   r28,r9,r29                             
ffc0f1dc:	7d 5c e9 d6 	mullw   r10,r28,r29                            
ffc0f1e0:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0f1e4:	40 be 03 a0 	bne+    cr7,ffc0f584 <rtems_bdbuf_init+0x3e4>  <== 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)                                        
ffc0f1e8:	3f e0 00 00 	lis     r31,0                                  
  /*                                                                  
   * 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 ();                      
ffc0f1ec:	4b ff e6 35 	bl      ffc0d820 <rtems_bdbuf_disable_preemption>
  if (bdbuf_cache.initialised)                                        
ffc0f1f0:	3b ff 29 68 	addi    r31,r31,10600                          
ffc0f1f4:	8b df 00 95 	lbz     r30,149(r31)                           
  /*                                                                  
   * 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 ();                      
ffc0f1f8:	7c 7a 1b 78 	mr      r26,r3                                 
  if (bdbuf_cache.initialised)                                        
ffc0f1fc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0f200:	41 9e 00 10 	beq-    cr7,ffc0f210 <rtems_bdbuf_init+0x70>   <== ALWAYS TAKEN
  {                                                                   
    rtems_bdbuf_restore_preemption (prev_mode);                       
ffc0f204:	4b ff e6 65 	bl      ffc0d868 <rtems_bdbuf_restore_preemption><== NOT EXECUTED
    return RTEMS_RESOURCE_IN_USE;                                     
ffc0f208:	38 60 00 0c 	li      r3,12                                  <== NOT EXECUTED
ffc0f20c:	48 00 03 78 	b       ffc0f584 <rtems_bdbuf_init+0x3e4>      <== NOT EXECUTED
  }                                                                   
                                                                      
  memset(&bdbuf_cache, 0, sizeof(bdbuf_cache));                       
ffc0f210:	38 80 00 00 	li      r4,0                                   
ffc0f214:	38 a0 00 98 	li      r5,152                                 
ffc0f218:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f21c:	48 00 56 69 	bl      ffc14884 <memset>                      
  bdbuf_cache.initialised = true;                                     
ffc0f220:	39 20 00 01 	li      r9,1                                   
  rtems_bdbuf_restore_preemption (prev_mode);                         
ffc0f224:	7f 43 d3 78 	mr      r3,r26                                 
    rtems_bdbuf_restore_preemption (prev_mode);                       
    return RTEMS_RESOURCE_IN_USE;                                     
  }                                                                   
                                                                      
  memset(&bdbuf_cache, 0, sizeof(bdbuf_cache));                       
  bdbuf_cache.initialised = true;                                     
ffc0f228:	99 3f 00 95 	stb     r9,149(r31)                            
  rtems_bdbuf_restore_preemption (prev_mode);                         
ffc0f22c:	4b ff e6 3d 	bl      ffc0d868 <rtems_bdbuf_restore_preemption>
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc0f230:	39 3f 00 0c 	addi    r9,r31,12                              
ffc0f234:	91 3f 00 08 	stw     r9,8(r31)                              
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc0f238:	39 3f 00 08 	addi    r9,r31,8                               
  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'), 
ffc0f23c:	3c 60 42 44 	lis     r3,16964                               
ffc0f240:	91 3f 00 10 	stw     r9,16(r31)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc0f244:	39 3f 00 44 	addi    r9,r31,68                              
ffc0f248:	60 63 43 6c 	ori     r3,r3,17260                            
ffc0f24c:	91 3f 00 40 	stw     r9,64(r31)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc0f250:	39 3f 00 40 	addi    r9,r31,64                              
ffc0f254:	38 80 00 01 	li      r4,1                                   
ffc0f258:	91 3f 00 48 	stw     r9,72(r31)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc0f25c:	39 3f 00 50 	addi    r9,r31,80                              
ffc0f260:	38 a0 00 54 	li      r5,84                                  
ffc0f264:	91 3f 00 4c 	stw     r9,76(r31)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc0f268:	39 3f 00 4c 	addi    r9,r31,76                              
ffc0f26c:	38 c0 00 00 	li      r6,0                                   
ffc0f270:	91 3f 00 54 	stw     r9,84(r31)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc0f274:	39 3f 00 5c 	addi    r9,r31,92                              
ffc0f278:	38 ff 00 28 	addi    r7,r31,40                              
ffc0f27c:	91 3f 00 58 	stw     r9,88(r31)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc0f280:	39 3f 00 58 	addi    r9,r31,88                              
ffc0f284:	91 3f 00 60 	stw     r9,96(r31)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc0f288:	39 3f 00 8c 	addi    r9,r31,140                             
ffc0f28c:	91 3f 00 88 	stw     r9,136(r31)                            
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc0f290:	39 3f 00 88 	addi    r9,r31,136                             
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc0f294:	93 df 00 0c 	stw     r30,12(r31)                            
ffc0f298:	93 df 00 44 	stw     r30,68(r31)                            
ffc0f29c:	93 df 00 50 	stw     r30,80(r31)                            
ffc0f2a0:	93 df 00 5c 	stw     r30,92(r31)                            
ffc0f2a4:	93 df 00 8c 	stw     r30,140(r31)                           
  tail->previous = head;                                              
ffc0f2a8:	91 3f 00 90 	stw     r9,144(r31)                            
   */                                                                 
  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;                        
ffc0f2ac:	93 df 00 38 	stw     r30,56(r31)                            
  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'), 
ffc0f2b0:	4b ff a4 71 	bl      ffc09720 <rtems_semaphore_create>      
                               1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,  
                               &bdbuf_cache.lock);                    
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0f2b4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f2b8:	40 be 02 38 	bne+    cr7,ffc0f4f0 <rtems_bdbuf_init+0x350>  <== NEVER TAKEN
    goto error;                                                       
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc0f2bc:	4b ff e4 bd 	bl      ffc0d778 <rtems_bdbuf_lock_cache>      
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 's'), 
ffc0f2c0:	3c 60 42 44 	lis     r3,16964                               
ffc0f2c4:	60 63 43 73 	ori     r3,r3,17267                            
ffc0f2c8:	38 80 00 01 	li      r4,1                                   
ffc0f2cc:	38 a0 00 54 	li      r5,84                                  
ffc0f2d0:	38 c0 00 00 	li      r6,0                                   
ffc0f2d4:	38 ff 00 2c 	addi    r7,r31,44                              
ffc0f2d8:	4b ff a4 49 	bl      ffc09720 <rtems_semaphore_create>      
                               1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,  
                               &bdbuf_cache.sync_lock);               
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0f2dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f2e0:	40 be 02 10 	bne+    cr7,ffc0f4f0 <rtems_bdbuf_init+0x350>  <== NEVER TAKEN
    goto error;                                                       
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'a'), 
ffc0f2e4:	3c 60 42 44 	lis     r3,16964                               
ffc0f2e8:	60 63 43 61 	ori     r3,r3,17249                            
ffc0f2ec:	38 80 00 00 	li      r4,0                                   
ffc0f2f0:	38 a0 00 24 	li      r5,36                                  
ffc0f2f4:	38 c0 00 00 	li      r6,0                                   
ffc0f2f8:	38 ff 00 68 	addi    r7,r31,104                             
ffc0f2fc:	4b ff a4 25 	bl      ffc09720 <rtems_semaphore_create>      
                               0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
                               &bdbuf_cache.access_waiters.sema);     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0f300:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f304:	40 be 01 ec 	bne+    cr7,ffc0f4f0 <rtems_bdbuf_init+0x350>  <== NEVER TAKEN
    goto error;                                                       
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 't'), 
ffc0f308:	3c 60 42 44 	lis     r3,16964                               
ffc0f30c:	60 63 43 74 	ori     r3,r3,17268                            
ffc0f310:	38 80 00 00 	li      r4,0                                   
ffc0f314:	38 a0 00 24 	li      r5,36                                  
ffc0f318:	38 c0 00 00 	li      r6,0                                   
ffc0f31c:	38 ff 00 70 	addi    r7,r31,112                             
ffc0f320:	4b ff a4 01 	bl      ffc09720 <rtems_semaphore_create>      
                               0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
                               &bdbuf_cache.transfer_waiters.sema);   
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0f324:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f328:	40 be 01 c8 	bne+    cr7,ffc0f4f0 <rtems_bdbuf_init+0x350>  <== NEVER TAKEN
    goto error;                                                       
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'b'), 
ffc0f32c:	3c 60 42 44 	lis     r3,16964                               
ffc0f330:	60 63 43 62 	ori     r3,r3,17250                            
ffc0f334:	38 80 00 00 	li      r4,0                                   
ffc0f338:	38 a0 00 24 	li      r5,36                                  
ffc0f33c:	38 c0 00 00 	li      r6,0                                   
ffc0f340:	38 ff 00 78 	addi    r7,r31,120                             
ffc0f344:	4b ff a3 dd 	bl      ffc09720 <rtems_semaphore_create>      
                               0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
                               &bdbuf_cache.buffer_waiters.sema);     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0f348:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f34c:	40 be 01 a4 	bne+    cr7,ffc0f4f0 <rtems_bdbuf_init+0x350>  <== NEVER TAKEN
                                                                      
  /*                                                                  
   * Compute the various number of elements in the cache.             
   */                                                                 
  bdbuf_cache.buffer_min_count =                                      
    bdbuf_config.size / bdbuf_config.buffer_min;                      
ffc0f350:	83 db 00 20 	lwz     r30,32(r27)                            
    bdbuf_cache.buffer_min_count / bdbuf_cache.max_bds_per_group;     
                                                                      
  /*                                                                  
   * Allocate the memory for the buffer descriptors.                  
   */                                                                 
  bdbuf_cache.bds = calloc (sizeof (rtems_bdbuf_buffer),              
ffc0f354:	38 60 00 38 	li      r3,56                                  
  /*                                                                  
   * 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 =                                     
ffc0f358:	93 9f 00 20 	stw     r28,32(r31)                            
                                                                      
  /*                                                                  
   * Compute the various number of elements in the cache.             
   */                                                                 
  bdbuf_cache.buffer_min_count =                                      
    bdbuf_config.size / bdbuf_config.buffer_min;                      
ffc0f35c:	7f de eb 96 	divwu   r30,r30,r29                            
  bdbuf_cache.max_bds_per_group =                                     
    bdbuf_config.buffer_max / bdbuf_config.buffer_min;                
  bdbuf_cache.group_count =                                           
    bdbuf_cache.buffer_min_count / bdbuf_cache.max_bds_per_group;     
ffc0f360:	7f 9e e3 96 	divwu   r28,r30,r28                            
    goto error;                                                       
                                                                      
  /*                                                                  
   * Compute the various number of elements in the cache.             
   */                                                                 
  bdbuf_cache.buffer_min_count =                                      
ffc0f364:	93 df 00 1c 	stw     r30,28(r31)                            
    bdbuf_cache.buffer_min_count / bdbuf_cache.max_bds_per_group;     
                                                                      
  /*                                                                  
   * Allocate the memory for the buffer descriptors.                  
   */                                                                 
  bdbuf_cache.bds = calloc (sizeof (rtems_bdbuf_buffer),              
ffc0f368:	7f c4 f3 78 	mr      r4,r30                                 
   */                                                                 
  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 =                                           
ffc0f36c:	93 9f 00 7c 	stw     r28,124(r31)                           
    bdbuf_cache.buffer_min_count / bdbuf_cache.max_bds_per_group;     
                                                                      
  /*                                                                  
   * Allocate the memory for the buffer descriptors.                  
   */                                                                 
  bdbuf_cache.bds = calloc (sizeof (rtems_bdbuf_buffer),              
ffc0f370:	4b ff 5f 45 	bl      ffc052b4 <calloc>                      
                            bdbuf_cache.buffer_min_count);            
  if (!bdbuf_cache.bds)                                               
ffc0f374:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    bdbuf_cache.buffer_min_count / bdbuf_cache.max_bds_per_group;     
                                                                      
  /*                                                                  
   * Allocate the memory for the buffer descriptors.                  
   */                                                                 
  bdbuf_cache.bds = calloc (sizeof (rtems_bdbuf_buffer),              
ffc0f378:	90 7f 00 14 	stw     r3,20(r31)                             
                            bdbuf_cache.buffer_min_count);            
  if (!bdbuf_cache.bds)                                               
ffc0f37c:	41 9e 01 74 	beq-    cr7,ffc0f4f0 <rtems_bdbuf_init+0x350>  <== NEVER TAKEN
    goto error;                                                       
                                                                      
  /*                                                                  
   * Allocate the memory for the buffer descriptors.                  
   */                                                                 
  bdbuf_cache.groups = calloc (sizeof (rtems_bdbuf_group),            
ffc0f380:	38 60 00 14 	li      r3,20                                  
ffc0f384:	7f 84 e3 78 	mr      r4,r28                                 
ffc0f388:	4b ff 5f 2d 	bl      ffc052b4 <calloc>                      
                               bdbuf_cache.group_count);              
  if (!bdbuf_cache.groups)                                            
ffc0f38c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    goto error;                                                       
                                                                      
  /*                                                                  
   * Allocate the memory for the buffer descriptors.                  
   */                                                                 
  bdbuf_cache.groups = calloc (sizeof (rtems_bdbuf_group),            
ffc0f390:	90 7f 00 80 	stw     r3,128(r31)                            
                               bdbuf_cache.group_count);              
  if (!bdbuf_cache.groups)                                            
ffc0f394:	41 9e 01 5c 	beq-    cr7,ffc0f4f0 <rtems_bdbuf_init+0x350>  <== NEVER TAKEN
   * 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,                 
ffc0f398:	3f e0 00 00 	lis     r31,0                                  
ffc0f39c:	7c be e9 d6 	mullw   r5,r30,r29                             
ffc0f3a0:	3b ff 29 68 	addi    r31,r31,10600                          
ffc0f3a4:	38 7f 00 18 	addi    r3,r31,24                              
ffc0f3a8:	38 80 00 20 	li      r4,32                                  
ffc0f3ac:	48 00 1d f9 	bl      ffc111a4 <rtems_memalign>              
ffc0f3b0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f3b4:	40 be 01 3c 	bne+    cr7,ffc0f4f0 <rtems_bdbuf_init+0x350>  <== 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,                             
         bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;          
       b < bdbuf_cache.buffer_min_count;                              
ffc0f3b8:	80 7f 00 1c 	lwz     r3,28(r31)                             
                                                                      
  /*                                                                  
   * 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,                             
ffc0f3bc:	38 e0 00 00 	li      r7,0                                   
ffc0f3c0:	81 5f 00 80 	lwz     r10,128(r31)                           
         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;                                    
ffc0f3c4:	38 00 00 00 	li      r0,0                                   
  /*                                                                  
   * 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;          
ffc0f3c8:	81 1f 00 14 	lwz     r8,20(r31)                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
ffc0f3cc:	38 63 00 01 	addi    r3,r3,1                                
    bd->group  = group;                                               
    bd->buffer = buffer;                                              
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.lru, &bd->link);     
                                                                      
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
ffc0f3d0:	80 9f 00 20 	lwz     r4,32(r31)                             
                                                                      
  /*                                                                  
   * 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,                             
ffc0f3d4:	7d 46 53 78 	mr      r6,r10                                 
         bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;          
ffc0f3d8:	80 bf 00 18 	lwz     r5,24(r31)                             
ffc0f3dc:	7d 09 43 78 	mr      r9,r8                                  
    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))                          
ffc0f3e0:	39 64 ff ff 	addi    r11,r4,-1                              
ffc0f3e4:	7c 69 03 a6 	mtctr   r3                                     
ffc0f3e8:	3b df 00 44 	addi    r30,r31,68                             
                                                                      
  /*                                                                  
   * 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,                             
ffc0f3ec:	48 00 00 48 	b       ffc0f434 <rtems_bdbuf_init+0x294>      
         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;                                    
ffc0f3f0:	90 09 00 14 	stw     r0,20(r9)                              
    bd->group  = group;                                               
ffc0f3f4:	90 c9 00 28 	stw     r6,40(r9)                              
    bd->buffer = buffer;                                              
ffc0f3f8:	90 a9 00 1c 	stw     r5,28(r9)                              
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc0f3fc:	80 7f 00 48 	lwz     r3,72(r31)                             
                                                                      
  the_node->next = tail;                                              
ffc0f400:	93 c9 00 00 	stw     r30,0(r9)                              
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
ffc0f404:	91 23 00 00 	stw     r9,0(r3)                               
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
  tail->previous = the_node;                                          
ffc0f408:	91 3f 00 48 	stw     r9,72(r31)                             
  old_last->next = the_node;                                          
  the_node->previous = old_last;                                      
ffc0f40c:	90 69 00 04 	stw     r3,4(r9)                               
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.lru, &bd->link);     
                                                                      
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
ffc0f410:	7c 67 23 96 	divwu   r3,r7,r4                               
ffc0f414:	7c 63 21 d6 	mullw   r3,r3,r4                               
ffc0f418:	7c 63 38 50 	subf    r3,r3,r7                               
ffc0f41c:	7f 83 58 00 	cmpw    cr7,r3,r11                             
ffc0f420:	40 be 00 08 	bne+    cr7,ffc0f428 <rtems_bdbuf_init+0x288>  
        (bdbuf_cache.max_bds_per_group - 1))                          
      group++;                                                        
ffc0f424:	38 c6 00 14 	addi    r6,r6,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)                  
ffc0f428:	38 e7 00 01 	addi    r7,r7,1                                
ffc0f42c:	39 29 00 38 	addi    r9,r9,56                               
ffc0f430:	7c a5 ea 14 	add     r5,r5,r29                              
ffc0f434:	42 00 ff bc 	bdnz+   ffc0f3f0 <rtems_bdbuf_init+0x250>      
  }                                                                   
                                                                      
  for (b = 0,                                                         
         group = bdbuf_cache.groups,                                  
         bd = bdbuf_cache.bds;                                        
       b < bdbuf_cache.group_count;                                   
ffc0f438:	3d 20 00 00 	lis     r9,0                                   
ffc0f43c:	39 29 29 68 	addi    r9,r9,10600                            
ffc0f440:	80 c9 00 7c 	lwz     r6,124(r9)                             
       b++,                                                           
         group++,                                                     
         bd += bdbuf_cache.max_bds_per_group)                         
  {                                                                   
    group->bds_per_group = bdbuf_cache.max_bds_per_group;             
ffc0f444:	81 29 00 20 	lwz     r9,32(r9)                              
         group = bdbuf_cache.groups,                                  
         bd = bdbuf_cache.bds;                                        
       b < bdbuf_cache.group_count;                                   
       b++,                                                           
         group++,                                                     
         bd += bdbuf_cache.max_bds_per_group)                         
ffc0f448:	38 c6 00 01 	addi    r6,r6,1                                
ffc0f44c:	1c e9 00 38 	mulli   r7,r9,56                               
ffc0f450:	7c c9 03 a6 	mtctr   r6                                     
ffc0f454:	48 00 00 14 	b       ffc0f468 <rtems_bdbuf_init+0x2c8>      
  {                                                                   
    group->bds_per_group = bdbuf_cache.max_bds_per_group;             
    group->bdbuf = bd;                                                
ffc0f458:	91 0a 00 10 	stw     r8,16(r10)                             
         group = bdbuf_cache.groups,                                  
         bd = bdbuf_cache.bds;                                        
       b < bdbuf_cache.group_count;                                   
       b++,                                                           
         group++,                                                     
         bd += bdbuf_cache.max_bds_per_group)                         
ffc0f45c:	7d 08 3a 14 	add     r8,r8,r7                               
  {                                                                   
    group->bds_per_group = bdbuf_cache.max_bds_per_group;             
ffc0f460:	91 2a 00 08 	stw     r9,8(r10)                              
  for (b = 0,                                                         
         group = bdbuf_cache.groups,                                  
         bd = bdbuf_cache.bds;                                        
       b < bdbuf_cache.group_count;                                   
       b++,                                                           
         group++,                                                     
ffc0f464:	39 4a 00 14 	addi    r10,r10,20                             
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
        (bdbuf_cache.max_bds_per_group - 1))                          
      group++;                                                        
  }                                                                   
                                                                      
  for (b = 0,                                                         
ffc0f468:	42 00 ff f0 	bdnz+   ffc0f458 <rtems_bdbuf_init+0x2b8>      
   * 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'), 
ffc0f46c:	3f 80 ff c2 	lis     r28,-62                                
                                                                      
  /*                                                                  
   * Create and start swapout task. This task will create and manage the worker
   * threads.                                                         
   */                                                                 
  bdbuf_cache.swapout_enabled = true;                                 
ffc0f470:	3f e0 00 00 	lis     r31,0                                  
                                                                      
  sc = rtems_bdbuf_create_task (rtems_build_name('B', 'S', 'W', 'P'), 
ffc0f474:	3b dc 95 fc 	addi    r30,r28,-27140                         
                                                                      
  /*                                                                  
   * Create and start swapout task. This task will create and manage the worker
   * threads.                                                         
   */                                                                 
  bdbuf_cache.swapout_enabled = true;                                 
ffc0f478:	3b ff 29 68 	addi    r31,r31,10600                          
                                                                      
  sc = rtems_bdbuf_create_task (rtems_build_name('B', 'S', 'W', 'P'), 
ffc0f47c:	80 9e 00 08 	lwz     r4,8(r30)                              
ffc0f480:	3c 60 42 53 	lis     r3,16979                               
ffc0f484:	3c a0 ff c1 	lis     r5,-63                                 
                                                                      
  /*                                                                  
   * Create and start swapout task. This task will create and manage the worker
   * threads.                                                         
   */                                                                 
  bdbuf_cache.swapout_enabled = true;                                 
ffc0f488:	3b a0 00 01 	li      r29,1                                  
                                                                      
  sc = rtems_bdbuf_create_task (rtems_build_name('B', 'S', 'W', 'P'), 
ffc0f48c:	60 63 57 50 	ori     r3,r3,22352                            
                                                                      
  /*                                                                  
   * Create and start swapout task. This task will create and manage the worker
   * threads.                                                         
   */                                                                 
  bdbuf_cache.swapout_enabled = true;                                 
ffc0f490:	9b bf 00 04 	stb     r29,4(r31)                             
                                                                      
  sc = rtems_bdbuf_create_task (rtems_build_name('B', 'S', 'W', 'P'), 
ffc0f494:	38 a5 eb 1c 	addi    r5,r5,-5348                            
ffc0f498:	38 c0 00 00 	li      r6,0                                   
ffc0f49c:	7f e7 fb 78 	mr      r7,r31                                 
ffc0f4a0:	4b ff e6 29 	bl      ffc0dac8 <rtems_bdbuf_create_task.constprop.14>
                                bdbuf_config.swapout_priority,        
                                RTEMS_BDBUF_SWAPOUT_TASK_PRIORITY_DEFAULT,
                                rtems_bdbuf_swapout_task,             
                                0,                                    
                                &bdbuf_cache.swapout);                
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0f4a4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f4a8:	40 be 00 48 	bne+    cr7,ffc0f4f0 <rtems_bdbuf_init+0x350>  <== NEVER TAKEN
    goto error;                                                       
                                                                      
  if (bdbuf_config.max_read_ahead_blocks > 0)                         
ffc0f4ac:	81 3c 95 fc 	lwz     r9,-27140(r28)                         
ffc0f4b0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f4b4:	40 be 00 10 	bne+    cr7,ffc0f4c4 <rtems_bdbuf_init+0x324>  
                                  &bdbuf_cache.read_ahead_task);      
    if (sc != RTEMS_SUCCESSFUL)                                       
      goto error;                                                     
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc0f4b8:	4b ff e3 1d 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0f4bc:	38 60 00 00 	li      r3,0                                   
ffc0f4c0:	48 00 00 c4 	b       ffc0f584 <rtems_bdbuf_init+0x3e4>      
    goto error;                                                       
                                                                      
  if (bdbuf_config.max_read_ahead_blocks > 0)                         
  {                                                                   
    bdbuf_cache.read_ahead_enabled = true;                            
    sc = rtems_bdbuf_create_task (rtems_build_name('B', 'R', 'D', 'A'),
ffc0f4c4:	3c 60 42 52 	lis     r3,16978                               
ffc0f4c8:	80 9e 00 2c 	lwz     r4,44(r30)                             
ffc0f4cc:	3c a0 ff c1 	lis     r5,-63                                 
  if (sc != RTEMS_SUCCESSFUL)                                         
    goto error;                                                       
                                                                      
  if (bdbuf_config.max_read_ahead_blocks > 0)                         
  {                                                                   
    bdbuf_cache.read_ahead_enabled = true;                            
ffc0f4d0:	9b bf 00 94 	stb     r29,148(r31)                           
    sc = rtems_bdbuf_create_task (rtems_build_name('B', 'R', 'D', 'A'),
ffc0f4d4:	60 63 44 41 	ori     r3,r3,17473                            
ffc0f4d8:	38 a5 ef a4 	addi    r5,r5,-4188                            
ffc0f4dc:	38 c0 00 00 	li      r6,0                                   
ffc0f4e0:	38 ff 00 84 	addi    r7,r31,132                             
ffc0f4e4:	4b ff e5 e5 	bl      ffc0dac8 <rtems_bdbuf_create_task.constprop.14>
                                  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)                                       
ffc0f4e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f4ec:	41 be ff cc 	beq-    cr7,ffc0f4b8 <rtems_bdbuf_init+0x318>  <== ALWAYS TAKEN
                                                                      
  return RTEMS_SUCCESSFUL;                                            
                                                                      
error:                                                                
                                                                      
  if (bdbuf_cache.read_ahead_task != 0)                               
ffc0f4f0:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
ffc0f4f4:	39 49 29 68 	addi    r10,r9,10600                           <== NOT EXECUTED
ffc0f4f8:	80 6a 00 84 	lwz     r3,132(r10)                            <== NOT EXECUTED
ffc0f4fc:	7d 3f 4b 78 	mr      r31,r9                                 <== NOT EXECUTED
ffc0f500:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc0f504:	41 be 00 08 	beq+    cr7,ffc0f50c <rtems_bdbuf_init+0x36c>  <== NOT EXECUTED
    rtems_task_delete (bdbuf_cache.read_ahead_task);                  
ffc0f508:	4b ff a8 15 	bl      ffc09d1c <rtems_task_delete>           <== NOT EXECUTED
                                                                      
  if (bdbuf_cache.swapout != 0)                                       
ffc0f50c:	80 7f 29 68 	lwz     r3,10600(r31)                          <== NOT EXECUTED
ffc0f510:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc0f514:	41 be 00 08 	beq+    cr7,ffc0f51c <rtems_bdbuf_init+0x37c>  <== NOT EXECUTED
    rtems_task_delete (bdbuf_cache.swapout);                          
ffc0f518:	4b ff a8 05 	bl      ffc09d1c <rtems_task_delete>           <== NOT EXECUTED
                                                                      
  free (bdbuf_cache.buffers);                                         
ffc0f51c:	3f c0 00 00 	lis     r30,0                                  <== NOT EXECUTED
ffc0f520:	3b fe 29 68 	addi    r31,r30,10600                          <== NOT EXECUTED
ffc0f524:	80 7f 00 18 	lwz     r3,24(r31)                             <== NOT EXECUTED
ffc0f528:	4b ff 5e 71 	bl      ffc05398 <free>                        <== NOT EXECUTED
  free (bdbuf_cache.groups);                                          
ffc0f52c:	80 7f 00 80 	lwz     r3,128(r31)                            <== NOT EXECUTED
ffc0f530:	4b ff 5e 69 	bl      ffc05398 <free>                        <== NOT EXECUTED
  free (bdbuf_cache.bds);                                             
ffc0f534:	80 7f 00 14 	lwz     r3,20(r31)                             <== NOT EXECUTED
ffc0f538:	4b ff 5e 61 	bl      ffc05398 <free>                        <== NOT EXECUTED
                                                                      
  rtems_semaphore_delete (bdbuf_cache.buffer_waiters.sema);           
ffc0f53c:	80 7f 00 78 	lwz     r3,120(r31)                            <== NOT EXECUTED
ffc0f540:	4b ff a3 a9 	bl      ffc098e8 <rtems_semaphore_delete>      <== NOT EXECUTED
  rtems_semaphore_delete (bdbuf_cache.access_waiters.sema);           
ffc0f544:	80 7f 00 68 	lwz     r3,104(r31)                            <== NOT EXECUTED
ffc0f548:	4b ff a3 a1 	bl      ffc098e8 <rtems_semaphore_delete>      <== NOT EXECUTED
  rtems_semaphore_delete (bdbuf_cache.transfer_waiters.sema);         
ffc0f54c:	80 7f 00 70 	lwz     r3,112(r31)                            <== NOT EXECUTED
ffc0f550:	4b ff a3 99 	bl      ffc098e8 <rtems_semaphore_delete>      <== NOT EXECUTED
  rtems_semaphore_delete (bdbuf_cache.sync_lock);                     
ffc0f554:	80 7f 00 2c 	lwz     r3,44(r31)                             <== NOT EXECUTED
ffc0f558:	4b ff a3 91 	bl      ffc098e8 <rtems_semaphore_delete>      <== NOT EXECUTED
                                                                      
  if (bdbuf_cache.lock != 0)                                          
ffc0f55c:	81 3f 00 28 	lwz     r9,40(r31)                             <== NOT EXECUTED
ffc0f560:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc0f564:	41 be 00 10 	beq+    cr7,ffc0f574 <rtems_bdbuf_init+0x3d4>  <== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_unlock_cache ();                                      
ffc0f568:	4b ff e2 6d 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    <== NOT EXECUTED
    rtems_semaphore_delete (bdbuf_cache.lock);                        
ffc0f56c:	80 7f 00 28 	lwz     r3,40(r31)                             <== NOT EXECUTED
ffc0f570:	4b ff a3 79 	bl      ffc098e8 <rtems_semaphore_delete>      <== NOT EXECUTED
  }                                                                   
                                                                      
  bdbuf_cache.initialised = false;                                    
ffc0f574:	3b de 29 68 	addi    r30,r30,10600                          <== NOT EXECUTED
ffc0f578:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc0f57c:	99 3e 00 95 	stb     r9,149(r30)                            <== NOT EXECUTED
                                                                      
  return RTEMS_UNSATISFIED;                                           
ffc0f580:	38 60 00 0d 	li      r3,13                                  <== NOT EXECUTED
}                                                                     
ffc0f584:	39 61 00 20 	addi    r11,r1,32                              
ffc0f588:	48 00 94 40 	b       ffc189c8 <_restgpr_26_x>               
                                                                      

ffc0d73c <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) {
ffc0d73c:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0d740:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0d744:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = rtems_semaphore_obtain (lock,                
ffc0d748:	38 a0 00 00 	li      r5,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)           
{                                                                     
ffc0d74c:	48 00 b2 45 	bl      ffc18990 <_savegpr_31>                 
ffc0d750:	7c 9f 23 78 	mr      r31,r4                                 
  rtems_status_code sc = rtems_semaphore_obtain (lock,                
ffc0d754:	38 80 00 00 	li      r4,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)           
{                                                                     
ffc0d758:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_status_code sc = rtems_semaphore_obtain (lock,                
ffc0d75c:	4b ff c2 49 	bl      ffc099a4 <rtems_semaphore_obtain>      
                                                 RTEMS_WAIT,          
                                                 RTEMS_NO_TIMEOUT);   
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0d760:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0d764:	41 be 00 0c 	beq+    cr7,ffc0d770 <rtems_bdbuf_lock+0x34>   <== ALWAYS TAKEN
    rtems_bdbuf_fatal (fatal_error_code);                             
ffc0d768:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0d76c:	4b ff ff b9 	bl      ffc0d724 <rtems_bdbuf_fatal>           <== NOT EXECUTED
}                                                                     
ffc0d770:	39 61 00 10 	addi    r11,r1,16                              
ffc0d774:	48 00 b2 68 	b       ffc189dc <_restgpr_31_x>               
                                                                      

ffc0fb40 <rtems_bdbuf_purge_dev>: } } void rtems_bdbuf_purge_dev (rtems_disk_device *dd) {
ffc0fb40:	94 21 ff 48 	stwu    r1,-184(r1)                            
ffc0fb44:	7c 08 02 a6 	mflr    r0                                     
ffc0fb48:	bf 01 00 98 	stmw    r24,152(r1)                            
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc0fb4c:	39 21 00 88 	addi    r9,r1,136                              
ffc0fb50:	7c 7d 1b 78 	mr      r29,r3                                 
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc0fb54:	3b 80 00 00 	li      r28,0                                  
  tail->previous = head;                                              
ffc0fb58:	91 21 00 90 	stw     r9,144(r1)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc0fb5c:	3b 61 00 8c 	addi    r27,r1,140                             
ffc0fb60:	90 01 00 bc 	stw     r0,188(r1)                             
{                                                                     
  rtems_bdbuf_buffer *stack [RTEMS_BDBUF_AVL_MAX_HEIGHT];             
  rtems_bdbuf_buffer **prev = stack;                                  
  rtems_bdbuf_buffer *cur = bdbuf_cache.tree;                         
                                                                      
  *prev = NULL;                                                       
ffc0fb64:	7c 3e 0b 78 	mr      r30,r1                                 
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0fb68:	3b 40 00 06 	li      r26,6                                  
  head->previous = NULL;                                              
ffc0fb6c:	93 81 00 8c 	stw     r28,140(r1)                            
ffc0fb70:	3b 20 00 0a 	li      r25,10                                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc0fb74:	93 61 00 88 	stw     r27,136(r1)                            
rtems_bdbuf_purge_dev (rtems_disk_device *dd)                         
{                                                                     
  rtems_chain_control purge_list;                                     
                                                                      
  rtems_chain_initialize_empty (&purge_list);                         
  rtems_bdbuf_lock_cache ();                                          
ffc0fb78:	4b ff dc 01 	bl      ffc0d778 <rtems_bdbuf_lock_cache>      
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_read_ahead_reset (rtems_disk_device *dd)                  
{                                                                     
  rtems_bdbuf_read_ahead_cancel (dd);                                 
ffc0fb7c:	7f a3 eb 78 	mr      r3,r29                                 
ffc0fb80:	4b ff f5 65 	bl      ffc0f0e4 <rtems_bdbuf_read_ahead_cancel>
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;                         
ffc0fb84:	3c 60 00 00 	lis     r3,0                                   
ffc0fb88:	38 63 29 68 	addi    r3,r3,10600                            
                                                                      
  *prev = NULL;                                                       
ffc0fb8c:	97 9e 00 08 	stwu    r28,8(r30)                             
                                                                      
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;          
ffc0fb90:	39 20 ff ff 	li      r9,-1                                  
                                                                      
  while (cur != NULL)                                                 
  {                                                                   
    if (cur->dd == dd)                                                
    {                                                                 
      switch (cur->state)                                             
ffc0fb94:	3f 80 ff c2 	lis     r28,-62                                
                                                                      
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;          
ffc0fb98:	91 3d 00 6c 	stw     r9,108(r29)                            
                                                                      
  while (cur != NULL)                                                 
  {                                                                   
    if (cur->dd == dd)                                                
    {                                                                 
      switch (cur->state)                                             
ffc0fb9c:	3b 9c a4 b4 	addi    r28,r28,-23372                         
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;                         
ffc0fba0:	83 e3 00 3c 	lwz     r31,60(r3)                             
        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);           
ffc0fba4:	3b 03 00 6c 	addi    r24,r3,108                             
ffc0fba8:	48 00 00 e0 	b       ffc0fc88 <rtems_bdbuf_purge_dev+0x148> 
                                                                      
  *prev = NULL;                                                       
                                                                      
  while (cur != NULL)                                                 
  {                                                                   
    if (cur->dd == dd)                                                
ffc0fbac:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0fbb0:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc0fbb4:	40 be 00 7c 	bne+    cr7,ffc0fc30 <rtems_bdbuf_purge_dev+0xf0>
    {                                                                 
      switch (cur->state)                                             
ffc0fbb8:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc0fbbc:	2b 89 00 0a 	cmplwi  cr7,r9,10                              
ffc0fbc0:	41 9d 00 68 	bgt-    cr7,ffc0fc28 <rtems_bdbuf_purge_dev+0xe8><== NEVER TAKEN
ffc0fbc4:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0fbc8:	7d 3c 48 2e 	lwzx    r9,r28,r9                              
ffc0fbcc:	7d 29 e2 14 	add     r9,r9,r28                              
ffc0fbd0:	7d 29 03 a6 	mtctr   r9                                     
ffc0fbd4:	4e 80 04 20 	bctr                                           
        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);           
ffc0fbd8:	7f 03 c3 78 	mr      r3,r24                                 
ffc0fbdc:	4b ff de ad 	bl      ffc0da88 <rtems_bdbuf_wake>            
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 ();                                        
}                                                                     
ffc0fbe0:	81 3f 00 28 	lwz     r9,40(r31)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)                    
{                                                                     
  --bd->group->users;                                                 
ffc0fbe4:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0fbe8:	39 4a ff ff 	addi    r10,r10,-1                             
ffc0fbec:	91 49 00 0c 	stw     r10,12(r9)                             
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc0fbf0:	81 3f 00 00 	lwz     r9,0(r31)                              
  previous       = the_node->previous;                                
ffc0fbf4:	81 5f 00 04 	lwz     r10,4(r31)                             
  next->previous = previous;                                          
ffc0fbf8:	91 49 00 04 	stw     r10,4(r9)                              
  previous->next = next;                                              
ffc0fbfc:	91 2a 00 00 	stw     r9,0(r10)                              
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc0fc00:	81 21 00 90 	lwz     r9,144(r1)                             
                                                                      
  the_node->next = tail;                                              
ffc0fc04:	93 7f 00 00 	stw     r27,0(r31)                             
  tail->previous = the_node;                                          
ffc0fc08:	93 e1 00 90 	stw     r31,144(r1)                            
  old_last->next = the_node;                                          
ffc0fc0c:	93 e9 00 00 	stw     r31,0(r9)                              
  the_node->previous = old_last;                                      
ffc0fc10:	91 3f 00 04 	stw     r9,4(r31)                              
ffc0fc14:	48 00 00 1c 	b       ffc0fc30 <rtems_bdbuf_purge_dev+0xf0>  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0fc18:	93 3f 00 20 	stw     r25,32(r31)                            
ffc0fc1c:	48 00 00 14 	b       ffc0fc30 <rtems_bdbuf_purge_dev+0xf0>  
ffc0fc20:	93 5f 00 20 	stw     r26,32(r31)                            
ffc0fc24:	48 00 00 0c 	b       ffc0fc30 <rtems_bdbuf_purge_dev+0xf0>  
        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);             
ffc0fc28:	38 60 00 17 	li      r3,23                                  <== NOT EXECUTED
ffc0fc2c:	4b ff da f9 	bl      ffc0d724 <rtems_bdbuf_fatal>           <== NOT EXECUTED
      }                                                               
    }                                                                 
                                                                      
    if (cur->avl.left != NULL)                                        
ffc0fc30:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0fc34:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0fc38:	41 9e 00 08 	beq-    cr7,ffc0fc40 <rtems_bdbuf_purge_dev+0x100>
ffc0fc3c:	48 00 00 10 	b       ffc0fc4c <rtems_bdbuf_purge_dev+0x10c> 
      /* Left */                                                      
      ++prev;                                                         
      *prev = cur;                                                    
      cur = cur->avl.left;                                            
    }                                                                 
    else if (cur->avl.right != NULL)                                  
ffc0fc40:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc0fc44:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0fc48:	41 9e 00 18 	beq-    cr7,ffc0fc60 <rtems_bdbuf_purge_dev+0x120>
    {                                                                 
      /* Right */                                                     
      ++prev;                                                         
      *prev = cur;                                                    
ffc0fc4c:	93 fe 00 04 	stw     r31,4(r30)                             
      cur = cur->avl.left;                                            
    }                                                                 
    else if (cur->avl.right != NULL)                                  
    {                                                                 
      /* Right */                                                     
      ++prev;                                                         
ffc0fc50:	3b de 00 04 	addi    r30,r30,4                              
ffc0fc54:	48 00 00 30 	b       ffc0fc84 <rtems_bdbuf_purge_dev+0x144> 
      while (*prev != NULL                                            
             && (cur == (*prev)->avl.right || (*prev)->avl.right == NULL))
      {                                                               
        /* Up */                                                      
        cur = *prev;                                                  
        --prev;                                                       
ffc0fc58:	3b de ff fc 	addi    r30,r30,-4                             
ffc0fc5c:	7d 3f 4b 78 	mr      r31,r9                                 
      *prev = cur;                                                    
      cur = cur->avl.right;                                           
    }                                                                 
    else                                                              
    {                                                                 
      while (*prev != NULL                                            
ffc0fc60:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc0fc64:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0fc68:	41 9e 00 1c 	beq-    cr7,ffc0fc84 <rtems_bdbuf_purge_dev+0x144>
             && (cur == (*prev)->avl.right || (*prev)->avl.right == NULL))
ffc0fc6c:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0fc70:	7f 9f 50 00 	cmpw    cr7,r31,r10                            
ffc0fc74:	41 be ff e4 	beq-    cr7,ffc0fc58 <rtems_bdbuf_purge_dev+0x118>
ffc0fc78:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0fc7c:	41 9e ff dc 	beq+    cr7,ffc0fc58 <rtems_bdbuf_purge_dev+0x118>
        cur = *prev;                                                  
        --prev;                                                       
      }                                                               
      if (*prev != NULL)                                              
        /* Right */                                                   
        cur = (*prev)->avl.right;                                     
ffc0fc80:	7d 49 53 78 	mr      r9,r10                                 
ffc0fc84:	7d 3f 4b 78 	mr      r31,r9                                 
  rtems_bdbuf_buffer **prev = stack;                                  
  rtems_bdbuf_buffer *cur = bdbuf_cache.tree;                         
                                                                      
  *prev = NULL;                                                       
                                                                      
  while (cur != NULL)                                                 
ffc0fc88:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0fc8c:	40 9e ff 20 	bne+    cr7,ffc0fbac <rtems_bdbuf_purge_dev+0x6c>
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_purge_list (rtems_chain_control *purge_list)              
{                                                                     
  bool wake_buffer_waiters = false;                                   
ffc0fc90:	3b c0 00 00 	li      r30,0                                  
  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;                                     
ffc0fc94:	3b a0 00 01 	li      r29,1                                  
ffc0fc98:	48 00 00 2c 	b       ffc0fcc4 <rtems_bdbuf_purge_dev+0x184> 
                                                                      
  while ((node = rtems_chain_get_unprotected (purge_list)) != NULL)   
  {                                                                   
    rtems_bdbuf_buffer *bd = (rtems_bdbuf_buffer *) node;             
                                                                      
    if (bd->waiters == 0)                                             
ffc0fc9c:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc0fca0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0fca4:	40 9e 00 08 	bne-    cr7,ffc0fcac <rtems_bdbuf_purge_dev+0x16c>
      wake_buffer_waiters = true;                                     
ffc0fca8:	3b c0 00 01 	li      r30,1                                  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0fcac:	93 bf 00 20 	stw     r29,32(r31)                            
static void                                                           
rtems_bdbuf_discard_buffer (rtems_bdbuf_buffer *bd)                   
{                                                                     
  rtems_bdbuf_make_empty (bd);                                        
                                                                      
  if (bd->waiters == 0)                                               
ffc0fcb0:	40 be 00 14 	bne+    cr7,ffc0fcc4 <rtems_bdbuf_purge_dev+0x184>
  {                                                                   
    rtems_bdbuf_remove_from_tree (bd);                                
ffc0fcb4:	7f e3 fb 78 	mr      r3,r31                                 
ffc0fcb8:	4b ff de 8d 	bl      ffc0db44 <rtems_bdbuf_remove_from_tree>
    rtems_bdbuf_make_free_and_add_to_lru_list (bd);                   
ffc0fcbc:	7f e3 fb 78 	mr      r3,r31                                 
ffc0fcc0:	4b ff e2 3d 	bl      ffc0defc <rtems_bdbuf_make_free_and_add_to_lru_list>
ffc0fcc4:	38 61 00 88 	addi    r3,r1,136                              
ffc0fcc8:	4b ff da 31 	bl      ffc0d6f8 <_Chain_Get_unprotected>      
rtems_bdbuf_purge_list (rtems_chain_control *purge_list)              
{                                                                     
  bool wake_buffer_waiters = false;                                   
  rtems_chain_node *node = NULL;                                      
                                                                      
  while ((node = rtems_chain_get_unprotected (purge_list)) != NULL)   
ffc0fccc:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0fcd0:	40 82 ff cc 	bne+    ffc0fc9c <rtems_bdbuf_purge_dev+0x15c> 
      wake_buffer_waiters = true;                                     
                                                                      
    rtems_bdbuf_discard_buffer (bd);                                  
  }                                                                   
                                                                      
  if (wake_buffer_waiters)                                            
ffc0fcd4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0fcd8:	41 be 00 14 	beq+    cr7,ffc0fcec <rtems_bdbuf_purge_dev+0x1ac>
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
ffc0fcdc:	3c 60 00 00 	lis     r3,0                                   
ffc0fce0:	38 63 29 68 	addi    r3,r3,10600                            
ffc0fce4:	38 63 00 74 	addi    r3,r3,116                              
ffc0fce8:	4b ff dd a1 	bl      ffc0da88 <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 ();                                        
ffc0fcec:	4b ff da e9 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    
}                                                                     
ffc0fcf0:	39 61 00 b8 	addi    r11,r1,184                             
ffc0fcf4:	48 00 8c cc 	b       ffc189c0 <_restgpr_24_x>               
                                                                      

ffc0f664 <rtems_bdbuf_read>: rtems_status_code rtems_bdbuf_read (rtems_disk_device *dd, rtems_blkdev_bnum block, rtems_bdbuf_buffer **bd_ptr) {
ffc0f664:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0f668:	7c 08 02 a6 	mflr    r0                                     
ffc0f66c:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc0f670:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0f674:	7c 9d 23 78 	mr      r29,r4                                 
ffc0f678:	90 01 00 24 	stw     r0,36(r1)                              
ffc0f67c:	7c bb 2b 78 	mr      r27,r5                                 
  rtems_status_code     sc = RTEMS_SUCCESSFUL;                        
  rtems_bdbuf_buffer   *bd = NULL;                                    
  rtems_blkdev_bnum     media_block;                                  
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc0f680:	4b ff e0 f9 	bl      ffc0d778 <rtems_bdbuf_lock_cache>      
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;                                    
ffc0f684:	3b c0 00 00 	li      r30,0                                  
                             rtems_blkdev_bnum        block,          
                             rtems_blkdev_bnum       *media_block_ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (block < dd->block_count)                                        
ffc0f688:	81 3f 00 28 	lwz     r9,40(r31)                             
     */                                                               
    *media_block_ptr = rtems_bdbuf_media_block (dd, block) + dd->start;
  }                                                                   
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_ID;                                            
ffc0f68c:	3b 80 00 04 	li      r28,4                                  
                             rtems_blkdev_bnum        block,          
                             rtems_blkdev_bnum       *media_block_ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (block < dd->block_count)                                        
ffc0f690:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc0f694:	40 bc 01 b4 	bge+    cr7,ffc0f848 <rtems_bdbuf_read+0x1e4>  <== 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)                            
ffc0f698:	80 9f 00 30 	lwz     r4,48(r31)                             
ffc0f69c:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0f6a0:	41 9c 00 0c 	blt-    cr7,ffc0f6ac <rtems_bdbuf_read+0x48>   <== NEVER TAKEN
    return block << dd->block_to_media_block_shift;                   
ffc0f6a4:	7f a4 20 30 	slw     r4,r29,r4                              
ffc0f6a8:	48 00 00 24 	b       ffc0f6cc <rtems_bdbuf_read+0x68>       
    /*                                                                
     * 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); 
ffc0f6ac:	80 7f 00 24 	lwz     r3,36(r31)                             <== NOT EXECUTED
ffc0f6b0:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc0f6b4:	80 df 00 20 	lwz     r6,32(r31)                             <== NOT EXECUTED
ffc0f6b8:	7d 5d 19 d6 	mullw   r10,r29,r3                             <== NOT EXECUTED
ffc0f6bc:	7d 3d 18 16 	mulhwu  r9,r29,r3                              <== NOT EXECUTED
ffc0f6c0:	7d 44 53 78 	mr      r4,r10                                 <== NOT EXECUTED
ffc0f6c4:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc0f6c8:	48 00 8b 05 	bl      ffc181cc <__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;
ffc0f6cc:	81 3f 00 18 	lwz     r9,24(r31)                             
  {                                                                   
    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);         
ffc0f6d0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f6d4:	7c 84 4a 14 	add     r4,r4,r9                               
ffc0f6d8:	4b ff ed 95 	bl      ffc0e46c <rtems_bdbuf_get_buffer_for_access>
ffc0f6dc:	7c 7e 1b 78 	mr      r30,r3                                 
    switch (bd->state)                                                
ffc0f6e0:	80 63 00 20 	lwz     r3,32(r3)                              
ffc0f6e4:	2f 83 00 02 	cmpwi   cr7,r3,2                               
ffc0f6e8:	41 9e 00 18 	beq-    cr7,ffc0f700 <rtems_bdbuf_read+0x9c>   
ffc0f6ec:	2f 83 00 07 	cmpwi   cr7,r3,7                               
ffc0f6f0:	41 9e 00 24 	beq-    cr7,ffc0f714 <rtems_bdbuf_read+0xb0>   
ffc0f6f4:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc0f6f8:	40 be 00 ac 	bne+    cr7,ffc0f7a4 <rtems_bdbuf_read+0x140>  <== NEVER TAKEN
ffc0f6fc:	48 00 00 34 	b       ffc0f730 <rtems_bdbuf_read+0xcc>       
    {                                                                 
      case RTEMS_BDBUF_STATE_CACHED:                                  
        ++dd->stats.read_hits;                                        
ffc0f700:	81 3f 00 44 	lwz     r9,68(r31)                             
ffc0f704:	39 29 00 01 	addi    r9,r9,1                                
ffc0f708:	91 3f 00 44 	stw     r9,68(r31)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0f70c:	39 20 00 03 	li      r9,3                                   
ffc0f710:	48 00 00 14 	b       ffc0f724 <rtems_bdbuf_read+0xc0>       
      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;                                        
ffc0f714:	81 3f 00 44 	lwz     r9,68(r31)                             
ffc0f718:	39 29 00 01 	addi    r9,r9,1                                
ffc0f71c:	91 3f 00 44 	stw     r9,68(r31)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0f720:	39 20 00 04 	li      r9,4                                   
ffc0f724:	91 3e 00 20 	stw     r9,32(r30)                             
ffc0f728:	3b 80 00 00 	li      r28,0                                  
ffc0f72c:	48 00 00 84 	b       ffc0f7b0 <rtems_bdbuf_read+0x14c>      
      case RTEMS_BDBUF_STATE_MODIFIED:                                
        ++dd->stats.read_hits;                                        
        rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_MODIFIED);
        break;                                                        
      case RTEMS_BDBUF_STATE_EMPTY:                                   
        ++dd->stats.read_misses;                                      
ffc0f730:	81 3f 00 48 	lwz     r9,72(r31)                             
ffc0f734:	39 29 00 01 	addi    r9,r9,1                                
ffc0f738:	91 3f 00 48 	stw     r9,72(r31)                             
                                                                      
static void                                                           
rtems_bdbuf_set_read_ahead_trigger (rtems_disk_device *dd,            
                                    rtems_blkdev_bnum  block)         
{                                                                     
  if (dd->read_ahead.trigger != block)                                
ffc0f73c:	81 3f 00 6c 	lwz     r9,108(r31)                            
ffc0f740:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc0f744:	41 9e 00 1c 	beq-    cr7,ffc0f760 <rtems_bdbuf_read+0xfc>   
  {                                                                   
    rtems_bdbuf_read_ahead_cancel (dd);                               
ffc0f748:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f74c:	4b ff f9 99 	bl      ffc0f0e4 <rtems_bdbuf_read_ahead_cancel>
    dd->read_ahead.trigger = block + 1;                               
ffc0f750:	39 3d 00 01 	addi    r9,r29,1                               
ffc0f754:	91 3f 00 6c 	stw     r9,108(r31)                            
    dd->read_ahead.next = block + 2;                                  
ffc0f758:	39 3d 00 02 	addi    r9,r29,2                               
ffc0f75c:	91 3f 00 70 	stw     r9,112(r31)                            
        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);            
ffc0f760:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f764:	7f c4 f3 78 	mr      r4,r30                                 
ffc0f768:	38 a0 00 01 	li      r5,1                                   
ffc0f76c:	4b ff f7 45 	bl      ffc0eeb0 <rtems_bdbuf_execute_read_request>
        if (sc == RTEMS_SUCCESSFUL)                                   
ffc0f770:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc0f774:	40 a2 00 38 	bne+    ffc0f7ac <rtems_bdbuf_read+0x148>      
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0f778:	39 20 00 03 	li      r9,3                                   
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
ffc0f77c:	81 5e 00 04 	lwz     r10,4(r30)                             
ffc0f780:	91 3e 00 20 	stw     r9,32(r30)                             
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc0f784:	81 3e 00 00 	lwz     r9,0(r30)                              
  previous       = the_node->previous;                                
  next->previous = previous;                                          
  previous->next = next;                                              
ffc0f788:	91 2a 00 00 	stw     r9,0(r10)                              
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
ffc0f78c:	91 49 00 04 	stw     r10,4(r9)                              
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 ();                                        
}                                                                     
ffc0f790:	81 3e 00 28 	lwz     r9,40(r30)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)                     
{                                                                     
  ++bd->group->users;                                                 
ffc0f794:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0f798:	39 4a 00 01 	addi    r10,r10,1                              
ffc0f79c:	91 49 00 0c 	stw     r10,12(r9)                             
ffc0f7a0:	48 00 00 10 	b       ffc0f7b0 <rtems_bdbuf_read+0x14c>      
        {                                                             
          bd = NULL;                                                  
        }                                                             
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_4);
ffc0f7a4:	38 80 00 10 	li      r4,16                                  <== NOT EXECUTED
ffc0f7a8:	4b ff df e1 	bl      ffc0d788 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
          rtems_chain_extract_unprotected (&bd->link);                
          rtems_bdbuf_group_obtain (bd);                              
        }                                                             
        else                                                          
        {                                                             
          bd = NULL;                                                  
ffc0f7ac:	3b c0 00 00 	li      r30,0                                  
                                                                      
static void                                                           
rtems_bdbuf_check_read_ahead_trigger (rtems_disk_device *dd,          
                                      rtems_blkdev_bnum  block)       
{                                                                     
  if (bdbuf_cache.read_ahead_task != 0                                
ffc0f7b0:	3d 20 00 00 	lis     r9,0                                   
ffc0f7b4:	80 69 29 ec 	lwz     r3,10732(r9)                           
ffc0f7b8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f7bc:	41 9e 00 8c 	beq-    cr7,ffc0f848 <rtems_bdbuf_read+0x1e4>  
      && dd->read_ahead.trigger == block                              
ffc0f7c0:	81 3f 00 6c 	lwz     r9,108(r31)                            
ffc0f7c4:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc0f7c8:	40 be 00 80 	bne+    cr7,ffc0f848 <rtems_bdbuf_read+0x1e4>  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
ffc0f7cc:	81 5f 00 64 	lwz     r10,100(r31)                           
ffc0f7d0:	39 20 00 00 	li      r9,0                                   
ffc0f7d4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0f7d8:	40 be 00 10 	bne+    cr7,ffc0f7e8 <rtems_bdbuf_read+0x184>  <== NEVER TAKEN
ffc0f7dc:	81 3f 00 68 	lwz     r9,104(r31)                            
ffc0f7e0:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0f7e4:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
      && !rtems_bdbuf_is_read_ahead_active (dd))                      
ffc0f7e8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f7ec:	41 9e 00 5c 	beq-    cr7,ffc0f848 <rtems_bdbuf_read+0x1e4>  <== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0f7f0:	3d 20 00 00 	lis     r9,0                                   
ffc0f7f4:	39 29 29 68 	addi    r9,r9,10600                            
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0f7f8:	39 49 00 8c 	addi    r10,r9,140                             
  {                                                                   
    rtems_status_code sc;                                             
    rtems_chain_control *chain = &bdbuf_cache.read_ahead_chain;       
                                                                      
    if (rtems_chain_is_empty (chain))                                 
ffc0f7fc:	81 29 00 88 	lwz     r9,136(r9)                             
ffc0f800:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0f804:	40 be 00 1c 	bne+    cr7,ffc0f820 <rtems_bdbuf_read+0x1bc>  <== NEVER TAKEN
    {                                                                 
      sc = rtems_event_send (bdbuf_cache.read_ahead_task,             
ffc0f808:	38 80 00 02 	li      r4,2                                   
ffc0f80c:	4b ff 9c e5 	bl      ffc094f0 <rtems_event_send>            
                             RTEMS_BDBUF_READ_AHEAD_WAKE_UP);         
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc0f810:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f814:	41 be 00 0c 	beq+    cr7,ffc0f820 <rtems_bdbuf_read+0x1bc>  <== ALWAYS TAKEN
        rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_RA_WAKE_UP);             
ffc0f818:	38 60 00 07 	li      r3,7                                   <== NOT EXECUTED
ffc0f81c:	4b ff df 09 	bl      ffc0d724 <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;                              
ffc0f820:	3d 20 00 00 	lis     r9,0                                   
ffc0f824:	39 29 29 68 	addi    r9,r9,10600                            
ffc0f828:	81 49 00 90 	lwz     r10,144(r9)                            
    }                                                                 
                                                                      
    rtems_chain_append_unprotected (chain, &dd->read_ahead.node);     
ffc0f82c:	39 1f 00 64 	addi    r8,r31,100                             
                                                                      
  the_node->next = tail;                                              
ffc0f830:	38 e9 00 8c 	addi    r7,r9,140                              
  tail->previous = the_node;                                          
ffc0f834:	91 09 00 90 	stw     r8,144(r9)                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
ffc0f838:	90 ff 00 64 	stw     r7,100(r31)                            
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
  the_node->previous = old_last;                                      
ffc0f83c:	91 5f 00 68 	stw     r10,104(r31)                           
  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;                                          
ffc0f840:	91 0a 00 00 	stw     r8,0(r10)                              
ffc0f844:	48 00 00 04 	b       ffc0f848 <rtems_bdbuf_read+0x1e4>      
    }                                                                 
                                                                      
    rtems_bdbuf_check_read_ahead_trigger (dd, block);                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc0f848:	4b ff df 8d 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    
                                                                      
  *bd_ptr = bd;                                                       
                                                                      
  return sc;                                                          
}                                                                     
ffc0f84c:	39 61 00 20 	addi    r11,r1,32                              
    rtems_bdbuf_check_read_ahead_trigger (dd, block);                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  *bd_ptr = bd;                                                       
ffc0f850:	93 db 00 00 	stw     r30,0(r27)                             
                                                                      
  return sc;                                                          
}                                                                     
ffc0f854:	7f 83 e3 78 	mr      r3,r28                                 
ffc0f858:	48 00 91 74 	b       ffc189cc <_restgpr_27_x>               
                                                                      

ffc0f0e4 <rtems_bdbuf_read_ahead_cancel>: */ RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain( const Chain_Node *node ) { return (node->next == NULL) && (node->previous == NULL);
ffc0f0e4:	81 43 00 64 	lwz     r10,100(r3)                            
ffc0f0e8:	39 20 00 00 	li      r9,0                                   
ffc0f0ec:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0f0f0:	40 be 00 10 	bne+    cr7,ffc0f100 <rtems_bdbuf_read_ahead_cancel+0x1c><== NEVER TAKEN
ffc0f0f4:	81 23 00 68 	lwz     r9,104(r3)                             
ffc0f0f8:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0f0fc:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_read_ahead_cancel (rtems_disk_device *dd)                 
{                                                                     
  if (rtems_bdbuf_is_read_ahead_active (dd))                          
ffc0f100:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f104:	7d 28 4b 78 	mr      r8,r9                                  
ffc0f108:	4c be 00 20 	bnelr+  cr7                                    
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
ffc0f10c:	81 23 00 68 	lwz     r9,104(r3)                             <== NOT EXECUTED
  next->previous = previous;                                          
ffc0f110:	91 2a 00 04 	stw     r9,4(r10)                              <== NOT EXECUTED
  previous->next = next;                                              
ffc0f114:	91 49 00 00 	stw     r10,0(r9)                              <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc0f118:	91 03 00 68 	stw     r8,104(r3)                             <== NOT EXECUTED
ffc0f11c:	91 03 00 64 	stw     r8,100(r3)                             <== NOT EXECUTED
ffc0f120:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc0efa4 <rtems_bdbuf_read_ahead_task>: return sc; } static rtems_task rtems_bdbuf_read_ahead_task (rtems_task_argument arg) {
ffc0efa4:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0efa8:	7c 08 02 a6 	mflr    r0                                     
ffc0efac:	bf 01 00 08 	stmw    r24,8(r1)                              
  rtems_chain_control *chain = &bdbuf_cache.read_ahead_chain;         
                                                                      
  while (bdbuf_cache.read_ahead_enabled)                              
ffc0efb0:	3f a0 00 00 	lis     r29,0                                  
ffc0efb4:	3b bd 29 68 	addi    r29,r29,10600                          
  return sc;                                                          
}                                                                     
                                                                      
static rtems_task                                                     
rtems_bdbuf_read_ahead_task (rtems_task_argument arg)                 
{                                                                     
ffc0efb8:	90 01 00 2c 	stw     r0,44(r1)                              
  rtems_chain_control *chain = &bdbuf_cache.read_ahead_chain;         
ffc0efbc:	3b 3d 00 88 	addi    r25,r29,136                            
    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;                              
ffc0efc0:	3b 80 00 00 	li      r28,0                                  
          rtems_bdbuf_execute_read_request (dd, bd, transfer_count);  
        }                                                             
      }                                                               
      else                                                            
      {                                                               
        dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;    
ffc0efc4:	3b 60 ff ff 	li      r27,-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;
ffc0efc8:	3f 00 ff c2 	lis     r24,-62                                
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)                              
ffc0efcc:	48 00 00 f4 	b       ffc0f0c0 <rtems_bdbuf_read_ahead_task+0x11c>
  {                                                                   
    rtems_chain_node *node;                                           
                                                                      
    rtems_bdbuf_wait_for_event (RTEMS_BDBUF_READ_AHEAD_WAKE_UP);      
ffc0efd0:	38 60 00 02 	li      r3,2                                   
ffc0efd4:	4b ff e9 b1 	bl      ffc0d984 <rtems_bdbuf_wait_for_event>  
    rtems_bdbuf_lock_cache ();                                        
ffc0efd8:	4b ff e7 a1 	bl      ffc0d778 <rtems_bdbuf_lock_cache>      
                                                                      
    while ((node = rtems_chain_get_unprotected (chain)) != NULL)      
ffc0efdc:	48 00 00 d0 	b       ffc0f0ac <rtems_bdbuf_read_ahead_task+0x108>
    {                                                                 
      rtems_disk_device *dd = (rtems_disk_device *)                   
        ((char *) node - offsetof (rtems_disk_device, read_ahead.node));
      rtems_blkdev_bnum block = dd->read_ahead.next;                  
ffc0efe0:	83 df 00 0c 	lwz     r30,12(r31)                            
      rtems_blkdev_bnum media_block = 0;                              
ffc0efe4:	38 80 00 00 	li      r4,0                                   
                             rtems_blkdev_bnum        block,          
                             rtems_blkdev_bnum       *media_block_ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (block < dd->block_count)                                        
ffc0efe8:	81 5f ff c4 	lwz     r10,-60(r31)                           
     */                                                               
    *media_block_ptr = rtems_bdbuf_media_block (dd, block) + dd->start;
  }                                                                   
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_ID;                                            
ffc0efec:	39 20 00 04 	li      r9,4                                   
                             rtems_blkdev_bnum        block,          
                             rtems_blkdev_bnum       *media_block_ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (block < dd->block_count)                                        
ffc0eff0:	7f 9e 50 40 	cmplw   cr7,r30,r10                            
ffc0eff4:	40 bc 00 44 	bge+    cr7,ffc0f038 <rtems_bdbuf_read_ahead_task+0x94>
}                                                                     
                                                                      
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)                            
ffc0eff8:	80 9f ff cc 	lwz     r4,-52(r31)                            
ffc0effc:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0f000:	41 9c 00 0c 	blt-    cr7,ffc0f00c <rtems_bdbuf_read_ahead_task+0x68><== NEVER TAKEN
    return block << dd->block_to_media_block_shift;                   
ffc0f004:	7f c4 20 30 	slw     r4,r30,r4                              
ffc0f008:	48 00 00 24 	b       ffc0f02c <rtems_bdbuf_read_ahead_task+0x88>
    /*                                                                
     * 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); 
ffc0f00c:	80 7f ff c0 	lwz     r3,-64(r31)                            <== NOT EXECUTED
ffc0f010:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc0f014:	80 df ff bc 	lwz     r6,-68(r31)                            <== NOT EXECUTED
ffc0f018:	7d 43 f1 d6 	mullw   r10,r3,r30                             <== NOT EXECUTED
ffc0f01c:	7d 23 f0 16 	mulhwu  r9,r3,r30                              <== NOT EXECUTED
ffc0f020:	7d 44 53 78 	mr      r4,r10                                 <== NOT EXECUTED
ffc0f024:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc0f028:	48 00 91 a5 	bl      ffc181cc <__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;
ffc0f02c:	81 3f ff b4 	lwz     r9,-76(r31)                            
ffc0f030:	7c 84 4a 14 	add     r4,r4,r9                               
ffc0f034:	39 20 00 00 	li      r9,0                                   
      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)                                     
ffc0f038:	2f 89 00 00 	cmpwi   cr7,r9,0                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc0f03c:	93 9f 00 04 	stw     r28,4(r31)                             
ffc0f040:	93 9f 00 00 	stw     r28,0(r31)                             
ffc0f044:	40 be 00 64 	bne+    cr7,ffc0f0a8 <rtems_bdbuf_read_ahead_task+0x104>
    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 *)                   
ffc0f048:	3b 5f ff 9c 	addi    r26,r31,-100                           
                                                                      
      rtems_chain_set_off_chain (&dd->read_ahead.node);               
                                                                      
      if (sc == RTEMS_SUCCESSFUL)                                     
      {                                                               
        rtems_bdbuf_buffer *bd =                                      
ffc0f04c:	7f 43 d3 78 	mr      r3,r26                                 
ffc0f050:	4b ff f3 b5 	bl      ffc0e404 <rtems_bdbuf_get_buffer_for_read_ahead>
          rtems_bdbuf_get_buffer_for_read_ahead (dd, media_block);    
                                                                      
        if (bd != NULL)                                               
ffc0f054:	7c 64 1b 79 	mr.     r4,r3                                  
ffc0f058:	41 82 00 54 	beq-    ffc0f0ac <rtems_bdbuf_read_ahead_task+0x108><== NEVER TAKEN
        {                                                             
          uint32_t transfer_count = dd->block_count - block;          
ffc0f05c:	80 bf ff c4 	lwz     r5,-60(r31)                            
          uint32_t max_transfer_count = bdbuf_config.max_read_ahead_blocks;
ffc0f060:	81 38 95 fc 	lwz     r9,-27140(r24)                         
        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;          
ffc0f064:	7c be 28 50 	subf    r5,r30,r5                              
          uint32_t max_transfer_count = bdbuf_config.max_read_ahead_blocks;
                                                                      
          if (transfer_count >= max_transfer_count)                   
ffc0f068:	7f 85 48 40 	cmplw   cr7,r5,r9                              
ffc0f06c:	41 9c 00 20 	blt-    cr7,ffc0f08c <rtems_bdbuf_read_ahead_task+0xe8>
          {                                                           
            transfer_count = max_transfer_count;                      
            dd->read_ahead.trigger = block + transfer_count / 2;      
ffc0f070:	55 2a f8 7e 	rlwinm  r10,r9,31,1,31                         
ffc0f074:	7d 4a f2 14 	add     r10,r10,r30                            
            dd->read_ahead.next = block + transfer_count;             
ffc0f078:	7f c9 f2 14 	add     r30,r9,r30                             
          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;      
ffc0f07c:	91 5f 00 08 	stw     r10,8(r31)                             
            dd->read_ahead.next = block + transfer_count;             
ffc0f080:	7d 25 4b 78 	mr      r5,r9                                  
ffc0f084:	93 df 00 0c 	stw     r30,12(r31)                            
ffc0f088:	48 00 00 08 	b       ffc0f090 <rtems_bdbuf_read_ahead_task+0xec>
          }                                                           
          else                                                        
          {                                                           
            dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;
ffc0f08c:	93 7f 00 08 	stw     r27,8(r31)                             
          }                                                           
                                                                      
          ++dd->stats.read_ahead_transfers;                           
ffc0f090:	81 3f ff e8 	lwz     r9,-24(r31)                            
          rtems_bdbuf_execute_read_request (dd, bd, transfer_count);  
ffc0f094:	7f 43 d3 78 	mr      r3,r26                                 
          else                                                        
          {                                                           
            dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;
          }                                                           
                                                                      
          ++dd->stats.read_ahead_transfers;                           
ffc0f098:	39 29 00 01 	addi    r9,r9,1                                
ffc0f09c:	91 3f ff e8 	stw     r9,-24(r31)                            
          rtems_bdbuf_execute_read_request (dd, bd, transfer_count);  
ffc0f0a0:	4b ff fe 11 	bl      ffc0eeb0 <rtems_bdbuf_execute_read_request>
ffc0f0a4:	48 00 00 08 	b       ffc0f0ac <rtems_bdbuf_read_ahead_task+0x108>
        }                                                             
      }                                                               
      else                                                            
      {                                                               
        dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;    
ffc0f0a8:	93 7f 00 08 	stw     r27,8(r31)                             
ffc0f0ac:	7f 23 cb 78 	mr      r3,r25                                 
ffc0f0b0:	4b ff e6 49 	bl      ffc0d6f8 <_Chain_Get_unprotected>      
    rtems_chain_node *node;                                           
                                                                      
    rtems_bdbuf_wait_for_event (RTEMS_BDBUF_READ_AHEAD_WAKE_UP);      
    rtems_bdbuf_lock_cache ();                                        
                                                                      
    while ((node = rtems_chain_get_unprotected (chain)) != NULL)      
ffc0f0b4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0f0b8:	40 82 ff 28 	bne+    ffc0efe0 <rtems_bdbuf_read_ahead_task+0x3c>
      {                                                               
        dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;    
      }                                                               
    }                                                                 
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
ffc0f0bc:	4b ff e7 19 	bl      ffc0d7d4 <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)                              
ffc0f0c0:	89 3d 00 94 	lbz     r9,148(r29)                            
ffc0f0c4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f0c8:	40 9e ff 08 	bne+    cr7,ffc0efd0 <rtems_bdbuf_read_ahead_task+0x2c><== ALWAYS TAKEN
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
  }                                                                   
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
}                                                                     
ffc0f0cc:	80 01 00 2c 	lwz     r0,44(r1)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
  }                                                                   
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
ffc0f0d0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
}                                                                     
ffc0f0d4:	bb 01 00 08 	lmw     r24,8(r1)                              <== NOT EXECUTED
ffc0f0d8:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0f0dc:	38 21 00 28 	addi    r1,r1,40                               <== NOT EXECUTED
    }                                                                 
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
  }                                                                   
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
ffc0f0e0:	4b ff ac 3c 	b       ffc09d1c <rtems_task_delete>           <== NOT EXECUTED
                                                                      

ffc0f85c <rtems_bdbuf_release>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_bdbuf_release (rtems_bdbuf_buffer *bd) {
ffc0f85c:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0f860:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0f864:	7c 08 02 a6 	mflr    r0                                     
ffc0f868:	48 00 91 29 	bl      ffc18990 <_savegpr_31>                 
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
ffc0f86c:	7c 7f 1b 79 	mr.     r31,r3                                 
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_bdbuf_release (rtems_bdbuf_buffer *bd)                          
{                                                                     
ffc0f870:	90 01 00 14 	stw     r0,20(r1)                              
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
ffc0f874:	41 82 00 b8 	beq-    ffc0f92c <rtems_bdbuf_release+0xd0>    <== NEVER TAKEN
  if (rtems_bdbuf_tracer)                                             
  {                                                                   
    printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);              
    rtems_bdbuf_show_users (kind, bd);                                
  }                                                                   
  rtems_bdbuf_lock_cache();                                           
ffc0f878:	4b ff df 01 	bl      ffc0d778 <rtems_bdbuf_lock_cache>      
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");           
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
ffc0f87c:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc0f880:	2f 83 00 04 	cmpwi   cr7,r3,4                               
ffc0f884:	41 9e 00 88 	beq-    cr7,ffc0f90c <rtems_bdbuf_release+0xb0>
ffc0f888:	2b 83 00 04 	cmplwi  cr7,r3,4                               
ffc0f88c:	41 9d 00 10 	bgt-    cr7,ffc0f89c <rtems_bdbuf_release+0x40>
ffc0f890:	2f 83 00 03 	cmpwi   cr7,r3,3                               
ffc0f894:	40 be 00 84 	bne+    cr7,ffc0f918 <rtems_bdbuf_release+0xbc><== NEVER TAKEN
ffc0f898:	48 00 00 10 	b       ffc0f8a8 <rtems_bdbuf_release+0x4c>    
ffc0f89c:	2b 83 00 06 	cmplwi  cr7,r3,6                               
ffc0f8a0:	41 9d 00 78 	bgt-    cr7,ffc0f918 <rtems_bdbuf_release+0xbc><== NEVER TAKEN
ffc0f8a4:	48 00 00 5c 	b       ffc0f900 <rtems_bdbuf_release+0xa4>    
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 ();                                        
}                                                                     
ffc0f8a8:	81 3f 00 28 	lwz     r9,40(r31)                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc0f8ac:	3c 60 00 00 	lis     r3,0                                   
ffc0f8b0:	38 63 29 68 	addi    r3,r3,10600                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)                    
{                                                                     
  --bd->group->users;                                                 
ffc0f8b4:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0f8b8:	39 4a ff ff 	addi    r10,r10,-1                             
ffc0f8bc:	91 49 00 0c 	stw     r10,12(r9)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0f8c0:	39 20 00 02 	li      r9,2                                   
                                                                      
  the_node->next = tail;                                              
ffc0f8c4:	39 43 00 44 	addi    r10,r3,68                              
ffc0f8c8:	91 3f 00 20 	stw     r9,32(r31)                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc0f8cc:	81 23 00 48 	lwz     r9,72(r3)                              
                                                                      
  the_node->next = tail;                                              
ffc0f8d0:	91 5f 00 00 	stw     r10,0(r31)                             
  tail->previous = the_node;                                          
ffc0f8d4:	93 e3 00 48 	stw     r31,72(r3)                             
  old_last->next = the_node;                                          
ffc0f8d8:	93 e9 00 00 	stw     r31,0(r9)                              
  the_node->previous = old_last;                                      
ffc0f8dc:	91 3f 00 04 	stw     r9,4(r31)                              
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)                                                    
ffc0f8e0:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc0f8e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f8e8:	41 be 00 0c 	beq+    cr7,ffc0f8f4 <rtems_bdbuf_release+0x98>
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
ffc0f8ec:	38 63 00 64 	addi    r3,r3,100                              
ffc0f8f0:	48 00 00 08 	b       ffc0f8f8 <rtems_bdbuf_release+0x9c>    
  else                                                                
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
ffc0f8f4:	38 63 00 74 	addi    r3,r3,116                              
ffc0f8f8:	4b ff e1 91 	bl      ffc0da88 <rtems_bdbuf_wake>            
ffc0f8fc:	48 00 00 24 	b       ffc0f920 <rtems_bdbuf_release+0xc4>    
    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);                   
ffc0f900:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f904:	4b ff f8 21 	bl      ffc0f124 <rtems_bdbuf_discard_buffer_after_access>
      break;                                                          
ffc0f908:	48 00 00 18 	b       ffc0f920 <rtems_bdbuf_release+0xc4>    
    case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                           
      rtems_bdbuf_add_to_modified_list_after_access (bd);             
ffc0f90c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f910:	4b ff e6 19 	bl      ffc0df28 <rtems_bdbuf_add_to_modified_list_after_access>
      break;                                                          
ffc0f914:	48 00 00 0c 	b       ffc0f920 <rtems_bdbuf_release+0xc4>    
    default:                                                          
      rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_0);
ffc0f918:	38 80 00 0e 	li      r4,14                                  <== NOT EXECUTED
ffc0f91c:	4b ff de 6d 	bl      ffc0d788 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
  }                                                                   
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc0f920:	4b ff de b5 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0f924:	38 60 00 00 	li      r3,0                                   
ffc0f928:	48 00 00 08 	b       ffc0f930 <rtems_bdbuf_release+0xd4>    
                                                                      
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;                                     
ffc0f92c:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0f930:	39 61 00 10 	addi    r11,r1,16                              
ffc0f934:	48 00 90 a8 	b       ffc189dc <_restgpr_31_x>               
                                                                      

ffc0f938 <rtems_bdbuf_release_modified>: rtems_status_code rtems_bdbuf_release_modified (rtems_bdbuf_buffer *bd) {
ffc0f938:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0f93c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0f940:	7c 08 02 a6 	mflr    r0                                     
ffc0f944:	48 00 90 4d 	bl      ffc18990 <_savegpr_31>                 
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
ffc0f948:	7c 7f 1b 79 	mr.     r31,r3                                 
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_bdbuf_release_modified (rtems_bdbuf_buffer *bd)                 
{                                                                     
ffc0f94c:	90 01 00 14 	stw     r0,20(r1)                              
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
ffc0f950:	41 82 00 54 	beq-    ffc0f9a4 <rtems_bdbuf_release_modified+0x6c><== NEVER TAKEN
  if (rtems_bdbuf_tracer)                                             
  {                                                                   
    printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);              
    rtems_bdbuf_show_users (kind, bd);                                
  }                                                                   
  rtems_bdbuf_lock_cache();                                           
ffc0f954:	4b ff de 25 	bl      ffc0d778 <rtems_bdbuf_lock_cache>      
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release modified");  
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
ffc0f958:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc0f95c:	2b 83 00 03 	cmplwi  cr7,r3,3                               
ffc0f960:	41 9c 00 30 	blt-    cr7,ffc0f990 <rtems_bdbuf_release_modified+0x58><== NEVER TAKEN
ffc0f964:	2b 83 00 05 	cmplwi  cr7,r3,5                               
ffc0f968:	40 9d 00 10 	ble-    cr7,ffc0f978 <rtems_bdbuf_release_modified+0x40>
ffc0f96c:	2f 83 00 06 	cmpwi   cr7,r3,6                               
ffc0f970:	40 be 00 20 	bne+    cr7,ffc0f990 <rtems_bdbuf_release_modified+0x58><== NEVER TAKEN
ffc0f974:	48 00 00 10 	b       ffc0f984 <rtems_bdbuf_release_modified+0x4c>
  {                                                                   
    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);             
ffc0f978:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f97c:	4b ff e5 ad 	bl      ffc0df28 <rtems_bdbuf_add_to_modified_list_after_access>
      break;                                                          
ffc0f980:	48 00 00 18 	b       ffc0f998 <rtems_bdbuf_release_modified+0x60>
    case RTEMS_BDBUF_STATE_ACCESS_PURGED:                             
      rtems_bdbuf_discard_buffer_after_access (bd);                   
ffc0f984:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f988:	4b ff f7 9d 	bl      ffc0f124 <rtems_bdbuf_discard_buffer_after_access>
      break;                                                          
ffc0f98c:	48 00 00 0c 	b       ffc0f998 <rtems_bdbuf_release_modified+0x60>
    default:                                                          
      rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_6);
ffc0f990:	38 80 00 12 	li      r4,18                                  <== NOT EXECUTED
ffc0f994:	4b ff dd f5 	bl      ffc0d788 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
  }                                                                   
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc0f998:	4b ff de 3d 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0f99c:	38 60 00 00 	li      r3,0                                   
ffc0f9a0:	48 00 00 08 	b       ffc0f9a8 <rtems_bdbuf_release_modified+0x70>
                                                                      
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;                                     
ffc0f9a4:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0f9a8:	39 61 00 10 	addi    r11,r1,16                              
ffc0f9ac:	48 00 90 30 	b       ffc189dc <_restgpr_31_x>               
                                                                      

ffc0db44 <rtems_bdbuf_remove_from_tree>: return bdbuf_cache.buffer_waiters.count; } static void rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd) {
ffc0db44:	94 21 ff 68 	stwu    r1,-152(r1)                            
ffc0db48:	7c 08 02 a6 	mflr    r0                                     
                       const rtems_bdbuf_buffer* node)                
{                                                                     
  const rtems_disk_device *dd = node->dd;                             
  rtems_blkdev_bnum block = node->block;                              
                                                                      
  rtems_bdbuf_buffer*  p = *root;                                     
ffc0db4c:	3d 20 00 00 	lis     r9,0                                   
  return bdbuf_cache.buffer_waiters.count;                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)                 
{                                                                     
ffc0db50:	90 01 00 9c 	stw     r0,156(r1)                             
  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));                           
ffc0db54:	38 80 00 00 	li      r4,0                                   
ffc0db58:	38 a0 00 80 	li      r5,128                                 
  return bdbuf_cache.buffer_waiters.count;                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)                 
{                                                                     
ffc0db5c:	bf 81 00 88 	stmw    r28,136(r1)                            
ffc0db60:	7c 7e 1b 78 	mr      r30,r3                                 
 */                                                                   
static int                                                            
rtems_bdbuf_avl_remove(rtems_bdbuf_buffer**      root,                
                       const rtems_bdbuf_buffer* node)                
{                                                                     
  const rtems_disk_device *dd = node->dd;                             
ffc0db64:	83 a3 00 14 	lwz     r29,20(r3)                             
  rtems_blkdev_bnum block = node->block;                              
ffc0db68:	83 83 00 18 	lwz     r28,24(r3)                             
  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));                           
ffc0db6c:	38 61 00 08 	addi    r3,r1,8                                
                       const rtems_bdbuf_buffer* node)                
{                                                                     
  const rtems_disk_device *dd = node->dd;                             
  rtems_blkdev_bnum block = node->block;                              
                                                                      
  rtems_bdbuf_buffer*  p = *root;                                     
ffc0db70:	83 e9 29 a4 	lwz     r31,10660(r9)                          
  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));                           
ffc0db74:	48 00 6d 11 	bl      ffc14884 <memset>                      
  rtems_bdbuf_buffer*  r;                                             
  rtems_bdbuf_buffer*  s;                                             
  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;                          
ffc0db78:	39 01 00 08 	addi    r8,r1,8                                
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
    {                                                                 
      p->avl.cache = 1;                                               
ffc0db7c:	39 40 00 01 	li      r10,1                                  
      p = p->avl.right;                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
    {                                                                 
      p->avl.cache = -1;                                              
ffc0db80:	38 c0 ff ff 	li      r6,-1                                  
ffc0db84:	48 00 00 4c 	b       ffc0dbd0 <rtems_bdbuf_remove_from_tree+0x8c>
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
ffc0db88:	81 3f 00 14 	lwz     r9,20(r31)                             
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
ffc0db8c:	38 e8 00 04 	addi    r7,r8,4                                
ffc0db90:	93 e8 00 00 	stw     r31,0(r8)                              
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
ffc0db94:	7f 89 e8 40 	cmplw   cr7,r9,r29                             
ffc0db98:	41 9c 00 18 	blt-    cr7,ffc0dbb0 <rtems_bdbuf_remove_from_tree+0x6c><== NEVER TAKEN
        || ((p->dd == dd) && (p->block < block)))                     
ffc0db9c:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc0dba0:	40 be 00 24 	bne+    cr7,ffc0dbc4 <rtems_bdbuf_remove_from_tree+0x80><== NEVER TAKEN
ffc0dba4:	81 3f 00 18 	lwz     r9,24(r31)                             
ffc0dba8:	7f 89 e0 40 	cmplw   cr7,r9,r28                             
ffc0dbac:	40 9c 00 10 	bge-    cr7,ffc0dbbc <rtems_bdbuf_remove_from_tree+0x78>
    {                                                                 
      p->avl.cache = 1;                                               
ffc0dbb0:	99 5f 00 10 	stb     r10,16(r31)                            
      p = p->avl.right;                                               
ffc0dbb4:	83 ff 00 0c 	lwz     r31,12(r31)                            
ffc0dbb8:	48 00 00 14 	b       ffc0dbcc <rtems_bdbuf_remove_from_tree+0x88>
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
ffc0dbbc:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
ffc0dbc0:	41 9e 02 e0 	beq-    cr7,ffc0dea0 <rtems_bdbuf_remove_from_tree+0x35c>
    {                                                                 
      p->avl.cache = -1;                                              
ffc0dbc4:	98 df 00 10 	stb     r6,16(r31)                             
      p = p->avl.left;                                                
ffc0dbc8:	83 ff 00 08 	lwz     r31,8(r31)                             
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
ffc0dbcc:	7c e8 3b 78 	mr      r8,r7                                  
                                                                      
  bool modified = false;                                              
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
ffc0dbd0:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0dbd4:	40 9e ff b4 	bne+    cr7,ffc0db88 <rtems_bdbuf_remove_from_tree+0x44><== ALWAYS TAKEN
ffc0dbd8:	48 00 02 bc 	b       ffc0de94 <rtems_bdbuf_remove_from_tree+0x350><== NOT EXECUTED
  q = p;                                                              
                                                                      
  buf_prev--;                                                         
  if (buf_prev > buf_stack)                                           
  {                                                                   
    p = *(buf_prev - 1);                                              
ffc0dbdc:	80 c7 ff f8 	lwz     r6,-8(r7)                              
  {                                                                   
    p = NULL;                                                         
  }                                                                   
                                                                      
  /* at this moment q - is a node to delete, p is q's parent */       
  if (q->avl.right == NULL)                                           
ffc0dbe0:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc0dbe4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0dbe8:	40 be 00 1c 	bne+    cr7,ffc0dc04 <rtems_bdbuf_remove_from_tree+0xc0>
  {                                                                   
    r = q->avl.left;                                                  
ffc0dbec:	81 3f 00 08 	lwz     r9,8(r31)                              
    if (r != NULL)                                                    
ffc0dbf0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0dbf4:	41 9e 00 a0 	beq-    cr7,ffc0dc94 <rtems_bdbuf_remove_from_tree+0x150>
    {                                                                 
      r->avl.bal = 0;                                                 
ffc0dbf8:	39 40 00 00 	li      r10,0                                  
ffc0dbfc:	99 49 00 11 	stb     r10,17(r9)                             
ffc0dc00:	48 00 00 94 	b       ffc0dc94 <rtems_bdbuf_remove_from_tree+0x150>
  {                                                                   
    rtems_bdbuf_buffer **t;                                           
                                                                      
    r = q->avl.right;                                                 
                                                                      
    if (r->avl.left == NULL)                                          
ffc0dc04:	81 49 00 08 	lwz     r10,8(r9)                              
ffc0dc08:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0dc0c:	41 9e 00 18 	beq-    cr7,ffc0dc24 <rtems_bdbuf_remove_from_tree+0xe0>
ffc0dc10:	7d 2a 4b 78 	mr      r10,r9                                 
ffc0dc14:	7d 25 4b 78 	mr      r5,r9                                  
ffc0dc18:	7c e8 3b 78 	mr      r8,r7                                  
                                                                      
      while (s->avl.left != NULL)                                     
      {                                                               
        *buf_prev++ = r = s;                                          
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
ffc0dc1c:	38 60 ff ff 	li      r3,-1                                  
ffc0dc20:	48 00 00 3c 	b       ffc0dc5c <rtems_bdbuf_remove_from_tree+0x118>
                                                                      
    r = q->avl.right;                                                 
                                                                      
    if (r->avl.left == NULL)                                          
    {                                                                 
      r->avl.left = q->avl.left;                                      
ffc0dc24:	81 5f 00 08 	lwz     r10,8(r31)                             
      r->avl.bal = q->avl.bal;                                        
      r->avl.cache = 1;                                               
      *buf_prev++ = q = r;                                            
ffc0dc28:	7c e8 3b 78 	mr      r8,r7                                  
ffc0dc2c:	91 27 ff fc 	stw     r9,-4(r7)                              
                                                                      
    r = q->avl.right;                                                 
                                                                      
    if (r->avl.left == NULL)                                          
    {                                                                 
      r->avl.left = q->avl.left;                                      
ffc0dc30:	91 49 00 08 	stw     r10,8(r9)                              
      r->avl.bal = q->avl.bal;                                        
ffc0dc34:	89 5f 00 11 	lbz     r10,17(r31)                            
ffc0dc38:	99 49 00 11 	stb     r10,17(r9)                             
      r->avl.cache = 1;                                               
ffc0dc3c:	39 40 00 01 	li      r10,1                                  
ffc0dc40:	99 49 00 10 	stb     r10,16(r9)                             
ffc0dc44:	48 00 00 50 	b       ffc0dc94 <rtems_bdbuf_remove_from_tree+0x150>
      t = buf_prev++;                                                 
      s = r;                                                          
                                                                      
      while (s->avl.left != NULL)                                     
      {                                                               
        *buf_prev++ = r = s;                                          
ffc0dc48:	91 48 00 00 	stw     r10,0(r8)                              
        s = r->avl.left;                                              
ffc0dc4c:	7d 45 53 78 	mr      r5,r10                                 
      t = buf_prev++;                                                 
      s = r;                                                          
                                                                      
      while (s->avl.left != NULL)                                     
      {                                                               
        *buf_prev++ = r = s;                                          
ffc0dc50:	39 08 00 04 	addi    r8,r8,4                                
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
ffc0dc54:	98 6a 00 10 	stb     r3,16(r10)                             
      s = r;                                                          
                                                                      
      while (s->avl.left != NULL)                                     
      {                                                               
        *buf_prev++ = r = s;                                          
        s = r->avl.left;                                              
ffc0dc58:	7c 8a 23 78 	mr      r10,r4                                 
    else                                                              
    {                                                                 
      t = buf_prev++;                                                 
      s = r;                                                          
                                                                      
      while (s->avl.left != NULL)                                     
ffc0dc5c:	80 8a 00 08 	lwz     r4,8(r10)                              
ffc0dc60:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0dc64:	40 9e ff e4 	bne+    cr7,ffc0dc48 <rtems_bdbuf_remove_from_tree+0x104>
        *buf_prev++ = r = s;                                          
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
      }                                                               
                                                                      
      s->avl.left = q->avl.left;                                      
ffc0dc68:	80 9f 00 08 	lwz     r4,8(r31)                              
      r->avl.left = s->avl.right;                                     
      s->avl.right = q->avl.right;                                    
      s->avl.bal = q->avl.bal;                                        
      s->avl.cache = 1;                                               
                                                                      
      *t = q = s;                                                     
ffc0dc6c:	91 47 ff fc 	stw     r10,-4(r7)                             
        *buf_prev++ = r = s;                                          
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
      }                                                               
                                                                      
      s->avl.left = q->avl.left;                                      
ffc0dc70:	90 8a 00 08 	stw     r4,8(r10)                              
      r->avl.left = s->avl.right;                                     
ffc0dc74:	80 8a 00 0c 	lwz     r4,12(r10)                             
      s->avl.right = q->avl.right;                                    
ffc0dc78:	91 2a 00 0c 	stw     r9,12(r10)                             
      s->avl.bal = q->avl.bal;                                        
ffc0dc7c:	89 3f 00 11 	lbz     r9,17(r31)                             
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
      }                                                               
                                                                      
      s->avl.left = q->avl.left;                                      
      r->avl.left = s->avl.right;                                     
ffc0dc80:	90 85 00 08 	stw     r4,8(r5)                               
      s->avl.right = q->avl.right;                                    
      s->avl.bal = q->avl.bal;                                        
ffc0dc84:	99 2a 00 11 	stb     r9,17(r10)                             
      s->avl.cache = 1;                                               
ffc0dc88:	39 20 00 01 	li      r9,1                                   
ffc0dc8c:	99 2a 00 10 	stb     r9,16(r10)                             
                                                                      
      *t = q = s;                                                     
ffc0dc90:	7d 49 53 78 	mr      r9,r10                                 
    }                                                                 
  }                                                                   
                                                                      
  if (p != NULL)                                                      
ffc0dc94:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc0dc98:	41 9e 00 30 	beq-    cr7,ffc0dcc8 <rtems_bdbuf_remove_from_tree+0x184>
  {                                                                   
    if (p->avl.cache == -1)                                           
ffc0dc9c:	89 46 00 10 	lbz     r10,16(r6)                             
ffc0dca0:	2f 8a 00 ff 	cmpwi   cr7,r10,255                            
ffc0dca4:	40 be 00 1c 	bne+    cr7,ffc0dcc0 <rtems_bdbuf_remove_from_tree+0x17c>
    {                                                                 
      p->avl.left = q;                                                
ffc0dca8:	91 26 00 08 	stw     r9,8(r6)                               
                                                                      
  modified = true;                                                    
                                                                      
  while (modified)                                                    
  {                                                                   
    if (buf_prev > buf_stack)                                         
ffc0dcac:	39 21 00 08 	addi    r9,r1,8                                
ffc0dcb0:	7f 88 48 40 	cmplw   cr7,r8,r9                              
ffc0dcb4:	7d 06 43 78 	mr      r6,r8                                  
ffc0dcb8:	41 bd 00 1c 	bgt+    cr7,ffc0dcd4 <rtems_bdbuf_remove_from_tree+0x190>
ffc0dcbc:	48 00 01 f8 	b       ffc0deb4 <rtems_bdbuf_remove_from_tree+0x370>
    {                                                                 
      p->avl.left = q;                                                
    }                                                                 
    else                                                              
    {                                                                 
      p->avl.right = q;                                               
ffc0dcc0:	91 26 00 0c 	stw     r9,12(r6)                              
ffc0dcc4:	4b ff ff e8 	b       ffc0dcac <rtems_bdbuf_remove_from_tree+0x168>
    }                                                                 
  }                                                                   
  else                                                                
  {                                                                   
    *root = q;                                                        
ffc0dcc8:	3d 40 00 00 	lis     r10,0                                  
ffc0dccc:	91 2a 29 a4 	stw     r9,10660(r10)                          
ffc0dcd0:	4b ff ff dc 	b       ffc0dcac <rtems_bdbuf_remove_from_tree+0x168>
    else                                                              
    {                                                                 
      break;                                                          
    }                                                                 
                                                                      
    if (p->avl.cache == -1)                                           
ffc0dcd4:	39 60 ff ff 	li      r11,-1                                 
      {                                                               
        case -1:                                                      
          p->avl.bal = 0;                                             
          break;                                                      
        case  0:                                                      
          p->avl.bal = 1;                                             
ffc0dcd8:	38 a0 00 01 	li      r5,1                                   
                                                                      
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
                                                                      
            p = p2;                                                   
            p2->avl.bal = 0;                                          
ffc0dcdc:	39 00 00 00 	li      r8,0                                   
            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;
ffc0dce0:	38 00 ff ff 	li      r0,-1                                  
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
                                                                      
    if (buf_prev > buf_stack)                                         
ffc0dce4:	7d 3f 4b 78 	mr      r31,r9                                 
                                                                      
  while (modified)                                                    
  {                                                                   
    if (buf_prev > buf_stack)                                         
    {                                                                 
      p = *--buf_prev;                                                
ffc0dce8:	81 26 ff fc 	lwz     r9,-4(r6)                              
    else                                                              
    {                                                                 
      break;                                                          
    }                                                                 
                                                                      
    if (p->avl.cache == -1)                                           
ffc0dcec:	88 89 00 10 	lbz     r4,16(r9)                              
ffc0dcf0:	7c 8a 07 74 	extsb   r10,r4                                 
ffc0dcf4:	2f 8a ff ff 	cmpwi   cr7,r10,-1                             
ffc0dcf8:	89 49 00 11 	lbz     r10,17(r9)                             
    {                                                                 
      /* rebalance left branch */                                     
      switch (p->avl.bal)                                             
ffc0dcfc:	7d 47 07 75 	extsb.  r7,r10                                 
    else                                                              
    {                                                                 
      break;                                                          
    }                                                                 
                                                                      
    if (p->avl.cache == -1)                                           
ffc0dd00:	40 be 00 98 	bne+    cr7,ffc0dd98 <rtems_bdbuf_remove_from_tree+0x254>
    {                                                                 
      /* rebalance left branch */                                     
      switch (p->avl.bal)                                             
ffc0dd04:	41 82 00 18 	beq-    ffc0dd1c <rtems_bdbuf_remove_from_tree+0x1d8>
ffc0dd08:	2f 87 00 01 	cmpwi   cr7,r7,1                               
ffc0dd0c:	41 9e 00 18 	beq-    cr7,ffc0dd24 <rtems_bdbuf_remove_from_tree+0x1e0>
ffc0dd10:	2f 87 ff ff 	cmpwi   cr7,r7,-1                              
ffc0dd14:	40 be 01 34 	bne+    cr7,ffc0de48 <rtems_bdbuf_remove_from_tree+0x304><== NEVER TAKEN
ffc0dd18:	48 00 00 98 	b       ffc0ddb0 <rtems_bdbuf_remove_from_tree+0x26c>
      {                                                               
        case -1:                                                      
          p->avl.bal = 0;                                             
          break;                                                      
        case  0:                                                      
          p->avl.bal = 1;                                             
ffc0dd1c:	98 a9 00 11 	stb     r5,17(r9)                              
ffc0dd20:	48 00 00 2c 	b       ffc0dd4c <rtems_bdbuf_remove_from_tree+0x208>
          modified = false;                                           
          break;                                                      
                                                                      
        case +1:                                                      
          p1 = p->avl.right;                                          
ffc0dd24:	81 49 00 0c 	lwz     r10,12(r9)                             
                                                                      
          if (p1->avl.bal >= 0) /* simple RR-turn */                  
ffc0dd28:	88 ea 00 11 	lbz     r7,17(r10)                             
ffc0dd2c:	7c e3 07 75 	extsb.  r3,r7                                  
ffc0dd30:	80 ea 00 08 	lwz     r7,8(r10)                              
ffc0dd34:	41 80 00 20 	blt-    ffc0dd54 <rtems_bdbuf_remove_from_tree+0x210>
          {                                                           
            p->avl.right = p1->avl.left;                              
ffc0dd38:	90 e9 00 0c 	stw     r7,12(r9)                              
            p1->avl.left = p;                                         
ffc0dd3c:	91 2a 00 08 	stw     r9,8(r10)                              
                                                                      
            if (p1->avl.bal == 0)                                     
ffc0dd40:	40 82 00 a8 	bne-    ffc0dde8 <rtems_bdbuf_remove_from_tree+0x2a4>
            {                                                         
              p1->avl.bal = -1;                                       
ffc0dd44:	98 8a 00 11 	stb     r4,17(r10)                             
ffc0dd48:	7d 49 53 78 	mr      r9,r10                                 
              modified = false;                                       
ffc0dd4c:	39 40 00 00 	li      r10,0                                  
ffc0dd50:	48 00 00 fc 	b       ffc0de4c <rtems_bdbuf_remove_from_tree+0x308>
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
ffc0dd54:	80 67 00 0c 	lwz     r3,12(r7)                              
            p2->avl.right = p1;                                       
ffc0dd58:	91 47 00 0c 	stw     r10,12(r7)                             
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
ffc0dd5c:	90 6a 00 08 	stw     r3,8(r10)                              
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
ffc0dd60:	80 67 00 08 	lwz     r3,8(r7)                               
            p2->avl.left = p;                                         
ffc0dd64:	91 27 00 08 	stw     r9,8(r7)                               
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
ffc0dd68:	90 69 00 0c 	stw     r3,12(r9)                              
            p2->avl.left = p;                                         
                                                                      
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
ffc0dd6c:	88 67 00 11 	lbz     r3,17(r7)                              
ffc0dd70:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc0dd74:	40 be 00 0c 	bne+    cr7,ffc0dd80 <rtems_bdbuf_remove_from_tree+0x23c>
ffc0dd78:	98 89 00 11 	stb     r4,17(r9)                              
ffc0dd7c:	48 00 00 08 	b       ffc0dd84 <rtems_bdbuf_remove_from_tree+0x240>
ffc0dd80:	99 09 00 11 	stb     r8,17(r9)                              
            if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
ffc0dd84:	89 27 00 11 	lbz     r9,17(r7)                              
ffc0dd88:	2f 89 00 ff 	cmpwi   cr7,r9,255                             
ffc0dd8c:	40 be 00 b0 	bne+    cr7,ffc0de3c <rtems_bdbuf_remove_from_tree+0x2f8><== ALWAYS TAKEN
ffc0dd90:	98 aa 00 11 	stb     r5,17(r10)                             <== NOT EXECUTED
ffc0dd94:	48 00 00 ac 	b       ffc0de40 <rtems_bdbuf_remove_from_tree+0x2fc><== NOT EXECUTED
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      /* rebalance right branch */                                    
      switch (p->avl.bal)                                             
ffc0dd98:	41 82 00 20 	beq-    ffc0ddb8 <rtems_bdbuf_remove_from_tree+0x274>
ffc0dd9c:	2f 87 00 01 	cmpwi   cr7,r7,1                               
ffc0dda0:	41 9e 00 10 	beq-    cr7,ffc0ddb0 <rtems_bdbuf_remove_from_tree+0x26c>
ffc0dda4:	2f 87 ff ff 	cmpwi   cr7,r7,-1                              
ffc0dda8:	40 be 00 a0 	bne+    cr7,ffc0de48 <rtems_bdbuf_remove_from_tree+0x304><== NEVER TAKEN
ffc0ddac:	48 00 00 14 	b       ffc0ddc0 <rtems_bdbuf_remove_from_tree+0x27c>
      {                                                               
        case +1:                                                      
          p->avl.bal = 0;                                             
ffc0ddb0:	99 09 00 11 	stb     r8,17(r9)                              
ffc0ddb4:	48 00 00 94 	b       ffc0de48 <rtems_bdbuf_remove_from_tree+0x304>
          break;                                                      
                                                                      
        case  0:                                                      
          p->avl.bal = -1;                                            
ffc0ddb8:	99 69 00 11 	stb     r11,17(r9)                             
ffc0ddbc:	4b ff ff 90 	b       ffc0dd4c <rtems_bdbuf_remove_from_tree+0x208>
          modified = false;                                           
          break;                                                      
                                                                      
        case -1:                                                      
          p1 = p->avl.left;                                           
ffc0ddc0:	81 49 00 08 	lwz     r10,8(r9)                              
                                                                      
          if (p1->avl.bal <= 0) /* simple LL-turn */                  
ffc0ddc4:	88 ea 00 11 	lbz     r7,17(r10)                             
ffc0ddc8:	7c e4 07 75 	extsb.  r4,r7                                  
ffc0ddcc:	80 ea 00 0c 	lwz     r7,12(r10)                             
ffc0ddd0:	41 a1 00 28 	bgt+    ffc0ddf8 <rtems_bdbuf_remove_from_tree+0x2b4>
          {                                                           
            p->avl.left = p1->avl.right;                              
ffc0ddd4:	90 e9 00 08 	stw     r7,8(r9)                               
            p1->avl.right = p;                                        
ffc0ddd8:	91 2a 00 0c 	stw     r9,12(r10)                             
            if (p1->avl.bal == 0)                                     
ffc0dddc:	40 82 00 0c 	bne-    ffc0dde8 <rtems_bdbuf_remove_from_tree+0x2a4>
            {                                                         
              p1->avl.bal = 1;                                        
ffc0dde0:	98 aa 00 11 	stb     r5,17(r10)                             
ffc0dde4:	4b ff ff 64 	b       ffc0dd48 <rtems_bdbuf_remove_from_tree+0x204>
              modified = false;                                       
            }                                                         
            else                                                      
            {                                                         
              p->avl.bal = 0;                                         
ffc0dde8:	99 09 00 11 	stb     r8,17(r9)                              
              p1->avl.bal = 0;                                        
ffc0ddec:	7d 49 53 78 	mr      r9,r10                                 
ffc0ddf0:	99 0a 00 11 	stb     r8,17(r10)                             
ffc0ddf4:	48 00 00 54 	b       ffc0de48 <rtems_bdbuf_remove_from_tree+0x304>
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
ffc0ddf8:	80 87 00 08 	lwz     r4,8(r7)                               
            p2->avl.left = p1;                                        
ffc0ddfc:	91 47 00 08 	stw     r10,8(r7)                              
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
ffc0de00:	90 8a 00 0c 	stw     r4,12(r10)                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
ffc0de04:	80 87 00 0c 	lwz     r4,12(r7)                              
            p2->avl.right = p;                                        
ffc0de08:	91 27 00 0c 	stw     r9,12(r7)                              
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
ffc0de0c:	90 89 00 08 	stw     r4,8(r9)                               
            p2->avl.right = p;                                        
                                                                      
            if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
ffc0de10:	88 87 00 11 	lbz     r4,17(r7)                              
ffc0de14:	2f 84 00 ff 	cmpwi   cr7,r4,255                             
ffc0de18:	40 be 00 0c 	bne+    cr7,ffc0de24 <rtems_bdbuf_remove_from_tree+0x2e0>
ffc0de1c:	98 a9 00 11 	stb     r5,17(r9)                              
ffc0de20:	48 00 00 08 	b       ffc0de28 <rtems_bdbuf_remove_from_tree+0x2e4>
ffc0de24:	99 09 00 11 	stb     r8,17(r9)                              
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
ffc0de28:	89 27 00 11 	lbz     r9,17(r7)                              
ffc0de2c:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0de30:	40 be 00 0c 	bne+    cr7,ffc0de3c <rtems_bdbuf_remove_from_tree+0x2f8>
ffc0de34:	98 0a 00 11 	stb     r0,17(r10)                             
ffc0de38:	48 00 00 08 	b       ffc0de40 <rtems_bdbuf_remove_from_tree+0x2fc>
ffc0de3c:	99 0a 00 11 	stb     r8,17(r10)                             
                                                                      
            p = p2;                                                   
            p2->avl.bal = 0;                                          
ffc0de40:	99 07 00 11 	stb     r8,17(r7)                              
ffc0de44:	7c e9 3b 78 	mr      r9,r7                                  
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      /* rebalance right branch */                                    
      switch (p->avl.bal)                                             
ffc0de48:	39 40 00 01 	li      r10,1                                  
{                                                                     
  return bdbuf_cache.buffer_waiters.count;                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)                 
ffc0de4c:	38 e6 ff fc 	addi    r7,r6,-4                               
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
                                                                      
    if (buf_prev > buf_stack)                                         
ffc0de50:	7f 9f 38 40 	cmplw   cr7,r31,r7                             
ffc0de54:	40 9c 00 24 	bge-    cr7,ffc0de78 <rtems_bdbuf_remove_from_tree+0x334>
    {                                                                 
      q = *(buf_prev - 1);                                            
ffc0de58:	80 e6 ff f8 	lwz     r7,-8(r6)                              
                                                                      
      if (q->avl.cache == -1)                                         
ffc0de5c:	88 87 00 10 	lbz     r4,16(r7)                              
ffc0de60:	2f 84 00 ff 	cmpwi   cr7,r4,255                             
ffc0de64:	40 be 00 0c 	bne+    cr7,ffc0de70 <rtems_bdbuf_remove_from_tree+0x32c>
      {                                                               
        q->avl.left = p;                                              
ffc0de68:	91 27 00 08 	stw     r9,8(r7)                               
ffc0de6c:	48 00 00 18 	b       ffc0de84 <rtems_bdbuf_remove_from_tree+0x340>
      }                                                               
      else                                                            
      {                                                               
        q->avl.right = p;                                             
ffc0de70:	91 27 00 0c 	stw     r9,12(r7)                              
ffc0de74:	48 00 00 10 	b       ffc0de84 <rtems_bdbuf_remove_from_tree+0x340>
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      *root = p;                                                      
ffc0de78:	3d 40 00 00 	lis     r10,0                                  
ffc0de7c:	91 2a 29 a4 	stw     r9,10660(r10)                          
ffc0de80:	48 00 00 34 	b       ffc0deb4 <rtems_bdbuf_remove_from_tree+0x370>
    *root = q;                                                        
  }                                                                   
                                                                      
  modified = true;                                                    
                                                                      
  while (modified)                                                    
ffc0de84:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0de88:	38 c6 ff fc 	addi    r6,r6,-4                               
ffc0de8c:	40 9e fe 5c 	bne+    cr7,ffc0dce8 <rtems_bdbuf_remove_from_tree+0x1a4>
ffc0de90:	48 00 00 24 	b       ffc0deb4 <rtems_bdbuf_remove_from_tree+0x370>
                                                                      
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);
ffc0de94:	80 7e 00 20 	lwz     r3,32(r30)                             <== NOT EXECUTED
ffc0de98:	38 80 00 1b 	li      r4,27                                  <== NOT EXECUTED
ffc0de9c:	4b ff f8 ed 	bl      ffc0d788 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
  }                                                                   
                                                                      
  q = p;                                                              
                                                                      
  buf_prev--;                                                         
  if (buf_prev > buf_stack)                                           
ffc0dea0:	39 21 00 08 	addi    r9,r1,8                                
ffc0dea4:	7f 88 48 40 	cmplw   cr7,r8,r9                              
  {                                                                   
    p = *(buf_prev - 1);                                              
  }                                                                   
  else                                                                
  {                                                                   
    p = NULL;                                                         
ffc0dea8:	38 c0 00 00 	li      r6,0                                   
  }                                                                   
                                                                      
  q = p;                                                              
                                                                      
  buf_prev--;                                                         
  if (buf_prev > buf_stack)                                           
ffc0deac:	40 bd fd 34 	ble-    cr7,ffc0dbe0 <rtems_bdbuf_remove_from_tree+0x9c>
ffc0deb0:	4b ff fd 2c 	b       ffc0dbdc <rtems_bdbuf_remove_from_tree+0x98>
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);
}                                                                     
ffc0deb4:	39 61 00 98 	addi    r11,r1,152                             
ffc0deb8:	48 00 ab 18 	b       ffc189d0 <_restgpr_28_x>               
                                                                      

ffc0e014 <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) {
ffc0e014:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0e018:	7c 08 02 a6 	mflr    r0                                     
ffc0e01c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0e020:	90 01 00 14 	stw     r0,20(r1)                              
ffc0e024:	48 00 a9 6d 	bl      ffc18990 <_savegpr_31>                 
ffc0e028:	7c 7f 1b 78 	mr      r31,r3                                 
  switch (bd->state)                                                  
ffc0e02c:	81 23 00 20 	lwz     r9,32(r3)                              
ffc0e030:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e034:	41 9e 00 20 	beq-    cr7,ffc0e054 <rtems_bdbuf_remove_from_tree_and_lru_list+0x40>
ffc0e038:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc0e03c:	40 be 00 0c 	bne+    cr7,ffc0e048 <rtems_bdbuf_remove_from_tree_and_lru_list+0x34><== NEVER TAKEN
  {                                                                   
    case RTEMS_BDBUF_STATE_FREE:                                      
      break;                                                          
    case RTEMS_BDBUF_STATE_CACHED:                                    
      rtems_bdbuf_remove_from_tree (bd);                              
ffc0e040:	4b ff fb 05 	bl      ffc0db44 <rtems_bdbuf_remove_from_tree>
      break;                                                          
ffc0e044:	48 00 00 10 	b       ffc0e054 <rtems_bdbuf_remove_from_tree_and_lru_list+0x40>
    default:                                                          
      rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_10);
ffc0e048:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc0e04c:	38 80 00 16 	li      r4,22                                  <== NOT EXECUTED
ffc0e050:	4b ff f7 39 	bl      ffc0d788 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc0e054:	81 5f 00 00 	lwz     r10,0(r31)                             
  }                                                                   
                                                                      
  rtems_chain_extract_unprotected (&bd->link);                        
}                                                                     
ffc0e058:	39 61 00 10 	addi    r11,r1,16                              
  previous       = the_node->previous;                                
ffc0e05c:	81 3f 00 04 	lwz     r9,4(r31)                              
  next->previous = previous;                                          
ffc0e060:	91 2a 00 04 	stw     r9,4(r10)                              
  previous->next = next;                                              
ffc0e064:	91 49 00 00 	stw     r10,0(r9)                              
ffc0e068:	48 00 a9 74 	b       ffc189dc <_restgpr_31_x>               
                                                                      

ffc0d868 <rtems_bdbuf_restore_preemption>: static void rtems_bdbuf_restore_preemption (rtems_mode prev_mode) {
ffc0d868:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0d86c:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_task_mode (prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode); 
ffc0d870:	38 80 00 00 	li      r4,0                                   
  return prev_mode;                                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)                 
{                                                                     
ffc0d874:	7c 25 0b 78 	mr      r5,r1                                  
ffc0d878:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_task_mode (prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode); 
ffc0d87c:	60 84 ff ff 	ori     r4,r4,65535                            
  return prev_mode;                                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)                 
{                                                                     
ffc0d880:	94 65 00 08 	stwu    r3,8(r5)                               
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_task_mode (prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode); 
ffc0d884:	48 00 40 21 	bl      ffc118a4 <rtems_task_mode>             
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0d888:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0d88c:	41 be 00 0c 	beq+    cr7,ffc0d898 <rtems_bdbuf_restore_preemption+0x30><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_PREEMPT_RST);                
ffc0d890:	38 60 00 06 	li      r3,6                                   <== NOT EXECUTED
ffc0d894:	4b ff fe 91 	bl      ffc0d724 <rtems_bdbuf_fatal>           <== NOT EXECUTED
}                                                                     
ffc0d898:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0d89c:	38 21 00 10 	addi    r1,r1,16                               
ffc0d8a0:	7c 08 03 a6 	mtlr    r0                                     
ffc0d8a4:	4e 80 00 20 	blr                                            
                                                                      

ffc0fcf8 <rtems_bdbuf_set_block_size>: /* * We do not care about the synchronization status since we will purge the * device later. */ if (sync)
ffc0fcf8:	2f 85 00 00 	cmpwi   cr7,r5,0                               
                                                                      
rtems_status_code                                                     
rtems_bdbuf_set_block_size (rtems_disk_device *dd,                    
                            uint32_t           block_size,            
                            bool               sync)                  
{                                                                     
ffc0fcfc:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0fd00:	7c 08 02 a6 	mflr    r0                                     
ffc0fd04:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc0fd08:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0fd0c:	7c 9e 23 78 	mr      r30,r4                                 
ffc0fd10:	90 01 00 1c 	stw     r0,28(r1)                              
                                                                      
  /*                                                                  
   * We do not care about the synchronization status since we will purge the
   * device later.                                                    
   */                                                                 
  if (sync)                                                           
ffc0fd14:	41 be 00 08 	beq+    cr7,ffc0fd1c <rtems_bdbuf_set_block_size+0x24>
    rtems_bdbuf_syncdev (dd);                                         
ffc0fd18:	4b ff fd c5 	bl      ffc0fadc <rtems_bdbuf_syncdev>         
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc0fd1c:	4b ff da 5d 	bl      ffc0d778 <rtems_bdbuf_lock_cache>      
                                                                      
  if (block_size > 0)                                                 
ffc0fd20:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
  }                                                                   
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_NUMBER;                                        
ffc0fd24:	3b a0 00 0a 	li      r29,10                                 
  if (sync)                                                           
    rtems_bdbuf_syncdev (dd);                                         
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  if (block_size > 0)                                                 
ffc0fd28:	41 be 00 b0 	beq+    cr7,ffc0fdd8 <rtems_bdbuf_set_block_size+0xe0>
rtems_bdbuf_bds_per_group (size_t size)                               
{                                                                     
  size_t bufs_per_size;                                               
  size_t bds_per_size;                                                
                                                                      
  if (size > bdbuf_config.buffer_max)                                 
ffc0fd2c:	3d 20 ff c2 	lis     r9,-62                                 
ffc0fd30:	39 29 95 fc 	addi    r9,r9,-27140                           
ffc0fd34:	81 49 00 28 	lwz     r10,40(r9)                             
ffc0fd38:	7f 9e 50 40 	cmplw   cr7,r30,r10                            
ffc0fd3c:	41 9d 00 9c 	bgt-    cr7,ffc0fdd8 <rtems_bdbuf_set_block_size+0xe0><== NEVER TAKEN
    return 0;                                                         
                                                                      
  bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;         
ffc0fd40:	81 29 00 24 	lwz     r9,36(r9)                              
ffc0fd44:	39 5e ff ff 	addi    r10,r30,-1                             
ffc0fd48:	7d 2a 4b 96 	divwu   r9,r10,r9                              
ffc0fd4c:	39 49 00 01 	addi    r10,r9,1                               
                                                                      
  for (bds_per_size = 1;                                              
ffc0fd50:	39 20 00 01 	li      r9,1                                   
ffc0fd54:	48 00 00 08 	b       ffc0fd5c <rtems_bdbuf_set_block_size+0x64>
       bds_per_size < bufs_per_size;                                  
       bds_per_size <<= 1)                                            
ffc0fd58:	55 29 08 3c 	rlwinm  r9,r9,1,0,30                           
  if (size > bdbuf_config.buffer_max)                                 
    return 0;                                                         
                                                                      
  bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;         
                                                                      
  for (bds_per_size = 1;                                              
ffc0fd5c:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc0fd60:	41 9c ff f8 	blt+    cr7,ffc0fd58 <rtems_bdbuf_set_block_size+0x60>
       bds_per_size < bufs_per_size;                                  
       bds_per_size <<= 1)                                            
    ;                                                                 
                                                                      
  return bdbuf_cache.max_bds_per_group / bds_per_size;                
ffc0fd64:	3d 40 00 00 	lis     r10,0                                  
ffc0fd68:	81 0a 29 88 	lwz     r8,10632(r10)                          
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
  }                                                                   
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_NUMBER;                                        
ffc0fd6c:	3b a0 00 0a 	li      r29,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;                
ffc0fd70:	7d 08 4b 96 	divwu   r8,r8,r9                               
                                                                      
  if (block_size > 0)                                                 
  {                                                                   
    size_t bds_per_group = rtems_bdbuf_bds_per_group (block_size);    
                                                                      
    if (bds_per_group != 0)                                           
ffc0fd74:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0fd78:	41 9e 00 60 	beq-    cr7,ffc0fdd8 <rtems_bdbuf_set_block_size+0xe0><== NEVER TAKEN
    {                                                                 
      int block_to_media_block_shift = 0;                             
      uint32_t media_blocks_per_block = block_size / dd->media_block_size;
ffc0fd7c:	80 ff 00 20 	lwz     r7,32(r31)                             
  {                                                                   
    size_t bds_per_group = rtems_bdbuf_bds_per_group (block_size);    
                                                                      
    if (bds_per_group != 0)                                           
    {                                                                 
      int block_to_media_block_shift = 0;                             
ffc0fd80:	39 20 00 00 	li      r9,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)
ffc0fd84:	38 a0 00 01 	li      r5,1                                   
    size_t bds_per_group = rtems_bdbuf_bds_per_group (block_size);    
                                                                      
    if (bds_per_group != 0)                                           
    {                                                                 
      int block_to_media_block_shift = 0;                             
      uint32_t media_blocks_per_block = block_size / dd->media_block_size;
ffc0fd88:	7d 5e 3b 96 	divwu   r10,r30,r7                             
      uint32_t one = 1;                                               
                                                                      
      while ((one << block_to_media_block_shift) < media_blocks_per_block)
ffc0fd8c:	48 00 00 08 	b       ffc0fd94 <rtems_bdbuf_set_block_size+0x9c>
      {                                                               
        ++block_to_media_block_shift;                                 
ffc0fd90:	39 29 00 01 	addi    r9,r9,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)
ffc0fd94:	7c a6 48 30 	slw     r6,r5,r9                               
ffc0fd98:	7f 86 50 40 	cmplw   cr7,r6,r10                             
ffc0fd9c:	41 9c ff f4 	blt+    cr7,ffc0fd90 <rtems_bdbuf_set_block_size+0x98>
      {                                                               
        ++block_to_media_block_shift;                                 
      }                                                               
                                                                      
      if ((dd->media_block_size << block_to_media_block_shift) != block_size)
ffc0fda0:	7c e7 48 30 	slw     r7,r7,r9                               
ffc0fda4:	7f 87 f0 00 	cmpw    cr7,r7,r30                             
ffc0fda8:	41 9e 00 08 	beq-    cr7,ffc0fdb0 <rtems_bdbuf_set_block_size+0xb8><== ALWAYS TAKEN
        block_to_media_block_shift = -1;                              
ffc0fdac:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
                                                                      
      dd->block_size = block_size;                                    
      dd->block_count = dd->size / media_blocks_per_block;            
ffc0fdb0:	80 ff 00 1c 	lwz     r7,28(r31)                             
      dd->media_blocks_per_block = media_blocks_per_block;            
      dd->block_to_media_block_shift = block_to_media_block_shift;    
      dd->bds_per_group = bds_per_group;                              
                                                                      
      rtems_bdbuf_purge_dev (dd);                                     
ffc0fdb4:	7f e3 fb 78 	mr      r3,r31                                 
      }                                                               
                                                                      
      if ((dd->media_block_size << block_to_media_block_shift) != block_size)
        block_to_media_block_shift = -1;                              
                                                                      
      dd->block_size = block_size;                                    
ffc0fdb8:	93 df 00 24 	stw     r30,36(r31)                            
rtems_status_code                                                     
rtems_bdbuf_set_block_size (rtems_disk_device *dd,                    
                            uint32_t           block_size,            
                            bool               sync)                  
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc0fdbc:	3b a0 00 00 	li      r29,0                                  
                                                                      
      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;            
ffc0fdc0:	7c e7 53 96 	divwu   r7,r7,r10                              
      dd->media_blocks_per_block = media_blocks_per_block;            
ffc0fdc4:	91 5f 00 2c 	stw     r10,44(r31)                            
      dd->block_to_media_block_shift = block_to_media_block_shift;    
ffc0fdc8:	91 3f 00 30 	stw     r9,48(r31)                             
      dd->bds_per_group = bds_per_group;                              
ffc0fdcc:	91 1f 00 34 	stw     r8,52(r31)                             
                                                                      
      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;            
ffc0fdd0:	90 ff 00 28 	stw     r7,40(r31)                             
      dd->media_blocks_per_block = media_blocks_per_block;            
      dd->block_to_media_block_shift = block_to_media_block_shift;    
      dd->bds_per_group = bds_per_group;                              
                                                                      
      rtems_bdbuf_purge_dev (dd);                                     
ffc0fdd4:	4b ff fd 6d 	bl      ffc0fb40 <rtems_bdbuf_purge_dev>       
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc0fdd8:	4b ff d9 fd 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    
                                                                      
  return sc;                                                          
}                                                                     
ffc0fddc:	39 61 00 18 	addi    r11,r1,24                              
ffc0fde0:	7f a3 eb 78 	mr      r3,r29                                 
ffc0fde4:	48 00 8b f0 	b       ffc189d4 <_restgpr_29_x>               
                                                                      

ffc0e648 <rtems_bdbuf_swapout_modified_processing>: rtems_chain_control* chain, rtems_chain_control* transfer, bool sync_active, bool update_timers, uint32_t timer_delta) {
ffc0e648:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0e64c:	7c 08 02 a6 	mflr    r0                                     
ffc0e650:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0e654:	7d 80 00 26 	mfcr    r12                                    
ffc0e658:	90 01 00 14 	stw     r0,20(r1)                              
ffc0e65c:	48 00 a3 35 	bl      ffc18990 <_savegpr_31>                 
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0e660:	81 24 00 00 	lwz     r9,0(r4)                               
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0e664:	38 84 00 04 	addi    r4,r4,4                                
ffc0e668:	91 81 00 08 	stw     r12,8(r1)                              
  if (!rtems_chain_is_empty (chain))                                  
ffc0e66c:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc0e670:	41 9e 01 30 	beq-    cr7,ffc0e7a0 <rtems_bdbuf_swapout_modified_processing+0x158>
    node = node->next;                                                
                                                                      
    /*                                                                
     * A sync active with no valid dev means sync all.                
     */                                                               
    if (sync_active && (*dd_ptr == BDBUF_INVALID_DEV))                
ffc0e674:	2f 86 00 00 	cmpwi   cr7,r6,0                               
      sync_all = true;                                                
    else                                                              
      sync_all = false;                                               
ffc0e678:	39 40 00 00 	li      r10,0                                  
    node = node->next;                                                
                                                                      
    /*                                                                
     * A sync active with no valid dev means sync all.                
     */                                                               
    if (sync_active && (*dd_ptr == BDBUF_INVALID_DEV))                
ffc0e67c:	41 9e 00 10 	beq-    cr7,ffc0e68c <rtems_bdbuf_swapout_modified_processing+0x44>
ffc0e680:	81 43 00 00 	lwz     r10,0(r3)                              
ffc0e684:	7d 4a 00 34 	cntlzw  r10,r10                                
ffc0e688:	55 4a d9 7e 	rlwinm  r10,r10,27,5,31                        
}                                                                     
                                                                      
static bool                                                           
rtems_bdbuf_has_buffer_waiters (void)                                 
{                                                                     
  return bdbuf_cache.buffer_waiters.count;                            
ffc0e68c:	3d 60 00 00 	lis     r11,0                                  
ffc0e690:	81 6b 29 dc 	lwz     r11,10716(r11)                         
       * 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))            
ffc0e694:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0e698:	2c 06 00 00 	cmpwi   r6,0                                   
          || rtems_bdbuf_has_buffer_waiters ())                       
ffc0e69c:	2f 0b 00 00 	cmpwi   cr6,r11,0                              
        bd->hold_timer = 0;                                           
                                                                      
      if (bd->hold_timer)                                             
      {                                                               
        if (update_timers)                                            
ffc0e6a0:	2e 07 00 00 	cmpwi   cr4,r7,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))            
          || rtems_bdbuf_has_buffer_waiters ())                       
        bd->hold_timer = 0;                                           
ffc0e6a4:	38 00 00 00 	li      r0,0                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0e6a8:	3b e0 00 09 	li      r31,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))            
ffc0e6ac:	40 9e 00 1c 	bne-    cr7,ffc0e6c8 <rtems_bdbuf_swapout_modified_processing+0x80>
ffc0e6b0:	41 82 00 14 	beq-    ffc0e6c4 <rtems_bdbuf_swapout_modified_processing+0x7c>
ffc0e6b4:	81 83 00 00 	lwz     r12,0(r3)                              
ffc0e6b8:	81 69 00 14 	lwz     r11,20(r9)                             
ffc0e6bc:	7c 8c 58 00 	cmpw    cr1,r12,r11                            
ffc0e6c0:	41 86 00 08 	beq-    cr1,ffc0e6c8 <rtems_bdbuf_swapout_modified_processing+0x80>
          || rtems_bdbuf_has_buffer_waiters ())                       
ffc0e6c4:	41 9a 00 08 	beq-    cr6,ffc0e6cc <rtems_bdbuf_swapout_modified_processing+0x84>
        bd->hold_timer = 0;                                           
ffc0e6c8:	90 09 00 2c 	stw     r0,44(r9)                              
                                                                      
      if (bd->hold_timer)                                             
ffc0e6cc:	81 69 00 2c 	lwz     r11,44(r9)                             
ffc0e6d0:	2c 8b 00 00 	cmpwi   cr1,r11,0                              
ffc0e6d4:	41 86 00 34 	beq-    cr1,ffc0e708 <rtems_bdbuf_swapout_modified_processing+0xc0>
      {                                                               
        if (update_timers)                                            
ffc0e6d8:	41 92 00 1c 	beq-    cr4,ffc0e6f4 <rtems_bdbuf_swapout_modified_processing+0xac>
        {                                                             
          if (bd->hold_timer > timer_delta)                           
ffc0e6dc:	7c 8b 40 40 	cmplw   cr1,r11,r8                             
ffc0e6e0:	40 85 00 10 	ble-    cr1,ffc0e6f0 <rtems_bdbuf_swapout_modified_processing+0xa8>
            bd->hold_timer -= timer_delta;                            
ffc0e6e4:	7d 68 58 50 	subf    r11,r8,r11                             
ffc0e6e8:	91 69 00 2c 	stw     r11,44(r9)                             
ffc0e6ec:	48 00 00 08 	b       ffc0e6f4 <rtems_bdbuf_swapout_modified_processing+0xac>
          else                                                        
            bd->hold_timer = 0;                                       
ffc0e6f0:	90 09 00 2c 	stw     r0,44(r9)                              
        }                                                             
                                                                      
        if (bd->hold_timer)                                           
ffc0e6f4:	81 69 00 2c 	lwz     r11,44(r9)                             
ffc0e6f8:	2c 8b 00 00 	cmpwi   cr1,r11,0                              
ffc0e6fc:	41 86 00 0c 	beq-    cr1,ffc0e708 <rtems_bdbuf_swapout_modified_processing+0xc0>
        {                                                             
          node = node->next;                                          
ffc0e700:	81 29 00 00 	lwz     r9,0(r9)                               
          continue;                                                   
ffc0e704:	48 00 00 78 	b       ffc0e77c <rtems_bdbuf_swapout_modified_processing+0x134>
      /*                                                              
       * 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)                               
ffc0e708:	81 63 00 00 	lwz     r11,0(r3)                              
ffc0e70c:	2c 8b 00 00 	cmpwi   cr1,r11,0                              
ffc0e710:	40 a6 00 0c 	bne+    cr1,ffc0e71c <rtems_bdbuf_swapout_modified_processing+0xd4>
        *dd_ptr = bd->dd;                                             
ffc0e714:	81 69 00 14 	lwz     r11,20(r9)                             
ffc0e718:	91 63 00 00 	stw     r11,0(r3)                              
                                                                      
      if (bd->dd == *dd_ptr)                                          
ffc0e71c:	81 63 00 00 	lwz     r11,0(r3)                              
ffc0e720:	81 89 00 14 	lwz     r12,20(r9)                             
ffc0e724:	7c 8c 58 00 	cmpw    cr1,r12,r11                            
ffc0e728:	81 69 00 00 	lwz     r11,0(r9)                              
ffc0e72c:	40 a6 00 4c 	bne+    cr1,ffc0e778 <rtems_bdbuf_swapout_modified_processing+0x130><== NEVER TAKEN
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
ffc0e730:	81 89 00 04 	lwz     r12,4(r9)                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0e734:	93 e9 00 20 	stw     r31,32(r9)                             
  next->previous = previous;                                          
ffc0e738:	91 8b 00 04 	stw     r12,4(r11)                             
  previous->next = next;                                              
ffc0e73c:	91 6c 00 00 	stw     r11,0(r12)                             
                                                                      
        rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);       
                                                                      
        rtems_chain_extract_unprotected (node);                       
                                                                      
        tnode = tnode->previous;                                      
ffc0e740:	81 45 00 08 	lwz     r10,8(r5)                              
ffc0e744:	48 00 00 28 	b       ffc0e76c <rtems_bdbuf_swapout_modified_processing+0x124>
                                                                      
        while (node && !rtems_chain_is_head (transfer, tnode))        
        {                                                             
          rtems_bdbuf_buffer* tbd = (rtems_bdbuf_buffer*) tnode;      
                                                                      
          if (bd->block > tbd->block)                                 
ffc0e748:	81 8a 00 18 	lwz     r12,24(r10)                            
ffc0e74c:	80 e9 00 18 	lwz     r7,24(r9)                              
ffc0e750:	7c 87 60 40 	cmplw   cr1,r7,r12                             
ffc0e754:	40 85 00 14 	ble-    cr1,ffc0e768 <rtems_bdbuf_swapout_modified_processing+0x120>
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc0e758:	81 8a 00 00 	lwz     r12,0(r10)                             
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0e75c:	91 49 00 04 	stw     r10,4(r9)                              
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc0e760:	91 2a 00 00 	stw     r9,0(r10)                              
ffc0e764:	48 00 00 30 	b       ffc0e794 <rtems_bdbuf_swapout_modified_processing+0x14c>
          {                                                           
            rtems_chain_insert_unprotected (tnode, node);             
            node = NULL;                                              
          }                                                           
          else                                                        
            tnode = tnode->previous;                                  
ffc0e768:	81 4a 00 04 	lwz     r10,4(r10)                             
                                                                      
        rtems_chain_extract_unprotected (node);                       
                                                                      
        tnode = tnode->previous;                                      
                                                                      
        while (node && !rtems_chain_is_head (transfer, tnode))        
ffc0e76c:	7c 8a 28 00 	cmpw    cr1,r10,r5                             
ffc0e770:	40 86 ff d8 	bne+    cr1,ffc0e748 <rtems_bdbuf_swapout_modified_processing+0x100>
ffc0e774:	48 00 00 14 	b       ffc0e788 <rtems_bdbuf_swapout_modified_processing+0x140>
                                                                      
        node = next_node;                                             
      }                                                               
      else                                                            
      {                                                               
        node = node->next;                                            
ffc0e778:	7d 69 5b 78 	mr      r9,r11                                 
    if (sync_active && (*dd_ptr == BDBUF_INVALID_DEV))                
      sync_all = true;                                                
    else                                                              
      sync_all = false;                                               
                                                                      
    while (!rtems_chain_is_tail (chain, node))                        
ffc0e77c:	7c 89 20 00 	cmpw    cr1,r9,r4                              
ffc0e780:	40 86 ff 2c 	bne+    cr1,ffc0e6ac <rtems_bdbuf_swapout_modified_processing+0x64>
ffc0e784:	48 00 00 1c 	b       ffc0e7a0 <rtems_bdbuf_swapout_modified_processing+0x158>
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc0e788:	81 85 00 00 	lwz     r12,0(r5)                              
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0e78c:	90 a9 00 04 	stw     r5,4(r9)                               
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc0e790:	91 25 00 00 	stw     r9,0(r5)                               
  the_node->next        = before_node;                                
ffc0e794:	91 89 00 00 	stw     r12,0(r9)                              
  before_node->previous = the_node;                                   
ffc0e798:	91 2c 00 04 	stw     r9,4(r12)                              
ffc0e79c:	4b ff ff dc 	b       ffc0e778 <rtems_bdbuf_swapout_modified_processing+0x130>
      {                                                               
        node = node->next;                                            
      }                                                               
    }                                                                 
  }                                                                   
}                                                                     
ffc0e7a0:	81 81 00 08 	lwz     r12,8(r1)                              
ffc0e7a4:	39 61 00 10 	addi    r11,r1,16                              
ffc0e7a8:	7d 80 81 20 	mtcrf   8,r12                                  
ffc0e7ac:	48 00 a2 30 	b       ffc189dc <_restgpr_31_x>               
                                                                      

ffc0eb1c <rtems_bdbuf_swapout_task>: * not this. * @return rtems_task Not used. */ static rtems_task rtems_bdbuf_swapout_task (rtems_task_argument arg) {
ffc0eb1c:	94 21 ff a8 	stwu    r1,-88(r1)                             
ffc0eb20:	7c 08 02 a6 	mflr    r0                                     
ffc0eb24:	be 81 00 28 	stmw    r20,40(r1)                             
  rtems_bdbuf_swapout_transfer transfer;                              
  uint32_t                     period_in_ticks;                       
  const uint32_t               period_in_msecs = bdbuf_config.swapout_period;
ffc0eb28:	3f 80 ff c2 	lis     r28,-62                                
ffc0eb2c:	3b 9c 95 fc 	addi    r28,r28,-27140                         
 *            not this.                                               
 * @return rtems_task Not used.                                       
 */                                                                   
static rtems_task                                                     
rtems_bdbuf_swapout_task (rtems_task_argument arg)                    
{                                                                     
ffc0eb30:	90 01 00 5c 	stw     r0,92(r1)                              
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc0eb34:	3f a0 00 00 	lis     r29,0                                  
ffc0eb38:	3b bd 29 68 	addi    r29,r29,10600                          
  rtems_bdbuf_swapout_transfer transfer;                              
  uint32_t                     period_in_ticks;                       
  const uint32_t               period_in_msecs = bdbuf_config.swapout_period;
ffc0eb3c:	83 7c 00 0c 	lwz     r27,12(r28)                            
  uint32_t                     timer_delta;                           
                                                                      
  transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();         
ffc0eb40:	4b ff ee 99 	bl      ffc0d9d8 <rtems_bdbuf_swapout_writereq_alloc>
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc0eb44:	39 21 00 0c 	addi    r9,r1,12                               
ffc0eb48:	90 61 00 1c 	stw     r3,28(r1)                              
  transfer.syncing = false;                                           
                                                                      
  /*                                                                  
   * Localise the period.                                             
   */                                                                 
  period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
ffc0eb4c:	1e fb 03 e8 	mulli   r23,r27,1000                           
ffc0eb50:	91 21 00 08 	stw     r9,8(r1)                               
  head->previous = NULL;                                              
ffc0eb54:	39 20 00 00 	li      r9,0                                   
ffc0eb58:	91 21 00 0c 	stw     r9,12(r1)                              
  tail->previous = head;                                              
ffc0eb5c:	39 41 00 08 	addi    r10,r1,8                               
    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),
ffc0eb60:	3e a0 ff c1 	lis     r21,-63                                
  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;                                    
ffc0eb64:	91 21 00 14 	stw     r9,20(r1)                              
  rtems_status_code sc;                                               
  size_t            w;                                                
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  for (w = 0; w < bdbuf_config.swapout_workers; w++)                  
ffc0eb68:	3b c0 00 00 	li      r30,0                                  
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
ffc0eb6c:	3b 1d 00 0c 	addi    r24,r29,12                             
  uint32_t                     timer_delta;                           
                                                                      
  transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();         
  rtems_chain_initialize_empty (&transfer.bds);                       
  transfer.dd = BDBUF_INVALID_DEV;                                    
  transfer.syncing = false;                                           
ffc0eb70:	99 21 00 18 	stb     r9,24(r1)                              
                                                                      
  /*                                                                  
   * Localise the period.                                             
   */                                                                 
  period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
ffc0eb74:	3d 20 ff c2 	lis     r9,-62                                 
    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;                                           
ffc0eb78:	3a c0 00 01 	li      r22,1                                  
  transfer.syncing = false;                                           
                                                                      
  /*                                                                  
   * Localise the period.                                             
   */                                                                 
  period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
ffc0eb7c:	81 29 95 c0 	lwz     r9,-27200(r9)                          
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc0eb80:	3b 40 00 00 	li      r26,0                                  
  tail->previous = head;                                              
ffc0eb84:	91 41 00 10 	stw     r10,16(r1)                             
    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),
ffc0eb88:	3a b5 ee 10 	addi    r21,r21,-4592                          
  transfer.syncing = false;                                           
                                                                      
  /*                                                                  
   * Localise the period.                                             
   */                                                                 
  period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
ffc0eb8c:	7e f7 4b 96 	divwu   r23,r23,r9                             
rtems_bdbuf_swapout_workers_open (void)                               
{                                                                     
  rtems_status_code sc;                                               
  size_t            w;                                                
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc0eb90:	4b ff eb e9 	bl      ffc0d778 <rtems_bdbuf_lock_cache>      
                                                                      
  for (w = 0; w < bdbuf_config.swapout_workers; w++)                  
ffc0eb94:	83 3c 00 14 	lwz     r25,20(r28)                            
ffc0eb98:	48 00 00 88 	b       ffc0ec20 <rtems_bdbuf_swapout_task+0x104>
  {                                                                   
    rtems_bdbuf_swapout_worker* worker;                               
                                                                      
    worker = malloc (sizeof (rtems_bdbuf_swapout_worker));            
ffc0eb9c:	38 60 00 28 	li      r3,40                                  <== NOT EXECUTED
ffc0eba0:	4b ff 6d 89 	bl      ffc05928 <malloc>                      <== NOT EXECUTED
    if (!worker)                                                      
ffc0eba4:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc0eba8:	40 a2 00 0c 	bne+    ffc0ebb4 <rtems_bdbuf_swapout_task+0x98><== NOT EXECUTED
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WK_NOMEM);              
ffc0ebac:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc0ebb0:	48 00 00 68 	b       ffc0ec18 <rtems_bdbuf_swapout_task+0xfc><== NOT EXECUTED
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc0ebb4:	81 3d 00 10 	lwz     r9,16(r29)                             <== NOT EXECUTED
                                                                      
  the_node->next = tail;                                              
ffc0ebb8:	93 1f 00 00 	stw     r24,0(r31)                             <== NOT EXECUTED
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
  the_node->previous = old_last;                                      
ffc0ebbc:	91 3f 00 04 	stw     r9,4(r31)                              <== 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;                                          
ffc0ebc0:	93 e9 00 00 	stw     r31,0(r9)                              <== NOT EXECUTED
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
  tail->previous = the_node;                                          
ffc0ebc4:	93 fd 00 10 	stw     r31,16(r29)                            <== NOT EXECUTED
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.swapout_workers, &worker->link);
    worker->enabled = true;                                           
ffc0ebc8:	9a df 00 0c 	stb     r22,12(r31)                            <== NOT EXECUTED
    worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
ffc0ebcc:	4b ff ee 0d 	bl      ffc0d9d8 <rtems_bdbuf_swapout_writereq_alloc><== 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 );                        
ffc0ebd0:	39 3f 00 10 	addi    r9,r31,16                              <== NOT EXECUTED
ffc0ebd4:	90 7f 00 24 	stw     r3,36(r31)                             <== NOT EXECUTED
ffc0ebd8:	39 5f 00 14 	addi    r10,r31,20                             <== NOT EXECUTED
 * @param arg A pointer to the global cache data. Use the global variable and
 *            not this.                                               
 * @return rtems_task Not used.                                       
 */                                                                   
static rtems_task                                                     
rtems_bdbuf_swapout_task (rtems_task_argument arg)                    
ffc0ebdc:	38 7e 00 61 	addi    r3,r30,97                              <== NOT EXECUTED
                                                                      
  head->next = tail;                                                  
ffc0ebe0:	91 5f 00 10 	stw     r10,16(r31)                            <== NOT EXECUTED
    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),
ffc0ebe4:	64 63 42 44 	oris    r3,r3,16964                            <== NOT EXECUTED
ffc0ebe8:	60 63 6f 00 	ori     r3,r3,28416                            <== NOT EXECUTED
  head->previous = NULL;                                              
ffc0ebec:	93 5f 00 14 	stw     r26,20(r31)                            <== NOT EXECUTED
ffc0ebf0:	7e a5 ab 78 	mr      r5,r21                                 <== NOT EXECUTED
ffc0ebf4:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
  tail->previous = head;                                              
ffc0ebf8:	91 3f 00 18 	stw     r9,24(r31)                             <== NOT EXECUTED
ffc0ebfc:	38 ff 00 08 	addi    r7,r31,8                               <== 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;                          
ffc0ec00:	93 5f 00 1c 	stw     r26,28(r31)                            <== NOT EXECUTED
                                                                      
    sc = rtems_bdbuf_create_task (rtems_build_name('B', 'D', 'o', 'a' + w),
ffc0ec04:	80 9c 00 18 	lwz     r4,24(r28)                             <== NOT EXECUTED
ffc0ec08:	4b ff ee c1 	bl      ffc0dac8 <rtems_bdbuf_create_task.constprop.14><== 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)                                       
ffc0ec0c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc0ec10:	41 be 00 0c 	beq+    cr7,ffc0ec1c <rtems_bdbuf_swapout_task+0x100><== NOT EXECUTED
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WK_CREATE);             
ffc0ec14:	38 60 00 0d 	li      r3,13                                  <== NOT EXECUTED
ffc0ec18:	4b ff eb 0d 	bl      ffc0d724 <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++)                  
ffc0ec1c:	3b de 00 01 	addi    r30,r30,1                              <== NOT EXECUTED
ffc0ec20:	7f 9e c8 40 	cmplw   cr7,r30,r25                            
ffc0ec24:	41 9c ff 78 	blt+    cr7,ffc0eb9c <rtems_bdbuf_swapout_task+0x80><== NEVER TAKEN
  /*                                                                  
   * Create the worker threads.                                       
   */                                                                 
  rtems_bdbuf_swapout_workers_open ();                                
                                                                      
  while (bdbuf_cache.swapout_enabled)                                 
ffc0ec28:	3f c0 00 00 	lis     r30,0                                  
                                  &worker->id);                       
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WK_CREATE);             
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc0ec2c:	4b ff eb a9 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    
  /*                                                                  
   * Create the worker threads.                                       
   */                                                                 
  rtems_bdbuf_swapout_workers_open ();                                
                                                                      
  while (bdbuf_cache.swapout_enabled)                                 
ffc0ec30:	3b de 29 68 	addi    r30,r30,10600                          
   * until after we have it running so we do not know to tell it to release the
   * lock. The simplest solution is to get the main swap out task perform all
   * sync operations.                                                 
   */                                                                 
  if (bdbuf_cache.sync_active)                                        
    worker = NULL;                                                    
ffc0ec34:	3b 20 00 00 	li      r25,0                                  
  else                                                                
  {                                                                   
    worker = (rtems_bdbuf_swapout_worker*)                            
      rtems_chain_get_unprotected (&bdbuf_cache.swapout_workers);     
ffc0ec38:	3a de 00 08 	addi    r22,r30,8                              
ffc0ec3c:	7f dd f3 78 	mr      r29,r30                                
                                                                      
  /*                                                                  
   * 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,             
ffc0ec40:	3a be 00 58 	addi    r21,r30,88                             
                                           timer_delta);              
                                                                      
  /*                                                                  
   * Process the cache's modified list.                               
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dd,             
ffc0ec44:	3a 9e 00 4c 	addi    r20,r30,76                             
ffc0ec48:	48 00 01 4c 	b       ffc0ed94 <rtems_bdbuf_swapout_task+0x278>
  /*                                                                  
   * Create the worker threads.                                       
   */                                                                 
  rtems_bdbuf_swapout_workers_open ();                                
                                                                      
  while (bdbuf_cache.swapout_enabled)                                 
ffc0ec4c:	3b 40 00 01 	li      r26,1                                  
                                rtems_bdbuf_swapout_transfer* transfer)
{                                                                     
  rtems_bdbuf_swapout_worker* worker;                                 
  bool                        transfered_buffers = false;             
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc0ec50:	4b ff eb 29 	bl      ffc0d778 <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)                                        
ffc0ec54:	89 3e 00 30 	lbz     r9,48(r30)                             
ffc0ec58:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ec5c:	41 9e 00 10 	beq-    cr7,ffc0ec6c <rtems_bdbuf_swapout_task+0x150>
    worker = NULL;                                                    
ffc0ec60:	3b 80 00 00 	li      r28,0                                  
ffc0ec64:	3b e1 00 08 	addi    r31,r1,8                               
ffc0ec68:	48 00 00 18 	b       ffc0ec80 <rtems_bdbuf_swapout_task+0x164>
ffc0ec6c:	7e c3 b3 78 	mr      r3,r22                                 
ffc0ec70:	4b ff ea 89 	bl      ffc0d6f8 <_Chain_Get_unprotected>      
  else                                                                
  {                                                                   
    worker = (rtems_bdbuf_swapout_worker*)                            
      rtems_chain_get_unprotected (&bdbuf_cache.swapout_workers);     
    if (worker)                                                       
ffc0ec74:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc0ec78:	41 a2 ff e8 	beq-    ffc0ec60 <rtems_bdbuf_swapout_task+0x144><== ALWAYS TAKEN
      transfer = &worker->transfer;                                   
ffc0ec7c:	3b fc 00 10 	addi    r31,r28,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 );                        
ffc0ec80:	39 3f 00 04 	addi    r9,r31,4                               
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc0ec84:	93 3f 00 04 	stw     r25,4(r31)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc0ec88:	91 3f 00 00 	stw     r9,0(r31)                              
  }                                                                   
                                                                      
  rtems_chain_initialize_empty (&transfer->bds);                      
  transfer->dd = BDBUF_INVALID_DEV;                                   
  transfer->syncing = bdbuf_cache.sync_active;                        
ffc0ec8c:	89 3e 00 30 	lbz     r9,48(r30)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc0ec90:	93 ff 00 08 	stw     r31,8(r31)                             
  /*                                                                  
   * 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)                                        
ffc0ec94:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    if (worker)                                                       
      transfer = &worker->transfer;                                   
  }                                                                   
                                                                      
  rtems_chain_initialize_empty (&transfer->bds);                      
  transfer->dd = BDBUF_INVALID_DEV;                                   
ffc0ec98:	93 3f 00 0c 	stw     r25,12(r31)                            
  transfer->syncing = bdbuf_cache.sync_active;                        
ffc0ec9c:	99 3f 00 10 	stb     r9,16(r31)                             
  /*                                                                  
   * 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)                                        
ffc0eca0:	41 9e 00 0c 	beq-    cr7,ffc0ecac <rtems_bdbuf_swapout_task+0x190>
    transfer->dd = bdbuf_cache.sync_device;                           
ffc0eca4:	81 3e 00 38 	lwz     r9,56(r30)                             
ffc0eca8:	91 3f 00 0c 	stw     r9,12(r31)                             
                                                                      
  /*                                                                  
   * 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,             
ffc0ecac:	3b 1f 00 0c 	addi    r24,r31,12                             
ffc0ecb0:	7f 03 c3 78 	mr      r3,r24                                 
ffc0ecb4:	7e a4 ab 78 	mr      r4,r21                                 
ffc0ecb8:	7f e5 fb 78 	mr      r5,r31                                 
ffc0ecbc:	38 c0 00 01 	li      r6,1                                   
ffc0ecc0:	38 e0 00 00 	li      r7,0                                   
ffc0ecc4:	7f 68 db 78 	mr      r8,r27                                 
ffc0ecc8:	4b ff f9 81 	bl      ffc0e648 <rtems_bdbuf_swapout_modified_processing>
                                           timer_delta);              
                                                                      
  /*                                                                  
   * Process the cache's modified list.                               
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dd,             
ffc0eccc:	88 dd 00 30 	lbz     r6,48(r29)                             
ffc0ecd0:	7f 03 c3 78 	mr      r3,r24                                 
ffc0ecd4:	7e 84 a3 78 	mr      r4,r20                                 
ffc0ecd8:	7f e5 fb 78 	mr      r5,r31                                 
ffc0ecdc:	7f 47 d3 78 	mr      r7,r26                                 
ffc0ece0:	7f 68 db 78 	mr      r8,r27                                 
ffc0ece4:	4b ff f9 65 	bl      ffc0e648 <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 ();                                        
ffc0ece8:	4b ff ea ed 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    
                                                                      
  /*                                                                  
   * If there are buffers to transfer to the media transfer them.     
   */                                                                 
  if (!rtems_chain_is_empty (&transfer->bds))                         
ffc0ecec:	81 3f 00 00 	lwz     r9,0(r31)                              
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0ecf0:	39 5f 00 04 	addi    r10,r31,4                              
ffc0ecf4:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0ecf8:	41 9e 00 34 	beq-    cr7,ffc0ed2c <rtems_bdbuf_swapout_task+0x210>
  {                                                                   
    if (worker)                                                       
ffc0ecfc:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0ed00:	41 9e 00 20 	beq-    cr7,ffc0ed20 <rtems_bdbuf_swapout_task+0x204><== ALWAYS TAKEN
    {                                                                 
      rtems_status_code sc = rtems_event_send (worker->id,            
ffc0ed04:	80 7c 00 08 	lwz     r3,8(r28)                              <== NOT EXECUTED
ffc0ed08:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc0ed0c:	4b ff a7 e5 	bl      ffc094f0 <rtems_event_send>            <== NOT EXECUTED
                                               RTEMS_BDBUF_SWAPOUT_SYNC);
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc0ed10:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc0ed14:	41 be 00 20 	beq+    cr7,ffc0ed34 <rtems_bdbuf_swapout_task+0x218><== NOT EXECUTED
        rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WAKE_2);              
ffc0ed18:	38 60 00 0c 	li      r3,12                                  <== NOT EXECUTED
ffc0ed1c:	4b ff fe fc 	b       ffc0ec18 <rtems_bdbuf_swapout_task+0xfc><== NOT EXECUTED
    }                                                                 
    else                                                              
    {                                                                 
      rtems_bdbuf_swapout_write (transfer);                           
ffc0ed20:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ed24:	4b ff fc 69 	bl      ffc0e98c <rtems_bdbuf_swapout_write>   
ffc0ed28:	48 00 00 0c 	b       ffc0ed34 <rtems_bdbuf_swapout_task+0x218>
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;             
ffc0ed2c:	3b e0 00 00 	li      r31,0                                  
ffc0ed30:	48 00 00 08 	b       ffc0ed38 <rtems_bdbuf_swapout_task+0x21c>
    else                                                              
    {                                                                 
      rtems_bdbuf_swapout_write (transfer);                           
    }                                                                 
                                                                      
    transfered_buffers = true;                                        
ffc0ed34:	3b e0 00 01 	li      r31,1                                  
  }                                                                   
                                                                      
  if (bdbuf_cache.sync_active && !transfered_buffers)                 
ffc0ed38:	89 3e 00 30 	lbz     r9,48(r30)                             
ffc0ed3c:	3b 40 00 00 	li      r26,0                                  
ffc0ed40:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0ed44:	2f 09 00 00 	cmpwi   cr6,r9,0                               
ffc0ed48:	41 9a 00 34 	beq-    cr6,ffc0ed7c <rtems_bdbuf_swapout_task+0x260>
ffc0ed4c:	40 9e ff 04 	bne+    cr7,ffc0ec50 <rtems_bdbuf_swapout_task+0x134>
  {                                                                   
    rtems_id sync_requester;                                          
    rtems_bdbuf_lock_cache ();                                        
ffc0ed50:	4b ff ea 29 	bl      ffc0d778 <rtems_bdbuf_lock_cache>      
    sync_requester = bdbuf_cache.sync_requester;                      
ffc0ed54:	83 9d 00 34 	lwz     r28,52(r29)                            
    bdbuf_cache.sync_active = false;                                  
ffc0ed58:	9b fd 00 30 	stb     r31,48(r29)                            
    bdbuf_cache.sync_requester = 0;                                   
ffc0ed5c:	93 fd 00 34 	stw     r31,52(r29)                            
    rtems_bdbuf_unlock_cache ();                                      
ffc0ed60:	4b ff ea 75 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    
    if (sync_requester)                                               
ffc0ed64:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0ed68:	41 be 00 80 	beq+    cr7,ffc0ede8 <rtems_bdbuf_swapout_task+0x2cc><== NEVER TAKEN
ffc0ed6c:	7f 83 e3 78 	mr      r3,r28                                 
ffc0ed70:	3c 80 80 00 	lis     r4,-32768                              
ffc0ed74:	4b ff ae 0d 	bl      ffc09b80 <rtems_event_system_send>     
ffc0ed78:	48 00 00 70 	b       ffc0ede8 <rtems_bdbuf_swapout_task+0x2cc>
      /*                                                              
       * 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,                
ffc0ed7c:	41 be 00 6c 	beq+    cr7,ffc0ede8 <rtems_bdbuf_swapout_task+0x2cc>
ffc0ed80:	4b ff fe d0 	b       ffc0ec50 <rtems_bdbuf_swapout_task+0x134>
    sc = rtems_event_receive (RTEMS_BDBUF_SWAPOUT_SYNC,               
                              RTEMS_EVENT_ALL | RTEMS_WAIT,           
                              period_in_ticks,                        
                              &out);                                  
                                                                      
    if ((sc != RTEMS_SUCCESSFUL) && (sc != RTEMS_TIMEOUT))            
ffc0ed84:	2f 83 00 06 	cmpwi   cr7,r3,6                               
ffc0ed88:	41 be 00 0c 	beq+    cr7,ffc0ed94 <rtems_bdbuf_swapout_task+0x278><== ALWAYS TAKEN
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SWAPOUT_RE);               
ffc0ed8c:	38 60 00 18 	li      r3,24                                  <== NOT EXECUTED
ffc0ed90:	4b ff fe 88 	b       ffc0ec18 <rtems_bdbuf_swapout_task+0xfc><== NOT EXECUTED
  /*                                                                  
   * Create the worker threads.                                       
   */                                                                 
  rtems_bdbuf_swapout_workers_open ();                                
                                                                      
  while (bdbuf_cache.swapout_enabled)                                 
ffc0ed94:	89 3e 00 04 	lbz     r9,4(r30)                              
ffc0ed98:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ed9c:	40 9e fe b0 	bne+    cr7,ffc0ec4c <rtems_bdbuf_swapout_task+0x130><== ALWAYS TAKEN
static void                                                           
rtems_bdbuf_swapout_workers_close (void)                              
{                                                                     
  rtems_chain_node* node;                                             
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc0eda0:	4b ff e9 d9 	bl      ffc0d778 <rtems_bdbuf_lock_cache>      <== 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;                                          
ffc0eda4:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc0eda8:	83 fe 00 08 	lwz     r31,8(r30)                             <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(         
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return &the_chain->Tail.Node;                                       
ffc0edac:	3b de 00 0c 	addi    r30,r30,12                             <== NOT EXECUTED
ffc0edb0:	48 00 00 18 	b       ffc0edc8 <rtems_bdbuf_swapout_task+0x2ac><== NOT EXECUTED
ffc0edb4:	9b bf 00 0c 	stb     r29,12(r31)                            <== NOT EXECUTED
    rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);          
ffc0edb8:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc0edbc:	80 7f 00 08 	lwz     r3,8(r31)                              <== NOT EXECUTED
ffc0edc0:	4b ff a7 31 	bl      ffc094f0 <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 ();                                        
}                                                                     
ffc0edc4:	83 ff 00 00 	lwz     r31,0(r31)                             <== 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))   
ffc0edc8:	7f 9f f0 00 	cmpw    cr7,r31,r30                            <== NOT EXECUTED
ffc0edcc:	40 9e ff e8 	bne+    cr7,ffc0edb4 <rtems_bdbuf_swapout_task+0x298><== NOT EXECUTED
    worker->enabled = false;                                          
    rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);          
    node = rtems_chain_next (node);                                   
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc0edd0:	4b ff ea 05 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    <== NOT EXECUTED
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SWAPOUT_RE);               
  }                                                                   
                                                                      
  rtems_bdbuf_swapout_workers_close ();                               
                                                                      
  free (transfer.write_req);                                          
ffc0edd4:	80 61 00 1c 	lwz     r3,28(r1)                              <== NOT EXECUTED
ffc0edd8:	4b ff 65 c1 	bl      ffc05398 <free>                        <== NOT EXECUTED
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
ffc0eddc:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc0ede0:	4b ff af 3d 	bl      ffc09d1c <rtems_task_delete>           <== NOT EXECUTED
ffc0ede4:	48 00 00 24 	b       ffc0ee08 <rtems_bdbuf_swapout_task+0x2ec><== NOT EXECUTED
       */                                                             
      update_timers = false;                                          
    }                                                                 
    while (transfered_buffers);                                       
                                                                      
    sc = rtems_event_receive (RTEMS_BDBUF_SWAPOUT_SYNC,               
ffc0ede8:	38 60 00 04 	li      r3,4                                   
ffc0edec:	38 80 00 00 	li      r4,0                                   
ffc0edf0:	7e e5 bb 78 	mr      r5,r23                                 
ffc0edf4:	38 c1 00 20 	addi    r6,r1,32                               
ffc0edf8:	4b ff a5 55 	bl      ffc0934c <rtems_event_receive>         
                              RTEMS_EVENT_ALL | RTEMS_WAIT,           
                              period_in_ticks,                        
                              &out);                                  
                                                                      
    if ((sc != RTEMS_SUCCESSFUL) && (sc != RTEMS_TIMEOUT))            
ffc0edfc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0ee00:	40 a2 ff 84 	bne-    ffc0ed84 <rtems_bdbuf_swapout_task+0x268>
ffc0ee04:	4b ff ff 90 	b       ffc0ed94 <rtems_bdbuf_swapout_task+0x278>
  rtems_bdbuf_swapout_workers_close ();                               
                                                                      
  free (transfer.write_req);                                          
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
}                                                                     
ffc0ee08:	39 61 00 58 	addi    r11,r1,88                              <== NOT EXECUTED
ffc0ee0c:	48 00 9b a4 	b       ffc189b0 <_restgpr_20_x>               <== NOT EXECUTED
                                                                      

ffc0ee10 <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) {
ffc0ee10:	94 21 ff e0 	stwu    r1,-32(r1)                             <== NOT EXECUTED
ffc0ee14:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc0ee18:	bf 41 00 08 	stmw    r26,8(r1)                              <== NOT EXECUTED
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc0ee1c:	3f c0 00 00 	lis     r30,0                                  <== NOT EXECUTED
ffc0ee20:	3b de 29 68 	addi    r30,r30,10600                          <== NOT EXECUTED
ffc0ee24:	90 01 00 24 	stw     r0,36(r1)                              <== NOT EXECUTED
ffc0ee28:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
                                                                      
  while (worker->enabled)                                             
  {                                                                   
    rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);            
                                                                      
    rtems_bdbuf_swapout_write (&worker->transfer);                    
ffc0ee2c:	3b a3 00 10 	addi    r29,r3,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 );                        
ffc0ee30:	3b 63 00 14 	addi    r27,r3,20                              <== NOT EXECUTED
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc0ee34:	3b 80 00 00 	li      r28,0                                  <== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
ffc0ee38:	3b 5e 00 0c 	addi    r26,r30,12                             <== 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)                                             
ffc0ee3c:	48 00 00 40 	b       ffc0ee7c <rtems_bdbuf_swapout_worker_task+0x6c><== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);            
ffc0ee40:	38 60 00 04 	li      r3,4                                   <== NOT EXECUTED
ffc0ee44:	4b ff eb 41 	bl      ffc0d984 <rtems_bdbuf_wait_for_event>  <== NOT EXECUTED
                                                                      
    rtems_bdbuf_swapout_write (&worker->transfer);                    
ffc0ee48:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc0ee4c:	4b ff fb 41 	bl      ffc0e98c <rtems_bdbuf_swapout_write>   <== NOT EXECUTED
                                                                      
    rtems_bdbuf_lock_cache ();                                        
ffc0ee50:	4b ff e9 29 	bl      ffc0d778 <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;                              
ffc0ee54:	81 3e 00 10 	lwz     r9,16(r30)                             <== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc0ee58:	93 7f 00 10 	stw     r27,16(r31)                            <== NOT EXECUTED
                                                                      
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dd = BDBUF_INVALID_DEV;                          
ffc0ee5c:	93 9f 00 1c 	stw     r28,28(r31)                            <== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
ffc0ee60:	93 5f 00 00 	stw     r26,0(r31)                             <== NOT EXECUTED
  tail->previous = the_node;                                          
ffc0ee64:	93 fe 00 10 	stw     r31,16(r30)                            <== NOT EXECUTED
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc0ee68:	93 9f 00 14 	stw     r28,20(r31)                            <== NOT EXECUTED
  tail->previous = head;                                              
ffc0ee6c:	93 bf 00 18 	stw     r29,24(r31)                            <== 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;                                          
ffc0ee70:	93 e9 00 00 	stw     r31,0(r9)                              <== NOT EXECUTED
  the_node->previous = old_last;                                      
ffc0ee74:	91 3f 00 04 	stw     r9,4(r31)                              <== NOT EXECUTED
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.swapout_workers, &worker->link);
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
ffc0ee78:	4b ff e9 5d 	bl      ffc0d7d4 <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)                                             
ffc0ee7c:	89 3f 00 0c 	lbz     r9,12(r31)                             <== NOT EXECUTED
ffc0ee80:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc0ee84:	40 9e ff bc 	bne+    cr7,ffc0ee40 <rtems_bdbuf_swapout_worker_task+0x30><== NOT EXECUTED
    rtems_chain_append_unprotected (&bdbuf_cache.swapout_workers, &worker->link);
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
  }                                                                   
                                                                      
  free (worker->transfer.write_req);                                  
ffc0ee88:	80 7f 00 24 	lwz     r3,36(r31)                             <== NOT EXECUTED
ffc0ee8c:	4b ff 65 0d 	bl      ffc05398 <free>                        <== NOT EXECUTED
  free (worker);                                                      
ffc0ee90:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0ee94:	4b ff 65 05 	bl      ffc05398 <free>                        <== NOT EXECUTED
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
}                                                                     
ffc0ee98:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
ffc0ee9c:	bb 41 00 08 	lmw     r26,8(r1)                              <== NOT EXECUTED
  }                                                                   
                                                                      
  free (worker->transfer.write_req);                                  
  free (worker);                                                      
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
ffc0eea0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
}                                                                     
ffc0eea4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0eea8:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
  }                                                                   
                                                                      
  free (worker->transfer.write_req);                                  
  free (worker);                                                      
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
ffc0eeac:	4b ff ae 70 	b       ffc09d1c <rtems_task_delete>           <== NOT EXECUTED
                                                                      

ffc0e98c <rtems_bdbuf_swapout_write>: * * @param transfer The transfer transaction. */ static void rtems_bdbuf_swapout_write (rtems_bdbuf_swapout_transfer* transfer) {
ffc0e98c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0e990:	7c 08 02 a6 	mflr    r0                                     
ffc0e994:	7d 80 00 26 	mfcr    r12                                    
ffc0e998:	90 01 00 34 	stw     r0,52(r1)                              
    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))                         
ffc0e99c:	81 23 00 00 	lwz     r9,0(r3)                               
 *                                                                    
 * @param transfer The transfer transaction.                          
 */                                                                   
static void                                                           
rtems_bdbuf_swapout_write (rtems_bdbuf_swapout_transfer* transfer)    
{                                                                     
ffc0e9a0:	bf 01 00 10 	stmw    r24,16(r1)                             
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0e9a4:	3b 83 00 04 	addi    r28,r3,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))                         
ffc0e9a8:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
 *                                                                    
 * @param transfer The transfer transaction.                          
 */                                                                   
static void                                                           
rtems_bdbuf_swapout_write (rtems_bdbuf_swapout_transfer* transfer)    
{                                                                     
ffc0e9ac:	91 81 00 0c 	stw     r12,12(r1)                             
ffc0e9b0:	7c 7f 1b 78 	mr      r31,r3                                 
    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))                         
ffc0e9b4:	41 9e 01 58 	beq-    cr7,ffc0eb0c <rtems_bdbuf_swapout_write+0x180><== 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;                             
ffc0e9b8:	83 c3 00 0c 	lwz     r30,12(r3)                             
     * 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;              
ffc0e9bc:	39 00 00 0c 	li      r8,12                                  
  {                                                                   
    /*                                                                
     * The last block number used when the driver only supports       
     * continuous blocks in a single request.                         
     */                                                               
    uint32_t last_block = 0;                                          
ffc0e9c0:	3b a0 00 00 	li      r29,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;
ffc0e9c4:	81 3e 00 08 	lwz     r9,8(r30)                              
    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;                              
ffc0e9c8:	3b 40 00 00 	li      r26,0                                  
     * 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;     
ffc0e9cc:	83 7e 00 2c 	lwz     r27,44(r30)                            
                                                                      
      if (write)                                                      
      {                                                               
        rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
                                                                      
        transfer->write_req->status = RTEMS_RESOURCE_IN_USE;          
ffc0e9d0:	3b 20 00 0c 	li      r25,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;
ffc0e9d4:	81 49 00 0c 	lwz     r10,12(r9)                             
       * 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))
ffc0e9d8:	3f 00 ff c2 	lis     r24,-62                                
     * 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;              
ffc0e9dc:	81 23 00 14 	lwz     r9,20(r3)                              
ffc0e9e0:	91 09 00 0c 	stw     r8,12(r9)                              
    transfer->write_req->bufnum = 0;                                  
ffc0e9e4:	39 00 00 00 	li      r8,0                                   
ffc0e9e8:	91 09 00 10 	stw     r8,16(r9)                              
      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 &&    
ffc0e9ec:	55 49 07 fe 	clrlwi  r9,r10,31                              
ffc0e9f0:	2e 09 00 00 	cmpwi   cr4,r9,0                               
     * 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)
ffc0e9f4:	48 00 00 c0 	b       ffc0eab4 <rtems_bdbuf_swapout_write+0x128>
ffc0e9f8:	81 5f 00 14 	lwz     r10,20(r31)                            
      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 &&    
ffc0e9fc:	41 92 00 3c 	beq-    cr4,ffc0ea38 <rtems_bdbuf_swapout_write+0xac>
ffc0ea00:	81 0a 00 10 	lwz     r8,16(r10)                             
ffc0ea04:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0ea08:	41 9e 00 30 	beq-    cr7,ffc0ea38 <rtems_bdbuf_swapout_write+0xac>
ffc0ea0c:	81 03 00 18 	lwz     r8,24(r3)                              
          bd->block != last_block + media_blocks_per_block)           
ffc0ea10:	7c fd da 14 	add     r7,r29,r27                             
      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 &&    
ffc0ea14:	7f 88 38 00 	cmpw    cr7,r8,r7                              
ffc0ea18:	41 9e 00 20 	beq-    cr7,ffc0ea38 <rtems_bdbuf_swapout_write+0xac>
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc0ea1c:	81 5f 00 00 	lwz     r10,0(r31)                             
          bd->block != last_block + media_blocks_per_block)           
      {                                                               
        rtems_chain_prepend_unprotected (&transfer->bds, &bd->link);  
        write = true;                                                 
ffc0ea20:	39 20 00 01 	li      r9,1                                   
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0ea24:	93 e3 00 04 	stw     r31,4(r3)                              
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc0ea28:	90 7f 00 00 	stw     r3,0(r31)                              
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
ffc0ea2c:	90 6a 00 04 	stw     r3,4(r10)                              
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
  the_node->next        = before_node;                                
ffc0ea30:	91 43 00 00 	stw     r10,0(r3)                              
ffc0ea34:	48 00 00 38 	b       ffc0ea6c <rtems_bdbuf_swapout_write+0xe0>
      }                                                               
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
ffc0ea38:	80 ca 00 10 	lwz     r6,16(r10)                             
        transfer->write_req->bufnum++;                                
        buf->user   = bd;                                             
        buf->block  = bd->block;                                      
ffc0ea3c:	83 a3 00 18 	lwz     r29,24(r3)                             
        write = true;                                                 
      }                                                               
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
ffc0ea40:	38 c6 00 01 	addi    r6,r6,1                                
        transfer->write_req->bufnum++;                                
        buf->user   = bd;                                             
        buf->block  = bd->block;                                      
        buf->length = dd->block_size;                                 
        buf->buffer = bd->buffer;                                     
ffc0ea44:	81 23 00 1c 	lwz     r9,28(r3)                              
        write = true;                                                 
      }                                                               
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
ffc0ea48:	54 c7 20 36 	rlwinm  r7,r6,4,0,27                           
        transfer->write_req->bufnum++;                                
ffc0ea4c:	90 ca 00 10 	stw     r6,16(r10)                             
        write = true;                                                 
      }                                                               
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
ffc0ea50:	7c ea 3a 14 	add     r7,r10,r7                              
        transfer->write_req->bufnum++;                                
        buf->user   = bd;                                             
        buf->block  = bd->block;                                      
        buf->length = dd->block_size;                                 
ffc0ea54:	81 5e 00 24 	lwz     r10,36(r30)                            
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
        transfer->write_req->bufnum++;                                
        buf->user   = bd;                                             
ffc0ea58:	90 67 00 14 	stw     r3,20(r7)                              
        buf->block  = bd->block;                                      
ffc0ea5c:	93 a7 00 08 	stw     r29,8(r7)                              
        buf->length = dd->block_size;                                 
ffc0ea60:	91 47 00 0c 	stw     r10,12(r7)                             
        buf->buffer = bd->buffer;                                     
ffc0ea64:	91 27 00 10 	stw     r9,16(r7)                              
    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;                              
ffc0ea68:	39 20 00 00 	li      r9,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) ||                    
ffc0ea6c:	81 5f 00 00 	lwz     r10,0(r31)                             
ffc0ea70:	7f 8a e0 00 	cmpw    cr7,r10,r28                            
ffc0ea74:	41 9e 00 24 	beq-    cr7,ffc0ea98 <rtems_bdbuf_swapout_write+0x10c>
          (transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
ffc0ea78:	81 5f 00 14 	lwz     r10,20(r31)                            
ffc0ea7c:	38 f8 95 fc 	addi    r7,r24,-27140                          
      /*                                                              
       * 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) ||                    
ffc0ea80:	81 0a 00 10 	lwz     r8,16(r10)                             
ffc0ea84:	81 47 00 04 	lwz     r10,4(r7)                              
ffc0ea88:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc0ea8c:	40 9c 00 0c 	bge-    cr7,ffc0ea98 <rtems_bdbuf_swapout_write+0x10c>
          (transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
        write = true;                                                 
                                                                      
      if (write)                                                      
ffc0ea90:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ea94:	41 be 00 20 	beq+    cr7,ffc0eab4 <rtems_bdbuf_swapout_write+0x128>
      {                                                               
        rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
ffc0ea98:	80 9f 00 14 	lwz     r4,20(r31)                             
ffc0ea9c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0eaa0:	38 a0 00 00 	li      r5,0                                   
ffc0eaa4:	4b ff fd 1d 	bl      ffc0e7c0 <rtems_bdbuf_execute_transfer_request>
                                                                      
        transfer->write_req->status = RTEMS_RESOURCE_IN_USE;          
ffc0eaa8:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0eaac:	93 29 00 0c 	stw     r25,12(r9)                             
        transfer->write_req->bufnum = 0;                              
ffc0eab0:	93 49 00 10 	stw     r26,16(r9)                             
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get_unprotected(   
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get_unprotected( the_chain );                         
ffc0eab4:	7f e3 fb 78 	mr      r3,r31                                 
ffc0eab8:	4b ff ec 41 	bl      ffc0d6f8 <_Chain_Get_unprotected>      
     * 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)
ffc0eabc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0eac0:	40 82 ff 38 	bne+    ffc0e9f8 <rtems_bdbuf_swapout_write+0x6c>
                                                                      
    /*                                                                
     * If sync'ing and the deivce is capability of handling a sync IO control
     * call perform the call.                                         
     */                                                               
    if (transfer->syncing &&                                          
ffc0eac4:	89 3f 00 10 	lbz     r9,16(r31)                             
ffc0eac8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0eacc:	41 9e 00 40 	beq-    cr7,ffc0eb0c <rtems_bdbuf_swapout_write+0x180>
        (dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))         
ffc0ead0:	80 7e 00 08 	lwz     r3,8(r30)                              
ffc0ead4:	81 23 00 0c 	lwz     r9,12(r3)                              
                                                                      
    /*                                                                
     * If sync'ing and the deivce is capability of handling a sync IO control
     * call perform the call.                                         
     */                                                               
    if (transfer->syncing &&                                          
ffc0ead8:	71 2a 00 02 	andi.   r10,r9,2                               
ffc0eadc:	41 a2 00 30 	beq+    ffc0eb0c <rtems_bdbuf_swapout_write+0x180><== ALWAYS TAKEN
        (dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))         
    {                                                                 
      /* int result = */ dd->ioctl (dd->phys_dev, RTEMS_BLKDEV_REQ_SYNC, NULL);
ffc0eae0:	81 3e 00 38 	lwz     r9,56(r30)                             <== NOT EXECUTED
ffc0eae4:	38 80 00 02 	li      r4,2                                   <== NOT EXECUTED
      /* How should the error be handled ? */                         
    }                                                                 
  }                                                                   
}                                                                     
ffc0eae8:	80 01 00 34 	lwz     r0,52(r1)                              <== NOT EXECUTED
     * call perform the call.                                         
     */                                                               
    if (transfer->syncing &&                                          
        (dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))         
    {                                                                 
      /* int result = */ dd->ioctl (dd->phys_dev, RTEMS_BLKDEV_REQ_SYNC, NULL);
ffc0eaec:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
      /* How should the error be handled ? */                         
    }                                                                 
  }                                                                   
}                                                                     
ffc0eaf0:	81 81 00 0c 	lwz     r12,12(r1)                             <== NOT EXECUTED
     * call perform the call.                                         
     */                                                               
    if (transfer->syncing &&                                          
        (dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))         
    {                                                                 
      /* int result = */ dd->ioctl (dd->phys_dev, RTEMS_BLKDEV_REQ_SYNC, NULL);
ffc0eaf4:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
      /* How should the error be handled ? */                         
    }                                                                 
  }                                                                   
}                                                                     
ffc0eaf8:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0eafc:	bb 01 00 10 	lmw     r24,16(r1)                             <== NOT EXECUTED
ffc0eb00:	7d 80 81 20 	mtcrf   8,r12                                  <== NOT EXECUTED
ffc0eb04:	38 21 00 30 	addi    r1,r1,48                               <== NOT EXECUTED
     * call perform the call.                                         
     */                                                               
    if (transfer->syncing &&                                          
        (dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))         
    {                                                                 
      /* int result = */ dd->ioctl (dd->phys_dev, RTEMS_BLKDEV_REQ_SYNC, NULL);
ffc0eb08:	4e 80 04 20 	bctr                                           <== NOT EXECUTED
      /* How should the error be handled ? */                         
    }                                                                 
  }                                                                   
}                                                                     
ffc0eb0c:	81 81 00 0c 	lwz     r12,12(r1)                             
ffc0eb10:	39 61 00 30 	addi    r11,r1,48                              
ffc0eb14:	7d 80 81 20 	mtcrf   8,r12                                  
ffc0eb18:	48 00 9e a8 	b       ffc189c0 <_restgpr_24_x>               
                                                                      

ffc0d9d8 <rtems_bdbuf_swapout_writereq_alloc>: * 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)));
ffc0d9d8:	3d 20 ff c2 	lis     r9,-62                                 
 *                                                                    
 * @return rtems_blkdev_request* The write reference memory.          
 */                                                                   
static rtems_blkdev_request*                                          
rtems_bdbuf_swapout_writereq_alloc (void)                             
{                                                                     
ffc0d9dc:	7c 08 02 a6 	mflr    r0                                     
   * 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)));
ffc0d9e0:	80 69 96 00 	lwz     r3,-27136(r9)                          
 *                                                                    
 * @return rtems_blkdev_request* The write reference memory.          
 */                                                                   
static rtems_blkdev_request*                                          
rtems_bdbuf_swapout_writereq_alloc (void)                             
{                                                                     
ffc0d9e4:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0d9e8:	94 21 ff f0 	stwu    r1,-16(r1)                             
   * 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)));
ffc0d9ec:	54 63 20 36 	rlwinm  r3,r3,4,0,27                           
   * @note chrisj The rtems_blkdev_request and the array at the end is a hack.
   * I am disappointment at finding code like this in RTEMS. The request should
   * have been a rtems_chain_control. Simple, fast and less storage as the node
   * is already part of the buffer structure.                         
   */                                                                 
  rtems_blkdev_request* write_req =                                   
ffc0d9f0:	38 63 00 18 	addi    r3,r3,24                               
 *                                                                    
 * @return rtems_blkdev_request* The write reference memory.          
 */                                                                   
static rtems_blkdev_request*                                          
rtems_bdbuf_swapout_writereq_alloc (void)                             
{                                                                     
ffc0d9f4:	48 00 af 9d 	bl      ffc18990 <_savegpr_31>                 
ffc0d9f8:	90 01 00 14 	stw     r0,20(r1)                              
   * @note chrisj The rtems_blkdev_request and the array at the end is a hack.
   * I am disappointment at finding code like this in RTEMS. The request should
   * have been a rtems_chain_control. Simple, fast and less storage as the node
   * is already part of the buffer structure.                         
   */                                                                 
  rtems_blkdev_request* write_req =                                   
ffc0d9fc:	4b ff 7f 2d 	bl      ffc05928 <malloc>                      
    malloc (sizeof (rtems_blkdev_request) +                           
            (bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
                                                                      
  if (!write_req)                                                     
ffc0da00:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0da04:	40 a2 00 0c 	bne+    ffc0da10 <rtems_bdbuf_swapout_writereq_alloc+0x38><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_REQ_NOMEM);               
ffc0da08:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
ffc0da0c:	4b ff fd 19 	bl      ffc0d724 <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      
  write_req->req = RTEMS_BLKDEV_REQ_WRITE;                            
ffc0da10:	39 20 00 01 	li      r9,1                                   
ffc0da14:	91 3f 00 00 	stw     r9,0(r31)                              
  write_req->done = rtems_bdbuf_transfer_done;                        
ffc0da18:	3d 20 ff c1 	lis     r9,-63                                 
ffc0da1c:	39 29 e7 b0 	addi    r9,r9,-6224                            
ffc0da20:	91 3f 00 04 	stw     r9,4(r31)                              
  write_req->io_task = rtems_task_self ();                            
ffc0da24:	48 00 40 21 	bl      ffc11a44 <rtems_task_self>             
                                                                      
  return write_req;                                                   
}                                                                     
ffc0da28:	39 61 00 10 	addi    r11,r1,16                              
  if (!write_req)                                                     
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_REQ_NOMEM);               
                                                                      
  write_req->req = RTEMS_BLKDEV_REQ_WRITE;                            
  write_req->done = rtems_bdbuf_transfer_done;                        
  write_req->io_task = rtems_task_self ();                            
ffc0da2c:	90 7f 00 14 	stw     r3,20(r31)                             
                                                                      
  return write_req;                                                   
}                                                                     
ffc0da30:	7f e3 fb 78 	mr      r3,r31                                 
ffc0da34:	48 00 af a8 	b       ffc189dc <_restgpr_31_x>               
                                                                      

ffc0f9b0 <rtems_bdbuf_sync>: rtems_status_code rtems_bdbuf_sync (rtems_bdbuf_buffer *bd) {
ffc0f9b0:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0f9b4:	7c 08 02 a6 	mflr    r0                                     
ffc0f9b8:	bf c1 00 08 	stmw    r30,8(r1)                              
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
ffc0f9bc:	7c 7f 1b 79 	mr.     r31,r3                                 
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_bdbuf_sync (rtems_bdbuf_buffer *bd)                             
{                                                                     
ffc0f9c0:	90 01 00 14 	stw     r0,20(r1)                              
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
ffc0f9c4:	41 82 01 0c 	beq-    ffc0fad0 <rtems_bdbuf_sync+0x120>      <== NEVER TAKEN
  if (rtems_bdbuf_tracer)                                             
  {                                                                   
    printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);              
    rtems_bdbuf_show_users (kind, bd);                                
  }                                                                   
  rtems_bdbuf_lock_cache();                                           
ffc0f9c8:	4b ff dd b1 	bl      ffc0d778 <rtems_bdbuf_lock_cache>      
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "sync");              
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
ffc0f9cc:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc0f9d0:	2b 83 00 03 	cmplwi  cr7,r3,3                               
ffc0f9d4:	41 9c 00 e8 	blt-    cr7,ffc0fabc <rtems_bdbuf_sync+0x10c>  <== NEVER TAKEN
ffc0f9d8:	2b 83 00 05 	cmplwi  cr7,r3,5                               
ffc0f9dc:	40 9d 00 10 	ble-    cr7,ffc0f9ec <rtems_bdbuf_sync+0x3c>   
ffc0f9e0:	2f 83 00 06 	cmpwi   cr7,r3,6                               
ffc0f9e4:	40 be 00 d8 	bne+    cr7,ffc0fabc <rtems_bdbuf_sync+0x10c>  <== NEVER TAKEN
ffc0f9e8:	48 00 00 c8 	b       ffc0fab0 <rtems_bdbuf_sync+0x100>      
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc0f9ec:	3c 60 00 00 	lis     r3,0                                   
ffc0f9f0:	38 63 29 68 	addi    r3,r3,10600                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0f9f4:	39 20 00 08 	li      r9,8                                   
ffc0f9f8:	91 3f 00 20 	stw     r9,32(r31)                             
                                                                      
  the_node->next = tail;                                              
ffc0f9fc:	39 43 00 5c 	addi    r10,r3,92                              
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc0fa00:	81 23 00 60 	lwz     r9,96(r3)                              
                                                                      
  the_node->next = tail;                                              
ffc0fa04:	91 5f 00 00 	stw     r10,0(r31)                             
  tail->previous = the_node;                                          
ffc0fa08:	93 e3 00 60 	stw     r31,96(r3)                             
  old_last->next = the_node;                                          
ffc0fa0c:	93 e9 00 00 	stw     r31,0(r9)                              
  the_node->previous = old_last;                                      
ffc0fa10:	91 3f 00 04 	stw     r9,4(r31)                              
{                                                                     
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);                 
                                                                      
  rtems_chain_append_unprotected (&bdbuf_cache.sync, &bd->link);      
                                                                      
  if (bd->waiters)                                                    
ffc0fa14:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc0fa18:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0fa1c:	41 be 00 0c 	beq+    cr7,ffc0fa28 <rtems_bdbuf_sync+0x78>   
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
ffc0fa20:	38 63 00 64 	addi    r3,r3,100                              
ffc0fa24:	4b ff e0 65 	bl      ffc0da88 <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);         
ffc0fa28:	3f c0 00 00 	lis     r30,0                                  
  rtems_chain_append_unprotected (&bdbuf_cache.sync, &bd->link);      
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
                                                                      
  rtems_bdbuf_wake_swapper ();                                        
ffc0fa2c:	4b ff dd b9 	bl      ffc0d7e4 <rtems_bdbuf_wake_swapper>    
      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);         
ffc0fa30:	3b de 29 68 	addi    r30,r30,10600                          
ffc0fa34:	3b de 00 6c 	addi    r30,r30,108                            
static void                                                           
rtems_bdbuf_wait_for_sync_done (rtems_bdbuf_buffer *bd)               
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
ffc0fa38:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc0fa3c:	2b 83 00 01 	cmplwi  cr7,r3,1                               
ffc0fa40:	41 9c 00 24 	blt-    cr7,ffc0fa64 <rtems_bdbuf_sync+0xb4>   <== NEVER TAKEN
ffc0fa44:	2b 83 00 07 	cmplwi  cr7,r3,7                               
ffc0fa48:	40 9d 00 24 	ble-    cr7,ffc0fa6c <rtems_bdbuf_sync+0xbc>   
ffc0fa4c:	2b 83 00 0a 	cmplwi  cr7,r3,10                              
ffc0fa50:	41 9d 00 14 	bgt-    cr7,ffc0fa64 <rtems_bdbuf_sync+0xb4>   <== 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);         
ffc0fa54:	7f e3 fb 78 	mr      r3,r31                                 
ffc0fa58:	7f c4 f3 78 	mr      r4,r30                                 
ffc0fa5c:	4b ff de c9 	bl      ffc0d924 <rtems_bdbuf_wait>            
ffc0fa60:	4b ff ff d8 	b       ffc0fa38 <rtems_bdbuf_sync+0x88>       
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_9);
ffc0fa64:	38 80 00 15 	li      r4,21                                  <== NOT EXECUTED
ffc0fa68:	48 00 00 58 	b       ffc0fac0 <rtems_bdbuf_sync+0x110>      <== 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                                                
ffc0fa6c:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc0fa70:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0fa74:	40 9e 00 50 	bne-    cr7,ffc0fac4 <rtems_bdbuf_sync+0x114>  
        && (bd->state == RTEMS_BDBUF_STATE_CACHED                     
          || bd->state == RTEMS_BDBUF_STATE_EMPTY))                   
ffc0fa78:	39 23 ff ff 	addi    r9,r3,-1                               
                                                                      
  /*                                                                  
   * We may have created a cached or empty buffer which may be recycled.
   */                                                                 
  if (bd->waiters == 0                                                
        && (bd->state == RTEMS_BDBUF_STATE_CACHED                     
ffc0fa7c:	2b 89 00 01 	cmplwi  cr7,r9,1                               
ffc0fa80:	41 bd 00 44 	bgt+    cr7,ffc0fac4 <rtems_bdbuf_sync+0x114>  <== NEVER TAKEN
          || bd->state == RTEMS_BDBUF_STATE_EMPTY))                   
  {                                                                   
    if (bd->state == RTEMS_BDBUF_STATE_EMPTY)                         
ffc0fa84:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc0fa88:	40 be 00 14 	bne+    cr7,ffc0fa9c <rtems_bdbuf_sync+0xec>   
    {                                                                 
      rtems_bdbuf_remove_from_tree (bd);                              
ffc0fa8c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0fa90:	4b ff e0 b5 	bl      ffc0db44 <rtems_bdbuf_remove_from_tree>
      rtems_bdbuf_make_free_and_add_to_lru_list (bd);                 
ffc0fa94:	7f e3 fb 78 	mr      r3,r31                                 
ffc0fa98:	4b ff e4 65 	bl      ffc0defc <rtems_bdbuf_make_free_and_add_to_lru_list>
    }                                                                 
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
ffc0fa9c:	3c 60 00 00 	lis     r3,0                                   
ffc0faa0:	38 63 29 68 	addi    r3,r3,10600                            
ffc0faa4:	38 63 00 74 	addi    r3,r3,116                              
ffc0faa8:	4b ff df e1 	bl      ffc0da88 <rtems_bdbuf_wake>            
ffc0faac:	48 00 00 18 	b       ffc0fac4 <rtems_bdbuf_sync+0x114>      
    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);                   
ffc0fab0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0fab4:	4b ff f6 71 	bl      ffc0f124 <rtems_bdbuf_discard_buffer_after_access>
      break;                                                          
ffc0fab8:	48 00 00 0c 	b       ffc0fac4 <rtems_bdbuf_sync+0x114>      
    default:                                                          
      rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_5);
ffc0fabc:	38 80 00 11 	li      r4,17                                  <== NOT EXECUTED
ffc0fac0:	4b ff dc c9 	bl      ffc0d788 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
  }                                                                   
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc0fac4:	4b ff dd 11 	bl      ffc0d7d4 <rtems_bdbuf_unlock_cache>    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0fac8:	38 60 00 00 	li      r3,0                                   
ffc0facc:	48 00 00 08 	b       ffc0fad4 <rtems_bdbuf_sync+0x124>      
                                                                      
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;                                     
ffc0fad0:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0fad4:	39 61 00 10 	addi    r11,r1,16                              
ffc0fad8:	48 00 8f 00 	b       ffc189d8 <_restgpr_30_x>               
                                                                      

ffc0d7a0 <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) {
ffc0d7a0:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0d7a4:	7c 08 02 a6 	mflr    r0                                     
ffc0d7a8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0d7ac:	48 00 b1 e5 	bl      ffc18990 <_savegpr_31>                 
ffc0d7b0:	90 01 00 14 	stw     r0,20(r1)                              
ffc0d7b4:	7c 9f 23 78 	mr      r31,r4                                 
  rtems_status_code sc = rtems_semaphore_release (lock);              
ffc0d7b8:	4b ff c3 11 	bl      ffc09ac8 <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0d7bc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0d7c0:	41 be 00 0c 	beq+    cr7,ffc0d7cc <rtems_bdbuf_unlock+0x2c> <== ALWAYS TAKEN
    rtems_bdbuf_fatal (fatal_error_code);                             
ffc0d7c4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0d7c8:	4b ff ff 5d 	bl      ffc0d724 <rtems_bdbuf_fatal>           <== NOT EXECUTED
}                                                                     
ffc0d7cc:	39 61 00 10 	addi    r11,r1,16                              
ffc0d7d0:	48 00 b2 0c 	b       ffc189dc <_restgpr_31_x>               
                                                                      

ffc0d984 <rtems_bdbuf_wait_for_event>: return RTEMS_UNSATISFIED; } static void rtems_bdbuf_wait_for_event (rtems_event_set event) {
ffc0d984:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0d988:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0d98c:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_event_set   out = 0;                                          
ffc0d990:	39 20 00 00 	li      r9,0                                   
ffc0d994:	7c 26 0b 78 	mr      r6,r1                                  
  return RTEMS_UNSATISFIED;                                           
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wait_for_event (rtems_event_set event)                    
{                                                                     
ffc0d998:	48 00 af f9 	bl      ffc18990 <_savegpr_31>                 
ffc0d99c:	90 01 00 24 	stw     r0,36(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_event_set   out = 0;                                          
                                                                      
  sc = rtems_event_receive (event,                                    
ffc0d9a0:	38 80 00 00 	li      r4,0                                   
ffc0d9a4:	38 a0 00 00 	li      r5,0                                   
                                                                      
static void                                                           
rtems_bdbuf_wait_for_event (rtems_event_set event)                    
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_event_set   out = 0;                                          
ffc0d9a8:	95 26 00 08 	stwu    r9,8(r6)                               
  return RTEMS_UNSATISFIED;                                           
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wait_for_event (rtems_event_set event)                    
{                                                                     
ffc0d9ac:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_event_set   out = 0;                                          
                                                                      
  sc = rtems_event_receive (event,                                    
ffc0d9b0:	4b ff b9 9d 	bl      ffc0934c <rtems_event_receive>         
                            RTEMS_EVENT_ALL | RTEMS_WAIT,             
                            RTEMS_NO_TIMEOUT,                         
                            &out);                                    
                                                                      
  if (sc != RTEMS_SUCCESSFUL || out != event)                         
ffc0d9b4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0d9b8:	40 9e 00 10 	bne-    cr7,ffc0d9c8 <rtems_bdbuf_wait_for_event+0x44><== NEVER TAKEN
ffc0d9bc:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0d9c0:	7f 89 f8 00 	cmpw    cr7,r9,r31                             
ffc0d9c4:	41 be 00 0c 	beq+    cr7,ffc0d9d0 <rtems_bdbuf_wait_for_event+0x4c><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_WAIT_EVNT);                  
ffc0d9c8:	38 60 00 1c 	li      r3,28                                  <== NOT EXECUTED
ffc0d9cc:	4b ff fd 59 	bl      ffc0d724 <rtems_bdbuf_fatal>           <== NOT EXECUTED
}                                                                     
ffc0d9d0:	39 61 00 20 	addi    r11,r1,32                              
ffc0d9d4:	48 00 b0 08 	b       ffc189dc <_restgpr_31_x>               
                                                                      

ffc0debc <rtems_bdbuf_wait_for_transient_event>: rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_WAIT_EVNT); } static void rtems_bdbuf_wait_for_transient_event (void) {
ffc0debc:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0dec0:	7c 08 02 a6 	mflr    r0                                     
  rtems_interval ticks                                                
)                                                                     
{                                                                     
  rtems_event_set event_out;                                          
                                                                      
  return rtems_event_system_receive(                                  
ffc0dec4:	3c 60 80 00 	lis     r3,-32768                              
ffc0dec8:	38 80 00 00 	li      r4,0                                   
ffc0decc:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0ded0:	38 a0 00 00 	li      r5,0                                   
ffc0ded4:	38 c1 00 08 	addi    r6,r1,8                                
ffc0ded8:	48 00 39 4d 	bl      ffc11824 <rtems_event_system_receive>  
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_event_transient_receive (RTEMS_WAIT, RTEMS_NO_TIMEOUT);  
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0dedc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0dee0:	41 be 00 0c 	beq+    cr7,ffc0deec <rtems_bdbuf_wait_for_transient_event+0x30><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_WAIT_TRANS_EVNT);            
ffc0dee4:	38 60 00 1d 	li      r3,29                                  <== NOT EXECUTED
ffc0dee8:	4b ff f8 3d 	bl      ffc0d724 <rtems_bdbuf_fatal>           <== NOT EXECUTED
}                                                                     
ffc0deec:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0def0:	38 21 00 18 	addi    r1,r1,24                               
ffc0def4:	7c 08 03 a6 	mtlr    r0                                     
ffc0def8:	4e 80 00 20 	blr                                            
                                                                      

ffc0da88 <rtems_bdbuf_wake>: static void rtems_bdbuf_wake (const rtems_bdbuf_waiters *waiters) { rtems_status_code sc = RTEMS_SUCCESSFUL; if (waiters->count > 0)
ffc0da88:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0da8c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0da90:	4d be 00 20 	beqlr+  cr7                                    
 * 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)                 
{                                                                     
ffc0da94:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0da98:	7c 08 02 a6 	mflr    r0                                     
ffc0da9c:	90 01 00 0c 	stw     r0,12(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (waiters->count > 0)                                             
  {                                                                   
    sc = rtems_semaphore_flush (waiters->sema);                       
ffc0daa0:	80 63 00 04 	lwz     r3,4(r3)                               
ffc0daa4:	48 00 3c e5 	bl      ffc11788 <rtems_semaphore_flush>       
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc0daa8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0daac:	41 be 00 0c 	beq+    cr7,ffc0dab8 <rtems_bdbuf_wake+0x30>   <== ALWAYS TAKEN
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_CACHE_WAKE);               
ffc0dab0:	38 60 00 04 	li      r3,4                                   <== NOT EXECUTED
ffc0dab4:	4b ff fc 71 	bl      ffc0d724 <rtems_bdbuf_fatal>           <== NOT EXECUTED
  }                                                                   
}                                                                     
ffc0dab8:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0dabc:	38 21 00 08 	addi    r1,r1,8                                
ffc0dac0:	7c 08 03 a6 	mtlr    r0                                     
ffc0dac4:	4e 80 00 20 	blr                                            
                                                                      

ffc0d7e4 <rtems_bdbuf_wake_swapper>: } static void rtems_bdbuf_wake_swapper (void) { rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,
ffc0d7e4:	3d 20 00 00 	lis     r9,0                                   
  }                                                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wake_swapper (void)                                       
{                                                                     
ffc0d7e8:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0d7ec:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,       
ffc0d7f0:	38 80 00 04 	li      r4,4                                   
ffc0d7f4:	80 69 29 68 	lwz     r3,10600(r9)                           
  }                                                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wake_swapper (void)                                       
{                                                                     
ffc0d7f8:	90 01 00 0c 	stw     r0,12(r1)                              
  rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,       
ffc0d7fc:	4b ff bc f5 	bl      ffc094f0 <rtems_event_send>            
                                           RTEMS_BDBUF_SWAPOUT_SYNC); 
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0d800:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0d804:	41 be 00 0c 	beq+    cr7,ffc0d810 <rtems_bdbuf_wake_swapper+0x2c><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WAKE_1);                  
ffc0d808:	38 60 00 0b 	li      r3,11                                  <== NOT EXECUTED
ffc0d80c:	4b ff ff 19 	bl      ffc0d724 <rtems_bdbuf_fatal>           <== NOT EXECUTED
}                                                                     
ffc0d810:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0d814:	38 21 00 08 	addi    r1,r1,8                                
ffc0d818:	7c 08 03 a6 	mtlr    r0                                     
ffc0d81c:	4e 80 00 20 	blr                                            
                                                                      

ffc03c60 <rtems_bdpart_create>: const rtems_bdpart_format *format, rtems_bdpart_partition *pt, const unsigned *dist, size_t count ) {
ffc03c60:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc03c64:	7c 08 02 a6 	mflr    r0                                     
ffc03c68:	bf 41 00 18 	stmw    r26,24(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
ffc03c6c:	7c 9d 23 79 	mr.     r29,r4                                 
  const rtems_bdpart_format *format,                                  
  rtems_bdpart_partition *pt,                                         
  const unsigned *dist,                                               
  size_t count                                                        
)                                                                     
{                                                                     
ffc03c70:	7c bc 2b 78 	mr      r28,r5                                 
ffc03c74:	90 01 00 34 	stw     r0,52(r1)                              
ffc03c78:	7c db 33 78 	mr      r27,r6                                 
ffc03c7c:	7c fe 3b 78 	mr      r30,r7                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
ffc03c80:	41 82 00 1c 	beq-    ffc03c9c <rtems_bdpart_create+0x3c>    <== NEVER TAKEN
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
ffc03c84:	81 3d 00 00 	lwz     r9,0(r29)                              
    && format->mbr.dos_compatibility;                                 
ffc03c88:	3b e0 00 00 	li      r31,0                                  
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
ffc03c8c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc03c90:	40 9e 00 10 	bne-    cr7,ffc03ca0 <rtems_bdpart_create+0x40><== NEVER TAKEN
    && format->mbr.dos_compatibility;                                 
ffc03c94:	8b fd 00 08 	lbz     r31,8(r29)                             
ffc03c98:	48 00 00 08 	b       ffc03ca0 <rtems_bdpart_create+0x40>    
ffc03c9c:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
  rtems_blkdev_bnum disk_end = 0;                                     
  rtems_blkdev_bnum pos = 0;                                          
  rtems_blkdev_bnum dist_sum = 0;                                     
  rtems_blkdev_bnum record_space =                                    
ffc03ca0:	73 fa 00 01 	andi.   r26,r31,1                              
  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) {                                                   
ffc03ca4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
{                                                                     
  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;                                     
ffc03ca8:	39 20 00 00 	li      r9,0                                   
  rtems_blkdev_bnum pos = 0;                                          
  rtems_blkdev_bnum dist_sum = 0;                                     
  rtems_blkdev_bnum record_space =                                    
ffc03cac:	7f e0 00 26 	mfcr    r31                                    
ffc03cb0:	57 ff 1f fe 	rlwinm  r31,r31,3,31,31                        
{                                                                     
  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;                                     
ffc03cb4:	91 21 00 08 	stw     r9,8(r1)                               
  rtems_blkdev_bnum pos = 0;                                          
  rtems_blkdev_bnum dist_sum = 0;                                     
  rtems_blkdev_bnum record_space =                                    
ffc03cb8:	39 20 ff c2 	li      r9,-62                                 
ffc03cbc:	7f ff 00 d0 	neg     r31,r31                                
ffc03cc0:	7f ff 48 38 	and     r31,r31,r9                             
ffc03cc4:	3b ff 00 3f 	addi    r31,r31,63                             
  size_t i = 0;                                                       
                                                                      
  /* Check if we have something to do */                              
  if (count == 0) {                                                   
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
ffc03cc8:	39 20 00 00 	li      r9,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) {                                                   
ffc03ccc:	41 9e 01 6c 	beq-    cr7,ffc03e38 <rtems_bdpart_create+0x1d8><== NEVER TAKEN
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL || dist == NULL) {                 
ffc03cd0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
    return RTEMS_INVALID_ADDRESS;                                     
ffc03cd4:	39 20 00 09 	li      r9,9                                   
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL || dist == NULL) {                 
ffc03cd8:	41 9e 01 60 	beq-    cr7,ffc03e38 <rtems_bdpart_create+0x1d8><== NEVER TAKEN
ffc03cdc:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc03ce0:	41 9e 01 58 	beq-    cr7,ffc03e38 <rtems_bdpart_create+0x1d8><== NEVER TAKEN
ffc03ce4:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc03ce8:	41 9e 01 50 	beq-    cr7,ffc03e38 <rtems_bdpart_create+0x1d8><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, NULL, NULL, &disk_end); 
ffc03cec:	38 80 00 00 	li      r4,0                                   
ffc03cf0:	38 a0 00 00 	li      r5,0                                   
ffc03cf4:	38 c1 00 08 	addi    r6,r1,8                                
ffc03cf8:	48 00 04 8d 	bl      ffc04184 <rtems_bdpart_get_disk_data>  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc03cfc:	7c 69 1b 79 	mr.     r9,r3                                  
ffc03d00:	40 82 01 38 	bne-    ffc03e38 <rtems_bdpart_create+0x1d8>   <== NEVER TAKEN
ffc03d04:	7f c9 03 a6 	mtctr   r30                                    
ffc03d08:	39 00 00 00 	li      r8,0                                   
ffc03d0c:	39 40 00 00 	li      r10,0                                  
#endif                                                                
                                                                      
#include <rtems.h>                                                    
#include <rtems/bdpart.h>                                             
                                                                      
rtems_status_code rtems_bdpart_create(                                
ffc03d10:	55 07 10 3a 	rlwinm  r7,r8,2,0,29                           
                                                                      
  /* Get distribution sum and check for overflow */                   
  for (i = 0; i < count; ++i) {                                       
    unsigned prev_sum = dist_sum;                                     
                                                                      
    dist_sum += dist [i];                                             
ffc03d14:	7c fb 38 2e 	lwzx    r7,r27,r7                              
ffc03d18:	7c a7 52 14 	add     r5,r7,r10                              
                                                                      
    if (dist_sum < prev_sum) {                                        
ffc03d1c:	7f 85 50 40 	cmplw   cr7,r5,r10                             
ffc03d20:	40 bc 00 0c 	bge+    cr7,ffc03d2c <rtems_bdpart_create+0xcc><== ALWAYS TAKEN
      return RTEMS_INVALID_NUMBER;                                    
ffc03d24:	39 20 00 0a 	li      r9,10                                  <== NOT EXECUTED
ffc03d28:	48 00 01 10 	b       ffc03e38 <rtems_bdpart_create+0x1d8>   <== NOT EXECUTED
    }                                                                 
                                                                      
    if (dist [i] == 0) {                                              
ffc03d2c:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc03d30:	41 be ff f4 	beq-    cr7,ffc03d24 <rtems_bdpart_create+0xc4><== NEVER TAKEN
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
                                                                      
  /* Get distribution sum and check for overflow */                   
  for (i = 0; i < count; ++i) {                                       
ffc03d34:	39 08 00 01 	addi    r8,r8,1                                
    unsigned prev_sum = dist_sum;                                     
                                                                      
    dist_sum += dist [i];                                             
ffc03d38:	7c aa 2b 78 	mr      r10,r5                                 
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
                                                                      
  /* Get distribution sum and check for overflow */                   
  for (i = 0; i < count; ++i) {                                       
ffc03d3c:	42 00 ff d4 	bdnz+   ffc03d10 <rtems_bdpart_create+0xb0>    
      return RTEMS_INVALID_NUMBER;                                    
    }                                                                 
  }                                                                   
                                                                      
  /* Check format */                                                  
  if (format->type != RTEMS_BDPART_FORMAT_MBR) {                      
ffc03d40:	81 5d 00 00 	lwz     r10,0(r29)                             
ffc03d44:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc03d48:	40 be 00 e4 	bne+    cr7,ffc03e2c <rtems_bdpart_create+0x1cc><== NEVER TAKEN
    return RTEMS_NOT_IMPLEMENTED;                                     
  }                                                                   
                                                                      
  /* Align end of disk on cylinder boundary if necessary */           
  if (dos_compatibility) {                                            
ffc03d4c:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc03d50:	41 9e 00 14 	beq-    cr7,ffc03d64 <rtems_bdpart_create+0x104><== NEVER TAKEN
    disk_end -= (disk_end % record_space);                            
ffc03d54:	81 41 00 08 	lwz     r10,8(r1)                              
ffc03d58:	7d 4a fb 96 	divwu   r10,r10,r31                            
ffc03d5c:	7d 4a f9 d6 	mullw   r10,r10,r31                            
ffc03d60:	91 41 00 08 	stw     r10,8(r1)                              
                                                                      
  /*                                                                  
   * In case we need an extended partition and logical partitions we have to
   * account for the space of each EBR.                               
   */                                                                 
  if (count > 4) {                                                    
ffc03d64:	2b 9e 00 04 	cmplwi  cr7,r30,4                              
                                                                      
  /*                                                                  
   * We need at least space for the MBR and the compatibility space for the
   * first primary partition.                                         
   */                                                                 
  overhead += record_space;                                           
ffc03d68:	7f ea fb 78 	mr      r10,r31                                
                                                                      
  /*                                                                  
   * In case we need an extended partition and logical partitions we have to
   * account for the space of each EBR.                               
   */                                                                 
  if (count > 4) {                                                    
ffc03d6c:	40 9d 00 10 	ble-    cr7,ffc03d7c <rtems_bdpart_create+0x11c><== NEVER TAKEN
    overhead += (count - 3) * record_space;                           
ffc03d70:	39 5e ff fd 	addi    r10,r30,-3                             
ffc03d74:	7d 5f 51 d6 	mullw   r10,r31,r10                            
ffc03d78:	7d 4a fa 14 	add     r10,r10,r31                            
                                                                      
  /*                                                                  
   * Account space to align every partition on cylinder boundaries if 
   * necessary.                                                       
   */                                                                 
  if (dos_compatibility) {                                            
ffc03d7c:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc03d80:	41 9e 00 10 	beq-    cr7,ffc03d90 <rtems_bdpart_create+0x130><== NEVER TAKEN
    overhead += (count - 1) * record_space;                           
ffc03d84:	39 1e ff ff 	addi    r8,r30,-1                              
ffc03d88:	7d 1f 41 d6 	mullw   r8,r31,r8                              
ffc03d8c:	7d 4a 42 14 	add     r10,r10,r8                             
  }                                                                   
                                                                      
  /* Check disk space */                                              
  if ((overhead + count) > disk_end) {                                
ffc03d90:	80 c1 00 08 	lwz     r6,8(r1)                               
ffc03d94:	7d 0a f2 14 	add     r8,r10,r30                             
ffc03d98:	7f 88 30 40 	cmplw   cr7,r8,r6                              
ffc03d9c:	41 bd 00 98 	bgt+    cr7,ffc03e34 <rtems_bdpart_create+0x1d4><== NEVER TAKEN
    }                                                                 
    s /= dist_sum;                                                    
                                                                      
    /* Ensure that the partition is not empty */                      
    if (s == 0) {                                                     
      s = 1;                                                          
ffc03da0:	7f c9 03 a6 	mtctr   r30                                    
                                                                      
  /* Begin of first primary partition */                              
  pos = record_space;                                                 
                                                                      
  /* Space for partitions */                                          
  free_space = disk_end - overhead;                                   
ffc03da4:	7c 6a 30 50 	subf    r3,r10,r6                              
ffc03da8:	7f 87 e3 78 	mr      r7,r28                                 
  if ((overhead + count) > disk_end) {                                
    return RTEMS_IO_ERROR;                                            
  }                                                                   
                                                                      
  /* Begin of first primary partition */                              
  pos = record_space;                                                 
ffc03dac:	7f ea fb 78 	mr      r10,r31                                
                                                                      
  /* Space for partitions */                                          
  free_space = disk_end - overhead;                                   
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc03db0:	39 00 00 00 	li      r8,0                                   
#endif                                                                
                                                                      
#include <rtems.h>                                                    
#include <rtems/bdpart.h>                                             
                                                                      
rtems_status_code rtems_bdpart_create(                                
ffc03db4:	55 04 10 3a 	rlwinm  r4,r8,2,0,29                           
                                                                      
  for (i = 0; i < count; ++i) {                                       
    rtems_bdpart_partition *p = pt + i;                               
                                                                      
    /* Partition size */                                              
    rtems_blkdev_bnum s = free_space * dist [i];                      
ffc03db8:	7d 7b 20 2e 	lwzx    r11,r27,r4                             
ffc03dbc:	7c 8b 19 d6 	mullw   r4,r11,r3                              
    if (s < free_space || s < dist [i]) {                             
ffc03dc0:	7f 84 18 40 	cmplw   cr7,r4,r3                              
ffc03dc4:	41 bc ff 60 	blt-    cr7,ffc03d24 <rtems_bdpart_create+0xc4><== NEVER TAKEN
ffc03dc8:	7f 84 58 40 	cmplw   cr7,r4,r11                             
ffc03dcc:	41 bc ff 58 	blt-    cr7,ffc03d24 <rtems_bdpart_create+0xc4><== NEVER TAKEN
      /* TODO: Calculate without overflow */                          
      return RTEMS_INVALID_NUMBER;                                    
    }                                                                 
    s /= dist_sum;                                                    
ffc03dd0:	7c 84 2b 96 	divwu   r4,r4,r5                               
                                                                      
    /* Ensure that the partition is not empty */                      
    if (s == 0) {                                                     
ffc03dd4:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc03dd8:	40 9e 00 08 	bne-    cr7,ffc03de0 <rtems_bdpart_create+0x180><== ALWAYS TAKEN
      s = 1;                                                          
ffc03ddc:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
    }                                                                 
                                                                      
    /* Align partition upwards */                                     
    s += record_space - (s % record_space);                           
ffc03de0:	7c 84 fb 96 	divwu   r4,r4,r31                              
                                                                      
    /* Reserve space for the EBR if necessary */                      
    if (count > 4 && i > 2) {                                         
ffc03de4:	2b 9e 00 04 	cmplwi  cr7,r30,4                              
    if (s == 0) {                                                     
      s = 1;                                                          
    }                                                                 
                                                                      
    /* Align partition upwards */                                     
    s += record_space - (s % record_space);                           
ffc03de8:	7c 84 f9 d6 	mullw   r4,r4,r31                              
ffc03dec:	7c 9f 22 14 	add     r4,r31,r4                              
                                                                      
    /* Reserve space for the EBR if necessary */                      
    if (count > 4 && i > 2) {                                         
ffc03df0:	40 9d 00 10 	ble-    cr7,ffc03e00 <rtems_bdpart_create+0x1a0><== NEVER TAKEN
ffc03df4:	2b 88 00 02 	cmplwi  cr7,r8,2                               
ffc03df8:	40 9d 00 08 	ble-    cr7,ffc03e00 <rtems_bdpart_create+0x1a0>
      pos += record_space;                                            
ffc03dfc:	7d 4a fa 14 	add     r10,r10,r31                            
    }                                                                 
                                                                      
    /* Partition begin and end */                                     
    p->begin = pos;                                                   
ffc03e00:	91 47 00 00 	stw     r10,0(r7)                              
    pos += s;                                                         
ffc03e04:	7d 4a 22 14 	add     r10,r10,r4                             
  pos = record_space;                                                 
                                                                      
  /* Space for partitions */                                          
  free_space = disk_end - overhead;                                   
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc03e08:	39 08 00 01 	addi    r8,r8,1                                
    }                                                                 
                                                                      
    /* Partition begin and end */                                     
    p->begin = pos;                                                   
    pos += s;                                                         
    p->end = pos;                                                     
ffc03e0c:	91 47 00 04 	stw     r10,4(r7)                              
ffc03e10:	38 e7 00 30 	addi    r7,r7,48                               
  pos = record_space;                                                 
                                                                      
  /* Space for partitions */                                          
  free_space = disk_end - overhead;                                   
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc03e14:	42 00 ff a0 	bdnz+   ffc03db4 <rtems_bdpart_create+0x154>   
    pos += s;                                                         
    p->end = pos;                                                     
  }                                                                   
                                                                      
  /* Expand the last partition to the disk end */                     
  pt [count - 1].end = disk_end;                                      
ffc03e18:	39 08 ff ff 	addi    r8,r8,-1                               
ffc03e1c:	1d 08 00 30 	mulli   r8,r8,48                               
ffc03e20:	7f 9c 42 14 	add     r28,r28,r8                             
ffc03e24:	90 dc 00 04 	stw     r6,4(r28)                              
ffc03e28:	48 00 00 10 	b       ffc03e38 <rtems_bdpart_create+0x1d8>   
    }                                                                 
  }                                                                   
                                                                      
  /* Check format */                                                  
  if (format->type != RTEMS_BDPART_FORMAT_MBR) {                      
    return RTEMS_NOT_IMPLEMENTED;                                     
ffc03e2c:	39 20 00 18 	li      r9,24                                  <== NOT EXECUTED
ffc03e30:	48 00 00 08 	b       ffc03e38 <rtems_bdpart_create+0x1d8>   <== NOT EXECUTED
    overhead += (count - 1) * record_space;                           
  }                                                                   
                                                                      
  /* Check disk space */                                              
  if ((overhead + count) > disk_end) {                                
    return RTEMS_IO_ERROR;                                            
ffc03e34:	39 20 00 1b 	li      r9,27                                  <== NOT EXECUTED
                                                                      
  /* Expand the last partition to the disk end */                     
  pt [count - 1].end = disk_end;                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc03e38:	39 61 00 30 	addi    r11,r1,48                              
ffc03e3c:	7d 23 4b 78 	mr      r3,r9                                  
ffc03e40:	4b ff c9 a0 	b       ffc007e0 <_restgpr_26_x>               
                                                                      

ffc03e44 <rtems_bdpart_dump>: { uuid_unparse_lower( type, str); } void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count) {
ffc03e44:	94 21 ff 80 	stwu    r1,-128(r1)                            
ffc03e48:	7c 08 02 a6 	mflr    r0                                     
ffc03e4c:	be 61 00 4c 	stmw    r19,76(r1)                             
ffc03e50:	7c 7f 1b 78 	mr      r31,r3                                 
  size_t i = 0;                                                       
                                                                      
  printf(                                                             
ffc03e54:	3c 60 ff c2 	lis     r3,-62                                 
ffc03e58:	38 63 4e ab 	addi    r3,r3,20139                            
{                                                                     
  uuid_unparse_lower( type, str);                                     
}                                                                     
                                                                      
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{                                                                     
ffc03e5c:	90 01 00 84 	stw     r0,132(r1)                             
          break;                                                      
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
          break;                                                      
        default:                                                      
          snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
ffc03e60:	3f 20 ff c2 	lis     r25,-62                                
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
      type = type_buffer;                                             
    }                                                                 
                                                                      
    printf(                                                           
ffc03e64:	3e 60 ff c2 	lis     r19,-62                                
{                                                                     
  uuid_unparse_lower( type, str);                                     
}                                                                     
                                                                      
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{                                                                     
ffc03e68:	7c 9c 23 78 	mr      r28,r4                                 
  size_t i = 0;                                                       
                                                                      
  printf(                                                             
ffc03e6c:	48 01 23 15 	bl      ffc16180 <puts>                        
    "------------+------------+-----------------------------------------------------\n"
    " BEGIN      | END        | TYPE\n"                               
    "------------+------------+-----------------------------------------------------\n"
  );                                                                  
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc03e70:	3b c0 00 00 	li      r30,0                                  
    const rtems_bdpart_partition *p = pt + i;                         
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
ffc03e74:	3b 60 00 00 	li      r27,0                                  
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16_LBA:                             
          type = "FAT 16 LBA";                                        
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32:                                 
          type = "FAT 32";                                            
ffc03e78:	3f 40 ff c2 	lis     r26,-62                                
          break;                                                      
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
          break;                                                      
        default:                                                      
          snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
ffc03e7c:	3b 39 4f eb 	addi    r25,r25,20459                          
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16:                                 
          type = "FAT 16";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16_LBA:                             
          type = "FAT 16 LBA";                                        
ffc03e80:	3f 00 ff c2 	lis     r24,-62                                
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32_LBA:                             
          type = "FAT 32 LBA";                                        
          break;                                                      
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
ffc03e84:	3e e0 ff c2 	lis     r23,-62                                
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32:                                 
          type = "FAT 32";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32_LBA:                             
          type = "FAT 32 LBA";                                        
ffc03e88:	3e c0 ff c2 	lis     r22,-62                                
    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";                                            
ffc03e8c:	3e a0 ff c2 	lis     r21,-62                                
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16:                                 
          type = "FAT 16";                                            
ffc03e90:	3e 80 ff c2 	lis     r20,-62                                
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
      type = type_buffer;                                             
    }                                                                 
                                                                      
    printf(                                                           
ffc03e94:	3a 73 4f f2 	addi    r19,r19,20466                          
    "------------+------------+-----------------------------------------------------\n"
    " BEGIN      | END        | TYPE\n"                               
    "------------+------------+-----------------------------------------------------\n"
  );                                                                  
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc03e98:	48 00 00 d8 	b       ffc03f70 <rtems_bdpart_dump+0x12c>     
    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)) {    
ffc03e9c:	3b bf 00 08 	addi    r29,r31,8                              
                                                                      
  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;                                             
ffc03ea0:	9b 61 00 3c 	stb     r27,60(r1)                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
ffc03ea4:	7f a3 eb 78 	mr      r3,r29                                 
ffc03ea8:	38 81 00 3c 	addi    r4,r1,60                               
ffc03eac:	48 00 02 95 	bl      ffc04140 <rtems_bdpart_to_mbr_partition_type>
ffc03eb0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc03eb4:	41 9e 00 88 	beq-    cr7,ffc03f3c <rtems_bdpart_dump+0xf8>  <== NEVER TAKEN
      switch (type_mbr) {                                             
ffc03eb8:	88 c1 00 3c 	lbz     r6,60(r1)                              
ffc03ebc:	2f 86 00 0b 	cmpwi   cr7,r6,11                              
ffc03ec0:	41 9e 00 4c 	beq-    cr7,ffc03f0c <rtems_bdpart_dump+0xc8>  <== ALWAYS TAKEN
ffc03ec4:	2b 86 00 0b 	cmplwi  cr7,r6,11                              <== NOT EXECUTED
ffc03ec8:	41 9d 00 18 	bgt-    cr7,ffc03ee0 <rtems_bdpart_dump+0x9c>  <== NOT EXECUTED
ffc03ecc:	2f 86 00 01 	cmpwi   cr7,r6,1                               <== NOT EXECUTED
ffc03ed0:	41 9e 00 2c 	beq-    cr7,ffc03efc <rtems_bdpart_dump+0xb8>  <== NOT EXECUTED
ffc03ed4:	2f 86 00 04 	cmpwi   cr7,r6,4                               <== NOT EXECUTED
ffc03ed8:	40 be 00 4c 	bne+    cr7,ffc03f24 <rtems_bdpart_dump+0xe0>  <== NOT EXECUTED
ffc03edc:	48 00 00 74 	b       ffc03f50 <rtems_bdpart_dump+0x10c>     <== NOT EXECUTED
ffc03ee0:	2f 86 00 0e 	cmpwi   cr7,r6,14                              <== NOT EXECUTED
ffc03ee4:	41 9e 00 20 	beq-    cr7,ffc03f04 <rtems_bdpart_dump+0xc0>  <== NOT EXECUTED
ffc03ee8:	2f 86 00 da 	cmpwi   cr7,r6,218                             <== NOT EXECUTED
ffc03eec:	41 9e 00 30 	beq-    cr7,ffc03f1c <rtems_bdpart_dump+0xd8>  <== NOT EXECUTED
ffc03ef0:	2f 86 00 0c 	cmpwi   cr7,r6,12                              <== NOT EXECUTED
ffc03ef4:	40 be 00 30 	bne+    cr7,ffc03f24 <rtems_bdpart_dump+0xe0>  <== NOT EXECUTED
ffc03ef8:	48 00 00 1c 	b       ffc03f14 <rtems_bdpart_dump+0xd0>      <== NOT EXECUTED
        case RTEMS_BDPART_MBR_FAT_12:                                 
          type = "FAT 12";                                            
ffc03efc:	38 d5 4e 82 	addi    r6,r21,20098                           <== NOT EXECUTED
ffc03f00:	48 00 00 54 	b       ffc03f54 <rtems_bdpart_dump+0x110>     <== NOT EXECUTED
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16:                                 
          type = "FAT 16";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16_LBA:                             
          type = "FAT 16 LBA";                                        
ffc03f04:	38 d8 4e a0 	addi    r6,r24,20128                           <== NOT EXECUTED
          break;                                                      
ffc03f08:	48 00 00 4c 	b       ffc03f54 <rtems_bdpart_dump+0x110>     <== NOT EXECUTED
        case RTEMS_BDPART_MBR_FAT_32:                                 
          type = "FAT 32";                                            
ffc03f0c:	38 da 4e 99 	addi    r6,r26,20121                           
          break;                                                      
ffc03f10:	48 00 00 44 	b       ffc03f54 <rtems_bdpart_dump+0x110>     
        case RTEMS_BDPART_MBR_FAT_32_LBA:                             
          type = "FAT 32 LBA";                                        
ffc03f14:	38 d6 4e 8e 	addi    r6,r22,20110                           <== NOT EXECUTED
          break;                                                      
ffc03f18:	48 00 00 3c 	b       ffc03f54 <rtems_bdpart_dump+0x110>     <== NOT EXECUTED
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
ffc03f1c:	38 d7 4e 89 	addi    r6,r23,20105                           <== NOT EXECUTED
          break;                                                      
ffc03f20:	48 00 00 34 	b       ffc03f54 <rtems_bdpart_dump+0x110>     <== NOT EXECUTED
        default:                                                      
          snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
ffc03f24:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc03f28:	38 80 00 34 	li      r4,52                                  <== NOT EXECUTED
ffc03f2c:	7f 25 cb 78 	mr      r5,r25                                 <== NOT EXECUTED
ffc03f30:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc03f34:	48 01 23 69 	bl      ffc1629c <snprintf>                    <== NOT EXECUTED
ffc03f38:	48 00 00 10 	b       ffc03f48 <rtems_bdpart_dump+0x104>     <== NOT EXECUTED
static void rtems_bdpart_type_to_string(                              
  const uuid_t type,                                                  
  char str [37]                                                       
)                                                                     
{                                                                     
  uuid_unparse_lower( type, str);                                     
ffc03f3c:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc03f40:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc03f44:	48 00 ad cd 	bl      ffc0ed10 <uuid_unparse_lower>          <== NOT EXECUTED
          type = type_buffer;                                         
          break;                                                      
      }                                                               
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
      type = type_buffer;                                             
ffc03f48:	38 c1 00 08 	addi    r6,r1,8                                <== NOT EXECUTED
ffc03f4c:	48 00 00 08 	b       ffc03f54 <rtems_bdpart_dump+0x110>     <== NOT EXECUTED
      switch (type_mbr) {                                             
        case RTEMS_BDPART_MBR_FAT_12:                                 
          type = "FAT 12";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16:                                 
          type = "FAT 16";                                            
ffc03f50:	38 d4 4e 7b 	addi    r6,r20,20091                           <== NOT EXECUTED
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
      type = type_buffer;                                             
    }                                                                 
                                                                      
    printf(                                                           
ffc03f54:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc03f58:	7e 63 9b 78 	mr      r3,r19                                 
ffc03f5c:	80 bf 00 04 	lwz     r5,4(r31)                              
    "------------+------------+-----------------------------------------------------\n"
    " BEGIN      | END        | TYPE\n"                               
    "------------+------------+-----------------------------------------------------\n"
  );                                                                  
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc03f60:	3b de 00 01 	addi    r30,r30,1                              
ffc03f64:	3b ff 00 30 	addi    r31,r31,48                             
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
      type = type_buffer;                                             
    }                                                                 
                                                                      
    printf(                                                           
ffc03f68:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc03f6c:	48 01 20 b9 	bl      ffc16024 <printf>                      
    "------------+------------+-----------------------------------------------------\n"
    " BEGIN      | END        | TYPE\n"                               
    "------------+------------+-----------------------------------------------------\n"
  );                                                                  
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc03f70:	7f 9e e0 00 	cmpw    cr7,r30,r28                            
ffc03f74:	40 9e ff 28 	bne+    cr7,ffc03e9c <rtems_bdpart_dump+0x58>  
      p->end,                                                         
      type                                                            
    );                                                                
  }                                                                   
                                                                      
  puts( "------------+------------+-----------------------------------------------------");
ffc03f78:	3c 60 ff c2 	lis     r3,-62                                 
ffc03f7c:	38 63 4f 9b 	addi    r3,r3,20379                            
ffc03f80:	48 01 22 01 	bl      ffc16180 <puts>                        
}                                                                     
ffc03f84:	39 61 00 80 	addi    r11,r1,128                             
ffc03f88:	4b ff c8 3c 	b       ffc007c4 <_restgpr_19_x>               
                                                                      

ffc04184 <rtems_bdpart_get_disk_data>: const char *disk_name, int *fd_ptr, rtems_disk_device **dd_ptr, rtems_blkdev_bnum *disk_end ) {
ffc04184:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc04188:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  int rv = 0;                                                         
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
ffc0418c:	39 20 00 00 	li      r9,0                                   
  const char *disk_name,                                              
  int *fd_ptr,                                                        
  rtems_disk_device **dd_ptr,                                         
  rtems_blkdev_bnum *disk_end                                         
)                                                                     
{                                                                     
ffc04190:	bf 81 00 18 	stmw    r28,24(r1)                             
ffc04194:	7c 9e 23 78 	mr      r30,r4                                 
  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);                                      
ffc04198:	38 80 00 02 	li      r4,2                                   
  const char *disk_name,                                              
  int *fd_ptr,                                                        
  rtems_disk_device **dd_ptr,                                         
  rtems_blkdev_bnum *disk_end                                         
)                                                                     
{                                                                     
ffc0419c:	90 01 00 2c 	stw     r0,44(r1)                              
ffc041a0:	7c bd 2b 78 	mr      r29,r5                                 
ffc041a4:	7c df 33 78 	mr      r31,r6                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  int rv = 0;                                                         
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
ffc041a8:	91 21 00 08 	stw     r9,8(r1)                               
  rtems_blkdev_bnum disk_begin = 0;                                   
  rtems_blkdev_bnum block_size = 0;                                   
                                                                      
  /* Open device file */                                              
  fd = open( disk_name, O_RDWR);                                      
ffc041ac:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc041b0:	48 00 34 ad 	bl      ffc0765c <open>                        
  if (fd < 0) {                                                       
ffc041b4:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc041b8:	41 a0 00 74 	blt+    ffc0422c <rtems_bdpart_get_disk_data+0xa8><== 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);                   
ffc041bc:	3c 80 40 04 	lis     r4,16388                               
ffc041c0:	60 84 42 09 	ori     r4,r4,16905                            
ffc041c4:	38 a1 00 08 	addi    r5,r1,8                                
ffc041c8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc041cc:	48 00 27 85 	bl      ffc06950 <ioctl>                       
    goto error;                                                       
  }                                                                   
                                                                      
  /* Get disk handle */                                               
  rv = rtems_disk_fd_get_disk_device( fd, &dd);                       
  if (rv != 0) {                                                      
ffc041d0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc041d4:	40 be 00 58 	bne+    cr7,ffc0422c <rtems_bdpart_get_disk_data+0xa8><== NEVER TAKEN
    sc = RTEMS_INVALID_NAME;                                          
    goto error;                                                       
  }                                                                   
                                                                      
  /* Get disk begin, end and block size */                            
  disk_begin = dd->start;                                             
ffc041d8:	81 21 00 08 	lwz     r9,8(r1)                               
  *disk_end = dd->size;                                               
ffc041dc:	81 49 00 1c 	lwz     r10,28(r9)                             
    sc = RTEMS_INVALID_NAME;                                          
    goto error;                                                       
  }                                                                   
                                                                      
  /* Get disk begin, end and block size */                            
  disk_begin = dd->start;                                             
ffc041e0:	81 09 00 18 	lwz     r8,24(r9)                              
  *disk_end = dd->size;                                               
ffc041e4:	91 5f 00 00 	stw     r10,0(r31)                             
  block_size = dd->block_size;                                        
                                                                      
  /* Check block size */                                              
  if (block_size < RTEMS_BDPART_BLOCK_SIZE) {                         
    sc = RTEMS_IO_ERROR;                                              
ffc041e8:	3b e0 00 1b 	li      r31,27                                 
  disk_begin = dd->start;                                             
  *disk_end = dd->size;                                               
  block_size = dd->block_size;                                        
                                                                      
  /* Check block size */                                              
  if (block_size < RTEMS_BDPART_BLOCK_SIZE) {                         
ffc041ec:	81 49 00 24 	lwz     r10,36(r9)                             
ffc041f0:	2b 8a 01 ff 	cmplwi  cr7,r10,511                            
ffc041f4:	40 bd 00 2c 	ble+    cr7,ffc04220 <rtems_bdpart_get_disk_data+0x9c><== NEVER TAKEN
    sc = RTEMS_IO_ERROR;                                              
    goto error;                                                       
  }                                                                   
                                                                      
  /* Check that we have do not have a logical disk */                 
  if (disk_begin != 0) {                                              
ffc041f8:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc041fc:	40 be 00 24 	bne+    cr7,ffc04220 <rtems_bdpart_get_disk_data+0x9c><== NEVER TAKEN
ffc04200:	48 00 00 34 	b       ffc04234 <rtems_bdpart_get_disk_data+0xb0>
    goto error;                                                       
  }                                                                   
                                                                      
error:                                                                
                                                                      
  if (sc == RTEMS_SUCCESSFUL && fd_ptr != NULL && dd_ptr != NULL) {   
ffc04204:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc04208:	41 9e 00 14 	beq-    cr7,ffc0421c <rtems_bdpart_get_disk_data+0x98><== NEVER TAKEN
    *fd_ptr = fd;                                                     
ffc0420c:	93 9e 00 00 	stw     r28,0(r30)                             
  int *fd_ptr,                                                        
  rtems_disk_device **dd_ptr,                                         
  rtems_blkdev_bnum *disk_end                                         
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc04210:	3b e0 00 00 	li      r31,0                                  
                                                                      
error:                                                                
                                                                      
  if (sc == RTEMS_SUCCESSFUL && fd_ptr != NULL && dd_ptr != NULL) {   
    *fd_ptr = fd;                                                     
    *dd_ptr = dd;                                                     
ffc04214:	91 3d 00 00 	stw     r9,0(r29)                              
ffc04218:	48 00 00 28 	b       ffc04240 <rtems_bdpart_get_disk_data+0xbc>
  int *fd_ptr,                                                        
  rtems_disk_device **dd_ptr,                                         
  rtems_blkdev_bnum *disk_end                                         
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc0421c:	3b e0 00 00 	li      r31,0                                  
                                                                      
  if (sc == RTEMS_SUCCESSFUL && fd_ptr != NULL && dd_ptr != NULL) {   
    *fd_ptr = fd;                                                     
    *dd_ptr = dd;                                                     
  } else {                                                            
    close( fd);                                                       
ffc04220:	7f 83 e3 78 	mr      r3,r28                                 
ffc04224:	48 00 24 81 	bl      ffc066a4 <close>                       
ffc04228:	48 00 00 18 	b       ffc04240 <rtems_bdpart_get_disk_data+0xbc>
  rtems_blkdev_bnum block_size = 0;                                   
                                                                      
  /* Open device file */                                              
  fd = open( disk_name, O_RDWR);                                      
  if (fd < 0) {                                                       
    sc = RTEMS_INVALID_NAME;                                          
ffc0422c:	3b e0 00 03 	li      r31,3                                  <== NOT EXECUTED
ffc04230:	4b ff ff f0 	b       ffc04220 <rtems_bdpart_get_disk_data+0x9c><== NOT EXECUTED
    goto error;                                                       
  }                                                                   
                                                                      
error:                                                                
                                                                      
  if (sc == RTEMS_SUCCESSFUL && fd_ptr != NULL && dd_ptr != NULL) {   
ffc04234:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc04238:	40 9e ff cc 	bne+    cr7,ffc04204 <rtems_bdpart_get_disk_data+0x80>
ffc0423c:	4b ff ff e0 	b       ffc0421c <rtems_bdpart_get_disk_data+0x98>
  } else {                                                            
    close( fd);                                                       
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc04240:	39 61 00 28 	addi    r11,r1,40                              
ffc04244:	7f e3 fb 78 	mr      r3,r31                                 
ffc04248:	4b ff c5 a0 	b       ffc007e8 <_restgpr_28_x>               
                                                                      

ffc21a60 <rtems_bdpart_mount>: const char *disk_name, const rtems_bdpart_partition *pt __attribute__((unused)), size_t count, const char *mount_base ) {
ffc21a60:	94 21 ff d0 	stwu    r1,-48(r1)                             <== NOT EXECUTED
ffc21a64:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  const char *disk_file_name = strrchr( disk_name, '/');              
ffc21a68:	38 80 00 2f 	li      r4,47                                  <== NOT EXECUTED
  const char *disk_name,                                              
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count,                                                       
  const char *mount_base                                              
)                                                                     
{                                                                     
ffc21a6c:	be c1 00 08 	stmw    r22,8(r1)                              <== NOT EXECUTED
ffc21a70:	7c d7 33 78 	mr      r23,r6                                 <== NOT EXECUTED
ffc21a74:	7c b6 2b 78 	mr      r22,r5                                 <== NOT EXECUTED
ffc21a78:	90 01 00 34 	stw     r0,52(r1)                              <== NOT EXECUTED
ffc21a7c:	7c 7a 1b 78 	mr      r26,r3                                 <== NOT EXECUTED
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  const char *disk_file_name = strrchr( disk_name, '/');              
ffc21a80:	48 01 eb d5 	bl      ffc40654 <strrchr>                     <== NOT EXECUTED
  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) {                                    
    return RTEMS_NO_MEMORY;                                           
ffc21a84:	3b c0 00 1a 	li      r30,26                                 <== NOT EXECUTED
  size_t count,                                                       
  const char *mount_base                                              
)                                                                     
{                                                                     
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  const char *disk_file_name = strrchr( disk_name, '/');              
ffc21a88:	7c 7f 1b 78 	mr      r31,r3                                 <== 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);                         
ffc21a8c:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc21a90:	48 01 dc 59 	bl      ffc3f6e8 <strlen>                      <== NOT EXECUTED
ffc21a94:	7c 7d 1b 78 	mr      r29,r3                                 <== NOT EXECUTED
  size_t mount_base_size = strlen( mount_base);                       
ffc21a98:	7e e3 bb 78 	mr      r3,r23                                 <== NOT EXECUTED
ffc21a9c:	48 01 dc 4d 	bl      ffc3f6e8 <strlen>                      <== NOT EXECUTED
ffc21aa0:	7c 7c 1b 78 	mr      r28,r3                                 <== NOT EXECUTED
  size_t i = 0;                                                       
                                                                      
  /* Create logical disk name base */                                 
  logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
ffc21aa4:	38 7d 00 04 	addi    r3,r29,4                               <== NOT EXECUTED
ffc21aa8:	4b fe 28 71 	bl      ffc04318 <malloc>                      <== NOT EXECUTED
  if (logical_disk_name == NULL) {                                    
ffc21aac:	7c 7b 1b 79 	mr.     r27,r3                                 <== NOT EXECUTED
ffc21ab0:	41 82 01 34 	beq-    ffc21be4 <rtems_bdpart_mount+0x184>    <== NOT EXECUTED
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
  strncpy( logical_disk_name, disk_name, disk_name_size);             
ffc21ab4:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc21ab8:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc21abc:	48 01 de a5 	bl      ffc3f960 <strncpy>                     <== NOT EXECUTED
                                                                      
  /* Get disk file name */                                            
  if (disk_file_name != NULL) {                                       
ffc21ac0:	2f 9f 00 00 	cmpwi   cr7,r31,0                              <== NOT EXECUTED
ffc21ac4:	41 9e 00 18 	beq-    cr7,ffc21adc <rtems_bdpart_mount+0x7c> <== NOT EXECUTED
    disk_file_name += 1;                                              
ffc21ac8:	3b 5f 00 01 	addi    r26,r31,1                              <== NOT EXECUTED
    disk_file_name_size = strlen( disk_file_name);                    
ffc21acc:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc21ad0:	48 01 dc 19 	bl      ffc3f6e8 <strlen>                      <== NOT EXECUTED
ffc21ad4:	7c 79 1b 78 	mr      r25,r3                                 <== NOT EXECUTED
ffc21ad8:	48 00 00 08 	b       ffc21ae0 <rtems_bdpart_mount+0x80>     <== NOT EXECUTED
  } else {                                                            
    disk_file_name = disk_name;                                       
    disk_file_name_size = disk_name_size;                             
ffc21adc:	7f b9 eb 78 	mr      r25,r29                                <== NOT EXECUTED
  }                                                                   
                                                                      
  /* Create mount point base */                                       
  mount_point = malloc( mount_base_size + 1 + disk_file_name_size + RTEMS_BDPART_NUMBER_SIZE);
ffc21ae0:	7f 19 e2 14 	add     r24,r25,r28                            <== NOT EXECUTED
ffc21ae4:	38 78 00 05 	addi    r3,r24,5                               <== NOT EXECUTED
ffc21ae8:	4b fe 28 31 	bl      ffc04318 <malloc>                      <== NOT EXECUTED
  if (mount_point == NULL) {                                          
    esc = RTEMS_NO_MEMORY;                                            
ffc21aec:	3b c0 00 1a 	li      r30,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) {                                          
ffc21af0:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc21af4:	41 82 00 dc 	beq-    ffc21bd0 <rtems_bdpart_mount+0x170>    <== NOT EXECUTED
    esc = RTEMS_NO_MEMORY;                                            
    goto cleanup;                                                     
  }                                                                   
  strncpy( mount_point, mount_base, mount_base_size);                 
ffc21af8:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc21afc:	7e e4 bb 78 	mr      r4,r23                                 <== NOT EXECUTED
ffc21b00:	48 01 de 61 	bl      ffc3f960 <strncpy>                     <== NOT EXECUTED
  mount_point [mount_base_size] = '/';                                
ffc21b04:	39 20 00 2f 	li      r9,47                                  <== NOT EXECUTED
ffc21b08:	7d 3f e1 ae 	stbx    r9,r31,r28                             <== NOT EXECUTED
  strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
ffc21b0c:	38 7c 00 01 	addi    r3,r28,1                               <== NOT EXECUTED
ffc21b10:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc21b14:	7c 7f 1a 14 	add     r3,r31,r3                              <== NOT EXECUTED
ffc21b18:	7f 25 cb 78 	mr      r5,r25                                 <== NOT EXECUTED
                                                                      
  /* Markers */                                                       
  logical_disk_marker = logical_disk_name + disk_name_size;           
  mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
ffc21b1c:	3b 18 00 01 	addi    r24,r24,1                              <== 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);
ffc21b20:	48 01 de 41 	bl      ffc3f960 <strncpy>                     <== NOT EXECUTED
  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) {                                       
    /* Create logical disk name */                                    
    int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
ffc21b24:	3f 80 ff c6 	lis     r28,-58                                <== NOT EXECUTED
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Mount */                                                       
    rv = mount(                                                       
ffc21b28:	3f 40 ff c6 	lis     r26,-58                                <== NOT EXECUTED
  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);
                                                                      
  /* Markers */                                                       
  logical_disk_marker = logical_disk_name + disk_name_size;           
ffc21b2c:	7f bb ea 14 	add     r29,r27,r29                            <== NOT EXECUTED
  mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
ffc21b30:	7f 1f c2 14 	add     r24,r31,r24                            <== NOT EXECUTED
                                                                      
  /* Mount supported file systems for each partition */               
  for (i = 0; i < count; ++i) {                                       
ffc21b34:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
    /* Create logical disk name */                                    
    int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
ffc21b38:	3b 9c b4 ab 	addi    r28,r28,-19285                         <== NOT EXECUTED
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Mount */                                                       
    rv = mount(                                                       
ffc21b3c:	3b 5a 97 3a 	addi    r26,r26,-26822                         <== 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) {                                       
ffc21b40:	48 00 00 74 	b       ffc21bb4 <rtems_bdpart_mount+0x154>    <== NOT EXECUTED
    /* Create logical disk name */                                    
    int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
ffc21b44:	3b de 00 01 	addi    r30,r30,1                              <== NOT EXECUTED
ffc21b48:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc21b4c:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc21b50:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc21b54:	7f c6 f3 78 	mr      r6,r30                                 <== NOT EXECUTED
ffc21b58:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc21b5c:	48 01 cd 49 	bl      ffc3e8a4 <snprintf>                    <== NOT EXECUTED
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
ffc21b60:	2f 83 00 03 	cmpwi   cr7,r3,3                               <== NOT EXECUTED
ffc21b64:	41 9d 00 60 	bgt-    cr7,ffc21bc4 <rtems_bdpart_mount+0x164><== NOT EXECUTED
      esc = RTEMS_INVALID_NAME;                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Create mount point */                                          
    strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
ffc21b68:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc21b6c:	38 a0 00 04 	li      r5,4                                   <== NOT EXECUTED
ffc21b70:	7f 03 c3 78 	mr      r3,r24                                 <== NOT EXECUTED
ffc21b74:	48 01 dd ed 	bl      ffc3f960 <strncpy>                     <== NOT EXECUTED
    rv = rtems_mkdir( mount_point, S_IRWXU | S_IRWXG | S_IRWXO);      
ffc21b78:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc21b7c:	38 80 01 ff 	li      r4,511                                 <== NOT EXECUTED
ffc21b80:	48 00 41 31 	bl      ffc25cb0 <rtems_mkdir>                 <== NOT EXECUTED
    if (rv != 0) {                                                    
ffc21b84:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc21b88:	40 9e 00 44 	bne-    cr7,ffc21bcc <rtems_bdpart_mount+0x16c><== NOT EXECUTED
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Mount */                                                       
    rv = mount(                                                       
ffc21b8c:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc21b90:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc21b94:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc21b98:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
ffc21b9c:	38 e0 00 00 	li      r7,0                                   <== NOT EXECUTED
ffc21ba0:	4b fe 29 8d 	bl      ffc0452c <mount>                       <== NOT EXECUTED
      mount_point,                                                    
      "msdos",                                                        
      0,                                                              
      NULL                                                            
    );                                                                
    if (rv != 0) {                                                    
ffc21ba4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc21ba8:	41 be 00 0c 	beq+    cr7,ffc21bb4 <rtems_bdpart_mount+0x154><== NOT EXECUTED
      rmdir( mount_point);                                            
ffc21bac:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc21bb0:	48 00 40 45 	bl      ffc25bf4 <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) {                                       
ffc21bb4:	7f 9e b0 00 	cmpw    cr7,r30,r22                            <== NOT EXECUTED
ffc21bb8:	40 9e ff 8c 	bne+    cr7,ffc21b44 <rtems_bdpart_mount+0xe4> <== NOT EXECUTED
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count,                                                       
  const char *mount_base                                              
)                                                                     
{                                                                     
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
ffc21bbc:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
ffc21bc0:	48 00 00 10 	b       ffc21bd0 <rtems_bdpart_mount+0x170>    <== 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;                                       
ffc21bc4:	3b c0 00 03 	li      r30,3                                  <== NOT EXECUTED
ffc21bc8:	48 00 00 08 	b       ffc21bd0 <rtems_bdpart_mount+0x170>    <== 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;                                           
ffc21bcc:	3b c0 00 1b 	li      r30,27                                 <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( logical_disk_name);                                           
ffc21bd0:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc21bd4:	4b fe 23 a9 	bl      ffc03f7c <free>                        <== NOT EXECUTED
  free( mount_point);                                                 
ffc21bd8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc21bdc:	4b fe 23 a1 	bl      ffc03f7c <free>                        <== NOT EXECUTED
                                                                      
  return esc;                                                         
ffc21be0:	48 00 00 04 	b       ffc21be4 <rtems_bdpart_mount+0x184>    <== NOT EXECUTED
}                                                                     
ffc21be4:	39 61 00 30 	addi    r11,r1,48                              <== NOT EXECUTED
ffc21be8:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc21bec:	48 03 1b ec 	b       ffc537d8 <_restgpr_22_x>               <== NOT EXECUTED
                                                                      

ffc046a8 <rtems_bdpart_new_record>: static rtems_status_code rtems_bdpart_new_record( rtems_disk_device *dd, rtems_blkdev_bnum index, rtems_bdbuf_buffer **block ) {
ffc046a8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc046ac:	7c 08 02 a6 	mflr    r0                                     
ffc046b0:	90 01 00 24 	stw     r0,36(r1)                              
ffc046b4:	bf a1 00 14 	stmw    r29,20(r1)                             
ffc046b8:	7c 7d 1b 78 	mr      r29,r3                                 
ffc046bc:	7c bf 2b 78 	mr      r31,r5                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  /* Synchronize previous block if necessary */                       
  if (*block != NULL) {                                               
ffc046c0:	80 65 00 00 	lwz     r3,0(r5)                               
ffc046c4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc046c8:	40 be 00 1c 	bne+    cr7,ffc046e4 <rtems_bdpart_new_record+0x3c>
      return sc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  /* Read the new record block (this accounts for disk block sizes > 512) */
  sc = rtems_bdbuf_read( dd, index, block);                           
ffc046cc:	7f a3 eb 78 	mr      r3,r29                                 
ffc046d0:	7f e5 fb 78 	mr      r5,r31                                 
ffc046d4:	48 00 c5 cd 	bl      ffc10ca0 <rtems_bdbuf_read>            
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc046d8:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc046dc:	41 a2 00 20 	beq+    ffc046fc <rtems_bdpart_new_record+0x54><== ALWAYS TAKEN
ffc046e0:	48 00 00 60 	b       ffc04740 <rtems_bdpart_new_record+0x98><== NOT EXECUTED
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  /* Synchronize previous block if necessary */                       
  if (*block != NULL) {                                               
    sc = rtems_bdbuf_sync( *block);                                   
ffc046e4:	90 81 00 08 	stw     r4,8(r1)                               
ffc046e8:	48 00 c9 05 	bl      ffc10fec <rtems_bdbuf_sync>            
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc046ec:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc046f0:	80 81 00 08 	lwz     r4,8(r1)                               
ffc046f4:	41 82 ff d8 	beq+    ffc046cc <rtems_bdpart_new_record+0x24><== ALWAYS TAKEN
ffc046f8:	48 00 00 48 	b       ffc04740 <rtems_bdpart_new_record+0x98><== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
                                                                      
  /* just in case block did not get filled in */                      
  if ( *block == NULL ) {                                             
ffc046fc:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc04700:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04704:	41 9e 00 38 	beq-    cr7,ffc0473c <rtems_bdpart_new_record+0x94><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Clear record */                                                  
  memset( (*block)->buffer, 0, RTEMS_BDPART_BLOCK_SIZE);              
ffc04708:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc0470c:	38 80 00 00 	li      r4,0                                   
ffc04710:	38 a0 02 00 	li      r5,512                                 
ffc04714:	48 01 17 71 	bl      ffc15e84 <memset>                      
                                                                      
  /* Write signature */                                               
  (*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0] =            
ffc04718:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc0471c:	39 40 00 55 	li      r10,85                                 
ffc04720:	81 29 00 1c 	lwz     r9,28(r9)                              
ffc04724:	99 49 01 fe 	stb     r10,510(r9)                            
    RTEMS_BDPART_MBR_SIGNATURE_0;                                     
  (*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_1] =            
ffc04728:	39 40 ff aa 	li      r10,-86                                
ffc0472c:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc04730:	81 29 00 1c 	lwz     r9,28(r9)                              
ffc04734:	99 49 01 ff 	stb     r10,511(r9)                            
ffc04738:	48 00 00 08 	b       ffc04740 <rtems_bdpart_new_record+0x98>
    return sc;                                                        
  }                                                                   
                                                                      
  /* just in case block did not get filled in */                      
  if ( *block == NULL ) {                                             
    return RTEMS_INVALID_ADDRESS;                                     
ffc0473c:	3b c0 00 09 	li      r30,9                                  <== NOT EXECUTED
    RTEMS_BDPART_MBR_SIGNATURE_0;                                     
  (*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_1] =            
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04740:	39 61 00 20 	addi    r11,r1,32                              
ffc04744:	7f c3 f3 78 	mr      r3,r30                                 
ffc04748:	4b ff c0 a4 	b       ffc007ec <_restgpr_29_x>               
                                                                      

ffc0424c <rtems_bdpart_read>: const char *disk_name, rtems_bdpart_format *format, rtems_bdpart_partition *pt, size_t *count ) {
ffc0424c:	94 21 ff b0 	stwu    r1,-80(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  rtems_bdbuf_buffer *block = NULL;                                   
ffc04250:	39 20 00 00 	li      r9,0                                   
  const char *disk_name,                                              
  rtems_bdpart_format *format,                                        
  rtems_bdpart_partition *pt,                                         
  size_t *count                                                       
)                                                                     
{                                                                     
ffc04254:	7c 08 02 a6 	mflr    r0                                     
ffc04258:	be e1 00 2c 	stmw    r23,44(r1)                             
  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);
ffc0425c:	7c dd 33 79 	mr.     r29,r6                                 
  const char *disk_name,                                              
  rtems_bdpart_format *format,                                        
  rtems_bdpart_partition *pt,                                         
  size_t *count                                                       
)                                                                     
{                                                                     
ffc04260:	7c 9b 23 78 	mr      r27,r4                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  rtems_bdbuf_buffer *block = NULL;                                   
ffc04264:	91 21 00 1c 	stw     r9,28(r1)                              
  rtems_bdpart_partition *p = pt - 1;                                 
ffc04268:	39 25 ff d0 	addi    r9,r5,-48                              
  const char *disk_name,                                              
  rtems_bdpart_format *format,                                        
  rtems_bdpart_partition *pt,                                         
  size_t *count                                                       
)                                                                     
{                                                                     
ffc0426c:	7c bc 2b 78 	mr      r28,r5                                 
ffc04270:	90 01 00 54 	stw     r0,84(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  rtems_bdbuf_buffer *block = NULL;                                   
  rtems_bdpart_partition *p = pt - 1;                                 
ffc04274:	91 21 00 18 	stw     r9,24(r1)                              
  const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
ffc04278:	41 82 00 10 	beq-    ffc04288 <rtems_bdpart_read+0x3c>      <== NEVER TAKEN
ffc0427c:	83 5d 00 00 	lwz     r26,0(r29)                             
ffc04280:	1f 5a 00 30 	mulli   r26,r26,48                             
ffc04284:	48 00 00 08 	b       ffc0428c <rtems_bdpart_read+0x40>      
ffc04288:	3b 40 00 00 	li      r26,0                                  <== NOT EXECUTED
  const uint8_t *data = NULL;                                         
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL || count == NULL) {                
ffc0428c:	2f 9b 00 00 	cmpwi   cr7,r27,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 */      
ffc04290:	39 20 00 00 	li      r9,0                                   
  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;                                                        
ffc04294:	39 40 ff ff 	li      r10,-1                                 
  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 */      
ffc04298:	91 21 00 14 	stw     r9,20(r1)                              
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL || count == NULL) {                
    return RTEMS_INVALID_ADDRESS;                                     
ffc0429c:	3b e0 00 09 	li      r31,9                                  
  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 */      
  rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */   
  rtems_blkdev_bnum disk_end = 0;                                     
ffc042a0:	91 21 00 10 	stw     r9,16(r1)                              
  size_t i = 0;                                                       
  const uint8_t *data = NULL;                                         
  int fd = -1;                                                        
ffc042a4:	91 41 00 0c 	stw     r10,12(r1)                             
  rtems_disk_device *dd = NULL;                                       
ffc042a8:	91 21 00 08 	stw     r9,8(r1)                               
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL || count == NULL) {                
ffc042ac:	41 9e 01 e8 	beq-    cr7,ffc04494 <rtems_bdpart_read+0x248> <== NEVER TAKEN
ffc042b0:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc042b4:	41 9e 01 e0 	beq-    cr7,ffc04494 <rtems_bdpart_read+0x248> <== NEVER TAKEN
ffc042b8:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc042bc:	41 9e 01 d8 	beq-    cr7,ffc04494 <rtems_bdpart_read+0x248> <== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Set count to a save value */                                     
  *count = 0;                                                         
ffc042c0:	91 3d 00 00 	stw     r9,0(r29)                              
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
ffc042c4:	38 81 00 0c 	addi    r4,r1,12                               
ffc042c8:	38 a1 00 08 	addi    r5,r1,8                                
ffc042cc:	38 c1 00 10 	addi    r6,r1,16                               
ffc042d0:	4b ff fe b5 	bl      ffc04184 <rtems_bdpart_get_disk_data>  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc042d4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc042d8:	40 a2 01 bc 	bne+    ffc04494 <rtems_bdpart_read+0x248>     <== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  /* Read MBR */                                                      
  sc = rtems_bdpart_read_record( dd, 0, &block);                      
ffc042dc:	80 61 00 08 	lwz     r3,8(r1)                               
ffc042e0:	38 80 00 00 	li      r4,0                                   
ffc042e4:	38 a1 00 1c 	addi    r5,r1,28                               
ffc042e8:	4b ff fc d1 	bl      ffc03fb8 <rtems_bdpart_read_record>    
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc042ec:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc042f0:	7c 7f 1b 78 	mr      r31,r3                                 
ffc042f4:	40 be 01 80 	bne+    cr7,ffc04474 <rtems_bdpart_read+0x228> <== NEVER TAKEN
    esc = sc;                                                         
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Read the first partition entry */                                
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
ffc042f8:	81 21 00 1c 	lwz     r9,28(r1)                              
{                                                                     
  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);
ffc042fc:	7f 5c d2 14 	add     r26,r28,r26                            
    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);  
ffc04300:	3b 01 00 18 	addi    r24,r1,24                              
    esc = sc;                                                         
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Read the first partition entry */                                
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
ffc04304:	82 e9 00 1c 	lwz     r23,28(r9)                             
  sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);  
ffc04308:	3b 21 00 14 	addi    r25,r1,20                              
ffc0430c:	7f 04 c3 78 	mr      r4,r24                                 
    esc = sc;                                                         
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Read the first partition entry */                                
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
ffc04310:	3b d7 01 be 	addi    r30,r23,446                            
  sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);  
ffc04314:	7f c3 f3 78 	mr      r3,r30                                 
ffc04318:	7f 45 d3 78 	mr      r5,r26                                 
ffc0431c:	7f 26 cb 78 	mr      r6,r25                                 
ffc04320:	4b ff fd 59 	bl      ffc04078 <rtems_bdpart_read_mbr_partition>
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04324:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04328:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0432c:	40 9e 01 48 	bne-    cr7,ffc04474 <rtems_bdpart_read+0x228> <== 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) {
ffc04330:	81 21 00 18 	lwz     r9,24(r1)                              
    esc = RTEMS_NOT_IMPLEMENTED;                                      
ffc04334:	3b e0 00 18 	li      r31,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) {
ffc04338:	89 29 00 08 	lbz     r9,8(r9)                               
ffc0433c:	2f 89 00 ee 	cmpwi   cr7,r9,238                             
ffc04340:	41 9e 01 34 	beq-    cr7,ffc04474 <rtems_bdpart_read+0x228> <== 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                   
ffc04344:	81 21 00 1c 	lwz     r9,28(r1)                              
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_read(                                  
ffc04348:	3a f7 01 ee 	addi    r23,r23,494                            
    esc = RTEMS_NOT_IMPLEMENTED;                                      
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Set format */                                                    
  format->type = RTEMS_BDPART_FORMAT_MBR;                             
ffc0434c:	90 7b 00 00 	stw     r3,0(r27)                              
  format->mbr.disk_id = rtems_uint32_from_little_endian(              
ffc04350:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc04354:	38 63 01 b8 	addi    r3,r3,440                              
ffc04358:	4b ff fc 35 	bl      ffc03f8c <rtems_uint32_from_little_endian>
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
  );                                                                  
  format->mbr.dos_compatibility = true;                               
ffc0435c:	39 20 00 01 	li      r9,1                                   
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Set format */                                                    
  format->type = RTEMS_BDPART_FORMAT_MBR;                             
  format->mbr.disk_id = rtems_uint32_from_little_endian(              
ffc04360:	90 7b 00 04 	stw     r3,4(r27)                              
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
  );                                                                  
  format->mbr.dos_compatibility = true;                               
ffc04364:	99 3b 00 08 	stb     r9,8(r27)                              
                                                                      
  /* Iterate through the rest of the primary partition table */       
  for (i = 1; i < 4; ++i) {                                           
    data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;                        
ffc04368:	3b de 00 10 	addi    r30,r30,16                             
                                                                      
    sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
ffc0436c:	7f c3 f3 78 	mr      r3,r30                                 
ffc04370:	7f 04 c3 78 	mr      r4,r24                                 
ffc04374:	7f 45 d3 78 	mr      r5,r26                                 
ffc04378:	7f 26 cb 78 	mr      r6,r25                                 
ffc0437c:	4b ff fc fd 	bl      ffc04078 <rtems_bdpart_read_mbr_partition>
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc04380:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04384:	40 82 00 ec 	bne-    ffc04470 <rtems_bdpart_read+0x224>     <== 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) {                                           
ffc04388:	7f 9e b8 00 	cmpw    cr7,r30,r23                            
ffc0438c:	40 9e ff dc 	bne+    cr7,ffc04368 <rtems_bdpart_read+0x11c> 
      goto cleanup;                                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Iterate through the logical partitions within the extended partition */
  ebr = ep_begin;                                                     
ffc04390:	83 e1 00 14 	lwz     r31,20(r1)                             
  while (ebr != 0) {                                                  
ffc04394:	48 00 00 ac 	b       ffc04440 <rtems_bdpart_read+0x1f4>     
    rtems_blkdev_bnum tmp = 0;                                        
                                                                      
    /* Read EBR */                                                    
    sc = rtems_bdpart_read_record( dd, ebr, &block);                  
ffc04398:	80 61 00 08 	lwz     r3,8(r1)                               
ffc0439c:	7f e4 fb 78 	mr      r4,r31                                 
ffc043a0:	38 a1 00 1c 	addi    r5,r1,28                               
ffc043a4:	4b ff fc 15 	bl      ffc03fb8 <rtems_bdpart_read_record>    
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc043a8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc043ac:	40 82 00 c4 	bne-    ffc04470 <rtems_bdpart_read+0x224>     <== NEVER TAKEN
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Read first partition entry */                                  
    sc = rtems_bdpart_read_mbr_partition(                             
      block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,                
ffc043b0:	81 21 00 1c 	lwz     r9,28(r1)                              
      esc = sc;                                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Read first partition entry */                                  
    sc = rtems_bdpart_read_mbr_partition(                             
ffc043b4:	7f 04 c3 78 	mr      r4,r24                                 
ffc043b8:	7f 45 d3 78 	mr      r5,r26                                 
ffc043bc:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc043c0:	38 c0 00 00 	li      r6,0                                   
ffc043c4:	38 63 01 be 	addi    r3,r3,446                              
ffc043c8:	4b ff fc b1 	bl      ffc04078 <rtems_bdpart_read_mbr_partition>
      block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,                
      &p,                                                             
      p_end,                                                          
      NULL                                                            
    );                                                                
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc043cc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc043d0:	40 82 00 a0 	bne-    ffc04470 <rtems_bdpart_read+0x224>     <== NEVER TAKEN
      esc = sc;                                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Adjust partition begin */                                      
    tmp = p->begin + ebr;                                             
ffc043d4:	81 21 00 18 	lwz     r9,24(r1)                              
ffc043d8:	81 49 00 00 	lwz     r10,0(r9)                              
ffc043dc:	7d 1f 52 14 	add     r8,r31,r10                             
    if (tmp > p->begin) {                                             
ffc043e0:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc043e4:	41 bd 00 0c 	bgt+    cr7,ffc043f0 <rtems_bdpart_read+0x1a4> <== ALWAYS TAKEN
      p->begin = tmp;                                                 
    } else {                                                          
      esc = RTEMS_IO_ERROR;                                           
ffc043e8:	3b e0 00 1b 	li      r31,27                                 <== NOT EXECUTED
ffc043ec:	48 00 00 88 	b       ffc04474 <rtems_bdpart_read+0x228>     <== NOT EXECUTED
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Adjust partition end */                                        
    tmp = p->end + ebr;                                               
ffc043f0:	81 49 00 04 	lwz     r10,4(r9)                              
    }                                                                 
                                                                      
    /* Adjust partition begin */                                      
    tmp = p->begin + ebr;                                             
    if (tmp > p->begin) {                                             
      p->begin = tmp;                                                 
ffc043f4:	91 09 00 00 	stw     r8,0(r9)                               
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Adjust partition end */                                        
    tmp = p->end + ebr;                                               
ffc043f8:	7f ff 52 14 	add     r31,r31,r10                            
    if (tmp > p->end) {                                               
ffc043fc:	7f 9f 50 40 	cmplw   cr7,r31,r10                            
ffc04400:	40 bd ff e8 	ble-    cr7,ffc043e8 <rtems_bdpart_read+0x19c> <== NEVER TAKEN
      p->end = tmp;                                                   
ffc04404:	93 e9 00 04 	stw     r31,4(r9)                              
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Read second partition entry for next EBR block */              
    ebr = rtems_bdpart_next_ebr(                                      
      block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1                 
ffc04408:	81 21 00 1c 	lwz     r9,28(r1)                              
ffc0440c:	83 c9 00 1c 	lwz     r30,28(r9)                             
      == RTEMS_BDPART_MBR_SIGNATURE_1;                                
}                                                                     
                                                                      
static rtems_blkdev_bnum rtems_bdpart_next_ebr( const uint8_t *data)  
{                                                                     
  rtems_blkdev_bnum begin =                                           
ffc04410:	38 7e 01 d6 	addi    r3,r30,470                             
ffc04414:	4b ff fb 79 	bl      ffc03f8c <rtems_uint32_from_little_endian>
    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) {                            
ffc04418:	89 3e 01 d2 	lbz     r9,466(r30)                            
ffc0441c:	2f 89 00 05 	cmpwi   cr7,r9,5                               
ffc04420:	40 be 00 28 	bne+    cr7,ffc04448 <rtems_bdpart_read+0x1fc> 
                                                                      
    /* Read second partition entry for next EBR block */              
    ebr = rtems_bdpart_next_ebr(                                      
      block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1                 
    );                                                                
    if (ebr != 0) {                                                   
ffc04424:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04428:	41 9e 00 20 	beq-    cr7,ffc04448 <rtems_bdpart_read+0x1fc> <== NEVER TAKEN
      /* Adjust partition EBR block index */                          
      tmp = ebr + ep_begin;                                           
ffc0442c:	81 21 00 14 	lwz     r9,20(r1)                              
ffc04430:	7d 23 4a 14 	add     r9,r3,r9                               
      if (tmp > ebr) {                                                
ffc04434:	7f 89 18 40 	cmplw   cr7,r9,r3                              
ffc04438:	40 bd ff b0 	ble-    cr7,ffc043e8 <rtems_bdpart_read+0x19c> <== NEVER TAKEN
ffc0443c:	7d 3f 4b 78 	mr      r31,r9                                 
    }                                                                 
  }                                                                   
                                                                      
  /* Iterate through the logical partitions within the extended partition */
  ebr = ep_begin;                                                     
  while (ebr != 0) {                                                  
ffc04440:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc04444:	40 9e ff 54 	bne+    cr7,ffc04398 <rtems_bdpart_read+0x14c> <== ALWAYS TAKEN
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  /* Return partition count */                                        
  *count = (size_t) (p - pt + 1);                                     
ffc04448:	81 21 00 18 	lwz     r9,24(r1)                              
ffc0444c:	3d 40 aa aa 	lis     r10,-21846                             
ffc04450:	61 4a aa ab 	ori     r10,r10,43691                          
ffc04454:	7d 3c 48 50 	subf    r9,r28,r9                              
ffc04458:	7d 29 26 70 	srawi   r9,r9,4                                
ffc0445c:	7d 29 51 d6 	mullw   r9,r9,r10                              
  rtems_bdpart_partition *pt,                                         
  size_t *count                                                       
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
ffc04460:	3b e0 00 00 	li      r31,0                                  
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  /* Return partition count */                                        
  *count = (size_t) (p - pt + 1);                                     
ffc04464:	39 29 00 01 	addi    r9,r9,1                                
ffc04468:	91 3d 00 00 	stw     r9,0(r29)                              
ffc0446c:	48 00 00 08 	b       ffc04474 <rtems_bdpart_read+0x228>     
      esc = sc;                                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Read first partition entry */                                  
    sc = rtems_bdpart_read_mbr_partition(                             
ffc04470:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
  /* Return partition count */                                        
  *count = (size_t) (p - pt + 1);                                     
                                                                      
cleanup:                                                              
                                                                      
  if (fd >= 0) {                                                      
ffc04474:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc04478:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0447c:	41 9c 00 08 	blt-    cr7,ffc04484 <rtems_bdpart_read+0x238> <== NEVER TAKEN
    close( fd);                                                       
ffc04480:	48 00 22 25 	bl      ffc066a4 <close>                       
  }                                                                   
                                                                      
  if (block != NULL) {                                                
ffc04484:	80 61 00 1c 	lwz     r3,28(r1)                              
ffc04488:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0448c:	41 9e 00 08 	beq-    cr7,ffc04494 <rtems_bdpart_read+0x248> <== NEVER TAKEN
    rtems_bdbuf_release( block);                                      
ffc04490:	48 00 ca 09 	bl      ffc10e98 <rtems_bdbuf_release>         
  }                                                                   
                                                                      
  return esc;                                                         
}                                                                     
ffc04494:	39 61 00 50 	addi    r11,r1,80                              
ffc04498:	7f e3 fb 78 	mr      r3,r31                                 
ffc0449c:	4b ff c3 38 	b       ffc007d4 <_restgpr_23_x>               
                                                                      

ffc04078 <rtems_bdpart_read_mbr_partition>: const uint8_t *data, rtems_bdpart_partition **p, const rtems_bdpart_partition *p_end, rtems_blkdev_bnum *ep_begin ) {
ffc04078:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0407c:	7c 08 02 a6 	mflr    r0                                     
ffc04080:	bf 21 00 0c 	stmw    r25,12(r1)                             
ffc04084:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_blkdev_bnum begin =                                           
ffc04088:	38 63 00 08 	addi    r3,r3,8                                
  const uint8_t *data,                                                
  rtems_bdpart_partition **p,                                         
  const rtems_bdpart_partition *p_end,                                
  rtems_blkdev_bnum *ep_begin                                         
)                                                                     
{                                                                     
ffc0408c:	90 01 00 2c 	stw     r0,44(r1)                              
ffc04090:	7c 9e 23 78 	mr      r30,r4                                 
ffc04094:	7c b9 2b 78 	mr      r25,r5                                 
ffc04098:	7c da 33 78 	mr      r26,r6                                 
  rtems_blkdev_bnum begin =                                           
ffc0409c:	4b ff fe f1 	bl      ffc03f8c <rtems_uint32_from_little_endian>
ffc040a0:	7c 7d 1b 78 	mr      r29,r3                                 
    rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
  rtems_blkdev_bnum size =                                            
ffc040a4:	38 7f 00 0c 	addi    r3,r31,12                              
ffc040a8:	4b ff fe e5 	bl      ffc03f8c <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];                 
ffc040ac:	8b 9f 00 04 	lbz     r28,4(r31)                             
                                                                      
  if (type == RTEMS_BDPART_MBR_EMPTY) {                               
ffc040b0:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc040b4:	41 9e 00 7c 	beq-    cr7,ffc04130 <rtems_bdpart_read_mbr_partition+0xb8><== NEVER TAKEN
    return RTEMS_SUCCESSFUL;                                          
  } else if (*p == p_end) {                                           
ffc040b8:	81 5e 00 00 	lwz     r10,0(r30)                             
    return RTEMS_TOO_MANY;                                            
ffc040bc:	39 20 00 05 	li      r9,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) {                                           
ffc040c0:	7f 8a c8 00 	cmpw    cr7,r10,r25                            
ffc040c4:	41 9e 00 70 	beq-    cr7,ffc04134 <rtems_bdpart_read_mbr_partition+0xbc><== 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;                               
ffc040c8:	7f 63 ea 14 	add     r27,r3,r29                             
                                                                      
  if (type == RTEMS_BDPART_MBR_EMPTY) {                               
    return RTEMS_SUCCESSFUL;                                          
  } else if (*p == p_end) {                                           
    return RTEMS_TOO_MANY;                                            
  } else if (begin >= end) {                                          
ffc040cc:	7f 9d d8 40 	cmplw   cr7,r29,r27                            
    return RTEMS_IO_ERROR;                                            
ffc040d0:	39 20 00 1b 	li      r9,27                                  
                                                                      
  if (type == RTEMS_BDPART_MBR_EMPTY) {                               
    return RTEMS_SUCCESSFUL;                                          
  } else if (*p == p_end) {                                           
    return RTEMS_TOO_MANY;                                            
  } else if (begin >= end) {                                          
ffc040d4:	40 bc 00 60 	bge+    cr7,ffc04134 <rtems_bdpart_read_mbr_partition+0xbc><== NEVER TAKEN
    return RTEMS_IO_ERROR;                                            
  } else if (type == RTEMS_BDPART_MBR_EXTENDED) {                     
ffc040d8:	2f 9c 00 05 	cmpwi   cr7,r28,5                              
ffc040dc:	40 9e 00 14 	bne-    cr7,ffc040f0 <rtems_bdpart_read_mbr_partition+0x78>
    if (ep_begin != NULL) {                                           
ffc040e0:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc040e4:	41 9e 00 4c 	beq-    cr7,ffc04130 <rtems_bdpart_read_mbr_partition+0xb8><== NEVER TAKEN
      *ep_begin = begin;                                              
ffc040e8:	93 ba 00 00 	stw     r29,0(r26)                             
ffc040ec:	48 00 00 44 	b       ffc04130 <rtems_bdpart_read_mbr_partition+0xb8>
    }                                                                 
  } else {                                                            
    /* Increment partition index */                                   
    ++(*p);                                                           
ffc040f0:	38 6a 00 30 	addi    r3,r10,48                              
ffc040f4:	90 7e 00 00 	stw     r3,0(r30)                              
                                                                      
    /* Clear partition */                                             
    memset( *p, 0, sizeof( rtems_bdpart_partition));                  
ffc040f8:	38 80 00 00 	li      r4,0                                   
ffc040fc:	38 a0 00 30 	li      r5,48                                  
ffc04100:	48 01 1d 85 	bl      ffc15e84 <memset>                      
                                                                      
    /* Set values */                                                  
    (*p)->begin = begin;                                              
ffc04104:	80 9e 00 00 	lwz     r4,0(r30)                              
    (*p)->end = end;                                                  
    rtems_bdpart_to_partition_type( type, (*p)->type);                
ffc04108:	7f 83 e3 78 	mr      r3,r28                                 
                                                                      
    /* Clear partition */                                             
    memset( *p, 0, sizeof( rtems_bdpart_partition));                  
                                                                      
    /* Set values */                                                  
    (*p)->begin = begin;                                              
ffc0410c:	93 a4 00 00 	stw     r29,0(r4)                              
    (*p)->end = end;                                                  
ffc04110:	93 64 00 04 	stw     r27,4(r4)                              
    rtems_bdpart_to_partition_type( type, (*p)->type);                
ffc04114:	38 84 00 08 	addi    r4,r4,8                                
ffc04118:	4b ff ff 41 	bl      ffc04058 <rtems_bdpart_to_partition_type>
    (*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];               
ffc0411c:	89 5f 00 00 	lbz     r10,0(r31)                             
ffc04120:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc04124:	91 49 00 2c 	stw     r10,44(r9)                             
ffc04128:	39 40 00 00 	li      r10,0                                  
ffc0412c:	91 49 00 28 	stw     r10,40(r9)                             
    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) {                               
    return RTEMS_SUCCESSFUL;                                          
ffc04130:	39 20 00 00 	li      r9,0                                   
    rtems_bdpart_to_partition_type( type, (*p)->type);                
    (*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];               
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04134:	39 61 00 28 	addi    r11,r1,40                              
ffc04138:	7d 23 4b 78 	mr      r3,r9                                  
ffc0413c:	4b ff c6 a0 	b       ffc007dc <_restgpr_25_x>               
                                                                      

ffc03fb8 <rtems_bdpart_read_record>: static rtems_status_code rtems_bdpart_read_record( rtems_disk_device *dd, rtems_blkdev_bnum index, rtems_bdbuf_buffer **block ) {
ffc03fb8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc03fbc:	7c 08 02 a6 	mflr    r0                                     
ffc03fc0:	90 01 00 1c 	stw     r0,28(r1)                              
ffc03fc4:	bf c1 00 10 	stmw    r30,16(r1)                             
ffc03fc8:	7c 7e 1b 78 	mr      r30,r3                                 
ffc03fcc:	7c bf 2b 78 	mr      r31,r5                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  /* Release previous block if necessary */                           
  if (*block != NULL) {                                               
ffc03fd0:	80 65 00 00 	lwz     r3,0(r5)                               
ffc03fd4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc03fd8:	40 be 00 1c 	bne+    cr7,ffc03ff4 <rtems_bdpart_read_record+0x3c>
      return sc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  /* Read the record block */                                         
  sc = rtems_bdbuf_read( dd, index, block);                           
ffc03fdc:	7f c3 f3 78 	mr      r3,r30                                 
ffc03fe0:	7f e5 fb 78 	mr      r5,r31                                 
ffc03fe4:	48 00 cc bd 	bl      ffc10ca0 <rtems_bdbuf_read>            
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc03fe8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc03fec:	41 a2 00 20 	beq+    ffc0400c <rtems_bdpart_read_record+0x54><== ALWAYS TAKEN
ffc03ff0:	48 00 00 60 	b       ffc04050 <rtems_bdpart_read_record+0x98><== NOT EXECUTED
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  /* Release previous block if necessary */                           
  if (*block != NULL) {                                               
    sc = rtems_bdbuf_release( *block);                                
ffc03ff4:	90 81 00 08 	stw     r4,8(r1)                               
ffc03ff8:	48 00 ce a1 	bl      ffc10e98 <rtems_bdbuf_release>         
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc03ffc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04000:	80 81 00 08 	lwz     r4,8(r1)                               
ffc04004:	41 82 ff d8 	beq+    ffc03fdc <rtems_bdpart_read_record+0x24><== ALWAYS TAKEN
ffc04008:	48 00 00 48 	b       ffc04050 <rtems_bdpart_read_record+0x98><== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
                                                                      
  /* just in case block did not get filled in */                      
  if ( *block == NULL ) {                                             
ffc0400c:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc04010:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04014:	41 9e 00 38 	beq-    cr7,ffc0404c <rtems_bdpart_read_record+0x94><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Check MBR signature */                                           
  if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {             
ffc04018:	81 09 00 1c 	lwz     r8,28(r9)                              
                                                                      
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]                     
ffc0401c:	39 20 00 00 	li      r9,0                                   
ffc04020:	88 e8 01 fe 	lbz     r7,510(r8)                             
ffc04024:	2f 87 00 55 	cmpwi   cr7,r7,85                              
ffc04028:	40 be 00 14 	bne+    cr7,ffc0403c <rtems_bdpart_read_record+0x84><== NEVER TAKEN
ffc0402c:	89 28 01 ff 	lbz     r9,511(r8)                             
ffc04030:	69 29 00 aa 	xori    r9,r9,170                              
ffc04034:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc04038:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
  if ( *block == NULL ) {                                             
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Check MBR signature */                                           
  if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {             
ffc0403c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04040:	40 9e 00 10 	bne-    cr7,ffc04050 <rtems_bdpart_read_record+0x98><== ALWAYS TAKEN
    return RTEMS_IO_ERROR;                                            
ffc04044:	38 60 00 1b 	li      r3,27                                  <== NOT EXECUTED
ffc04048:	48 00 00 08 	b       ffc04050 <rtems_bdpart_read_record+0x98><== NOT EXECUTED
    return sc;                                                        
  }                                                                   
                                                                      
  /* just in case block did not get filled in */                      
  if ( *block == NULL ) {                                             
    return RTEMS_INVALID_ADDRESS;                                     
ffc0404c:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
  if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {             
    return RTEMS_IO_ERROR;                                            
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04050:	39 61 00 18 	addi    r11,r1,24                              
ffc04054:	4b ff c7 9c 	b       ffc007f0 <_restgpr_30_x>               
                                                                      

ffc044a0 <rtems_bdpart_register>: rtems_status_code rtems_bdpart_register( const char *disk_name, const rtems_bdpart_partition *pt, size_t count ) {
ffc044a0:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc044a4:	7c 08 02 a6 	mflr    r0                                     
ffc044a8:	bf 01 00 18 	stmw    r24,24(r1)                             
  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;                                     
ffc044ac:	3b c0 00 00 	li      r30,0                                  
rtems_status_code rtems_bdpart_register(                              
  const char *disk_name,                                              
  const rtems_bdpart_partition *pt,                                   
  size_t count                                                        
)                                                                     
{                                                                     
ffc044b0:	7c 7a 1b 78 	mr      r26,r3                                 
ffc044b4:	90 01 00 3c 	stw     r0,60(r1)                              
ffc044b8:	7c 9d 23 78 	mr      r29,r4                                 
ffc044bc:	7c b8 2b 78 	mr      r24,r5                                 
  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;                                     
ffc044c0:	93 c1 00 10 	stw     r30,16(r1)                             
  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);                         
ffc044c4:	48 01 23 71 	bl      ffc16834 <strlen>                      
ffc044c8:	7c 7f 1b 78 	mr      r31,r3                                 
  size_t i = 0;                                                       
  int fd = -1;                                                        
ffc044cc:	39 20 ff ff 	li      r9,-1                                  
  rtems_disk_device *dd = NULL;                                       
ffc044d0:	93 c1 00 08 	stw     r30,8(r1)                              
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
ffc044d4:	7f 43 d3 78 	mr      r3,r26                                 
ffc044d8:	38 81 00 0c 	addi    r4,r1,12                               
  dev_t logical_disk = 0;                                             
  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;                                                        
ffc044dc:	91 21 00 0c 	stw     r9,12(r1)                              
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
ffc044e0:	38 a1 00 08 	addi    r5,r1,8                                
ffc044e4:	38 c1 00 10 	addi    r6,r1,16                               
ffc044e8:	4b ff fc 9d 	bl      ffc04184 <rtems_bdpart_get_disk_data>  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc044ec:	7c 69 1b 79 	mr.     r9,r3                                  
ffc044f0:	40 a2 00 cc 	bne+    ffc045bc <rtems_bdpart_register+0x11c> <== NEVER TAKEN
                                                                      
static inline dev_t rtems_disk_get_device_identifier(                 
  const rtems_disk_device *dd                                         
)                                                                     
{                                                                     
  return dd->dev;                                                     
ffc044f4:	81 21 00 08 	lwz     r9,8(r1)                               
    return sc;                                                        
  }                                                                   
  disk = rtems_disk_get_device_identifier( dd);                       
  close( fd);                                                         
ffc044f8:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc044fc:	83 69 00 00 	lwz     r27,0(r9)                              
ffc04500:	83 c9 00 04 	lwz     r30,4(r9)                              
ffc04504:	48 00 21 a1 	bl      ffc066a4 <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);
ffc04508:	38 7f 00 04 	addi    r3,r31,4                               
ffc0450c:	48 00 28 e9 	bl      ffc06df4 <malloc>                      
  if (logical_disk_name == NULL) {                                    
    return RTEMS_NO_MEMORY;                                           
ffc04510:	39 20 00 1a 	li      r9,26                                  
  /* 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);
  if (logical_disk_name == NULL) {                                    
ffc04514:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc04518:	41 82 00 a4 	beq-    ffc045bc <rtems_bdpart_register+0x11c> <== NEVER TAKEN
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
  strncpy( logical_disk_name, disk_name, disk_name_size);             
ffc0451c:	7f 44 d3 78 	mr      r4,r26                                 
ffc04520:	7f e5 fb 78 	mr      r5,r31                                 
#include <string.h>                                                   
                                                                      
#include <rtems.h>                                                    
#include <rtems/bdpart.h>                                             
                                                                      
rtems_status_code rtems_bdpart_register(                              
ffc04524:	7f 58 f2 14 	add     r26,r24,r30                            
  /* 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);             
ffc04528:	48 01 24 e1 	bl      ffc16a08 <strncpy>                     
                                                                      
    /* 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);
ffc0452c:	3f 00 ff c2 	lis     r24,-62                                
  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;           
ffc04530:	7f 3c fa 14 	add     r25,r28,r31                            
                                                                      
    /* 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);
ffc04534:	3b 18 50 18 	addi    r24,r24,20504                          
  }                                                                   
  disk = rtems_disk_get_device_identifier( dd);                       
  close( fd);                                                         
                                                                      
  /* Get the disk device identifier */                                
  rtems_filesystem_split_dev_t( disk, major, minor);                  
ffc04538:	7f df f3 78 	mr      r31,r30                                
  }                                                                   
  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) {                                       
ffc0453c:	48 00 00 58 	b       ffc04594 <rtems_bdpart_register+0xf4>  
    const rtems_bdpart_partition *p = pt + i;                         
    int rv = 0;                                                       
                                                                      
    /* New minor number */                                            
    ++minor;                                                          
ffc04540:	3b ff 00 01 	addi    r31,r31,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);
ffc04544:	7f 23 cb 78 	mr      r3,r25                                 
ffc04548:	38 80 00 04 	li      r4,4                                   
ffc0454c:	7f 05 c3 78 	mr      r5,r24                                 
ffc04550:	7c de f8 50 	subf    r6,r30,r31                             
ffc04554:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04558:	48 01 1d 45 	bl      ffc1629c <snprintf>                    
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
ffc0455c:	2f 83 00 03 	cmpwi   cr7,r3,3                               
ffc04560:	41 9d 00 44 	bgt-    cr7,ffc045a4 <rtems_bdpart_register+0x104><== NEVER TAKEN
    /* Create logical disk */                                         
    sc = rtems_disk_create_log(                                       
      logical_disk,                                                   
      disk,                                                           
      p->begin,                                                       
      p->end - p->begin,                                              
ffc04564:	80 fd 00 00 	lwz     r7,0(r29)                              
      esc = RTEMS_INVALID_NAME;                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Create logical disk */                                         
    sc = rtems_disk_create_log(                                       
ffc04568:	7f 63 db 78 	mr      r3,r27                                 
ffc0456c:	81 1d 00 04 	lwz     r8,4(r29)                              
ffc04570:	7f e4 fb 78 	mr      r4,r31                                 
ffc04574:	7f 65 db 78 	mr      r5,r27                                 
ffc04578:	7f c6 f3 78 	mr      r6,r30                                 
ffc0457c:	7d 07 40 50 	subf    r8,r7,r8                               
ffc04580:	7f 89 e3 78 	mr      r9,r28                                 
ffc04584:	48 00 0d 19 	bl      ffc0529c <rtems_disk_create_log>       
ffc04588:	3b bd 00 30 	addi    r29,r29,48                             
      disk,                                                           
      p->begin,                                                       
      p->end - p->begin,                                              
      logical_disk_name                                               
    );                                                                
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc0458c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04590:	40 82 00 1c 	bne-    ffc045ac <rtems_bdpart_register+0x10c> <== 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) {                                       
ffc04594:	7f 9f d0 00 	cmpw    cr7,r31,r26                            
ffc04598:	40 9e ff a8 	bne+    cr7,ffc04540 <rtems_bdpart_register+0xa0>
  const rtems_bdpart_partition *pt,                                   
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
ffc0459c:	3b e0 00 00 	li      r31,0                                  
ffc045a0:	48 00 00 10 	b       ffc045b0 <rtems_bdpart_register+0x110> 
    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;                                       
ffc045a4:	3b e0 00 03 	li      r31,3                                  <== NOT EXECUTED
ffc045a8:	48 00 00 08 	b       ffc045b0 <rtems_bdpart_register+0x110> <== NOT EXECUTED
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Create logical disk */                                         
    sc = rtems_disk_create_log(                                       
ffc045ac:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( logical_disk_name);                                           
ffc045b0:	7f 83 e3 78 	mr      r3,r28                                 
ffc045b4:	48 00 21 79 	bl      ffc0672c <free>                        
                                                                      
  return esc;                                                         
ffc045b8:	7f e9 fb 78 	mr      r9,r31                                 
}                                                                     
ffc045bc:	39 61 00 38 	addi    r11,r1,56                              
ffc045c0:	7d 23 4b 78 	mr      r3,r9                                  
ffc045c4:	4b ff c2 14 	b       ffc007d8 <_restgpr_24_x>               
                                                                      

ffc045c8 <rtems_bdpart_register_from_disk>: rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name) {
ffc045c8:	7c 2b 0b 78 	mr      r11,r1                                 
ffc045cc:	94 21 fc d0 	stwu    r1,-816(r1)                            
ffc045d0:	7c 08 02 a6 	mflr    r0                                     
  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;                  
ffc045d4:	39 20 00 10 	li      r9,16                                  
                                                                      
  /* Read partitions */                                               
  sc = rtems_bdpart_read( disk_name, &format, pt, &count);            
ffc045d8:	38 81 03 08 	addi    r4,r1,776                              
                                                                      
  return esc;                                                         
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name)
{                                                                     
ffc045dc:	48 01 f2 35 	bl      ffc23810 <_savegpr_31>                 
  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);            
ffc045e0:	38 a1 00 08 	addi    r5,r1,8                                
                                                                      
  return esc;                                                         
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name)
{                                                                     
ffc045e4:	90 01 03 34 	stw     r0,820(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);            
ffc045e8:	38 c1 03 1c 	addi    r6,r1,796                              
                                                                      
  return esc;                                                         
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name)
{                                                                     
ffc045ec:	7c 7f 1b 78 	mr      r31,r3                                 
  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;                  
ffc045f0:	91 21 03 1c 	stw     r9,796(r1)                             
                                                                      
  /* Read partitions */                                               
  sc = rtems_bdpart_read( disk_name, &format, pt, &count);            
ffc045f4:	4b ff fc 59 	bl      ffc0424c <rtems_bdpart_read>           
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc045f8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc045fc:	40 a2 00 14 	bne+    ffc04610 <rtems_bdpart_register_from_disk+0x48><== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  /* Register partitions */                                           
  return rtems_bdpart_register( disk_name, pt, count);                
ffc04600:	80 a1 03 1c 	lwz     r5,796(r1)                             
ffc04604:	7f e3 fb 78 	mr      r3,r31                                 
ffc04608:	38 81 00 08 	addi    r4,r1,8                                
ffc0460c:	4b ff fe 95 	bl      ffc044a0 <rtems_bdpart_register>       
}                                                                     
ffc04610:	39 61 03 30 	addi    r11,r1,816                             
ffc04614:	4b ff c1 e0 	b       ffc007f4 <_restgpr_31_x>               
                                                                      

ffc21bf0 <rtems_bdpart_unmount>: const char *disk_name, const rtems_bdpart_partition *pt __attribute__((unused)), size_t count, const char *mount_base ) {
ffc21bf0:	94 21 ff d8 	stwu    r1,-40(r1)                             <== NOT EXECUTED
ffc21bf4:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  const char *disk_file_name = strrchr( disk_name, '/');              
ffc21bf8:	38 80 00 2f 	li      r4,47                                  <== NOT EXECUTED
  const char *disk_name,                                              
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count,                                                       
  const char *mount_base                                              
)                                                                     
{                                                                     
ffc21bfc:	bf 01 00 08 	stmw    r24,8(r1)                              <== NOT EXECUTED
ffc21c00:	7c d9 33 78 	mr      r25,r6                                 <== NOT EXECUTED
ffc21c04:	7c b8 2b 78 	mr      r24,r5                                 <== NOT EXECUTED
ffc21c08:	90 01 00 2c 	stw     r0,44(r1)                              <== NOT EXECUTED
ffc21c0c:	7c 7c 1b 78 	mr      r28,r3                                 <== NOT EXECUTED
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  const char *disk_file_name = strrchr( disk_name, '/');              
ffc21c10:	48 01 ea 45 	bl      ffc40654 <strrchr>                     <== NOT EXECUTED
ffc21c14:	7c 7f 1b 78 	mr      r31,r3                                 <== 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);                         
ffc21c18:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc21c1c:	48 01 da cd 	bl      ffc3f6e8 <strlen>                      <== NOT EXECUTED
ffc21c20:	7c 7b 1b 78 	mr      r27,r3                                 <== NOT EXECUTED
  size_t mount_base_size = strlen( mount_base);                       
ffc21c24:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc21c28:	48 01 da c1 	bl      ffc3f6e8 <strlen>                      <== NOT EXECUTED
  size_t i = 0;                                                       
                                                                      
  /* Get disk file name */                                            
  if (disk_file_name != NULL) {                                       
ffc21c2c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              <== NOT EXECUTED
  const char *disk_file_name = strrchr( disk_name, '/');              
  char *mount_point = NULL;                                           
  char *mount_marker = NULL;                                          
  size_t disk_file_name_size = 0;                                     
  size_t disk_name_size = strlen( disk_name);                         
  size_t mount_base_size = strlen( mount_base);                       
ffc21c30:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
  size_t i = 0;                                                       
                                                                      
  /* Get disk file name */                                            
  if (disk_file_name != NULL) {                                       
ffc21c34:	41 9e 00 14 	beq-    cr7,ffc21c48 <rtems_bdpart_unmount+0x58><== NOT EXECUTED
    disk_file_name += 1;                                              
ffc21c38:	3b 9f 00 01 	addi    r28,r31,1                              <== NOT EXECUTED
    disk_file_name_size = strlen( disk_file_name);                    
ffc21c3c:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc21c40:	48 01 da a9 	bl      ffc3f6e8 <strlen>                      <== NOT EXECUTED
ffc21c44:	7c 7b 1b 78 	mr      r27,r3                                 <== 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);
ffc21c48:	7f 5b f2 14 	add     r26,r27,r30                            <== NOT EXECUTED
ffc21c4c:	38 7a 00 05 	addi    r3,r26,5                               <== NOT EXECUTED
ffc21c50:	4b fe 26 c9 	bl      ffc04318 <malloc>                      <== NOT EXECUTED
  if (mount_point == NULL) {                                          
    esc = RTEMS_NO_MEMORY;                                            
ffc21c54:	3b a0 00 1a 	li      r29,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) {                                          
ffc21c58:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc21c5c:	41 82 00 a4 	beq-    ffc21d00 <rtems_bdpart_unmount+0x110>  <== NOT EXECUTED
    esc = RTEMS_NO_MEMORY;                                            
    goto cleanup;                                                     
  }                                                                   
  strncpy( mount_point, mount_base, mount_base_size);                 
ffc21c60:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc21c64:	7f 24 cb 78 	mr      r4,r25                                 <== NOT EXECUTED
ffc21c68:	48 01 dc f9 	bl      ffc3f960 <strncpy>                     <== NOT EXECUTED
  mount_point [mount_base_size] = '/';                                
ffc21c6c:	39 20 00 2f 	li      r9,47                                  <== NOT EXECUTED
ffc21c70:	7d 3f f1 ae 	stbx    r9,r31,r30                             <== NOT EXECUTED
  strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
ffc21c74:	38 7e 00 01 	addi    r3,r30,1                               <== NOT EXECUTED
ffc21c78:	7c 7f 1a 14 	add     r3,r31,r3                              <== NOT EXECUTED
ffc21c7c:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc21c80:	7f 65 db 78 	mr      r5,r27                                 <== NOT EXECUTED
                                                                      
  /* Marker */                                                        
  mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
ffc21c84:	3b 5a 00 01 	addi    r26,r26,1                              <== 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);
ffc21c88:	48 01 dc d9 	bl      ffc3f960 <strncpy>                     <== NOT EXECUTED
  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) {                                       
    /* Create mount point */                                          
    int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
ffc21c8c:	3f a0 ff c6 	lis     r29,-58                                <== NOT EXECUTED
  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);
                                                                      
  /* Marker */                                                        
  mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
ffc21c90:	7f 5f d2 14 	add     r26,r31,r26                            <== NOT EXECUTED
                                                                      
  /* Mount supported file systems for each partition */               
  for (i = 0; i < count; ++i) {                                       
ffc21c94:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
    /* Create mount point */                                          
    int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
ffc21c98:	3b bd b4 ab 	addi    r29,r29,-19285                         <== 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) {                                       
ffc21c9c:	48 00 00 48 	b       ffc21ce4 <rtems_bdpart_unmount+0xf4>   <== NOT EXECUTED
    /* Create mount point */                                          
    int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
ffc21ca0:	3b de 00 01 	addi    r30,r30,1                              <== NOT EXECUTED
ffc21ca4:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc21ca8:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc21cac:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc21cb0:	7f c6 f3 78 	mr      r6,r30                                 <== NOT EXECUTED
ffc21cb4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc21cb8:	48 01 cb ed 	bl      ffc3e8a4 <snprintf>                    <== NOT EXECUTED
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
ffc21cbc:	2f 83 00 03 	cmpwi   cr7,r3,3                               <== NOT EXECUTED
ffc21cc0:	41 9d 00 34 	bgt-    cr7,ffc21cf4 <rtems_bdpart_unmount+0x104><== NOT EXECUTED
      esc = RTEMS_INVALID_NAME;                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Unmount */                                                     
    rv = unmount( mount_point);                                       
ffc21cc4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc21cc8:	48 00 46 c5 	bl      ffc2638c <unmount>                     <== NOT EXECUTED
    if (rv == 0) {                                                    
ffc21ccc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc21cd0:	40 be 00 14 	bne+    cr7,ffc21ce4 <rtems_bdpart_unmount+0xf4><== NOT EXECUTED
      /* Remove mount point */                                        
      rv = rmdir( mount_point);                                       
ffc21cd4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc21cd8:	48 00 3f 1d 	bl      ffc25bf4 <rmdir>                       <== NOT EXECUTED
      if (rv != 0) {                                                  
ffc21cdc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc21ce0:	40 9e 00 1c 	bne-    cr7,ffc21cfc <rtems_bdpart_unmount+0x10c><== 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) {                                       
ffc21ce4:	7f 9e c0 00 	cmpw    cr7,r30,r24                            <== NOT EXECUTED
ffc21ce8:	40 9e ff b8 	bne+    cr7,ffc21ca0 <rtems_bdpart_unmount+0xb0><== NOT EXECUTED
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count,                                                       
  const char *mount_base                                              
)                                                                     
{                                                                     
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
ffc21cec:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
ffc21cf0:	48 00 00 10 	b       ffc21d00 <rtems_bdpart_unmount+0x110>  <== 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;                                       
ffc21cf4:	3b a0 00 03 	li      r29,3                                  <== NOT EXECUTED
ffc21cf8:	48 00 00 08 	b       ffc21d00 <rtems_bdpart_unmount+0x110>  <== NOT EXECUTED
    rv = unmount( mount_point);                                       
    if (rv == 0) {                                                    
      /* Remove mount point */                                        
      rv = rmdir( mount_point);                                       
      if (rv != 0) {                                                  
        esc = RTEMS_IO_ERROR;                                         
ffc21cfc:	3b a0 00 1b 	li      r29,27                                 <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( mount_point);                                                 
ffc21d00:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc21d04:	4b fe 22 79 	bl      ffc03f7c <free>                        <== NOT EXECUTED
                                                                      
  return esc;                                                         
}                                                                     
ffc21d08:	39 61 00 28 	addi    r11,r1,40                              <== NOT EXECUTED
ffc21d0c:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc21d10:	48 03 1a d0 	b       ffc537e0 <_restgpr_24_x>               <== NOT EXECUTED
                                                                      

ffc04618 <rtems_bdpart_unregister>: rtems_status_code rtems_bdpart_unregister( const char *disk_name, const rtems_bdpart_partition *pt __attribute__((unused)), size_t count ) {
ffc04618:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0461c:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
  rtems_blkdev_bnum disk_end = 0;                                     
ffc04620:	39 20 00 00 	li      r9,0                                   
rtems_status_code rtems_bdpart_unregister(                            
  const char *disk_name,                                              
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count                                                        
)                                                                     
{                                                                     
ffc04624:	bf 81 00 18 	stmw    r28,24(r1)                             
  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;                                                        
ffc04628:	39 40 ff ff 	li      r10,-1                                 
rtems_status_code rtems_bdpart_unregister(                            
  const char *disk_name,                                              
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count                                                        
)                                                                     
{                                                                     
ffc0462c:	7c bc 2b 78 	mr      r28,r5                                 
  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);   
ffc04630:	38 81 00 0c 	addi    r4,r1,12                               
rtems_status_code rtems_bdpart_unregister(                            
  const char *disk_name,                                              
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count                                                        
)                                                                     
{                                                                     
ffc04634:	90 01 00 2c 	stw     r0,44(r1)                              
  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);   
ffc04638:	38 a1 00 08 	addi    r5,r1,8                                
ffc0463c:	38 c1 00 10 	addi    r6,r1,16                               
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
  rtems_blkdev_bnum disk_end = 0;                                     
ffc04640:	91 21 00 10 	stw     r9,16(r1)                              
  dev_t disk = 0;                                                     
  dev_t logical_disk = 0;                                             
  size_t i = 0;                                                       
  int fd = -1;                                                        
ffc04644:	91 41 00 0c 	stw     r10,12(r1)                             
  rtems_disk_device *dd = NULL;                                       
ffc04648:	91 21 00 08 	stw     r9,8(r1)                               
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
ffc0464c:	4b ff fb 39 	bl      ffc04184 <rtems_bdpart_get_disk_data>  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04650:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc04654:	40 a2 00 48 	bne+    ffc0469c <rtems_bdpart_unregister+0x84><== NEVER TAKEN
ffc04658:	81 21 00 08 	lwz     r9,8(r1)                               
    return sc;                                                        
  }                                                                   
  disk = rtems_disk_get_device_identifier( dd);                       
  close( fd);                                                         
ffc0465c:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc04660:	83 e9 00 04 	lwz     r31,4(r9)                              
ffc04664:	83 a9 00 00 	lwz     r29,0(r9)                              
ffc04668:	48 00 20 3d 	bl      ffc066a4 <close>                       
                                                                      
  /* Register partitions */                                           
  return rtems_bdpart_register( disk_name, pt, count);                
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_unregister(                            
ffc0466c:	7f 9c fa 14 	add     r28,r28,r31                            
                                                                      
  /* 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) {                                       
ffc04670:	48 00 00 1c 	b       ffc0468c <rtems_bdpart_unregister+0x74>
    /* New minor number */                                            
    ++minor;                                                          
ffc04674:	3b ff 00 01 	addi    r31,r31,1                              
                                                                      
    /* Get the device identifier */                                   
    logical_disk = rtems_filesystem_make_dev_t( major, minor);        
                                                                      
    /* Delete logical disk */                                         
    sc = rtems_disk_delete( logical_disk);                            
ffc04678:	7f a3 eb 78 	mr      r3,r29                                 
ffc0467c:	7f e4 fb 78 	mr      r4,r31                                 
ffc04680:	48 00 0a 8d 	bl      ffc0510c <rtems_disk_delete>           
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc04684:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04688:	40 82 00 10 	bne-    ffc04698 <rtems_bdpart_unregister+0x80><== 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) {                                       
ffc0468c:	7f 9f e0 00 	cmpw    cr7,r31,r28                            
ffc04690:	40 9e ff e4 	bne+    cr7,ffc04674 <rtems_bdpart_unregister+0x5c>
ffc04694:	48 00 00 08 	b       ffc0469c <rtems_bdpart_unregister+0x84>
                                                                      
    /* Get the device identifier */                                   
    logical_disk = rtems_filesystem_make_dev_t( major, minor);        
                                                                      
    /* Delete logical disk */                                         
    sc = rtems_disk_delete( logical_disk);                            
ffc04698:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
      return sc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0469c:	39 61 00 28 	addi    r11,r1,40                              
ffc046a0:	7f c3 f3 78 	mr      r3,r30                                 
ffc046a4:	4b ff c1 44 	b       ffc007e8 <_restgpr_28_x>               
                                                                      

ffc04788 <rtems_bdpart_write>: const char *disk_name, const rtems_bdpart_format *format, const rtems_bdpart_partition *pt, size_t count ) {
ffc04788:	94 21 ff a8 	stwu    r1,-88(r1)                             
ffc0478c:	7d 80 00 26 	mfcr    r12                                    
ffc04790:	7c 08 02 a6 	mflr    r0                                     
ffc04794:	be a1 00 2c 	stmw    r21,44(r1)                             
  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;                                 
ffc04798:	7c 98 23 79 	mr.     r24,r4                                 
  const char *disk_name,                                              
  const rtems_bdpart_format *format,                                  
  const rtems_bdpart_partition *pt,                                   
  size_t count                                                        
)                                                                     
{                                                                     
ffc0479c:	7c ba 2b 78 	mr      r26,r5                                 
ffc047a0:	90 01 00 5c 	stw     r0,92(r1)                              
ffc047a4:	7c de 33 78 	mr      r30,r6                                 
ffc047a8:	91 81 00 28 	stw     r12,40(r1)                             
  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;                                 
ffc047ac:	41 82 00 1c 	beq-    ffc047c8 <rtems_bdpart_write+0x40>     <== 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                        
ffc047b0:	81 58 00 00 	lwz     r10,0(r24)                             
    && format->mbr.dos_compatibility;                                 
ffc047b4:	39 20 00 00 	li      r9,0                                   
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
ffc047b8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc047bc:	40 9e 00 10 	bne-    cr7,ffc047cc <rtems_bdpart_write+0x44> <== NEVER TAKEN
    && format->mbr.dos_compatibility;                                 
ffc047c0:	89 38 00 08 	lbz     r9,8(r24)                              
ffc047c4:	48 00 00 08 	b       ffc047cc <rtems_bdpart_write+0x44>     
ffc047c8:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
  rtems_bdbuf_buffer *block = NULL;                                   
  rtems_blkdev_bnum disk_end = 0;                                     
  rtems_blkdev_bnum record_space =                                    
ffc047cc:	55 3b 07 fe 	clrlwi  r27,r9,31                              
ffc047d0:	2e 1b 00 00 	cmpwi   cr4,r27,0                              
  uint8_t *data = NULL;                                               
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Check if we have something to do */                              
  if (count == 0) {                                                   
ffc047d4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
  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 =                                    
ffc047d8:	39 00 ff c2 	li      r8,-62                                 
ffc047dc:	7f a0 00 26 	mfcr    r29                                    
ffc047e0:	57 bd 9f fe 	rlwinm  r29,r29,19,31,31                       
  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;                                   
ffc047e4:	39 40 00 00 	li      r10,0                                  
ffc047e8:	91 41 00 14 	stw     r10,20(r1)                             
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Check if we have something to do */                              
  if (count == 0) {                                                   
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
ffc047ec:	3b e0 00 00 	li      r31,0                                  
  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 =                                    
ffc047f0:	7f bd 00 d0 	neg     r29,r29                                
ffc047f4:	7f bd 40 38 	and     r29,r29,r8                             
  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;                                   
  rtems_blkdev_bnum disk_end = 0;                                     
ffc047f8:	91 41 00 10 	stw     r10,16(r1)                             
  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;                                                        
ffc047fc:	39 00 ff ff 	li      r8,-1                                  
  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 =                                    
ffc04800:	3b bd 00 3f 	addi    r29,r29,63                             
    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;                                                        
ffc04804:	91 01 00 0c 	stw     r8,12(r1)                              
  rtems_disk_device *dd = NULL;                                       
ffc04808:	91 41 00 08 	stw     r10,8(r1)                              
                                                                      
  /* Check if we have something to do */                              
  if (count == 0) {                                                   
ffc0480c:	41 9e 02 fc 	beq-    cr7,ffc04b08 <rtems_bdpart_write+0x380><== NEVER TAKEN
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL) {                                 
ffc04810:	2f 98 00 00 	cmpwi   cr7,r24,0                              
    return RTEMS_INVALID_ADDRESS;                                     
ffc04814:	3b e0 00 09 	li      r31,9                                  
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL) {                                 
ffc04818:	41 9e 02 f0 	beq-    cr7,ffc04b08 <rtems_bdpart_write+0x380><== NEVER TAKEN
ffc0481c:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc04820:	41 9e 02 e8 	beq-    cr7,ffc04b08 <rtems_bdpart_write+0x380><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
ffc04824:	38 81 00 0c 	addi    r4,r1,12                               
ffc04828:	38 a1 00 08 	addi    r5,r1,8                                
ffc0482c:	38 c1 00 10 	addi    r6,r1,16                               
ffc04830:	4b ff f9 55 	bl      ffc04184 <rtems_bdpart_get_disk_data>  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04834:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc04838:	40 82 02 d0 	bne-    ffc04b08 <rtems_bdpart_write+0x380>    <== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  /* Align end of disk on cylinder boundary if necessary */           
  if (dos_compatibility) {                                            
ffc0483c:	41 92 00 14 	beq-    cr4,ffc04850 <rtems_bdpart_write+0xc8> <== NEVER TAKEN
    disk_end -= (disk_end % record_space);                            
ffc04840:	81 21 00 10 	lwz     r9,16(r1)                              
ffc04844:	7d 29 eb 96 	divwu   r9,r9,r29                              
ffc04848:	7d 29 e9 d6 	mullw   r9,r9,r29                              
ffc0484c:	91 21 00 10 	stw     r9,16(r1)                              
  }                                                                   
                                                                      
  /* Check that we have a consistent partition table */               
  for (i = 0; i < count; ++i) {                                       
ffc04850:	7f c9 03 a6 	mtctr   r30                                    
    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) {                  
ffc04854:	80 e1 00 10 	lwz     r7,16(r1)                              
ffc04858:	7f 59 d3 78 	mr      r25,r26                                
ffc0485c:	7f 49 d3 78 	mr      r9,r26                                 
  if (dos_compatibility) {                                            
    disk_end -= (disk_end % record_space);                            
  }                                                                   
                                                                      
  /* Check that we have a consistent partition table */               
  for (i = 0; i < count; ++i) {                                       
ffc04860:	39 40 00 00 	li      r10,0                                  
    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) {                  
ffc04864:	81 09 00 00 	lwz     r8,0(r9)                               
ffc04868:	7f 88 38 40 	cmplw   cr7,r8,r7                              
ffc0486c:	40 9c 02 70 	bge-    cr7,ffc04adc <rtems_bdpart_write+0x354><== NEVER TAKEN
ffc04870:	80 c9 00 04 	lwz     r6,4(r9)                               
ffc04874:	7f 86 38 40 	cmplw   cr7,r6,r7                              
ffc04878:	41 9d 02 64 	bgt-    cr7,ffc04adc <rtems_bdpart_write+0x354><== NEVER TAKEN
      esc = RTEMS_INVALID_NUMBER;                                     
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check that begin and end are valid */                          
    if (p->begin >= p->end) {                                         
ffc0487c:	7f 88 30 40 	cmplw   cr7,r8,r6                              
ffc04880:	40 9c 02 5c 	bge-    cr7,ffc04adc <rtems_bdpart_write+0x354><== NEVER TAKEN
      esc = RTEMS_INVALID_NUMBER;                                     
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check that partitions do not overlap */                        
    if (i > 0 && pt [i - 1].end > p->begin) {                         
ffc04884:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc04888:	41 9e 00 10 	beq-    cr7,ffc04898 <rtems_bdpart_write+0x110>
ffc0488c:	80 c9 ff d4 	lwz     r6,-44(r9)                             
ffc04890:	7f 86 40 40 	cmplw   cr7,r6,r8                              
ffc04894:	41 9d 02 48 	bgt-    cr7,ffc04adc <rtems_bdpart_write+0x354><== 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) {                                       
ffc04898:	39 4a 00 01 	addi    r10,r10,1                              
ffc0489c:	39 29 00 30 	addi    r9,r9,48                               
ffc048a0:	42 00 ff c4 	bdnz+   ffc04864 <rtems_bdpart_write+0xdc>     
      goto cleanup;                                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Check format */                                                  
  if (format->type != RTEMS_BDPART_FORMAT_MBR) {                      
ffc048a4:	81 38 00 00 	lwz     r9,0(r24)                              
    esc = RTEMS_NOT_IMPLEMENTED;                                      
ffc048a8:	3b e0 00 18 	li      r31,24                                 
      goto cleanup;                                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Check format */                                                  
  if (format->type != RTEMS_BDPART_FORMAT_MBR) {                      
ffc048ac:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc048b0:	40 9e 02 38 	bne-    cr7,ffc04ae8 <rtems_bdpart_write+0x360><== 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;                                       
ffc048b4:	2b 9e 00 04 	cmplwi  cr7,r30,4                              
ffc048b8:	7f dc f3 78 	mr      r28,r30                                
ffc048bc:	40 9d 00 08 	ble-    cr7,ffc048c4 <rtems_bdpart_write+0x13c><== NEVER TAKEN
ffc048c0:	3b 80 00 03 	li      r28,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) {
ffc048c4:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc048c8:	40 9e 00 30 	bne-    cr7,ffc048f8 <rtems_bdpart_write+0x170><== ALWAYS TAKEN
ffc048cc:	7f 9c f0 40 	cmplw   cr7,r28,r30                            
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc048d0:	1e dc 00 30 	mulli   r22,r28,48                             
ffc048d4:	7d 3c f0 50 	subf    r9,r28,r30                             
ffc048d8:	7f 7a b2 14 	add     r27,r26,r22                            
ffc048dc:	7f 6a db 78 	mr      r10,r27                                
ffc048e0:	39 29 00 01 	addi    r9,r9,1                                
ffc048e4:	41 9d 00 0c 	bgt-    cr7,ffc048f0 <rtems_bdpart_write+0x168><== NEVER TAKEN
ffc048e8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc048ec:	40 be 00 3c 	bne+    cr7,ffc04928 <rtems_bdpart_write+0x1a0><== ALWAYS TAKEN
ffc048f0:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc048f4:	48 00 00 34 	b       ffc04928 <rtems_bdpart_write+0x1a0>    <== NOT EXECUTED
                                                                      
  /*                                                                  
   * 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) {
ffc048f8:	81 3a 00 00 	lwz     r9,0(r26)                              
    esc = RTEMS_INVALID_NUMBER;                                       
ffc048fc:	3b e0 00 0a 	li      r31,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) {
ffc04900:	2f 89 00 3f 	cmpwi   cr7,r9,63                              
ffc04904:	40 be 01 e4 	bne+    cr7,ffc04ae8 <rtems_bdpart_write+0x360><== NEVER TAKEN
ffc04908:	4b ff ff c4 	b       ffc048cc <rtems_bdpart_write+0x144>    
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc0490c:	7d 48 53 78 	mr      r8,r10                                 
   * 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) {             
ffc04910:	80 e8 00 00 	lwz     r7,0(r8)                               
ffc04914:	39 4a 00 30 	addi    r10,r10,48                             
ffc04918:	81 08 ff d4 	lwz     r8,-44(r8)                             
ffc0491c:	7d 08 38 50 	subf    r8,r8,r7                               
ffc04920:	7f 88 e8 40 	cmplw   cr7,r8,r29                             
ffc04924:	41 9c 01 b8 	blt-    cr7,ffc04adc <rtems_bdpart_write+0x354><== 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) {                                     
ffc04928:	35 29 ff ff 	addic.  r9,r9,-1                               
ffc0492c:	40 82 ff e0 	bne+    ffc0490c <rtems_bdpart_write+0x184>    
ffc04930:	7f 5f d3 78 	mr      r31,r26                                
ffc04934:	3a e0 00 00 	li      r23,0                                  
    }                                                                 
  }                                                                   
                                                                      
  /* Check that we can convert the parition descriptions to the MBR format */
  for (i = 0; i < count; ++i) {                                       
    uint8_t type = 0;                                                 
ffc04938:	3a a0 00 00 	li      r21,0                                  
                                                                      
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Check type */                                                  
    if (!rtems_bdpart_to_mbr_partition_type( p->type, &type)) {       
ffc0493c:	38 7f 00 08 	addi    r3,r31,8                               
    }                                                                 
  }                                                                   
                                                                      
  /* Check that we can convert the parition descriptions to the MBR format */
  for (i = 0; i < count; ++i) {                                       
    uint8_t type = 0;                                                 
ffc04940:	9a a1 00 18 	stb     r21,24(r1)                             
                                                                      
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Check type */                                                  
    if (!rtems_bdpart_to_mbr_partition_type( p->type, &type)) {       
ffc04944:	38 81 00 18 	addi    r4,r1,24                               
ffc04948:	4b ff f7 f9 	bl      ffc04140 <rtems_bdpart_to_mbr_partition_type>
ffc0494c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04950:	41 9e 00 30 	beq-    cr7,ffc04980 <rtems_bdpart_write+0x1f8><== NEVER TAKEN
ffc04954:	3b ff 00 30 	addi    r31,r31,48                             
      esc =  RTEMS_INVALID_ID;                                        
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check flags */                                                 
    if (p->flags > 0xffU) {                                           
ffc04958:	81 3f ff f8 	lwz     r9,-8(r31)                             
ffc0495c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04960:	40 9e 00 20 	bne-    cr7,ffc04980 <rtems_bdpart_write+0x1f8><== NEVER TAKEN
ffc04964:	81 3f ff fc 	lwz     r9,-4(r31)                             
ffc04968:	2b 89 00 ff 	cmplwi  cr7,r9,255                             
ffc0496c:	41 9d 00 14 	bgt-    cr7,ffc04980 <rtems_bdpart_write+0x1f8><== NEVER TAKEN
      goto cleanup;                                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Check that we can convert the parition descriptions to the MBR format */
  for (i = 0; i < count; ++i) {                                       
ffc04970:	3a f7 00 01 	addi    r23,r23,1                              
ffc04974:	7f 97 f0 00 	cmpw    cr7,r23,r30                            
ffc04978:	40 9e ff c4 	bne+    cr7,ffc0493c <rtems_bdpart_write+0x1b4>
ffc0497c:	48 00 00 0c 	b       ffc04988 <rtems_bdpart_write+0x200>    
ffc04980:	3b e0 00 04 	li      r31,4                                  <== NOT EXECUTED
ffc04984:	48 00 01 64 	b       ffc04ae8 <rtems_bdpart_write+0x360>    <== NOT EXECUTED
    /* Check ID */                                                    
    /* TODO */                                                        
  }                                                                   
                                                                      
  /* New MBR */                                                       
  sc = rtems_bdpart_new_record( dd, 0, &block);                       
ffc04988:	80 61 00 08 	lwz     r3,8(r1)                               
ffc0498c:	38 80 00 00 	li      r4,0                                   
ffc04990:	38 a1 00 14 	addi    r5,r1,20                               
ffc04994:	4b ff fd 15 	bl      ffc046a8 <rtems_bdpart_new_record>     
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04998:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0499c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc049a0:	40 be 01 48 	bne+    cr7,ffc04ae8 <rtems_bdpart_write+0x360><== NEVER TAKEN
  }                                                                   
                                                                      
  /* Write disk ID */                                                 
  rtems_uint32_to_little_endian(                                      
    format->mbr.disk_id,                                              
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
ffc049a4:	81 41 00 14 	lwz     r10,20(r1)                             
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc049a8:	39 00 00 04 	li      r8,4                                   
ffc049ac:	7d 09 03 a6 	mtctr   r8                                     
    esc = sc;                                                         
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Write disk ID */                                                 
  rtems_uint32_to_little_endian(                                      
ffc049b0:	81 38 00 04 	lwz     r9,4(r24)                              
    format->mbr.disk_id,                                              
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
ffc049b4:	81 4a 00 1c 	lwz     r10,28(r10)                            
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc049b8:	39 4a 01 b7 	addi    r10,r10,439                            
    data [i] = (uint8_t) value;                                       
ffc049bc:	9d 2a 00 01 	stbu    r9,1(r10)                              
    value >>= 8;                                                      
ffc049c0:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
                                                                      
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{                                                                     
  size_t i = 0;                                                       
                                                                      
  for (i = 0; i < 4; ++i) {                                           
ffc049c4:	42 00 ff f8 	bdnz+   ffc049bc <rtems_bdpart_write+0x234>    
    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;             
ffc049c8:	81 21 00 14 	lwz     r9,20(r1)                              
  for (i = 0; i < ppc; ++i) {                                         
ffc049cc:	3b e0 00 00 	li      r31,0                                  
    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;             
ffc049d0:	82 e9 00 1c 	lwz     r23,28(r9)                             
ffc049d4:	3a f7 01 be 	addi    r23,r23,446                            
ffc049d8:	7e f8 bb 78 	mr      r24,r23                                
  for (i = 0; i < ppc; ++i) {                                         
ffc049dc:	48 00 00 2c 	b       ffc04a08 <rtems_bdpart_write+0x280>    
                                                                      
    /* Write partition entry */                                       
    rtems_bdpart_write_mbr_partition(                                 
      data,                                                           
      p->begin,                                                       
      p->end - p->begin,                                              
ffc049e0:	80 99 00 00 	lwz     r4,0(r25)                              
  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(                                 
ffc049e4:	7f 03 c3 78 	mr      r3,r24                                 
ffc049e8:	80 b9 00 04 	lwz     r5,4(r25)                              
      p->end - p->begin,                                              
      rtems_bdpart_mbr_partition_type( p->type),                      
      (uint8_t) p->flags                                              
    );                                                                
                                                                      
    data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;                        
ffc049ec:	3b 18 00 10 	addi    r24,r24,16                             
  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(                                 
ffc049f0:	88 d9 00 08 	lbz     r6,8(r25)                              
    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) {                                         
ffc049f4:	3b ff 00 01 	addi    r31,r31,1                              
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Write partition entry */                                       
    rtems_bdpart_write_mbr_partition(                                 
ffc049f8:	88 f9 00 2f 	lbz     r7,47(r25)                             
ffc049fc:	7c a4 28 50 	subf    r5,r4,r5                               
ffc04a00:	3b 39 00 30 	addi    r25,r25,48                             
ffc04a04:	4b ff fd 49 	bl      ffc0474c <rtems_bdpart_write_mbr_partition>
    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) {                                         
ffc04a08:	7f 9f e0 00 	cmpw    cr7,r31,r28                            
ffc04a0c:	40 9e ff d4 	bne+    cr7,ffc049e0 <rtems_bdpart_write+0x258>
                                                                      
    data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;                        
  }                                                                   
                                                                      
  /* Write extended partition with logical partitions if necessary */ 
  if (ppc != count) {                                                 
ffc04a10:	7f 9c f0 00 	cmpw    cr7,r28,r30                            
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc04a14:	57 83 20 36 	rlwinm  r3,r28,4,0,27                          
ffc04a18:	7c 77 1a 14 	add     r3,r23,r3                              
  const rtems_bdpart_partition *pt,                                   
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
ffc04a1c:	3b e0 00 00 	li      r31,0                                  
                                                                      
    data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;                        
  }                                                                   
                                                                      
  /* Write extended partition with logical partitions if necessary */ 
  if (ppc != count) {                                                 
ffc04a20:	41 9e 00 c8 	beq-    cr7,ffc04ae8 <rtems_bdpart_write+0x360><== 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;       
ffc04a24:	7f 3a b0 2e 	lwzx    r25,r26,r22                            
                                                                      
    /* Write extended partition */                                    
    rtems_bdpart_write_mbr_partition(                                 
ffc04a28:	38 c0 00 05 	li      r6,5                                   
ffc04a2c:	80 a1 00 10 	lwz     r5,16(r1)                              
ffc04a30:	38 e0 00 00 	li      r7,0                                   
  /* 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;       
ffc04a34:	7f 3d c8 50 	subf    r25,r29,r25                            
                                                                      
    /* Write extended partition */                                    
    rtems_bdpart_write_mbr_partition(                                 
ffc04a38:	7f 24 cb 78 	mr      r4,r25                                 
ffc04a3c:	7c b9 28 50 	subf    r5,r25,r5                              
ffc04a40:	4b ff fd 0d 	bl      ffc0474c <rtems_bdpart_write_mbr_partition>
      RTEMS_BDPART_MBR_EXTENDED,                                      
      0                                                               
    );                                                                
                                                                      
    /* Write logical partitions */                                    
    for (i = ppc; i < count; ++i) {                                   
ffc04a44:	7f 9a e3 78 	mr      r26,r28                                
ffc04a48:	48 00 00 84 	b       ffc04acc <rtems_bdpart_write+0x344>    
      const rtems_bdpart_partition *p = pt + i;                       
                                                                      
      /* Write second partition entry */                              
      if (i > ppc) {                                                  
ffc04a4c:	7f 9a e0 40 	cmplw   cr7,r26,r28                            
ffc04a50:	40 bd 00 30 	ble+    cr7,ffc04a80 <rtems_bdpart_write+0x2f8>
        rtems_blkdev_bnum begin = p->begin - record_space;            
                                                                      
        rtems_bdpart_write_mbr_partition(                             
          block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1,            
ffc04a54:	81 41 00 14 	lwz     r10,20(r1)                             
                                                                      
      /* Write second partition entry */                              
      if (i > ppc) {                                                  
        rtems_blkdev_bnum begin = p->begin - record_space;            
                                                                      
        rtems_bdpart_write_mbr_partition(                             
ffc04a58:	38 c0 00 05 	li      r6,5                                   
    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;            
ffc04a5c:	81 3b 00 00 	lwz     r9,0(r27)                              
                                                                      
        rtems_bdpart_write_mbr_partition(                             
ffc04a60:	38 e0 00 00 	li      r7,0                                   
ffc04a64:	80 6a 00 1c 	lwz     r3,28(r10)                             
ffc04a68:	80 a1 00 10 	lwz     r5,16(r1)                              
    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;            
ffc04a6c:	7d 3d 48 50 	subf    r9,r29,r9                              
                                                                      
        rtems_bdpart_write_mbr_partition(                             
ffc04a70:	38 63 01 ce 	addi    r3,r3,462                              
ffc04a74:	7c 99 48 50 	subf    r4,r25,r9                              
ffc04a78:	7c a9 28 50 	subf    r5,r9,r5                               
ffc04a7c:	4b ff fc d1 	bl      ffc0474c <rtems_bdpart_write_mbr_partition>
          0                                                           
        );                                                            
      }                                                               
                                                                      
      /* New EBR */                                                   
      ebr = p->begin - record_space;                                  
ffc04a80:	80 9b 00 00 	lwz     r4,0(r27)                              
      sc = rtems_bdpart_new_record( dd, ebr, &block);                 
ffc04a84:	38 a1 00 14 	addi    r5,r1,20                               
ffc04a88:	80 61 00 08 	lwz     r3,8(r1)                               
ffc04a8c:	7c 9d 20 50 	subf    r4,r29,r4                              
ffc04a90:	4b ff fc 19 	bl      ffc046a8 <rtems_bdpart_new_record>     
      if (sc != RTEMS_SUCCESSFUL) {                                   
ffc04a94:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04a98:	40 82 00 4c 	bne-    ffc04ae4 <rtems_bdpart_write+0x35c>    <== NEVER TAKEN
        goto cleanup;                                                 
      }                                                               
                                                                      
      /* Write first partition entry */                               
      rtems_bdpart_write_mbr_partition(                               
        block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,              
ffc04a9c:	81 21 00 14 	lwz     r9,20(r1)                              
        esc = sc;                                                     
        goto cleanup;                                                 
      }                                                               
                                                                      
      /* Write first partition entry */                               
      rtems_bdpart_write_mbr_partition(                               
ffc04aa0:	7f a4 eb 78 	mr      r4,r29                                 
ffc04aa4:	80 bb 00 04 	lwz     r5,4(r27)                              
      RTEMS_BDPART_MBR_EXTENDED,                                      
      0                                                               
    );                                                                
                                                                      
    /* Write logical partitions */                                    
    for (i = ppc; i < count; ++i) {                                   
ffc04aa8:	3b 5a 00 01 	addi    r26,r26,1                              
        esc = sc;                                                     
        goto cleanup;                                                 
      }                                                               
                                                                      
      /* Write first partition entry */                               
      rtems_bdpart_write_mbr_partition(                               
ffc04aac:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc04ab0:	81 3b 00 00 	lwz     r9,0(r27)                              
ffc04ab4:	88 db 00 08 	lbz     r6,8(r27)                              
ffc04ab8:	38 63 01 be 	addi    r3,r3,446                              
ffc04abc:	88 fb 00 2f 	lbz     r7,47(r27)                             
ffc04ac0:	7c a9 28 50 	subf    r5,r9,r5                               
ffc04ac4:	3b 7b 00 30 	addi    r27,r27,48                             
ffc04ac8:	4b ff fc 85 	bl      ffc0474c <rtems_bdpart_write_mbr_partition>
      RTEMS_BDPART_MBR_EXTENDED,                                      
      0                                                               
    );                                                                
                                                                      
    /* Write logical partitions */                                    
    for (i = ppc; i < count; ++i) {                                   
ffc04acc:	7f 9a f0 40 	cmplw   cr7,r26,r30                            
ffc04ad0:	41 9c ff 7c 	blt+    cr7,ffc04a4c <rtems_bdpart_write+0x2c4>
  const rtems_bdpart_partition *pt,                                   
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
ffc04ad4:	3b e0 00 00 	li      r31,0                                  
ffc04ad8:	48 00 00 10 	b       ffc04ae8 <rtems_bdpart_write+0x360>    
   * 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;                                     
ffc04adc:	3b e0 00 0a 	li      r31,10                                 <== NOT EXECUTED
ffc04ae0:	48 00 00 08 	b       ffc04ae8 <rtems_bdpart_write+0x360>    <== NOT EXECUTED
      }                                                               
                                                                      
      /* New EBR */                                                   
      ebr = p->begin - record_space;                                  
      sc = rtems_bdpart_new_record( dd, ebr, &block);                 
      if (sc != RTEMS_SUCCESSFUL) {                                   
ffc04ae4:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  if (fd >= 0) {                                                      
ffc04ae8:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc04aec:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04af0:	41 9c 00 08 	blt-    cr7,ffc04af8 <rtems_bdpart_write+0x370><== NEVER TAKEN
    close( fd);                                                       
ffc04af4:	48 00 1b b1 	bl      ffc066a4 <close>                       
  }                                                                   
                                                                      
  if (block != NULL) {                                                
ffc04af8:	80 61 00 14 	lwz     r3,20(r1)                              
ffc04afc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04b00:	41 9e 00 08 	beq-    cr7,ffc04b08 <rtems_bdpart_write+0x380><== NEVER TAKEN
    rtems_bdbuf_sync( block);                                         
ffc04b04:	48 00 c4 e9 	bl      ffc10fec <rtems_bdbuf_sync>            
  }                                                                   
                                                                      
  return esc;                                                         
}                                                                     
ffc04b08:	81 81 00 28 	lwz     r12,40(r1)                             
ffc04b0c:	39 61 00 58 	addi    r11,r1,88                              
ffc04b10:	7f e3 fb 78 	mr      r3,r31                                 
ffc04b14:	7d 80 81 20 	mtcrf   8,r12                                  
ffc04b18:	4b ff bc b4 	b       ffc007cc <_restgpr_21_x>               
                                                                      

ffc0471c <rtems_blkdev_create_partition>: const char *partition, const char *parent_block_device, rtems_blkdev_bnum media_block_begin, rtems_blkdev_bnum media_block_count ) {
ffc0471c:	94 21 ff 90 	stwu    r1,-112(r1)                            
ffc04720:	7c 08 02 a6 	mflr    r0                                     
ffc04724:	bf 41 00 58 	stmw    r26,88(r1)                             
ffc04728:	7c 7c 1b 78 	mr      r28,r3                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  int fd = open(parent_block_device, O_RDWR);                         
ffc0472c:	7c 83 23 78 	mr      r3,r4                                  
ffc04730:	38 80 00 02 	li      r4,2                                   
  const char *partition,                                              
  const char *parent_block_device,                                    
  rtems_blkdev_bnum media_block_begin,                                
  rtems_blkdev_bnum media_block_count                                 
)                                                                     
{                                                                     
ffc04734:	90 01 00 74 	stw     r0,116(r1)                             
ffc04738:	7c ba 2b 78 	mr      r26,r5                                 
ffc0473c:	7c db 33 78 	mr      r27,r6                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  int fd = open(parent_block_device, O_RDWR);                         
ffc04740:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04744:	48 00 27 35 	bl      ffc06e78 <open>                        
                                                                      
  if (fd >= 0) {                                                      
ffc04748:	7c 7d 1b 79 	mr.     r29,r3                                 
                                                                      
    if (sc != RTEMS_SUCCESSFUL) {                                     
      close(fd);                                                      
    }                                                                 
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
ffc0474c:	3b e0 00 04 	li      r31,4                                  
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  int fd = open(parent_block_device, O_RDWR);                         
                                                                      
  if (fd >= 0) {                                                      
ffc04750:	41 a0 00 cc 	blt+    ffc0481c <rtems_blkdev_create_partition+0x100>
    int rv;                                                           
    struct stat st;                                                   
                                                                      
    rv = fstat(fd, &st);                                              
ffc04754:	38 81 00 08 	addi    r4,r1,8                                
ffc04758:	48 00 18 c1 	bl      ffc06018 <fstat>                       
    if (rv == 0 && S_ISBLK(st.st_mode)) {                             
ffc0475c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04760:	40 9e 00 ac 	bne-    cr7,ffc0480c <rtems_blkdev_create_partition+0xf0><== NEVER TAKEN
ffc04764:	81 21 00 14 	lwz     r9,20(r1)                              
ffc04768:	3b e0 00 15 	li      r31,21                                 
ffc0476c:	55 29 04 26 	rlwinm  r9,r9,0,16,19                          
ffc04770:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc04774:	40 be 00 9c 	bne+    cr7,ffc04810 <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);                   
ffc04778:	3c 80 40 04 	lis     r4,16388                               
ffc0477c:	7f a3 eb 78 	mr      r3,r29                                 
ffc04780:	60 84 42 09 	ori     r4,r4,16905                            
ffc04784:	38 a1 00 50 	addi    r5,r1,80                               
ffc04788:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0478c:	48 00 19 e1 	bl      ffc0616c <ioctl>                       
          }                                                           
        } else {                                                      
          sc = RTEMS_NO_MEMORY;                                       
        }                                                             
      } else {                                                        
        sc = RTEMS_NOT_IMPLEMENTED;                                   
ffc04790:	3b e0 00 18 	li      r31,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) {                                                  
ffc04794:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04798:	40 be 00 78 	bne+    cr7,ffc04810 <rtems_blkdev_create_partition+0xf4>
        rtems_blkdev_imfs_context *ctx = malloc(sizeof(*ctx));        
ffc0479c:	38 60 00 80 	li      r3,128                                 
ffc047a0:	48 00 1e 71 	bl      ffc06610 <malloc>                      
                                                                      
        if (ctx != NULL) {                                            
ffc047a4:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc047a8:	41 82 00 5c 	beq-    ffc04804 <rtems_blkdev_create_partition+0xe8>
          sc = rtems_disk_init_log(                                   
ffc047ac:	80 81 00 50 	lwz     r4,80(r1)                              
ffc047b0:	7f 45 d3 78 	mr      r5,r26                                 
ffc047b4:	7f 66 db 78 	mr      r6,r27                                 
ffc047b8:	48 00 02 6d 	bl      ffc04a24 <rtems_disk_init_log>         
            phys_dd,                                                  
            media_block_begin,                                        
            media_block_count                                         
          );                                                          
                                                                      
          if (sc == RTEMS_SUCCESSFUL) {                               
ffc047bc:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc047c0:	40 82 00 38 	bne-    ffc047f8 <rtems_blkdev_create_partition+0xdc>
            ctx->fd = fd;                                             
ffc047c4:	93 be 00 78 	stw     r29,120(r30)                           
                                                                      
            rv = IMFS_make_generic_node(                              
ffc047c8:	3c a0 ff c2 	lis     r5,-62                                 
ffc047cc:	7f 83 e3 78 	mr      r3,r28                                 
ffc047d0:	38 80 61 ff 	li      r4,25087                               
ffc047d4:	38 a5 a7 30 	addi    r5,r5,-22736                           
ffc047d8:	7f c6 f3 78 	mr      r6,r30                                 
ffc047dc:	48 00 0f 3d 	bl      ffc05718 <IMFS_make_generic_node>      
              S_IFBLK | S_IRWXU | S_IRWXG | S_IRWXO,                  
              &rtems_blkdev_imfs_control,                             
              ctx                                                     
            );                                                        
                                                                      
            if (rv != 0) {                                            
ffc047e0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc047e4:	41 be 00 38 	beq+    cr7,ffc0481c <rtems_blkdev_create_partition+0x100>
              free(ctx);                                              
ffc047e8:	7f c3 f3 78 	mr      r3,r30                                 
ffc047ec:	48 00 17 5d 	bl      ffc05f48 <free>                        
              sc = RTEMS_UNSATISFIED;                                 
ffc047f0:	3b e0 00 0d 	li      r31,13                                 
ffc047f4:	48 00 00 1c 	b       ffc04810 <rtems_blkdev_create_partition+0xf4>
            }                                                         
          } else {                                                    
            free(ctx);                                                
ffc047f8:	7f c3 f3 78 	mr      r3,r30                                 
ffc047fc:	48 00 17 4d 	bl      ffc05f48 <free>                        
ffc04800:	48 00 00 10 	b       ffc04810 <rtems_blkdev_create_partition+0xf4>
          }                                                           
        } else {                                                      
          sc = RTEMS_NO_MEMORY;                                       
ffc04804:	3b e0 00 1a 	li      r31,26                                 
ffc04808:	48 00 00 08 	b       ffc04810 <rtems_blkdev_create_partition+0xf4>
  if (fd >= 0) {                                                      
    int rv;                                                           
    struct stat st;                                                   
                                                                      
    rv = fstat(fd, &st);                                              
    if (rv == 0 && S_ISBLK(st.st_mode)) {                             
ffc0480c:	3b e0 00 15 	li      r31,21                                 <== NOT EXECUTED
    } else {                                                          
      sc = RTEMS_INVALID_NODE;                                        
    }                                                                 
                                                                      
    if (sc != RTEMS_SUCCESSFUL) {                                     
      close(fd);                                                      
ffc04810:	7f a3 eb 78 	mr      r3,r29                                 
ffc04814:	48 00 16 ad 	bl      ffc05ec0 <close>                       
ffc04818:	48 00 00 04 	b       ffc0481c <rtems_blkdev_create_partition+0x100>
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0481c:	39 61 00 70 	addi    r11,r1,112                             
ffc04820:	7f e3 fb 78 	mr      r3,r31                                 
ffc04824:	4b ff c8 fc 	b       ffc01120 <_restgpr_26_x>               
                                                                      

ffc101f4 <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) {
ffc101f4:	7c 2b 0b 78 	mr      r11,r1                                 
ffc101f8:	7c 08 02 a6 	mflr    r0                                     
ffc101fc:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc10200:	90 01 00 14 	stw     r0,20(r1)                              
ffc10204:	48 00 87 8d 	bl      ffc18990 <_savegpr_31>                 
ffc10208:	7c bf 2b 78 	mr      r31,r5                                 
    rtems_libio_ioctl_args_t *args = arg;                             
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
ffc1020c:	81 25 00 00 	lwz     r9,0(r5)                               
                                                                      
    if (args->command != RTEMS_BLKIO_REQUEST)                         
ffc10210:	80 85 00 04 	lwz     r4,4(r5)                               
    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;                               
ffc10214:	80 69 00 30 	lwz     r3,48(r9)                              
                                                                      
    if (args->command != RTEMS_BLKIO_REQUEST)                         
ffc10218:	6c 89 c0 18 	xoris   r9,r4,49176                            
ffc1021c:	2f 89 42 01 	cmpwi   cr7,r9,16897                           
ffc10220:	41 9e 00 1c 	beq-    cr7,ffc1023c <rtems_blkdev_generic_ioctl+0x48><== NEVER TAKEN
    {                                                                 
        args->ioctl_return = dd->ioctl(dd,                            
ffc10224:	81 23 00 38 	lwz     r9,56(r3)                              
ffc10228:	80 a5 00 08 	lwz     r5,8(r5)                               
ffc1022c:	7d 29 03 a6 	mtctr   r9                                     
ffc10230:	4e 80 04 21 	bctrl                                          
ffc10234:	90 7f 00 0c 	stw     r3,12(r31)                             
ffc10238:	48 00 00 0c 	b       ffc10244 <rtems_blkdev_generic_ioctl+0x50>
    {                                                                 
        /*                                                            
         * It is not allowed to directly access the driver circumventing the
         * cache.                                                     
         */                                                           
        args->ioctl_return = -1;                                      
ffc1023c:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
ffc10240:	91 25 00 0c 	stw     r9,12(r5)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc10244:	39 61 00 10 	addi    r11,r1,16                              
ffc10248:	38 60 00 00 	li      r3,0                                   
ffc1024c:	48 00 87 90 	b       ffc189dc <_restgpr_31_x>               
                                                                      

ffc0ff9c <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) {
ffc0ff9c:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc0ffa0:	7c 08 02 a6 	mflr    r0                                     
ffc0ffa4:	90 01 00 44 	stw     r0,68(r1)                              
    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;                               
ffc0ffa8:	81 25 00 00 	lwz     r9,0(r5)                               
rtems_device_driver                                                   
rtems_blkdev_generic_read(                                            
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
ffc0ffac:	be e1 00 1c 	stmw    r23,28(r1)                             
ffc0ffb0:	7c bd 2b 78 	mr      r29,r5                                 
    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;                               
ffc0ffb4:	83 09 00 30 	lwz     r24,48(r9)                             
    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);
ffc0ffb8:	83 c5 00 08 	lwz     r30,8(r5)                              
{                                                                     
    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;                             
ffc0ffbc:	83 58 00 24 	lwz     r26,36(r24)                            
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
ffc0ffc0:	83 e5 00 0c 	lwz     r31,12(r5)                             
ffc0ffc4:	7f c3 f3 78 	mr      r3,r30                                 
ffc0ffc8:	7f 46 d3 78 	mr      r6,r26                                 
    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;                                         
ffc0ffcc:	83 65 00 10 	lwz     r27,16(r5)                             
    uint32_t count = args->count;                                     
ffc0ffd0:	83 85 00 14 	lwz     r28,20(r5)                             
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
ffc0ffd4:	7f e4 fb 78 	mr      r4,r31                                 
ffc0ffd8:	38 a0 00 00 	li      r5,0                                   
ffc0ffdc:	48 00 7a 2d 	bl      ffc17a08 <__divdi3>                    
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
ffc0ffe0:	7f c3 f3 78 	mr      r3,r30                                 
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
ffc0ffe4:	7c 97 23 78 	mr      r23,r4                                 
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
ffc0ffe8:	38 a0 00 00 	li      r5,0                                   
ffc0ffec:	7f e4 fb 78 	mr      r4,r31                                 
ffc0fff0:	7f 46 d3 78 	mr      r6,r26                                 
ffc0fff4:	48 00 7e 39 	bl      ffc17e2c <__moddi3>                    
                                                                      
    args->bytes_moved = 0;                                            
ffc0fff8:	39 20 00 00 	li      r9,0                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
ffc0fffc:	7c 99 23 78 	mr      r25,r4                                 
                                                                      
    args->bytes_moved = 0;                                            
ffc10000:	91 3d 00 1c 	stw     r9,28(r29)                             
                                                                      
    while (count > 0)                                                 
ffc10004:	3b c0 00 00 	li      r30,0                                  
ffc10008:	48 00 00 6c 	b       ffc10074 <rtems_blkdev_generic_read+0xd8>
    {                                                                 
        rtems_bdbuf_buffer *diskbuf;                                  
        uint32_t            copy;                                     
                                                                      
        rc = rtems_bdbuf_read(dd, block, &diskbuf);                   
ffc1000c:	7f 03 c3 78 	mr      r3,r24                                 
ffc10010:	38 a1 00 08 	addi    r5,r1,8                                
ffc10014:	4b ff f6 51 	bl      ffc0f664 <rtems_bdbuf_read>            
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc10018:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1001c:	40 82 00 68 	bne-    ffc10084 <rtems_blkdev_generic_read+0xe8><== NEVER TAKEN
            break;                                                    
        copy = block_size - blkofs;                                   
ffc10020:	7f f9 d0 50 	subf    r31,r25,r26                            
ffc10024:	7f 9f e0 40 	cmplw   cr7,r31,r28                            
ffc10028:	40 9d 00 08 	ble-    cr7,ffc10030 <rtems_blkdev_generic_read+0x94><== ALWAYS TAKEN
ffc1002c:	7f 9f e3 78 	mr      r31,r28                                <== NOT EXECUTED
        if (copy > count)                                             
            copy = count;                                             
        memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);          
ffc10030:	81 21 00 08 	lwz     r9,8(r1)                               
ffc10034:	7f e5 fb 78 	mr      r5,r31                                 
ffc10038:	7f 63 db 78 	mr      r3,r27                                 
ffc1003c:	80 89 00 1c 	lwz     r4,28(r9)                              
ffc10040:	3b de 00 01 	addi    r30,r30,1                              
ffc10044:	7c 84 ca 14 	add     r4,r4,r25                              
ffc10048:	48 00 47 49 	bl      ffc14790 <memcpy>                      
        rc = rtems_bdbuf_release(diskbuf);                            
ffc1004c:	80 61 00 08 	lwz     r3,8(r1)                               
ffc10050:	4b ff f8 0d 	bl      ffc0f85c <rtems_bdbuf_release>         
        args->bytes_moved += copy;                                    
ffc10054:	81 3d 00 1c 	lwz     r9,28(r29)                             
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc10058:	2c 03 00 00 	cmpwi   r3,0                                   
        copy = block_size - blkofs;                                   
        if (copy > count)                                             
            copy = count;                                             
        memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);          
        rc = rtems_bdbuf_release(diskbuf);                            
        args->bytes_moved += copy;                                    
ffc1005c:	7d 29 fa 14 	add     r9,r9,r31                              
ffc10060:	91 3d 00 1c 	stw     r9,28(r29)                             
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc10064:	40 82 00 20 	bne-    ffc10084 <rtems_blkdev_generic_read+0xe8><== NEVER TAKEN
            break;                                                    
        count -= copy;                                                
ffc10068:	7f 9f e0 50 	subf    r28,r31,r28                            
        buf += copy;                                                  
ffc1006c:	7f 7b fa 14 	add     r27,r27,r31                            
        blkofs = 0;                                                   
ffc10070:	3b 20 00 00 	li      r25,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)                                                 
ffc10074:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
/* rtems_blkdev_generic_read --                                       
 *     Generic block device read primitive. Implemented using block device
 *     buffer management primitives.                                  
 */                                                                   
rtems_device_driver                                                   
rtems_blkdev_generic_read(                                            
ffc10078:	7c 9e ba 14 	add     r4,r30,r23                             
    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)                                                 
ffc1007c:	40 9e ff 90 	bne+    cr7,ffc1000c <rtems_blkdev_generic_read+0x70>
ffc10080:	38 60 00 00 	li      r3,0                                   
        blkofs = 0;                                                   
        block++;                                                      
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc10084:	39 61 00 40 	addi    r11,r1,64                              
ffc10088:	48 00 89 34 	b       ffc189bc <_restgpr_23_x>               
                                                                      

ffc1008c <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) {
ffc1008c:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc10090:	7c 08 02 a6 	mflr    r0                                     
ffc10094:	90 01 00 44 	stw     r0,68(r1)                              
    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;                               
ffc10098:	81 25 00 00 	lwz     r9,0(r5)                               
rtems_device_driver                                                   
rtems_blkdev_generic_write(                                           
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
ffc1009c:	be e1 00 1c 	stmw    r23,28(r1)                             
ffc100a0:	7c bd 2b 78 	mr      r29,r5                                 
    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)                                                 
ffc100a4:	3b 40 00 00 	li      r26,0                                  
    void                    * arg)                                    
{                                                                     
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
ffc100a8:	83 09 00 30 	lwz     r24,48(r9)                             
    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);
ffc100ac:	83 c5 00 08 	lwz     r30,8(r5)                              
{                                                                     
    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;                             
ffc100b0:	83 78 00 24 	lwz     r27,36(r24)                            
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
ffc100b4:	83 e5 00 0c 	lwz     r31,12(r5)                             
ffc100b8:	7f c3 f3 78 	mr      r3,r30                                 
ffc100bc:	7f 66 db 78 	mr      r6,r27                                 
    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;                                         
ffc100c0:	83 25 00 10 	lwz     r25,16(r5)                             
    uint32_t count = args->count;                                     
ffc100c4:	83 85 00 14 	lwz     r28,20(r5)                             
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
ffc100c8:	7f e4 fb 78 	mr      r4,r31                                 
ffc100cc:	38 a0 00 00 	li      r5,0                                   
ffc100d0:	48 00 79 39 	bl      ffc17a08 <__divdi3>                    
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
ffc100d4:	7f c3 f3 78 	mr      r3,r30                                 
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
ffc100d8:	7c 97 23 78 	mr      r23,r4                                 
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
ffc100dc:	38 a0 00 00 	li      r5,0                                   
ffc100e0:	7f e4 fb 78 	mr      r4,r31                                 
ffc100e4:	7f 66 db 78 	mr      r6,r27                                 
ffc100e8:	48 00 7d 45 	bl      ffc17e2c <__moddi3>                    
                                                                      
    args->bytes_moved = 0;                                            
ffc100ec:	39 20 00 00 	li      r9,0                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
ffc100f0:	7c 9e 23 78 	mr      r30,r4                                 
                                                                      
    args->bytes_moved = 0;                                            
ffc100f4:	91 3d 00 1c 	stw     r9,28(r29)                             
                                                                      
    while (count > 0)                                                 
ffc100f8:	48 00 00 84 	b       ffc1017c <rtems_blkdev_generic_write+0xf0>
    {                                                                 
        rtems_bdbuf_buffer *diskbuf;                                  
        uint32_t            copy;                                     
                                                                      
        if ((blkofs == 0) && (count >= block_size))                   
ffc100fc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
            rc = rtems_bdbuf_get(dd, block, &diskbuf);                
ffc10100:	7f 03 c3 78 	mr      r3,r24                                 
ffc10104:	38 a1 00 08 	addi    r5,r1,8                                
    while (count > 0)                                                 
    {                                                                 
        rtems_bdbuf_buffer *diskbuf;                                  
        uint32_t            copy;                                     
                                                                      
        if ((blkofs == 0) && (count >= block_size))                   
ffc10108:	40 9e 00 14 	bne-    cr7,ffc1011c <rtems_blkdev_generic_write+0x90><== NEVER TAKEN
ffc1010c:	7f 9c d8 40 	cmplw   cr7,r28,r27                            
ffc10110:	41 bc 00 0c 	blt+    cr7,ffc1011c <rtems_blkdev_generic_write+0x90><== NEVER TAKEN
            rc = rtems_bdbuf_get(dd, block, &diskbuf);                
ffc10114:	4b ff f4 79 	bl      ffc0f58c <rtems_bdbuf_get>             
ffc10118:	48 00 00 08 	b       ffc10120 <rtems_blkdev_generic_write+0x94>
        else                                                          
            rc = rtems_bdbuf_read(dd, block, &diskbuf);               
ffc1011c:	4b ff f5 49 	bl      ffc0f664 <rtems_bdbuf_read>            <== NOT EXECUTED
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc10120:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc10124:	40 9e 00 68 	bne-    cr7,ffc1018c <rtems_blkdev_generic_write+0x100><== NEVER TAKEN
            break;                                                    
                                                                      
        copy = block_size - blkofs;                                   
ffc10128:	7f fe d8 50 	subf    r31,r30,r27                            
ffc1012c:	7f 9f e0 40 	cmplw   cr7,r31,r28                            
ffc10130:	40 9d 00 08 	ble-    cr7,ffc10138 <rtems_blkdev_generic_write+0xac><== ALWAYS TAKEN
ffc10134:	7f 9f e3 78 	mr      r31,r28                                <== NOT EXECUTED
        if (copy > count)                                             
            copy = count;                                             
        memcpy((char *)diskbuf->buffer + blkofs, buf, copy);          
ffc10138:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1013c:	7f 24 cb 78 	mr      r4,r25                                 
ffc10140:	7f e5 fb 78 	mr      r5,r31                                 
ffc10144:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc10148:	3b 5a 00 01 	addi    r26,r26,1                              
ffc1014c:	7c 63 f2 14 	add     r3,r3,r30                              
ffc10150:	48 00 46 41 	bl      ffc14790 <memcpy>                      
        args->bytes_moved += copy;                                    
ffc10154:	81 3d 00 1c 	lwz     r9,28(r29)                             
                                                                      
        rc = rtems_bdbuf_release_modified(diskbuf);                   
ffc10158:	80 61 00 08 	lwz     r3,8(r1)                               
                                                                      
        copy = block_size - blkofs;                                   
        if (copy > count)                                             
            copy = count;                                             
        memcpy((char *)diskbuf->buffer + blkofs, buf, copy);          
        args->bytes_moved += copy;                                    
ffc1015c:	7d 29 fa 14 	add     r9,r9,r31                              
ffc10160:	91 3d 00 1c 	stw     r9,28(r29)                             
                                                                      
        rc = rtems_bdbuf_release_modified(diskbuf);                   
ffc10164:	4b ff f7 d5 	bl      ffc0f938 <rtems_bdbuf_release_modified>
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc10168:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1016c:	40 82 00 20 	bne-    ffc1018c <rtems_blkdev_generic_write+0x100><== NEVER TAKEN
            break;                                                    
                                                                      
        count -= copy;                                                
ffc10170:	7f 9f e0 50 	subf    r28,r31,r28                            
        buf += copy;                                                  
ffc10174:	7f 39 fa 14 	add     r25,r25,r31                            
        blkofs = 0;                                                   
ffc10178:	3b c0 00 00 	li      r30,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)                                                 
ffc1017c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
/* rtems_blkdev_generic_write --                                      
 *     Generic block device write primitive. Implemented using block device
 *     buffer management primitives.                                  
 */                                                                   
rtems_device_driver                                                   
rtems_blkdev_generic_write(                                           
ffc10180:	7c 9a ba 14 	add     r4,r26,r23                             
    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)                                                 
ffc10184:	40 9e ff 78 	bne+    cr7,ffc100fc <rtems_blkdev_generic_write+0x70>
ffc10188:	38 60 00 00 	li      r3,0                                   
        blkofs = 0;                                                   
        block++;                                                      
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc1018c:	39 61 00 40 	addi    r11,r1,64                              
ffc10190:	48 00 88 2c 	b       ffc189bc <_restgpr_23_x>               
                                                                      

ffc045e4 <rtems_blkdev_imfs_fsync_or_fdatasync>: } static int rtems_blkdev_imfs_fsync_or_fdatasync( rtems_libio_t *iop ) {
ffc045e4:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc045e8:	7c 08 02 a6 	mflr    r0                                     
ffc045ec:	90 01 00 0c 	stw     r0,12(r1)                              
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc045f0:	81 23 00 1c 	lwz     r9,28(r3)                              
)                                                                     
{                                                                     
  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);                     
ffc045f4:	80 69 00 50 	lwz     r3,80(r9)                              
ffc045f8:	48 00 c1 f5 	bl      ffc107ec <rtems_bdbuf_syncdev>         
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc045fc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04600:	41 be 00 18 	beq+    cr7,ffc04618 <rtems_blkdev_imfs_fsync_or_fdatasync+0x34><== ALWAYS TAKEN
    errno = EIO;                                                      
ffc04604:	48 00 fc e1 	bl      ffc142e4 <__errno>                     <== NOT EXECUTED
ffc04608:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc0460c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc04610:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc04614:	48 00 00 08 	b       ffc0461c <rtems_blkdev_imfs_fsync_or_fdatasync+0x38><== NOT EXECUTED
                                                                      
static int rtems_blkdev_imfs_fsync_or_fdatasync(                      
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
  int rv = 0;                                                         
ffc04618:	38 60 00 00 	li      r3,0                                   
    errno = EIO;                                                      
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0461c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc04620:	38 21 00 08 	addi    r1,r1,8                                
ffc04624:	7c 08 03 a6 	mtlr    r0                                     
ffc04628:	4e 80 00 20 	blr                                            
                                                                      

ffc0462c <rtems_blkdev_imfs_ioctl>: void *buffer ) { int rv = 0; if (request != RTEMS_BLKIO_REQUEST) {
ffc0462c:	6c 89 c0 18 	xoris   r9,r4,49176                            
ffc04630:	2f 89 42 01 	cmpwi   cr7,r9,16897                           
ffc04634:	41 9e 00 18 	beq-    cr7,ffc0464c <rtems_blkdev_imfs_ioctl+0x20><== NEVER TAKEN
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc04638:	81 23 00 1c 	lwz     r9,28(r3)                              
ffc0463c:	80 69 00 50 	lwz     r3,80(r9)                              
                                                                      
  if (request != RTEMS_BLKIO_REQUEST) {                               
    rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);
    rtems_disk_device *dd = &ctx->dd;                                 
                                                                      
    rv = (*dd->ioctl)(dd, request, buffer);                           
ffc04640:	81 23 00 38 	lwz     r9,56(r3)                              
ffc04644:	7d 29 03 a6 	mtctr   r9                                     
ffc04648:	4e 80 04 20 	bctr                                           
static int rtems_blkdev_imfs_ioctl(                                   
  rtems_libio_t *iop,                                                 
  uint32_t request,                                                   
  void *buffer                                                        
)                                                                     
{                                                                     
ffc0464c:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc04650:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc04654:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
    rv = (*dd->ioctl)(dd, request, buffer);                           
  } else {                                                            
    /*                                                                
     * It is not allowed to directly access the driver circumventing the cache.
     */                                                               
    errno = EINVAL;                                                   
ffc04658:	48 00 fc 8d 	bl      ffc142e4 <__errno>                     <== NOT EXECUTED
ffc0465c:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04660:	80 01 00 0c 	lwz     r0,12(r1)                              <== NOT EXECUTED
    rv = (*dd->ioctl)(dd, request, buffer);                           
  } else {                                                            
    /*                                                                
     * It is not allowed to directly access the driver circumventing the cache.
     */                                                               
    errno = EINVAL;                                                   
ffc04664:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04668:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc0466c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc04670:	38 21 00 08 	addi    r1,r1,8                                <== NOT EXECUTED
ffc04674:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc04418 <rtems_blkdev_imfs_read>: static ssize_t rtems_blkdev_imfs_read( rtems_libio_t *iop, void *buffer, size_t count ) {
ffc04418:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc0441c:	7c 08 02 a6 	mflr    r0                                     
ffc04420:	90 01 00 44 	stw     r0,68(r1)                              
ffc04424:	be c1 00 18 	stmw    r22,24(r1)                             
ffc04428:	7c bb 2b 78 	mr      r27,r5                                 
ffc0442c:	7c 7c 1b 78 	mr      r28,r3                                 
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc04430:	81 23 00 1c 	lwz     r9,28(r3)                              
static ssize_t rtems_blkdev_imfs_read(                                
  rtems_libio_t *iop,                                                 
  void *buffer,                                                       
  size_t count                                                        
)                                                                     
{                                                                     
ffc04434:	7c 98 23 78 	mr      r24,r4                                 
  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;                                         
ffc04438:	83 e3 00 0c 	lwz     r31,12(r3)                             
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0443c:	82 e9 00 50 	lwz     r23,80(r9)                             
{                                                                     
  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;                                         
ffc04440:	83 c3 00 08 	lwz     r30,8(r3)                              
  ssize_t block_size = (ssize_t) rtems_disk_get_block_size(dd);       
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
ffc04444:	7f e4 fb 78 	mr      r4,r31                                 
  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);       
ffc04448:	83 b7 00 24 	lwz     r29,36(r23)                            
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
ffc0444c:	7f c3 f3 78 	mr      r3,r30                                 
ffc04450:	7f b9 fe 70 	srawi   r25,r29,31                             
ffc04454:	7f 25 cb 78 	mr      r5,r25                                 
ffc04458:	7f a6 eb 78 	mr      r6,r29                                 
ffc0445c:	48 01 3d a5 	bl      ffc18200 <__divdi3>                    
  ssize_t block_offset = (ssize_t) (offset % block_size);             
ffc04460:	7f 25 cb 78 	mr      r5,r25                                 
  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);       
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
ffc04464:	7c 9a 23 78 	mr      r26,r4                                 
  ssize_t block_offset = (ssize_t) (offset % block_size);             
ffc04468:	7f c3 f3 78 	mr      r3,r30                                 
ffc0446c:	7f e4 fb 78 	mr      r4,r31                                 
ffc04470:	7f a6 eb 78 	mr      r6,r29                                 
ffc04474:	48 01 41 b1 	bl      ffc18624 <__moddi3>                    
)                                                                     
{                                                                     
  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;                                
ffc04478:	7f 7f db 78 	mr      r31,r27                                
  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);
  ssize_t block_offset = (ssize_t) (offset % block_size);             
ffc0447c:	7c 99 23 78 	mr      r25,r4                                 
  char *dst = buffer;                                                 
                                                                      
  while (remaining > 0) {                                             
ffc04480:	48 00 00 74 	b       ffc044f4 <rtems_blkdev_imfs_read+0xdc> 
    rtems_bdbuf_buffer *bd;                                           
    rtems_status_code sc = rtems_bdbuf_read(dd, block, &bd);          
ffc04484:	7e e3 bb 78 	mr      r3,r23                                 
ffc04488:	7f 44 d3 78 	mr      r4,r26                                 
ffc0448c:	38 a1 00 08 	addi    r5,r1,8                                
ffc04490:	48 00 be e5 	bl      ffc10374 <rtems_bdbuf_read>            
                                                                      
    if (sc == RTEMS_SUCCESSFUL) {                                     
ffc04494:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04498:	40 9e 00 50 	bne-    cr7,ffc044e8 <rtems_blkdev_imfs_read+0xd0><== NEVER TAKEN
      ssize_t copy = block_size - block_offset;                       
ffc0449c:	7f d9 e8 50 	subf    r30,r25,r29                            
ffc044a0:	7f 9e f8 00 	cmpw    cr7,r30,r31                            
ffc044a4:	40 9d 00 08 	ble-    cr7,ffc044ac <rtems_blkdev_imfs_read+0x94>
ffc044a8:	7f fe fb 78 	mr      r30,r31                                
                                                                      
      if (copy > remaining) {                                         
        copy = remaining;                                             
      }                                                               
                                                                      
      memcpy(dst, (char *) bd->buffer + block_offset, (size_t) copy); 
ffc044ac:	82 c1 00 08 	lwz     r22,8(r1)                              
ffc044b0:	7f c5 f3 78 	mr      r5,r30                                 
ffc044b4:	7f 03 c3 78 	mr      r3,r24                                 
ffc044b8:	80 96 00 1c 	lwz     r4,28(r22)                             
ffc044bc:	7c 84 ca 14 	add     r4,r4,r25                              
ffc044c0:	48 01 0a 19 	bl      ffc14ed8 <memcpy>                      
                                                                      
      sc = rtems_bdbuf_release(bd);                                   
ffc044c4:	7e c3 b3 78 	mr      r3,r22                                 
ffc044c8:	48 00 c0 a5 	bl      ffc1056c <rtems_bdbuf_release>         
      if (sc == RTEMS_SUCCESSFUL) {                                   
ffc044cc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc044d0:	40 9e 00 18 	bne-    cr7,ffc044e8 <rtems_blkdev_imfs_read+0xd0><== NEVER TAKEN
        block_offset = 0;                                             
        remaining -= copy;                                            
ffc044d4:	7f fe f8 50 	subf    r31,r30,r31                            
        dst += copy;                                                  
ffc044d8:	7f 18 f2 14 	add     r24,r24,r30                            
        ++block;                                                      
ffc044dc:	3b 5a 00 01 	addi    r26,r26,1                              
                                                                      
      memcpy(dst, (char *) bd->buffer + block_offset, (size_t) copy); 
                                                                      
      sc = rtems_bdbuf_release(bd);                                   
      if (sc == RTEMS_SUCCESSFUL) {                                   
        block_offset = 0;                                             
ffc044e0:	3b 20 00 00 	li      r25,0                                  
ffc044e4:	48 00 00 10 	b       ffc044f4 <rtems_blkdev_imfs_read+0xdc> 
        remaining -= copy;                                            
        dst += copy;                                                  
        ++block;                                                      
      } else {                                                        
        remaining = -1;                                               
ffc044e8:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
ffc044ec:	2f 9f 00 00 	cmpwi   cr7,r31,0                              <== NOT EXECUTED
ffc044f0:	48 00 00 0c 	b       ffc044fc <rtems_blkdev_imfs_read+0xe4> <== NOT EXECUTED
  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) {                                             
ffc044f4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc044f8:	41 9d ff 8c 	bgt+    cr7,ffc04484 <rtems_blkdev_imfs_read+0x6c>
    } else {                                                          
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
ffc044fc:	40 9e 00 2c 	bne-    cr7,ffc04528 <rtems_blkdev_imfs_read+0x110><== NEVER TAKEN
    iop->offset += count;                                             
ffc04500:	81 1c 00 08 	lwz     r8,8(r28)                              
ffc04504:	7f 6b db 78 	mr      r11,r27                                
ffc04508:	81 3c 00 0c 	lwz     r9,12(r28)                             
ffc0450c:	39 40 00 00 	li      r10,0                                  
    rv = (ssize_t) count;                                             
ffc04510:	7f 63 db 78 	mr      r3,r27                                 
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
ffc04514:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc04518:	7d 4a 41 14 	adde    r10,r10,r8                             
ffc0451c:	91 5c 00 08 	stw     r10,8(r28)                             
ffc04520:	91 7c 00 0c 	stw     r11,12(r28)                            
ffc04524:	48 00 00 14 	b       ffc04538 <rtems_blkdev_imfs_read+0x120>
    rv = (ssize_t) count;                                             
  } else {                                                            
    errno = EIO;                                                      
ffc04528:	48 00 fd bd 	bl      ffc142e4 <__errno>                     <== NOT EXECUTED
ffc0452c:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc04530:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    rv = -1;                                                          
ffc04534:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04538:	39 61 00 40 	addi    r11,r1,64                              
ffc0453c:	4b ff cb d4 	b       ffc01110 <_restgpr_22_x>               
                                                                      

ffc042d8 <rtems_blkdev_imfs_write>: static ssize_t rtems_blkdev_imfs_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
ffc042d8:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc042dc:	7c 08 02 a6 	mflr    r0                                     
ffc042e0:	90 01 00 44 	stw     r0,68(r1)                              
ffc042e4:	be e1 00 1c 	stmw    r23,28(r1)                             
ffc042e8:	7c b9 2b 78 	mr      r25,r5                                 
ffc042ec:	7c 7c 1b 78 	mr      r28,r3                                 
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc042f0:	81 23 00 1c 	lwz     r9,28(r3)                              
static ssize_t rtems_blkdev_imfs_write(                               
  rtems_libio_t *iop,                                                 
  const void *buffer,                                                 
  size_t count                                                        
)                                                                     
{                                                                     
ffc042f4:	7c 98 23 78 	mr      r24,r4                                 
  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;                                         
ffc042f8:	83 e3 00 0c 	lwz     r31,12(r3)                             
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc042fc:	82 e9 00 50 	lwz     r23,80(r9)                             
{                                                                     
  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;                                         
ffc04300:	83 c3 00 08 	lwz     r30,8(r3)                              
  ssize_t block_size = (ssize_t) rtems_disk_get_block_size(dd);       
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
ffc04304:	7f e4 fb 78 	mr      r4,r31                                 
  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);       
ffc04308:	83 b7 00 24 	lwz     r29,36(r23)                            
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
ffc0430c:	7f c3 f3 78 	mr      r3,r30                                 
ffc04310:	7f ba fe 70 	srawi   r26,r29,31                             
ffc04314:	7f 45 d3 78 	mr      r5,r26                                 
ffc04318:	7f a6 eb 78 	mr      r6,r29                                 
ffc0431c:	48 01 3e e5 	bl      ffc18200 <__divdi3>                    
  ssize_t block_offset = (ssize_t) (offset % block_size);             
ffc04320:	7f 45 d3 78 	mr      r5,r26                                 
  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);       
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
ffc04324:	7c 9b 23 78 	mr      r27,r4                                 
  ssize_t block_offset = (ssize_t) (offset % block_size);             
ffc04328:	7f c3 f3 78 	mr      r3,r30                                 
ffc0432c:	7f e4 fb 78 	mr      r4,r31                                 
ffc04330:	7f a6 eb 78 	mr      r6,r29                                 
ffc04334:	48 01 42 f1 	bl      ffc18624 <__moddi3>                    
)                                                                     
{                                                                     
  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;                                
ffc04338:	7f 3f cb 78 	mr      r31,r25                                
  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);
  ssize_t block_offset = (ssize_t) (offset % block_size);             
ffc0433c:	7c 9a 23 78 	mr      r26,r4                                 
  const char *src = buffer;                                           
                                                                      
  while (remaining > 0) {                                             
ffc04340:	48 00 00 8c 	b       ffc043cc <rtems_blkdev_imfs_write+0xf4>
    rtems_status_code sc;                                             
    rtems_bdbuf_buffer *bd;                                           
                                                                      
    if (block_offset == 0 && remaining >= block_size) {               
ffc04344:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
       sc = rtems_bdbuf_get(dd, block, &bd);                          
ffc04348:	7e e3 bb 78 	mr      r3,r23                                 
ffc0434c:	7f 64 db 78 	mr      r4,r27                                 
ffc04350:	38 a1 00 08 	addi    r5,r1,8                                
                                                                      
  while (remaining > 0) {                                             
    rtems_status_code sc;                                             
    rtems_bdbuf_buffer *bd;                                           
                                                                      
    if (block_offset == 0 && remaining >= block_size) {               
ffc04354:	40 9e 00 14 	bne-    cr7,ffc04368 <rtems_blkdev_imfs_write+0x90>
ffc04358:	7f 9f e8 00 	cmpw    cr7,r31,r29                            
ffc0435c:	41 bc 00 0c 	blt+    cr7,ffc04368 <rtems_blkdev_imfs_write+0x90>
       sc = rtems_bdbuf_get(dd, block, &bd);                          
ffc04360:	48 00 bf 3d 	bl      ffc1029c <rtems_bdbuf_get>             
ffc04364:	48 00 00 08 	b       ffc0436c <rtems_blkdev_imfs_write+0x94>
    } else {                                                          
       sc = rtems_bdbuf_read(dd, block, &bd);                         
ffc04368:	48 00 c0 0d 	bl      ffc10374 <rtems_bdbuf_read>            
    }                                                                 
                                                                      
    if (sc == RTEMS_SUCCESSFUL) {                                     
ffc0436c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04370:	40 9e 00 50 	bne-    cr7,ffc043c0 <rtems_blkdev_imfs_write+0xe8><== NEVER TAKEN
      ssize_t copy = block_size - block_offset;                       
ffc04374:	7f da e8 50 	subf    r30,r26,r29                            
ffc04378:	7f 9e f8 00 	cmpw    cr7,r30,r31                            
ffc0437c:	40 9d 00 08 	ble-    cr7,ffc04384 <rtems_blkdev_imfs_write+0xac>
ffc04380:	7f fe fb 78 	mr      r30,r31                                
                                                                      
      if (copy > remaining) {                                         
        copy = remaining;                                             
      }                                                               
                                                                      
      memcpy((char *) bd->buffer + block_offset, src, (size_t) copy); 
ffc04384:	81 21 00 08 	lwz     r9,8(r1)                               
ffc04388:	7f 04 c3 78 	mr      r4,r24                                 
ffc0438c:	7f c5 f3 78 	mr      r5,r30                                 
ffc04390:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc04394:	7c 63 d2 14 	add     r3,r3,r26                              
ffc04398:	48 01 0b 41 	bl      ffc14ed8 <memcpy>                      
                                                                      
      sc = rtems_bdbuf_release_modified(bd);                          
ffc0439c:	80 61 00 08 	lwz     r3,8(r1)                               
ffc043a0:	48 00 c2 a9 	bl      ffc10648 <rtems_bdbuf_release_modified>
      if (sc == RTEMS_SUCCESSFUL) {                                   
ffc043a4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc043a8:	40 9e 00 18 	bne-    cr7,ffc043c0 <rtems_blkdev_imfs_write+0xe8><== NEVER TAKEN
        block_offset = 0;                                             
        remaining -= copy;                                            
ffc043ac:	7f fe f8 50 	subf    r31,r30,r31                            
        src += copy;                                                  
ffc043b0:	7f 18 f2 14 	add     r24,r24,r30                            
        ++block;                                                      
ffc043b4:	3b 7b 00 01 	addi    r27,r27,1                              
                                                                      
      memcpy((char *) bd->buffer + block_offset, src, (size_t) copy); 
                                                                      
      sc = rtems_bdbuf_release_modified(bd);                          
      if (sc == RTEMS_SUCCESSFUL) {                                   
        block_offset = 0;                                             
ffc043b8:	3b 40 00 00 	li      r26,0                                  
ffc043bc:	48 00 00 10 	b       ffc043cc <rtems_blkdev_imfs_write+0xf4>
        remaining -= copy;                                            
        src += copy;                                                  
        ++block;                                                      
      } else {                                                        
        remaining = -1;                                               
ffc043c0:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
ffc043c4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              <== NOT EXECUTED
ffc043c8:	48 00 00 0c 	b       ffc043d4 <rtems_blkdev_imfs_write+0xfc><== NOT EXECUTED
  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) {                                             
ffc043cc:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc043d0:	41 9d ff 74 	bgt+    cr7,ffc04344 <rtems_blkdev_imfs_write+0x6c>
    } else {                                                          
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
ffc043d4:	40 9e 00 2c 	bne-    cr7,ffc04400 <rtems_blkdev_imfs_write+0x128><== NEVER TAKEN
    iop->offset += count;                                             
ffc043d8:	81 1c 00 08 	lwz     r8,8(r28)                              
ffc043dc:	7f 2b cb 78 	mr      r11,r25                                
ffc043e0:	81 3c 00 0c 	lwz     r9,12(r28)                             
ffc043e4:	39 40 00 00 	li      r10,0                                  
    rv = (ssize_t) count;                                             
ffc043e8:	7f 23 cb 78 	mr      r3,r25                                 
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
ffc043ec:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc043f0:	7d 4a 41 14 	adde    r10,r10,r8                             
ffc043f4:	91 5c 00 08 	stw     r10,8(r28)                             
ffc043f8:	91 7c 00 0c 	stw     r11,12(r28)                            
ffc043fc:	48 00 00 14 	b       ffc04410 <rtems_blkdev_imfs_write+0x138>
    rv = (ssize_t) count;                                             
  } else {                                                            
    errno = EIO;                                                      
ffc04400:	48 00 fe e5 	bl      ffc142e4 <__errno>                     <== NOT EXECUTED
ffc04404:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc04408:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    rv = -1;                                                          
ffc0440c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04410:	39 61 00 40 	addi    r11,r1,64                              
ffc04414:	4b ff cd 00 	b       ffc01114 <_restgpr_23_x>               
                                                                      

ffc0fe64 <rtems_blkdev_ioctl>: rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp) { rtems_status_code sc; int rc = 0; switch (req)
ffc0fe64:	3d 00 40 04 	lis     r8,16388                               
#include <rtems/blkdev.h>                                             
#include <rtems/bdbuf.h>                                              
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
ffc0fe68:	94 21 ff f8 	stwu    r1,-8(r1)                              
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
ffc0fe6c:	61 08 42 03 	ori     r8,r8,16899                            
#include <rtems/blkdev.h>                                             
#include <rtems/bdbuf.h>                                              
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
ffc0fe70:	7c 08 02 a6 	mflr    r0                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
ffc0fe74:	7f 84 40 00 	cmpw    cr7,r4,r8                              
#include <rtems/blkdev.h>                                             
#include <rtems/bdbuf.h>                                              
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
ffc0fe78:	90 01 00 0c 	stw     r0,12(r1)                              
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
ffc0fe7c:	41 9e 00 9c 	beq-    cr7,ffc0ff18 <rtems_blkdev_ioctl+0xb4> 
ffc0fe80:	7f 84 40 40 	cmplw   cr7,r4,r8                              
ffc0fe84:	41 9d 00 48 	bgt-    cr7,ffc0fecc <rtems_blkdev_ioctl+0x68> 
ffc0fe88:	3d 00 20 00 	lis     r8,8192                                
ffc0fe8c:	61 08 42 0a 	ori     r8,r8,16906                            
ffc0fe90:	7f 84 40 00 	cmpw    cr7,r4,r8                              
ffc0fe94:	41 9e 00 c8 	beq-    cr7,ffc0ff5c <rtems_blkdev_ioctl+0xf8> 
ffc0fe98:	7f 84 40 40 	cmplw   cr7,r4,r8                              
ffc0fe9c:	41 9d 00 14 	bgt-    cr7,ffc0feb0 <rtems_blkdev_ioctl+0x4c> 
ffc0fea0:	6c 8a 20 00 	xoris   r10,r4,8192                            
ffc0fea4:	2f 8a 42 06 	cmpwi   cr7,r10,16902                          
ffc0fea8:	40 9e 00 d4 	bne-    cr7,ffc0ff7c <rtems_blkdev_ioctl+0x118>
ffc0feac:	48 00 00 90 	b       ffc0ff3c <rtems_blkdev_ioctl+0xd8>     
ffc0feb0:	6c 88 20 00 	xoris   r8,r4,8192                             
ffc0feb4:	2f 88 42 0c 	cmpwi   cr7,r8,16908                           
ffc0feb8:	41 9e 00 b8 	beq-    cr7,ffc0ff70 <rtems_blkdev_ioctl+0x10c>
ffc0febc:	6c 88 40 04 	xoris   r8,r4,16388                            
ffc0fec0:	2f 88 42 02 	cmpwi   cr7,r8,16898                           
ffc0fec4:	40 9e 00 b8 	bne-    cr7,ffc0ff7c <rtems_blkdev_ioctl+0x118><== NEVER TAKEN
ffc0fec8:	48 00 00 48 	b       ffc0ff10 <rtems_blkdev_ioctl+0xac>     
ffc0fecc:	3d 00 40 04 	lis     r8,16388                               
ffc0fed0:	61 08 42 09 	ori     r8,r8,16905                            
ffc0fed4:	7f 84 40 00 	cmpw    cr7,r4,r8                              
ffc0fed8:	41 9e 00 7c 	beq-    cr7,ffc0ff54 <rtems_blkdev_ioctl+0xf0> 
ffc0fedc:	7f 84 40 40 	cmplw   cr7,r4,r8                              
ffc0fee0:	41 9d 00 14 	bgt-    cr7,ffc0fef4 <rtems_blkdev_ioctl+0x90> 
ffc0fee4:	6c 88 40 04 	xoris   r8,r4,16388                            
ffc0fee8:	2f 88 42 05 	cmpwi   cr7,r8,16901                           
ffc0feec:	40 9e 00 90 	bne-    cr7,ffc0ff7c <rtems_blkdev_ioctl+0x118><== NEVER TAKEN
ffc0fef0:	48 00 00 40 	b       ffc0ff30 <rtems_blkdev_ioctl+0xcc>     
ffc0fef4:	6c 8a 40 04 	xoris   r10,r4,16388                           
ffc0fef8:	2f 8a 42 0b 	cmpwi   cr7,r10,16907                          
ffc0fefc:	41 9e 00 68 	beq-    cr7,ffc0ff64 <rtems_blkdev_ioctl+0x100>
ffc0ff00:	6c 8a 80 04 	xoris   r10,r4,32772                           
ffc0ff04:	2f 8a 42 04 	cmpwi   cr7,r10,16900                          
ffc0ff08:	40 9e 00 74 	bne-    cr7,ffc0ff7c <rtems_blkdev_ioctl+0x118><== NEVER TAKEN
ffc0ff0c:	48 00 00 14 	b       ffc0ff20 <rtems_blkdev_ioctl+0xbc>     
    {                                                                 
        case RTEMS_BLKIO_GETMEDIABLKSIZE:                             
            *(uint32_t *) argp = dd->media_block_size;                
ffc0ff10:	81 23 00 20 	lwz     r9,32(r3)                              
ffc0ff14:	48 00 00 20 	b       ffc0ff34 <rtems_blkdev_ioctl+0xd0>     
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETBLKSIZE:                                  
            *(uint32_t *) argp = dd->block_size;                      
ffc0ff18:	81 23 00 24 	lwz     r9,36(r3)                              
ffc0ff1c:	48 00 00 18 	b       ffc0ff34 <rtems_blkdev_ioctl+0xd0>     
            break;                                                    
                                                                      
        case RTEMS_BLKIO_SETBLKSIZE:                                  
            sc = rtems_bdbuf_set_block_size(dd, *(uint32_t *) argp, true);
ffc0ff20:	80 85 00 00 	lwz     r4,0(r5)                               
ffc0ff24:	38 a0 00 01 	li      r5,1                                   
ffc0ff28:	4b ff fd d1 	bl      ffc0fcf8 <rtems_bdbuf_set_block_size>  
ffc0ff2c:	48 00 00 14 	b       ffc0ff40 <rtems_blkdev_ioctl+0xdc>     
                rc = -1;                                              
            }                                                         
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETSIZE:                                     
            *(rtems_blkdev_bnum *) argp = dd->size;                   
ffc0ff30:	81 23 00 1c 	lwz     r9,28(r3)                              
ffc0ff34:	91 25 00 00 	stw     r9,0(r5)                               
ffc0ff38:	48 00 00 3c 	b       ffc0ff74 <rtems_blkdev_ioctl+0x110>    
            break;                                                    
                                                                      
        case RTEMS_BLKIO_SYNCDEV:                                     
            sc = rtems_bdbuf_syncdev(dd);                             
ffc0ff3c:	4b ff fb a1 	bl      ffc0fadc <rtems_bdbuf_syncdev>         
            if (sc != RTEMS_SUCCESSFUL) {                             
ffc0ff40:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ff44:	41 be 00 30 	beq+    cr7,ffc0ff74 <rtems_blkdev_ioctl+0x110><== ALWAYS TAKEN
                errno = EIO;                                          
ffc0ff48:	48 00 3c 55 	bl      ffc13b9c <__errno>                     <== NOT EXECUTED
ffc0ff4c:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc0ff50:	48 00 00 34 	b       ffc0ff84 <rtems_blkdev_ioctl+0x120>    <== NOT EXECUTED
                rc = -1;                                              
            }                                                         
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETDISKDEV:                                  
            *(rtems_disk_device **) argp = dd;                        
ffc0ff54:	90 65 00 00 	stw     r3,0(r5)                               
ffc0ff58:	48 00 00 1c 	b       ffc0ff74 <rtems_blkdev_ioctl+0x110>    
            break;                                                    
                                                                      
        case RTEMS_BLKIO_PURGEDEV:                                    
            rtems_bdbuf_purge_dev(dd);                                
ffc0ff5c:	4b ff fb e5 	bl      ffc0fb40 <rtems_bdbuf_purge_dev>       
ffc0ff60:	48 00 00 14 	b       ffc0ff74 <rtems_blkdev_ioctl+0x110>    
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETDEVSTATS:                                 
            rtems_bdbuf_get_device_stats(dd, (rtems_blkdev_stats *) argp);
ffc0ff64:	7c a4 2b 78 	mr      r4,r5                                  
ffc0ff68:	4b ff fe 81 	bl      ffc0fde8 <rtems_bdbuf_get_device_stats>
ffc0ff6c:	48 00 00 08 	b       ffc0ff74 <rtems_blkdev_ioctl+0x110>    
            break;                                                    
                                                                      
        case RTEMS_BLKIO_RESETDEVSTATS:                               
            rtems_bdbuf_reset_device_stats(dd);                       
ffc0ff70:	4b ff fe b5 	bl      ffc0fe24 <rtems_bdbuf_reset_device_stats>
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
ffc0ff74:	38 60 00 00 	li      r3,0                                   
            rtems_bdbuf_get_device_stats(dd, (rtems_blkdev_stats *) argp);
            break;                                                    
                                                                      
        case RTEMS_BLKIO_RESETDEVSTATS:                               
            rtems_bdbuf_reset_device_stats(dd);                       
            break;                                                    
ffc0ff78:	48 00 00 14 	b       ffc0ff8c <rtems_blkdev_ioctl+0x128>    
                                                                      
        default:                                                      
            errno = EINVAL;                                           
ffc0ff7c:	48 00 3c 21 	bl      ffc13b9c <__errno>                     
ffc0ff80:	39 20 00 16 	li      r9,22                                  
ffc0ff84:	91 23 00 00 	stw     r9,0(r3)                               
            rc = -1;                                                  
ffc0ff88:	38 60 ff ff 	li      r3,-1                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc0ff8c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0ff90:	38 21 00 08 	addi    r1,r1,8                                
ffc0ff94:	7c 08 03 a6 	mtlr    r0                                     
ffc0ff98:	4e 80 00 20 	blr                                            
                                                                      

ffc228a4 <rtems_blkstats>: #include <fcntl.h> #include <unistd.h> #include <errno.h> void rtems_blkstats(FILE *output, const char *device, bool reset) {
ffc228a4:	94 21 ff 78 	stwu    r1,-136(r1)                            <== NOT EXECUTED
ffc228a8:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc228ac:	bf a1 00 7c 	stmw    r29,124(r1)                            <== NOT EXECUTED
ffc228b0:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
  int fd = open(device, O_RDONLY);                                    
ffc228b4:	7c 83 23 78 	mr      r3,r4                                  <== NOT EXECUTED
ffc228b8:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
#include <fcntl.h>                                                    
#include <unistd.h>                                                   
#include <errno.h>                                                    
                                                                      
void rtems_blkstats(FILE *output, const char *device, bool reset)     
{                                                                     
ffc228bc:	90 01 00 8c 	stw     r0,140(r1)                             <== NOT EXECUTED
ffc228c0:	7c bd 2b 78 	mr      r29,r5                                 <== NOT EXECUTED
  int fd = open(device, O_RDONLY);                                    
ffc228c4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc228c8:	4b fe 22 b9 	bl      ffc04b80 <open>                        <== NOT EXECUTED
                                                                      
  if (fd >= 0) {                                                      
ffc228cc:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc228d0:	41 80 01 24 	blt-    ffc229f4 <rtems_blkstats+0x150>        <== NOT EXECUTED
    struct stat st;                                                   
    int rv;                                                           
                                                                      
    rv = fstat(fd, &st);                                              
ffc228d4:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc228d8:	48 00 1e b1 	bl      ffc24788 <fstat>                       <== NOT EXECUTED
    if (rv == 0) {                                                    
ffc228dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc228e0:	40 9e 00 c0 	bne-    cr7,ffc229a0 <rtems_blkstats+0xfc>     <== NOT EXECUTED
      if (S_ISBLK(st.st_mode)) {                                      
ffc228e4:	81 21 00 14 	lwz     r9,20(r1)                              <== NOT EXECUTED
ffc228e8:	55 29 04 26 	rlwinm  r9,r9,0,16,19                          <== NOT EXECUTED
ffc228ec:	2f 89 60 00 	cmpwi   cr7,r9,24576                           <== NOT EXECUTED
ffc228f0:	40 9e 00 9c 	bne-    cr7,ffc2298c <rtems_blkstats+0xe8>     <== NOT EXECUTED
        if (reset) {                                                  
ffc228f4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              <== 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);                        
ffc228f8:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc228fc:	41 9e 00 3c 	beq-    cr7,ffc22938 <rtems_blkstats+0x94>     <== NOT EXECUTED
ffc22900:	3c 80 20 00 	lis     r4,8192                                <== NOT EXECUTED
ffc22904:	60 84 42 0c 	ori     r4,r4,16908                            <== NOT EXECUTED
ffc22908:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2290c:	48 00 2a 6d 	bl      ffc25378 <ioctl>                       <== NOT EXECUTED
          rv = rtems_disk_fd_reset_device_stats(fd);                  
          if (rv != 0) {                                              
ffc22910:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc22914:	41 be 00 b0 	beq+    cr7,ffc229c4 <rtems_blkstats+0x120>    <== NOT EXECUTED
            fprintf(output, "error: reset stats: %s\n", strerror(errno));
ffc22918:	48 01 4d e1 	bl      ffc376f8 <__errno>                     <== NOT EXECUTED
ffc2291c:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc22920:	48 01 cd 4d 	bl      ffc3f66c <strerror>                    <== NOT EXECUTED
ffc22924:	3c 80 ff c6 	lis     r4,-58                                 <== NOT EXECUTED
ffc22928:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc2292c:	38 84 97 50 	addi    r4,r4,-26800                           <== NOT EXECUTED
ffc22930:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc22934:	48 00 00 88 	b       ffc229bc <rtems_blkstats+0x118>        <== NOT EXECUTED
static inline int rtems_disk_fd_get_device_stats(                     
  int fd,                                                             
  rtems_blkdev_stats *stats                                           
)                                                                     
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_GETDEVSTATS, stats);                   
ffc22938:	3c 80 40 04 	lis     r4,16388                               <== NOT EXECUTED
ffc2293c:	60 84 42 0b 	ori     r4,r4,16907                            <== NOT EXECUTED
ffc22940:	38 a1 00 50 	addi    r5,r1,80                               <== NOT EXECUTED
ffc22944:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22948:	48 00 2a 31 	bl      ffc25378 <ioctl>                       <== NOT EXECUTED
          }                                                           
        } else {                                                      
          rtems_blkdev_stats stats;                                   
                                                                      
          rv = rtems_disk_fd_get_device_stats(fd, &stats);            
          if (rv == 0) {                                              
ffc2294c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc22950:	40 9e 00 1c 	bne-    cr7,ffc2296c <rtems_blkstats+0xc8>     <== NOT EXECUTED
            rtems_blkdev_print_stats(                                 
ffc22954:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc22958:	38 61 00 50 	addi    r3,r1,80                               <== NOT EXECUTED
ffc2295c:	38 84 85 30 	addi    r4,r4,-31440                           <== NOT EXECUTED
ffc22960:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc22964:	48 00 00 bd 	bl      ffc22a20 <rtems_blkdev_print_stats>    <== NOT EXECUTED
ffc22968:	48 00 00 5c 	b       ffc229c4 <rtems_blkstats+0x120>        <== NOT EXECUTED
              &stats,                                                 
              (rtems_printk_plugin_t) fprintf,                        
              output                                                  
            );                                                        
          } else {                                                    
            fprintf(output, "error: get stats: %s\n", strerror(errno));
ffc2296c:	48 01 4d 8d 	bl      ffc376f8 <__errno>                     <== NOT EXECUTED
ffc22970:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc22974:	48 01 cc f9 	bl      ffc3f66c <strerror>                    <== NOT EXECUTED
ffc22978:	3c 80 ff c6 	lis     r4,-58                                 <== NOT EXECUTED
ffc2297c:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc22980:	38 84 97 68 	addi    r4,r4,-26776                           <== NOT EXECUTED
ffc22984:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc22988:	48 00 00 34 	b       ffc229bc <rtems_blkstats+0x118>        <== NOT EXECUTED
          }                                                           
        }                                                             
      } else {                                                        
        fprintf(output, "error: not a block device\n");               
ffc2298c:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc22990:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc22994:	38 63 97 7e 	addi    r3,r3,-26754                           <== NOT EXECUTED
ffc22998:	48 01 5d 95 	bl      ffc3872c <fputs>                       <== NOT EXECUTED
ffc2299c:	48 00 00 28 	b       ffc229c4 <rtems_blkstats+0x120>        <== NOT EXECUTED
      }                                                               
    } else {                                                          
      fprintf(output, "error: get file stats: %s\n", strerror(errno));
ffc229a0:	48 01 4d 59 	bl      ffc376f8 <__errno>                     <== NOT EXECUTED
ffc229a4:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc229a8:	48 01 cc c5 	bl      ffc3f66c <strerror>                    <== NOT EXECUTED
ffc229ac:	3c 80 ff c6 	lis     r4,-58                                 <== NOT EXECUTED
ffc229b0:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc229b4:	38 84 97 99 	addi    r4,r4,-26727                           <== NOT EXECUTED
ffc229b8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc229bc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc229c0:	48 01 5b 71 	bl      ffc38530 <fprintf>                     <== NOT EXECUTED
    }                                                                 
                                                                      
    rv = close(fd);                                                   
ffc229c4:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc229c8:	48 00 18 a9 	bl      ffc24270 <close>                       <== NOT EXECUTED
    if (rv != 0) {                                                    
ffc229cc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc229d0:	41 be 00 48 	beq+    cr7,ffc22a18 <rtems_blkstats+0x174>    <== NOT EXECUTED
      fprintf(output, "error: close device: %s\n", strerror(errno));  
ffc229d4:	48 01 4d 25 	bl      ffc376f8 <__errno>                     <== NOT EXECUTED
ffc229d8:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc229dc:	48 01 cc 91 	bl      ffc3f66c <strerror>                    <== NOT EXECUTED
ffc229e0:	3c 80 ff c6 	lis     r4,-58                                 <== NOT EXECUTED
ffc229e4:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc229e8:	38 84 97 b4 	addi    r4,r4,-26700                           <== NOT EXECUTED
ffc229ec:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc229f0:	48 00 00 20 	b       ffc22a10 <rtems_blkstats+0x16c>        <== NOT EXECUTED
    }                                                                 
  } else {                                                            
    fprintf(output, "error: open device: %s\n", strerror(errno));     
ffc229f4:	48 01 4d 05 	bl      ffc376f8 <__errno>                     <== NOT EXECUTED
ffc229f8:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc229fc:	48 01 cc 71 	bl      ffc3f66c <strerror>                    <== NOT EXECUTED
ffc22a00:	3c 80 ff c6 	lis     r4,-58                                 <== NOT EXECUTED
ffc22a04:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc22a08:	38 84 97 cd 	addi    r4,r4,-26675                           <== NOT EXECUTED
ffc22a0c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc22a10:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22a14:	48 01 5b 1d 	bl      ffc38530 <fprintf>                     <== NOT EXECUTED
  }                                                                   
}                                                                     
ffc22a18:	39 61 00 88 	addi    r11,r1,136                             <== NOT EXECUTED
ffc22a1c:	48 03 0d d8 	b       ffc537f4 <_restgpr_29_x>               <== NOT EXECUTED
                                                                      

ffc091e0 <rtems_chain_get_with_wait>: rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) {
ffc091e0:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc091e4:	7c 08 02 a6 	mflr    r0                                     
ffc091e8:	bf 61 00 1c 	stmw    r27,28(r1)                             
ffc091ec:	7c 7e 1b 78 	mr      r30,r3                                 
ffc091f0:	7c 9d 23 78 	mr      r29,r4                                 
ffc091f4:	90 01 00 34 	stw     r0,52(r1)                              
ffc091f8:	7c bc 2b 78 	mr      r28,r5                                 
ffc091fc:	7c df 33 78 	mr      r31,r6                                 
ffc09200:	48 00 00 20 	b       ffc09220 <rtems_chain_get_with_wait+0x40>
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
  ) {                                                                 
    rtems_event_set out;                                              
    sc = rtems_event_receive(                                         
ffc09204:	7f a3 eb 78 	mr      r3,r29                                 
ffc09208:	38 80 00 00 	li      r4,0                                   
ffc0920c:	7f 85 e3 78 	mr      r5,r28                                 
ffc09210:	38 c1 00 08 	addi    r6,r1,8                                
ffc09214:	4b ff f3 2d 	bl      ffc08540 <rtems_event_receive>         
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
ffc09218:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0921c:	40 82 00 18 	bne-    ffc09234 <rtems_chain_get_with_wait+0x54><== ALWAYS TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
ffc09220:	7f c3 f3 78 	mr      r3,r30                                 
ffc09224:	48 00 05 bd 	bl      ffc097e0 <_Chain_Get>                  
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
ffc09228:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc0922c:	41 82 ff d8 	beq+    ffc09204 <rtems_chain_get_with_wait+0x24>
ffc09230:	38 60 00 00 	li      r3,0                                   
      timeout,                                                        
      &out                                                            
    );                                                                
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
ffc09234:	93 7f 00 00 	stw     r27,0(r31)                             
                                                                      
  return sc;                                                          
}                                                                     
ffc09238:	39 61 00 30 	addi    r11,r1,48                              
ffc0923c:	48 00 b7 18 	b       ffc14954 <_restgpr_27_x>               
                                                                      

ffc047a8 <rtems_cpu_usage_report_with_plugin>: */ void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) {
ffc047a8:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc047ac:	7c 08 02 a6 	mflr    r0                                     
ffc047b0:	be 21 00 3c 	stmw    r17,60(r1)                             
    uint32_t seconds, nanoseconds;                                    
  #else                                                               
    uint32_t           total_units = 0;                               
  #endif                                                              
                                                                      
  if ( !print )                                                       
ffc047b4:	7c 99 23 79 	mr.     r25,r4                                 
 */                                                                   
void rtems_cpu_usage_report_with_plugin(                              
  void                  *context,                                     
  rtems_printk_plugin_t  print                                        
)                                                                     
{                                                                     
ffc047b8:	90 01 00 7c 	stw     r0,124(r1)                             
    uint32_t seconds, nanoseconds;                                    
  #else                                                               
    uint32_t           total_units = 0;                               
  #endif                                                              
                                                                      
  if ( !print )                                                       
ffc047bc:	41 82 02 4c 	beq-    ffc04a08 <rtems_cpu_usage_report_with_plugin+0x260><== NEVER TAKEN
                                                                      
static inline void _Timestamp64_implementation_Set_to_zero(           
  Timestamp64_Control *_time                                          
)                                                                     
{                                                                     
  *_time = 0;                                                         
ffc047c0:	39 40 00 00 	li      r10,0                                  
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
ffc047c4:	7f 29 03 a6 	mtctr   r25                                    
ffc047c8:	39 60 00 00 	li      r11,0                                  
ffc047cc:	91 41 00 20 	stw     r10,32(r1)                             
ffc047d0:	3c 80 ff c2 	lis     r4,-62                                 
ffc047d4:	91 61 00 24 	stw     r11,36(r1)                             
ffc047d8:	38 84 de 07 	addi    r4,r4,-8697                            
   *  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;            
ffc047dc:	3d 20 00 00 	lis     r9,0                                   
ffc047e0:	3f 40 00 00 	lis     r26,0                                  
ffc047e4:	39 29 28 e0 	addi    r9,r9,10464                            
ffc047e8:	3b 5a 2f f8 	addi    r26,r26,12280                          
ffc047ec:	83 89 00 00 	lwz     r28,0(r9)                              
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
                                                                      
        (*print)(                                                     
ffc047f0:	3e 80 ff c2 	lis     r20,-62                                
   *  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;            
ffc047f4:	83 a9 00 04 	lwz     r29,4(r9)                              
ffc047f8:	3e c0 00 00 	lis     r22,0                                  
           */                                                         
                                                                      
          seconds = _Timestamp_Get_seconds( &ran );                   
          nanoseconds = _Timestamp_Get_nanoseconds( &ran ) /          
            TOD_NANOSECONDS_PER_MICROSECOND;                          
          (*print)( context,                                          
ffc047fc:	3e 40 ff c2 	lis     r18,-62                                
ffc04800:	7c 77 1b 78 	mr      r23,r3                                 
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
ffc04804:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04808:	4e 80 04 21 	bctrl                                          
#endif                                                                
                                                                      
/*                                                                    
 *  rtems_cpu_usage_report                                            
 */                                                                   
void rtems_cpu_usage_report_with_plugin(                              
ffc0480c:	3a ba 00 0c 	addi    r21,r26,12                             
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
                                                                      
        (*print)(                                                     
ffc04810:	3a 94 df 79 	addi    r20,r20,-8327                          
    Thread_Control    *the_thread,                                    
    Timestamp_Control *time_of_context_switch                         
  )                                                                   
  {                                                                   
    #ifndef RTEMS_SMP                                                 
      if ( _Thread_Executing->Object.id == the_thread->Object.id ) {  
ffc04814:	3e 60 00 00 	lis     r19,0                                  
ffc04818:	3a d6 2f e8 	addi    r22,r22,12264                          
           */                                                         
                                                                      
          seconds = _Timestamp_Get_seconds( &ran );                   
          nanoseconds = _Timestamp_Get_nanoseconds( &ran ) /          
            TOD_NANOSECONDS_PER_MICROSECOND;                          
          (*print)( context,                                          
ffc0481c:	3a 52 df 8c 	addi    r18,r18,-8308                          
     "------------+----------------------------------------+---------------+---------\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 ] )                 
ffc04820:	85 3a 00 04 	lwzu    r9,4(r26)                              
ffc04824:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04828:	40 be 00 10 	bne+    cr7,ffc04838 <rtems_cpu_usage_report_with_plugin+0x90>
       " ID         | NAME                                   | TICKS         | PERCENT\n"
     #endif                                                           
     "------------+----------------------------------------+---------------+---------\n"
  );                                                                  
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
ffc0482c:	7f 9a a8 00 	cmpw    cr7,r26,r21                            
ffc04830:	40 9e ff f0 	bne+    cr7,ffc04820 <rtems_cpu_usage_report_with_plugin+0x78>
ffc04834:	48 00 01 60 	b       ffc04994 <rtems_cpu_usage_report_with_plugin+0x1ec>
    #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)             
      if ( !_Objects_Information_table[ api_index ] )                 
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
ffc04838:	83 09 00 04 	lwz     r24,4(r9)                              
    if ( information ) {                                              
ffc0483c:	3b 60 00 01 	li      r27,1                                  
ffc04840:	2f 98 00 00 	cmpwi   cr7,r24,0                              
ffc04844:	40 be 01 40 	bne+    cr7,ffc04984 <rtems_cpu_usage_report_with_plugin+0x1dc><== ALWAYS TAKEN
ffc04848:	4b ff ff e4 	b       ffc0482c <rtems_cpu_usage_report_with_plugin+0x84><== NOT EXECUTED
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
        the_thread = (Thread_Control *)information->local_table[ i ]; 
ffc0484c:	81 38 00 1c 	lwz     r9,28(r24)                             
ffc04850:	57 6a 10 3a 	rlwinm  r10,r27,2,0,29                         
ffc04854:	7f e9 50 2e 	lwzx    r31,r9,r10                             
                                                                      
        if ( !the_thread )                                            
ffc04858:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0485c:	41 9e 01 24 	beq-    cr7,ffc04980 <rtems_cpu_usage_report_with_plugin+0x1d8><== NEVER TAKEN
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
ffc04860:	80 7f 00 08 	lwz     r3,8(r31)                              
ffc04864:	38 80 00 0d 	li      r4,13                                  
ffc04868:	38 a1 00 08 	addi    r5,r1,8                                
ffc0486c:	48 00 51 ed 	bl      ffc09a58 <rtems_object_get_name>       
                                                                      
        (*print)(                                                     
ffc04870:	7e e3 bb 78 	mr      r3,r23                                 
ffc04874:	7e 84 a3 78 	mr      r4,r20                                 
ffc04878:	80 bf 00 08 	lwz     r5,8(r31)                              
ffc0487c:	38 c1 00 08 	addi    r6,r1,8                                
ffc04880:	7f 29 03 a6 	mtctr   r25                                    
ffc04884:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04888:	4e 80 04 21 	bctrl                                          
                                                                      
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
ffc0488c:	81 3f 00 80 	lwz     r9,128(r31)                            
ffc04890:	81 5f 00 84 	lwz     r10,132(r31)                           
ffc04894:	91 21 00 18 	stw     r9,24(r1)                              
    Thread_Control    *the_thread,                                    
    Timestamp_Control *time_of_context_switch                         
  )                                                                   
  {                                                                   
    #ifndef RTEMS_SMP                                                 
      if ( _Thread_Executing->Object.id == the_thread->Object.id ) {  
ffc04898:	39 33 32 40 	addi    r9,r19,12864                           
                                                                      
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
ffc0489c:	91 41 00 1c 	stw     r10,28(r1)                             
    Thread_Control    *the_thread,                                    
    Timestamp_Control *time_of_context_switch                         
  )                                                                   
  {                                                                   
    #ifndef RTEMS_SMP                                                 
      if ( _Thread_Executing->Object.id == the_thread->Object.id ) {  
ffc048a0:	81 49 00 10 	lwz     r10,16(r9)                             
ffc048a4:	81 0a 00 08 	lwz     r8,8(r10)                              
ffc048a8:	81 5f 00 08 	lwz     r10,8(r31)                             
ffc048ac:	7f 88 50 00 	cmpw    cr7,r8,r10                             
ffc048b0:	40 be 01 48 	bne+    cr7,ffc049f8 <rtems_cpu_usage_report_with_plugin+0x250>
 */                                                                   
static inline void _TOD_Get_uptime(                                   
  Timestamp_Control *time                                             
)                                                                     
{                                                                     
  _TOD_Get_with_nanoseconds( time, &_TOD.uptime );                    
ffc048b4:	38 61 00 28 	addi    r3,r1,40                               
        *time_of_context_switch = _Thread_Time_of_last_context_switch;
ffc048b8:	83 c9 00 20 	lwz     r30,32(r9)                             
ffc048bc:	7e c4 b3 78 	mr      r4,r22                                 
ffc048c0:	83 e9 00 24 	lwz     r31,36(r9)                             
ffc048c4:	48 00 66 5d 	bl      ffc0af20 <_TOD_Get_with_nanoseconds>   
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
ffc048c8:	81 41 00 28 	lwz     r10,40(r1)                             
ffc048cc:	81 61 00 2c 	lwz     r11,44(r1)                             
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
ffc048d0:	81 01 00 18 	lwz     r8,24(r1)                              
ffc048d4:	81 21 00 1c 	lwz     r9,28(r1)                              
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
ffc048d8:	7d 7f 58 10 	subfc   r11,r31,r11                            
ffc048dc:	7d 5e 51 10 	subfe   r10,r30,r10                            
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
ffc048e0:	7d 29 58 14 	addc    r9,r9,r11                              
ffc048e4:	7d 08 51 14 	adde    r8,r8,r10                              
ffc048e8:	91 01 00 18 	stw     r8,24(r1)                              
ffc048ec:	91 21 00 1c 	stw     r9,28(r1)                              
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
ffc048f0:	81 41 00 28 	lwz     r10,40(r1)                             
            _Timestamp_Add_to( &ran, &used );                         
          } else {                                                    
            _TOD_Get_uptime( &uptime );                               
          }                                                           
          _Timestamp_Subtract( &uptime_at_last_reset, &uptime, &total );
          _Timestamp_Divide( &ran, &total, &ival, &fval );            
ffc048f4:	38 61 00 18 	addi    r3,r1,24                               
ffc048f8:	81 61 00 2c 	lwz     r11,44(r1)                             
ffc048fc:	38 81 00 20 	addi    r4,r1,32                               
ffc04900:	38 a1 00 34 	addi    r5,r1,52                               
ffc04904:	7d 7d 58 10 	subfc   r11,r29,r11                            
ffc04908:	7d 5c 51 10 	subfe   r10,r28,r10                            
ffc0490c:	91 41 00 20 	stw     r10,32(r1)                             
ffc04910:	38 c1 00 30 	addi    r6,r1,48                               
ffc04914:	91 61 00 24 	stw     r11,36(r1)                             
ffc04918:	48 00 8c 35 	bl      ffc0d54c <_Timestamp64_Divide>         
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_seconds(       
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time / 1000000000L);                           
ffc0491c:	3c c0 3b 9a 	lis     r6,15258                               
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          seconds = _Timestamp_Get_seconds( &ran );                   
ffc04920:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc04924:	38 a0 00 00 	li      r5,0                                   
ffc04928:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0492c:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc04930:	7f c3 f3 78 	mr      r3,r30                                 
ffc04934:	7f e4 fb 78 	mr      r4,r31                                 
ffc04938:	48 01 69 e9 	bl      ffc1b320 <__divdi3>                    
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_nanoseconds(   
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time % 1000000000L);                           
ffc0493c:	3c c0 3b 9a 	lis     r6,15258                               
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_seconds(       
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time / 1000000000L);                           
ffc04940:	7c 91 23 78 	mr      r17,r4                                 
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_nanoseconds(   
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time % 1000000000L);                           
ffc04944:	38 a0 00 00 	li      r5,0                                   
ffc04948:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc0494c:	7f c3 f3 78 	mr      r3,r30                                 
ffc04950:	7f e4 fb 78 	mr      r4,r31                                 
ffc04954:	48 01 6d f1 	bl      ffc1b744 <__moddi3>                    
          nanoseconds = _Timestamp_Get_nanoseconds( &ran ) /          
ffc04958:	38 c0 03 e8 	li      r6,1000                                
ffc0495c:	7c c4 33 96 	divwu   r6,r4,r6                               
            TOD_NANOSECONDS_PER_MICROSECOND;                          
          (*print)( context,                                          
ffc04960:	80 e1 00 34 	lwz     r7,52(r1)                              
ffc04964:	81 01 00 30 	lwz     r8,48(r1)                              
ffc04968:	7f 29 03 a6 	mtctr   r25                                    
ffc0496c:	7e e3 bb 78 	mr      r3,r23                                 
ffc04970:	7e 44 93 78 	mr      r4,r18                                 
ffc04974:	7e 25 8b 78 	mr      r5,r17                                 
ffc04978:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0497c:	4e 80 04 21 	bctrl                                          
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
ffc04980:	3b 7b 00 01 	addi    r27,r27,1                              
ffc04984:	a1 38 00 10 	lhz     r9,16(r24)                             
ffc04988:	7f 9b 48 40 	cmplw   cr7,r27,r9                             
ffc0498c:	40 9d fe c0 	ble+    cr7,ffc0484c <rtems_cpu_usage_report_with_plugin+0xa4>
ffc04990:	4b ff fe 9c 	b       ffc0482c <rtems_cpu_usage_report_with_plugin+0x84>
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    seconds = _Timestamp_Get_seconds( &total );                       
ffc04994:	83 c1 00 20 	lwz     r30,32(r1)                             
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_seconds(       
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time / 1000000000L);                           
ffc04998:	3c c0 3b 9a 	lis     r6,15258                               
ffc0499c:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc049a0:	38 a0 00 00 	li      r5,0                                   
ffc049a4:	7f c3 f3 78 	mr      r3,r30                                 
ffc049a8:	7f e4 fb 78 	mr      r4,r31                                 
ffc049ac:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc049b0:	48 01 69 71 	bl      ffc1b320 <__divdi3>                    
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_nanoseconds(   
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time % 1000000000L);                           
ffc049b4:	3c c0 3b 9a 	lis     r6,15258                               
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_seconds(       
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time / 1000000000L);                           
ffc049b8:	7c 9d 23 78 	mr      r29,r4                                 
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_nanoseconds(   
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time % 1000000000L);                           
ffc049bc:	7f c3 f3 78 	mr      r3,r30                                 
ffc049c0:	7f e4 fb 78 	mr      r4,r31                                 
ffc049c4:	38 a0 00 00 	li      r5,0                                   
ffc049c8:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc049cc:	48 01 6d 79 	bl      ffc1b744 <__moddi3>                    
    nanoseconds = _Timestamp_Get_nanoseconds( &total ) /              
ffc049d0:	38 c0 03 e8 	li      r6,1000                                
ffc049d4:	7c c4 33 96 	divwu   r6,r4,r6                               
      TOD_NANOSECONDS_PER_MICROSECOND;                                
    (*print)(                                                         
ffc049d8:	7f 29 03 a6 	mtctr   r25                                    
ffc049dc:	3c 80 ff c2 	lis     r4,-62                                 
ffc049e0:	7e e3 bb 78 	mr      r3,r23                                 
ffc049e4:	38 84 df a4 	addi    r4,r4,-8284                            
ffc049e8:	7f a5 eb 78 	mr      r5,r29                                 
ffc049ec:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc049f0:	4e 80 04 21 	bctrl                                          
ffc049f4:	48 00 00 14 	b       ffc04a08 <rtems_cpu_usage_report_with_plugin+0x260>
ffc049f8:	38 61 00 28 	addi    r3,r1,40                               
ffc049fc:	7e c4 b3 78 	mr      r4,r22                                 
ffc04a00:	48 00 65 21 	bl      ffc0af20 <_TOD_Get_with_nanoseconds>   
ffc04a04:	4b ff fe ec 	b       ffc048f0 <rtems_cpu_usage_report_with_plugin+0x148>
       "-------------------------------------------------------------------------------\n",
       _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset,    
       total_units                                                    
    );                                                                
  #endif                                                              
}                                                                     
ffc04a08:	39 61 00 78 	addi    r11,r1,120                             
ffc04a0c:	4b ff c8 f8 	b       ffc01304 <_restgpr_17_x>               
                                                                      

ffc0f7c4 <rtems_deviceio_errno>: [RTEMS_PROXY_BLOCKING] = EIO }; int rtems_deviceio_errno(rtems_status_code sc) { if (sc == RTEMS_SUCCESSFUL) {
ffc0f7c4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0f7c8:	41 a2 00 44 	beq+    ffc0f80c <rtems_deviceio_errno+0x48>   
    return 0;                                                         
  } else {                                                            
    int eno = EINVAL;                                                 
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
ffc0f7cc:	2b 83 00 1c 	cmplwi  cr7,r3,28                              
  [RTEMS_IO_ERROR]                 = EIO,                             
  [RTEMS_PROXY_BLOCKING]           = EIO                              
};                                                                    
                                                                      
int rtems_deviceio_errno(rtems_status_code sc)                        
{                                                                     
ffc0f7d0:	7c 08 02 a6 	mflr    r0                                     
ffc0f7d4:	7c 2b 0b 78 	mr      r11,r1                                 
ffc0f7d8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0f7dc:	48 00 a8 6d 	bl      ffc1a048 <_savegpr_31>                 
ffc0f7e0:	90 01 00 14 	stw     r0,20(r1)                              
  if (sc == RTEMS_SUCCESSFUL) {                                       
    return 0;                                                         
  } else {                                                            
    int eno = EINVAL;                                                 
ffc0f7e4:	3b e0 00 16 	li      r31,22                                 
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
ffc0f7e8:	41 9d 00 14 	bgt-    cr7,ffc0f7fc <rtems_deviceio_errno+0x38><== NEVER TAKEN
      eno = status_code_to_errno [sc];                                
ffc0f7ec:	3d 40 ff c2 	lis     r10,-62                                
ffc0f7f0:	54 69 10 3a 	rlwinm  r9,r3,2,0,29                           
ffc0f7f4:	39 4a c2 0c 	addi    r10,r10,-15860                         
ffc0f7f8:	7f ea 48 2e 	lwzx    r31,r10,r9                             
    }                                                                 
                                                                      
    errno = eno;                                                      
ffc0f7fc:	48 00 00 3d 	bl      ffc0f838 <__errno>                     
ffc0f800:	93 e3 00 00 	stw     r31,0(r3)                              
                                                                      
    return -1;                                                        
ffc0f804:	38 60 ff ff 	li      r3,-1                                  
ffc0f808:	48 00 00 0c 	b       ffc0f814 <rtems_deviceio_errno+0x50>   
};                                                                    
                                                                      
int rtems_deviceio_errno(rtems_status_code sc)                        
{                                                                     
  if (sc == RTEMS_SUCCESSFUL) {                                       
    return 0;                                                         
ffc0f80c:	38 60 00 00 	li      r3,0                                   
ffc0f810:	4e 80 00 20 	blr                                            
                                                                      
    errno = eno;                                                      
                                                                      
    return -1;                                                        
  }                                                                   
}                                                                     
ffc0f814:	39 61 00 10 	addi    r11,r1,16                              
ffc0f818:	4b ff 0d ac 	b       ffc005c4 <_restgpr_31_x>               
                                                                      

ffc045f0 <rtems_disk_create_log>: dev_t phys, rtems_blkdev_bnum block_begin, rtems_blkdev_bnum block_count, const char *name ) {
ffc045f0:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc045f4:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *phys_dd = NULL;                                  
  rtems_disk_device *dd = NULL;                                       
ffc045f8:	39 40 00 00 	li      r10,0                                  
  dev_t phys,                                                         
  rtems_blkdev_bnum block_begin,                                      
  rtems_blkdev_bnum block_count,                                      
  const char *name                                                    
)                                                                     
{                                                                     
ffc045fc:	bf 01 00 18 	stmw    r24,24(r1)                             
ffc04600:	7c 9f 23 78 	mr      r31,r4                                 
ffc04604:	7c 7e 1b 78 	mr      r30,r3                                 
ffc04608:	90 01 00 3c 	stw     r0,60(r1)                              
ffc0460c:	7c dd 33 78 	mr      r29,r6                                 
ffc04610:	7c bc 2b 78 	mr      r28,r5                                 
ffc04614:	7c f9 3b 78 	mr      r25,r7                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *phys_dd = NULL;                                  
  rtems_disk_device *dd = NULL;                                       
ffc04618:	91 41 00 0c 	stw     r10,12(r1)                             
  dev_t phys,                                                         
  rtems_blkdev_bnum block_begin,                                      
  rtems_blkdev_bnum block_count,                                      
  const char *name                                                    
)                                                                     
{                                                                     
ffc0461c:	7d 1a 43 78 	mr      r26,r8                                 
ffc04620:	7d 38 4b 78 	mr      r24,r9                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *phys_dd = NULL;                                  
  rtems_disk_device *dd = NULL;                                       
  char *alloc_name = NULL;                                            
ffc04624:	91 41 00 08 	stw     r10,8(r1)                              
                                                                      
  sc = disk_lock();                                                   
ffc04628:	4b ff fb ed 	bl      ffc04214 <disk_lock>                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc0462c:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc04630:	40 a2 00 a4 	bne+    ffc046d4 <rtems_disk_create_log+0xe4>  <== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  phys_dd = get_disk_entry(phys, true);                               
ffc04634:	7f a4 eb 78 	mr      r4,r29                                 
ffc04638:	7f 83 e3 78 	mr      r3,r28                                 
ffc0463c:	38 a0 00 01 	li      r5,1                                   
ffc04640:	4b ff fa e5 	bl      ffc04124 <get_disk_entry>              
  if (phys_dd == NULL) {                                              
ffc04644:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc04648:	40 a2 00 10 	bne+    ffc04658 <rtems_disk_create_log+0x68>  
    disk_unlock();                                                    
ffc0464c:	4b ff fc 19 	bl      ffc04264 <disk_unlock>                 
                                                                      
    return RTEMS_INVALID_ID;                                          
ffc04650:	3b 60 00 04 	li      r27,4                                  
ffc04654:	48 00 00 80 	b       ffc046d4 <rtems_disk_create_log+0xe4>  
  }                                                                   
                                                                      
  sc = create_disk(dev, name, &dd, &alloc_name);                      
ffc04658:	7f c3 f3 78 	mr      r3,r30                                 
ffc0465c:	7f e4 fb 78 	mr      r4,r31                                 
ffc04660:	7f 05 c3 78 	mr      r5,r24                                 
ffc04664:	38 c1 00 0c 	addi    r6,r1,12                               
ffc04668:	38 e1 00 08 	addi    r7,r1,8                                
ffc0466c:	4b ff fc 41 	bl      ffc042ac <create_disk>                 
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04670:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc04674:	41 a2 00 08 	beq+    ffc0467c <rtems_disk_create_log+0x8c>  
ffc04678:	48 00 00 58 	b       ffc046d0 <rtems_disk_create_log+0xe0>  
    disk_unlock();                                                    
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  sc = rtems_disk_init_log(                                           
ffc0467c:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc04680:	7f a4 eb 78 	mr      r4,r29                                 
ffc04684:	7f 25 cb 78 	mr      r5,r25                                 
ffc04688:	7f 46 d3 78 	mr      r6,r26                                 
ffc0468c:	48 00 be 0d 	bl      ffc10498 <rtems_disk_init_log>         
    phys_dd,                                                          
    block_begin,                                                      
    block_count                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
ffc04690:	81 21 00 0c 	lwz     r9,12(r1)                              
  dd->name = alloc_name;                                              
ffc04694:	81 41 00 08 	lwz     r10,8(r1)                              
                                                                      
  ++phys_dd->uses;                                                    
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04698:	7c 7b 1b 79 	mr.     r27,r3                                 
    phys_dd,                                                          
    block_begin,                                                      
    block_count                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
ffc0469c:	93 c9 00 00 	stw     r30,0(r9)                              
  dd->name = alloc_name;                                              
ffc046a0:	91 49 00 10 	stw     r10,16(r9)                             
                                                                      
  ++phys_dd->uses;                                                    
ffc046a4:	81 5d 00 14 	lwz     r10,20(r29)                            
    phys_dd,                                                          
    block_begin,                                                      
    block_count                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
ffc046a8:	93 e9 00 04 	stw     r31,4(r9)                              
  dd->name = alloc_name;                                              
                                                                      
  ++phys_dd->uses;                                                    
ffc046ac:	39 4a 00 01 	addi    r10,r10,1                              
ffc046b0:	91 5d 00 14 	stw     r10,20(r29)                            
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc046b4:	41 a2 00 1c 	beq+    ffc046d0 <rtems_disk_create_log+0xe0>  
    dd->ioctl = null_handler;                                         
ffc046b8:	3d 40 ff c0 	lis     r10,-64                                
ffc046bc:	39 4a 41 a0 	addi    r10,r10,16800                          
ffc046c0:	91 49 00 38 	stw     r10,56(r9)                             
    rtems_disk_delete(dev);                                           
ffc046c4:	7f c3 f3 78 	mr      r3,r30                                 
ffc046c8:	7f e4 fb 78 	mr      r4,r31                                 
ffc046cc:	4b ff fd 95 	bl      ffc04460 <rtems_disk_delete>           
    disk_unlock();                                                    
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  disk_unlock();                                                      
ffc046d0:	4b ff fb 95 	bl      ffc04264 <disk_unlock>                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc046d4:	39 61 00 38 	addi    r11,r1,56                              
ffc046d8:	7f 63 db 78 	mr      r3,r27                                 
ffc046dc:	48 01 42 e4 	b       ffc189c0 <_restgpr_24_x>               
                                                                      

ffc046e0 <rtems_disk_create_phys>: rtems_blkdev_bnum block_count, rtems_block_device_ioctl handler, void *driver_data, const char *name ) {
ffc046e0:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc046e4:	7c 08 02 a6 	mflr    r0                                     
  rtems_disk_device *dd = NULL;                                       
ffc046e8:	39 40 00 00 	li      r10,0                                  
  rtems_blkdev_bnum block_count,                                      
  rtems_block_device_ioctl handler,                                   
  void *driver_data,                                                  
  const char *name                                                    
)                                                                     
{                                                                     
ffc046ec:	bf 01 00 18 	stmw    r24,24(r1)                             
  rtems_disk_device *dd = NULL;                                       
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  char *alloc_name = NULL;                                            
                                                                      
  if (handler == NULL) {                                              
ffc046f0:	7c fb 3b 79 	mr.     r27,r7                                 
    return RTEMS_INVALID_ADDRESS;                                     
ffc046f4:	3b a0 00 09 	li      r29,9                                  
  rtems_blkdev_bnum block_count,                                      
  rtems_block_device_ioctl handler,                                   
  void *driver_data,                                                  
  const char *name                                                    
)                                                                     
{                                                                     
ffc046f8:	90 01 00 3c 	stw     r0,60(r1)                              
  rtems_disk_device *dd = NULL;                                       
ffc046fc:	91 41 00 0c 	stw     r10,12(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  char *alloc_name = NULL;                                            
ffc04700:	91 41 00 08 	stw     r10,8(r1)                              
                                                                      
  if (handler == NULL) {                                              
ffc04704:	41 82 00 a0 	beq-    ffc047a4 <rtems_disk_create_phys+0xc4> 
ffc04708:	7c 9f 23 78 	mr      r31,r4                                 
ffc0470c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc04710:	7c b9 2b 78 	mr      r25,r5                                 
ffc04714:	7c da 33 78 	mr      r26,r6                                 
ffc04718:	7d 1c 43 78 	mr      r28,r8                                 
ffc0471c:	7d 38 4b 78 	mr      r24,r9                                 
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  sc = disk_lock();                                                   
ffc04720:	4b ff fa f5 	bl      ffc04214 <disk_lock>                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04724:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc04728:	40 a2 00 7c 	bne+    ffc047a4 <rtems_disk_create_phys+0xc4> <== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  sc = create_disk(dev, name, &dd, &alloc_name);                      
ffc0472c:	7f c3 f3 78 	mr      r3,r30                                 
ffc04730:	7f e4 fb 78 	mr      r4,r31                                 
ffc04734:	7f 05 c3 78 	mr      r5,r24                                 
ffc04738:	38 c1 00 0c 	addi    r6,r1,12                               
ffc0473c:	38 e1 00 08 	addi    r7,r1,8                                
ffc04740:	4b ff fb 6d 	bl      ffc042ac <create_disk>                 
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04744:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc04748:	41 a2 00 08 	beq+    ffc04750 <rtems_disk_create_phys+0x70> 
ffc0474c:	48 00 00 50 	b       ffc0479c <rtems_disk_create_phys+0xbc> 
    disk_unlock();                                                    
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  sc = rtems_disk_init_phys(                                          
ffc04750:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc04754:	7f 24 cb 78 	mr      r4,r25                                 
ffc04758:	7f 45 d3 78 	mr      r5,r26                                 
ffc0475c:	7f 66 db 78 	mr      r6,r27                                 
ffc04760:	7f 87 e3 78 	mr      r7,r28                                 
ffc04764:	48 00 bc 91 	bl      ffc103f4 <rtems_disk_init_phys>        
    block_count,                                                      
    handler,                                                          
    driver_data                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
ffc04768:	81 21 00 0c 	lwz     r9,12(r1)                              
  dd->name = alloc_name;                                              
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc0476c:	7c 7d 1b 79 	mr.     r29,r3                                 
    handler,                                                          
    driver_data                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
  dd->name = alloc_name;                                              
ffc04770:	81 41 00 08 	lwz     r10,8(r1)                              
    block_count,                                                      
    handler,                                                          
    driver_data                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
ffc04774:	93 c9 00 00 	stw     r30,0(r9)                              
ffc04778:	93 e9 00 04 	stw     r31,4(r9)                              
  dd->name = alloc_name;                                              
ffc0477c:	91 49 00 10 	stw     r10,16(r9)                             
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04780:	41 a2 00 1c 	beq+    ffc0479c <rtems_disk_create_phys+0xbc> 
    dd->ioctl = null_handler;                                         
ffc04784:	3d 40 ff c0 	lis     r10,-64                                
ffc04788:	39 4a 41 a0 	addi    r10,r10,16800                          
ffc0478c:	91 49 00 38 	stw     r10,56(r9)                             
    rtems_disk_delete(dev);                                           
ffc04790:	7f c3 f3 78 	mr      r3,r30                                 
ffc04794:	7f e4 fb 78 	mr      r4,r31                                 
ffc04798:	4b ff fc c9 	bl      ffc04460 <rtems_disk_delete>           
    disk_unlock();                                                    
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  disk_unlock();                                                      
ffc0479c:	4b ff fa c9 	bl      ffc04264 <disk_unlock>                 
ffc047a0:	48 00 00 04 	b       ffc047a4 <rtems_disk_create_phys+0xc4> 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc047a4:	39 61 00 38 	addi    r11,r1,56                              
ffc047a8:	7f a3 eb 78 	mr      r3,r29                                 
ffc047ac:	48 01 42 14 	b       ffc189c0 <_restgpr_24_x>               
                                                                      

ffc04460 <rtems_disk_delete>: } } rtems_status_code rtems_disk_delete(dev_t dev) {
ffc04460:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc04464:	7c 08 02 a6 	mflr    r0                                     
ffc04468:	be c1 00 08 	stmw    r22,8(r1)                              
ffc0446c:	7c 9f 23 78 	mr      r31,r4                                 
ffc04470:	7c 7e 1b 78 	mr      r30,r3                                 
ffc04474:	90 01 00 34 	stw     r0,52(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *dd = NULL;                                       
                                                                      
  sc = disk_lock();                                                   
ffc04478:	4b ff fd 9d 	bl      ffc04214 <disk_lock>                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc0447c:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc04480:	40 a2 01 64 	bne+    ffc045e4 <rtems_disk_delete+0x184>     <== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  dd = get_disk_entry(dev, true);                                     
ffc04484:	7f c3 f3 78 	mr      r3,r30                                 
ffc04488:	7f e4 fb 78 	mr      r4,r31                                 
ffc0448c:	38 a0 00 01 	li      r5,1                                   
ffc04490:	4b ff fc 95 	bl      ffc04124 <get_disk_entry>              
  if (dd == NULL) {                                                   
ffc04494:	7c 69 1b 79 	mr.     r9,r3                                  
ffc04498:	40 a2 00 10 	bne+    ffc044a8 <rtems_disk_delete+0x48>      <== ALWAYS TAKEN
    disk_unlock();                                                    
ffc0449c:	4b ff fd c9 	bl      ffc04264 <disk_unlock>                 <== NOT EXECUTED
                                                                      
    return RTEMS_INVALID_ID;                                          
ffc044a0:	3b 80 00 04 	li      r28,4                                  <== NOT EXECUTED
ffc044a4:	48 00 01 40 	b       ffc045e4 <rtems_disk_delete+0x184>     <== NOT EXECUTED
  }                                                                   
                                                                      
  dd->deleted = true;                                                 
ffc044a8:	39 40 00 01 	li      r10,1                                  
}                                                                     
                                                                      
static void                                                           
rtems_disk_cleanup(rtems_disk_device *disk_to_remove)                 
{                                                                     
  rtems_disk_device *const physical_disk = disk_to_remove->phys_dev;  
ffc044ac:	83 e9 00 08 	lwz     r31,8(r9)                              
    disk_unlock();                                                    
                                                                      
    return RTEMS_INVALID_ID;                                          
  }                                                                   
                                                                      
  dd->deleted = true;                                                 
ffc044b0:	99 49 00 40 	stb     r10,64(r9)                             
{                                                                     
  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) {                                       
ffc044b4:	89 5f 00 40 	lbz     r10,64(r31)                            
ffc044b8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc044bc:	41 9e 00 e8 	beq-    cr7,ffc045a4 <rtems_disk_delete+0x144> 
    dev_t dev = physical_disk->dev;                                   
ffc044c0:	83 1f 00 00 	lwz     r24,0(r31)                             
    unsigned deleted_count = 0;                                       
ffc044c4:	3b 60 00 00 	li      r27,0                                  
  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;                                   
ffc044c8:	82 ff 00 04 	lwz     r23,4(r31)                             
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
ffc044cc:	3b c0 00 00 	li      r30,0                                  
ffc044d0:	3f 40 00 00 	lis     r26,0                                  
          if (dd->uses == 0) {                                        
            ++deleted_count;                                          
            dtab->minor [minor] = NULL;                               
            free_disk_device(dd);                                     
          } else {                                                    
            dd->deleted = true;                                       
ffc044d4:	3a c0 00 01 	li      r22,1                                  
ffc044d8:	48 00 00 84 	b       ffc0455c <rtems_disk_delete+0xfc>      
  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;                
ffc044dc:	83 29 00 04 	lwz     r25,4(r9)                              
    }                                                                 
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_disk_delete(dev_t dev)                                          
ffc044e0:	57 ca 18 38 	rlwinm  r10,r30,3,0,28                         
    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) {                  
ffc044e4:	3b a0 00 00 	li      r29,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;                
ffc044e8:	7f 39 52 14 	add     r25,r25,r10                            
ffc044ec:	48 00 00 60 	b       ffc0454c <rtems_disk_delete+0xec>      
                                                                      
      for (minor = 0; minor < dtab->size; ++minor) {                  
        rtems_disk_device *dd = dtab->minor [minor];                  
ffc044f0:	81 19 00 00 	lwz     r8,0(r25)                              
    }                                                                 
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_disk_delete(dev_t dev)                                          
ffc044f4:	57 aa 10 3a 	rlwinm  r10,r29,2,0,29                         
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
      rtems_disk_device_table *dtab = disktab + major;                
                                                                      
      for (minor = 0; minor < dtab->size; ++minor) {                  
        rtems_disk_device *dd = dtab->minor [minor];                  
ffc044f8:	7c 68 50 2e 	lwzx    r3,r8,r10                              
                                                                      
        if (dd != NULL && dd->phys_dev->dev == dev && dd != physical_disk) {
ffc044fc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04500:	41 9e 00 48 	beq-    cr7,ffc04548 <rtems_disk_delete+0xe8>  
ffc04504:	80 e3 00 08 	lwz     r7,8(r3)                               
ffc04508:	80 c7 00 00 	lwz     r6,0(r7)                               
ffc0450c:	7f 86 c0 00 	cmpw    cr7,r6,r24                             
ffc04510:	40 be 00 38 	bne+    cr7,ffc04548 <rtems_disk_delete+0xe8>  <== NEVER TAKEN
ffc04514:	80 e7 00 04 	lwz     r7,4(r7)                               
ffc04518:	7f 87 b8 00 	cmpw    cr7,r7,r23                             
ffc0451c:	40 be 00 2c 	bne+    cr7,ffc04548 <rtems_disk_delete+0xe8>  <== NEVER TAKEN
ffc04520:	7f 83 f8 00 	cmpw    cr7,r3,r31                             
ffc04524:	41 9e 00 24 	beq-    cr7,ffc04548 <rtems_disk_delete+0xe8>  
          if (dd->uses == 0) {                                        
ffc04528:	80 e3 00 14 	lwz     r7,20(r3)                              
ffc0452c:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc04530:	40 be 00 14 	bne+    cr7,ffc04544 <rtems_disk_delete+0xe4>  
            ++deleted_count;                                          
            dtab->minor [minor] = NULL;                               
ffc04534:	7c e8 51 2e 	stwx    r7,r8,r10                              
      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;                                          
ffc04538:	3b 7b 00 01 	addi    r27,r27,1                              
            dtab->minor [minor] = NULL;                               
            free_disk_device(dd);                                     
ffc0453c:	4b ff fc 6d 	bl      ffc041a8 <free_disk_device>            
ffc04540:	48 00 00 08 	b       ffc04548 <rtems_disk_delete+0xe8>      
          } else {                                                    
            dd->deleted = true;                                       
ffc04544:	9a c3 00 40 	stb     r22,64(r3)                             
    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) {                  
ffc04548:	3b bd 00 01 	addi    r29,r29,1                              
ffc0454c:	81 39 00 04 	lwz     r9,4(r25)                              
ffc04550:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc04554:	41 9c ff 9c 	blt+    cr7,ffc044f0 <rtems_disk_delete+0x90>  
                                                                      
  if (physical_disk->deleted) {                                       
    dev_t dev = physical_disk->dev;                                   
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
ffc04558:	3b de 00 01 	addi    r30,r30,1                              
ffc0455c:	81 5a 28 48 	lwz     r10,10312(r26)                         
ffc04560:	39 3a 28 48 	addi    r9,r26,10312                           
ffc04564:	7f 9e 50 40 	cmplw   cr7,r30,r10                            
ffc04568:	41 9c ff 74 	blt+    cr7,ffc044dc <rtems_disk_delete+0x7c>  
          }                                                           
        }                                                             
      }                                                               
    }                                                                 
                                                                      
    physical_disk->uses -= deleted_count;                             
ffc0456c:	81 5f 00 14 	lwz     r10,20(r31)                            
ffc04570:	7f 7b 50 50 	subf    r27,r27,r10                            
    if (physical_disk->uses == 0) {                                   
ffc04574:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
          }                                                           
        }                                                             
      }                                                               
    }                                                                 
                                                                      
    physical_disk->uses -= deleted_count;                             
ffc04578:	93 7f 00 14 	stw     r27,20(r31)                            
    if (physical_disk->uses == 0) {                                   
ffc0457c:	40 be 00 64 	bne+    cr7,ffc045e0 <rtems_disk_delete+0x180> 
      rtems_filesystem_split_dev_t(physical_disk->dev, major, minor); 
ffc04580:	81 1f 00 00 	lwz     r8,0(r31)                              
      disktab [major].minor [minor] = NULL;                           
      free_disk_device(physical_disk);                                
ffc04584:	7f e3 fb 78 	mr      r3,r31                                 
    }                                                                 
                                                                      
    physical_disk->uses -= deleted_count;                             
    if (physical_disk->uses == 0) {                                   
      rtems_filesystem_split_dev_t(physical_disk->dev, major, minor); 
      disktab [major].minor [minor] = NULL;                           
ffc04588:	81 29 00 04 	lwz     r9,4(r9)                               
      }                                                               
    }                                                                 
                                                                      
    physical_disk->uses -= deleted_count;                             
    if (physical_disk->uses == 0) {                                   
      rtems_filesystem_split_dev_t(physical_disk->dev, major, minor); 
ffc0458c:	81 5f 00 04 	lwz     r10,4(r31)                             
      disktab [major].minor [minor] = NULL;                           
ffc04590:	55 08 18 38 	rlwinm  r8,r8,3,0,28                           
ffc04594:	7d 29 40 2e 	lwzx    r9,r9,r8                               
ffc04598:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
ffc0459c:	7f 69 51 2e 	stwx    r27,r9,r10                             
ffc045a0:	48 00 00 3c 	b       ffc045dc <rtems_disk_delete+0x17c>     
      free_disk_device(physical_disk);                                
    }                                                                 
  } else {                                                            
    if (disk_to_remove->uses == 0) {                                  
ffc045a4:	81 49 00 14 	lwz     r10,20(r9)                             
ffc045a8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc045ac:	40 be 00 34 	bne+    cr7,ffc045e0 <rtems_disk_delete+0x180> <== NEVER TAKEN
      --physical_disk->uses;                                          
ffc045b0:	81 5f 00 14 	lwz     r10,20(r31)                            
      rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
      disktab [major].minor [minor] = NULL;                           
ffc045b4:	3d 00 00 00 	lis     r8,0                                   
ffc045b8:	81 08 28 4c 	lwz     r8,10316(r8)                           
      disktab [major].minor [minor] = NULL;                           
      free_disk_device(physical_disk);                                
    }                                                                 
  } else {                                                            
    if (disk_to_remove->uses == 0) {                                  
      --physical_disk->uses;                                          
ffc045bc:	39 4a ff ff 	addi    r10,r10,-1                             
ffc045c0:	91 5f 00 14 	stw     r10,20(r31)                            
      rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
ffc045c4:	81 49 00 00 	lwz     r10,0(r9)                              
ffc045c8:	81 29 00 04 	lwz     r9,4(r9)                               
      disktab [major].minor [minor] = NULL;                           
ffc045cc:	55 4a 18 38 	rlwinm  r10,r10,3,0,28                         
ffc045d0:	7d 48 50 2e 	lwzx    r10,r8,r10                             
ffc045d4:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc045d8:	7f 8a 49 2e 	stwx    r28,r10,r9                             
      free_disk_device(disk_to_remove);                               
ffc045dc:	4b ff fb cd 	bl      ffc041a8 <free_disk_device>            
  }                                                                   
                                                                      
  dd->deleted = true;                                                 
  rtems_disk_cleanup(dd);                                             
                                                                      
  disk_unlock();                                                      
ffc045e0:	4b ff fc 85 	bl      ffc04264 <disk_unlock>                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc045e4:	39 61 00 30 	addi    r11,r1,48                              
ffc045e8:	7f 83 e3 78 	mr      r3,r28                                 
ffc045ec:	48 01 43 cc 	b       ffc189b8 <_restgpr_22_x>               
                                                                      

ffc04994 <rtems_disk_io_initialize>: rtems_status_code rtems_disk_io_initialize(void) {
ffc04994:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc04998:	7c 08 02 a6 	mflr    r0                                     
ffc0499c:	bf 81 00 08 	stmw    r28,8(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number size = DISKTAB_INITIAL_SIZE;              
                                                                      
  if (disktab_size > 0) {                                             
ffc049a0:	3f a0 00 00 	lis     r29,0                                  
ffc049a4:	3b fd 28 48 	addi    r31,r29,10312                          
ffc049a8:	83 9d 28 48 	lwz     r28,10312(r29)                         
    return RTEMS_SUCCESSFUL;                                          
ffc049ac:	3b c0 00 00 	li      r30,0                                  
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_disk_io_initialize(void)                                        
{                                                                     
ffc049b0:	90 01 00 1c 	stw     r0,28(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number size = DISKTAB_INITIAL_SIZE;              
                                                                      
  if (disktab_size > 0) {                                             
ffc049b4:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc049b8:	40 be 00 84 	bne+    cr7,ffc04a3c <rtems_disk_io_initialize+0xa8>
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  disktab = calloc(size, sizeof(rtems_disk_device_table));            
ffc049bc:	38 60 00 08 	li      r3,8                                   
ffc049c0:	38 80 00 08 	li      r4,8                                   
ffc049c4:	48 00 08 f1 	bl      ffc052b4 <calloc>                      
  if (disktab == NULL) {                                              
    return RTEMS_NO_MEMORY;                                           
ffc049c8:	3b c0 00 1a 	li      r30,26                                 
  if (disktab_size > 0) {                                             
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  disktab = calloc(size, sizeof(rtems_disk_device_table));            
  if (disktab == NULL) {                                              
ffc049cc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
                                                                      
  if (disktab_size > 0) {                                             
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  disktab = calloc(size, sizeof(rtems_disk_device_table));            
ffc049d0:	90 7f 00 04 	stw     r3,4(r31)                              
  if (disktab == NULL) {                                              
ffc049d4:	41 9e 00 68 	beq-    cr7,ffc04a3c <rtems_disk_io_initialize+0xa8><== NEVER TAKEN
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  diskdevs_protected = false;                                         
  sc = rtems_semaphore_create(                                        
ffc049d8:	3c 60 44 44 	lis     r3,17476                               
  disktab = calloc(size, sizeof(rtems_disk_device_table));            
  if (disktab == NULL) {                                              
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  diskdevs_protected = false;                                         
ffc049dc:	9b 9f 00 0c 	stb     r28,12(r31)                            
  sc = rtems_semaphore_create(                                        
ffc049e0:	60 63 45 56 	ori     r3,r3,17750                            
ffc049e4:	38 80 00 01 	li      r4,1                                   
ffc049e8:	38 a0 00 10 	li      r5,16                                  
ffc049ec:	38 c0 00 00 	li      r6,0                                   
ffc049f0:	38 ff 00 08 	addi    r7,r31,8                               
ffc049f4:	48 00 4d 2d 	bl      ffc09720 <rtems_semaphore_create>      
    RTEMS_FIFO | RTEMS_BINARY_SEMAPHORE | RTEMS_NO_INHERIT_PRIORITY   
      | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL,                      
    0,                                                                
    &diskdevs_mutex                                                   
  );                                                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc049f8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc049fc:	41 9e 00 10 	beq-    cr7,ffc04a0c <rtems_disk_io_initialize+0x78><== ALWAYS TAKEN
    free(disktab);                                                    
ffc04a00:	80 7f 00 04 	lwz     r3,4(r31)                              <== NOT EXECUTED
ffc04a04:	48 00 09 95 	bl      ffc05398 <free>                        <== NOT EXECUTED
                                                                      
    return RTEMS_NO_MEMORY;                                           
ffc04a08:	48 00 00 34 	b       ffc04a3c <rtems_disk_io_initialize+0xa8><== NOT EXECUTED
  }                                                                   
                                                                      
  sc = rtems_bdbuf_init();                                            
ffc04a0c:	48 00 a7 95 	bl      ffc0f1a0 <rtems_bdbuf_init>            
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04a10:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04a14:	41 9e 00 1c 	beq-    cr7,ffc04a30 <rtems_disk_io_initialize+0x9c><== ALWAYS TAKEN
    rtems_semaphore_delete(diskdevs_mutex);                           
ffc04a18:	80 7f 00 08 	lwz     r3,8(r31)                              <== NOT EXECUTED
    free(disktab);                                                    
                                                                      
    return RTEMS_UNSATISFIED;                                         
ffc04a1c:	3b c0 00 0d 	li      r30,13                                 <== NOT EXECUTED
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  sc = rtems_bdbuf_init();                                            
  if (sc != RTEMS_SUCCESSFUL) {                                       
    rtems_semaphore_delete(diskdevs_mutex);                           
ffc04a20:	48 00 4e c9 	bl      ffc098e8 <rtems_semaphore_delete>      <== NOT EXECUTED
    free(disktab);                                                    
ffc04a24:	80 7f 00 04 	lwz     r3,4(r31)                              <== NOT EXECUTED
ffc04a28:	48 00 09 71 	bl      ffc05398 <free>                        <== NOT EXECUTED
                                                                      
    return RTEMS_UNSATISFIED;                                         
ffc04a2c:	48 00 00 10 	b       ffc04a3c <rtems_disk_io_initialize+0xa8><== NOT EXECUTED
  }                                                                   
                                                                      
  disktab_size = size;                                                
ffc04a30:	39 20 00 08 	li      r9,8                                   
ffc04a34:	91 3d 28 48 	stw     r9,10312(r29)                          
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc04a38:	3b c0 00 00 	li      r30,0                                  
}                                                                     
ffc04a3c:	39 61 00 18 	addi    r11,r1,24                              
ffc04a40:	7f c3 f3 78 	mr      r3,r30                                 
ffc04a44:	48 01 3f 8c 	b       ffc189d0 <_restgpr_28_x>               
                                                                      

ffc048a0 <rtems_disk_next>: 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) {
ffc048a0:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_disk_device *                                                   
rtems_disk_next(dev_t dev)                                            
{                                                                     
ffc048a4:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc048a8:	7c 08 02 a6 	mflr    r0                                     
ffc048ac:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc048b0:	90 01 00 1c 	stw     r0,28(r1)                              
  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) {                                            
ffc048b4:	40 be 00 0c 	bne+    cr7,ffc048c0 <rtems_disk_next+0x20>    
ffc048b8:	2f 84 ff ff 	cmpwi   cr7,r4,-1                              
ffc048bc:	41 9e 00 24 	beq-    cr7,ffc048e0 <rtems_disk_next+0x40>    <== ALWAYS TAKEN
    rtems_filesystem_split_dev_t(dev, major, minor);                  
                                                                      
    /* If minor wraps around */                                       
    if ((minor + 1) < minor) {                                        
ffc048c0:	3b c4 00 01 	addi    r30,r4,1                               
ffc048c4:	7f 9e 20 40 	cmplw   cr7,r30,r4                             
ffc048c8:	40 9c 00 24 	bge-    cr7,ffc048ec <rtems_disk_next+0x4c>    <== ALWAYS TAKEN
      /* If major wraps around */                                     
      if ((major + 1) < major) {                                      
ffc048cc:	3b e3 00 01 	addi    r31,r3,1                               <== NOT EXECUTED
ffc048d0:	7f 9f 18 40 	cmplw   cr7,r31,r3                             <== NOT EXECUTED
        return NULL;                                                  
      }                                                               
      ++major;                                                        
      minor = 0;                                                      
ffc048d4:	3b c0 00 00 	li      r30,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) {                                      
ffc048d8:	40 bc 00 18 	bge+    cr7,ffc048f0 <rtems_disk_next+0x50>    <== NOT EXECUTED
ffc048dc:	48 00 00 38 	b       ffc04914 <rtems_disk_next+0x74>        <== 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;                                
ffc048e0:	3b c0 00 00 	li      r30,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;                                
ffc048e4:	3b e0 00 00 	li      r31,0                                  
ffc048e8:	48 00 00 08 	b       ffc048f0 <rtems_disk_next+0x50>        
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.device = device;                                               
  return temp.__overlay.major;                                        
ffc048ec:	7c 7f 1b 78 	mr      r31,r3                                 
    } else {                                                          
      ++minor;                                                        
    }                                                                 
  }                                                                   
                                                                      
  sc = disk_lock();                                                   
ffc048f0:	4b ff f9 25 	bl      ffc04214 <disk_lock>                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc048f4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc048f8:	40 9e 00 1c 	bne-    cr7,ffc04914 <rtems_disk_next+0x74>    <== NEVER TAKEN
    return NULL;                                                      
  }                                                                   
                                                                      
  if (major >= disktab_size) {                                        
ffc048fc:	3d 20 00 00 	lis     r9,0                                   
ffc04900:	81 49 28 48 	lwz     r10,10312(r9)                          
ffc04904:	39 09 28 48 	addi    r8,r9,10312                            
ffc04908:	7f 9f 50 40 	cmplw   cr7,r31,r10                            
ffc0490c:	41 bc 00 10 	blt+    cr7,ffc0491c <rtems_disk_next+0x7c>    <== ALWAYS TAKEN
    disk_unlock();                                                    
ffc04910:	4b ff f9 55 	bl      ffc04264 <disk_unlock>                 
                                                                      
    return NULL;                                                      
ffc04914:	38 60 00 00 	li      r3,0                                   
ffc04918:	48 00 00 74 	b       ffc0498c <rtems_disk_next+0xec>        
  }                                                                   
                                                                      
  dtab = disktab + major;                                             
ffc0491c:	81 08 00 04 	lwz     r8,4(r8)                               
ffc04920:	57 fd 18 38 	rlwinm  r29,r31,3,0,28                         
ffc04924:	7f a8 ea 14 	add     r29,r8,r29                             
  while (true) {                                                      
    if (dtab->minor == NULL || minor >= dtab->size) {                 
ffc04928:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc0492c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04930:	41 9e 00 10 	beq-    cr7,ffc04940 <rtems_disk_next+0xa0>    
ffc04934:	80 fd 00 04 	lwz     r7,4(r29)                              
ffc04938:	7f 9e 38 40 	cmplw   cr7,r30,r7                             
ffc0493c:	41 9c 00 20 	blt-    cr7,ffc0495c <rtems_disk_next+0xbc>    
       minor = 0;                                                     
       ++major;                                                       
ffc04940:	3b ff 00 01 	addi    r31,r31,1                              
       if (major >= disktab_size) {                                   
ffc04944:	7f 9f 50 40 	cmplw   cr7,r31,r10                            
ffc04948:	40 bc ff c8 	bge-    cr7,ffc04910 <rtems_disk_next+0x70>    
         disk_unlock();                                               
                                                                      
         return NULL;                                                 
       }                                                              
       dtab = disktab + major;                                        
ffc0494c:	57 fd 18 38 	rlwinm  r29,r31,3,0,28                         
ffc04950:	7f a8 ea 14 	add     r29,r8,r29                             
  }                                                                   
                                                                      
  dtab = disktab + major;                                             
  while (true) {                                                      
    if (dtab->minor == NULL || minor >= dtab->size) {                 
       minor = 0;                                                     
ffc04954:	3b c0 00 00 	li      r30,0                                  
       if (major >= disktab_size) {                                   
         disk_unlock();                                               
                                                                      
         return NULL;                                                 
       }                                                              
       dtab = disktab + major;                                        
ffc04958:	4b ff ff d0 	b       ffc04928 <rtems_disk_next+0x88>        
    } else if (dtab->minor [minor] == NULL) {                         
ffc0495c:	57 dc 10 3a 	rlwinm  r28,r30,2,0,29                         
ffc04960:	7d 29 e0 2e 	lwzx    r9,r9,r28                              
ffc04964:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04968:	40 9e 00 0c 	bne-    cr7,ffc04974 <rtems_disk_next+0xd4>    
      ++minor;                                                        
ffc0496c:	3b de 00 01 	addi    r30,r30,1                              
ffc04970:	4b ff ff b8 	b       ffc04928 <rtems_disk_next+0x88>        
    } else {                                                          
      ++dtab->minor [minor]->uses;                                    
ffc04974:	81 49 00 14 	lwz     r10,20(r9)                             
ffc04978:	39 4a 00 01 	addi    r10,r10,1                              
ffc0497c:	91 49 00 14 	stw     r10,20(r9)                             
      disk_unlock();                                                  
ffc04980:	4b ff f8 e5 	bl      ffc04264 <disk_unlock>                 
                                                                      
      return dtab->minor [minor];                                     
ffc04984:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc04988:	7c 69 e0 2e 	lwzx    r3,r9,r28                              
    }                                                                 
  }                                                                   
}                                                                     
ffc0498c:	39 61 00 18 	addi    r11,r1,24                              
ffc04990:	48 01 40 40 	b       ffc189d0 <_restgpr_28_x>               
                                                                      

ffc047b0 <rtems_disk_obtain>: return RTEMS_SUCCESSFUL; } rtems_disk_device * rtems_disk_obtain(dev_t dev) {
ffc047b0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc047b4:	7c 08 02 a6 	mflr    r0                                     
ffc047b8:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc047bc:	90 01 00 1c 	stw     r0,28(r1)                              
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc047c0:	7f 80 00 a6 	mfmsr   r28                                    
ffc047c4:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc047c8:	7f 89 48 78 	andc    r9,r28,r9                              
ffc047cc:	7d 20 01 24 	mtmsr   r9                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *dd = NULL;                                       
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable(level);                                     
  if (!diskdevs_protected) {                                          
ffc047d0:	3d 20 00 00 	lis     r9,0                                   
ffc047d4:	89 29 28 54 	lbz     r9,10324(r9)                           
ffc047d8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc047dc:	40 be 00 18 	bne+    cr7,ffc047f4 <rtems_disk_obtain+0x44>  <== NEVER TAKEN
    /* Frequent and quickest case */                                  
    dd = get_disk_entry(dev, false);                                  
ffc047e0:	38 a0 00 00 	li      r5,0                                   
ffc047e4:	4b ff f9 41 	bl      ffc04124 <get_disk_entry>              
ffc047e8:	7c 7d 1b 78 	mr      r29,r3                                 
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc047ec:	7f 80 01 24 	mtmsr   r28                                    
ffc047f0:	48 00 00 38 	b       ffc04828 <rtems_disk_obtain+0x78>      
ffc047f4:	7c 9f 23 78 	mr      r31,r4                                 <== NOT EXECUTED
ffc047f8:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
ffc047fc:	7f 80 01 24 	mtmsr   r28                                    <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
  } else {                                                            
    rtems_interrupt_enable(level);                                    
                                                                      
    sc = disk_lock();                                                 
ffc04800:	4b ff fa 15 	bl      ffc04214 <disk_lock>                   <== NOT EXECUTED
                                                                      
rtems_disk_device *                                                   
rtems_disk_obtain(dev_t dev)                                          
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *dd = NULL;                                       
ffc04804:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
  } else {                                                            
    rtems_interrupt_enable(level);                                    
                                                                      
    sc = disk_lock();                                                 
    if (sc == RTEMS_SUCCESSFUL) {                                     
ffc04808:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc0480c:	40 9e 00 1c 	bne-    cr7,ffc04828 <rtems_disk_obtain+0x78>  <== NOT EXECUTED
      dd = get_disk_entry(dev, false);                                
ffc04810:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc04814:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc04818:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc0481c:	4b ff f9 09 	bl      ffc04124 <get_disk_entry>              <== NOT EXECUTED
ffc04820:	7c 7d 1b 78 	mr      r29,r3                                 <== NOT EXECUTED
      disk_unlock();                                                  
ffc04824:	4b ff fa 41 	bl      ffc04264 <disk_unlock>                 <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  return dd;                                                          
}                                                                     
ffc04828:	39 61 00 18 	addi    r11,r1,24                              
ffc0482c:	7f a3 eb 78 	mr      r3,r29                                 
ffc04830:	48 01 41 a0 	b       ffc189d0 <_restgpr_28_x>               
                                                                      

ffc043f0 <rtems_error>: int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) {
ffc043f0:	7c 2b 0b 78 	mr      r11,r1                                 
ffc043f4:	7c 08 02 a6 	mflr    r0                                     
ffc043f8:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc043fc:	48 01 5c 4d 	bl      ffc1a048 <_savegpr_31>                 
ffc04400:	90 01 00 7c 	stw     r0,124(r1)                             
ffc04404:	7c 7f 1b 78 	mr      r31,r3                                 
ffc04408:	90 a1 00 18 	stw     r5,24(r1)                              
ffc0440c:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc04410:	90 e1 00 20 	stw     r7,32(r1)                              
ffc04414:	91 01 00 24 	stw     r8,36(r1)                              
ffc04418:	91 21 00 28 	stw     r9,40(r1)                              
ffc0441c:	91 41 00 2c 	stw     r10,44(r1)                             
ffc04420:	40 86 00 24 	bne-    cr1,ffc04444 <rtems_error+0x54>        <== ALWAYS TAKEN
ffc04424:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc04428:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc0442c:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc04430:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc04434:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc04438:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc0443c:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc04440:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  va_list arglist;                                                    
  int chars_written;                                                  
                                                                      
  va_start(arglist, printf_format);                                   
ffc04444:	39 20 00 02 	li      r9,2                                   
ffc04448:	99 21 00 08 	stb     r9,8(r1)                               
ffc0444c:	39 20 00 00 	li      r9,0                                   
  chars_written = rtems_verror(error_flag, printf_format, arglist);   
ffc04450:	7f e3 fb 78 	mr      r3,r31                                 
)                                                                     
{                                                                     
  va_list arglist;                                                    
  int chars_written;                                                  
                                                                      
  va_start(arglist, printf_format);                                   
ffc04454:	99 21 00 09 	stb     r9,9(r1)                               
ffc04458:	39 21 00 80 	addi    r9,r1,128                              
  chars_written = rtems_verror(error_flag, printf_format, arglist);   
ffc0445c:	38 a1 00 08 	addi    r5,r1,8                                
)                                                                     
{                                                                     
  va_list arglist;                                                    
  int chars_written;                                                  
                                                                      
  va_start(arglist, printf_format);                                   
ffc04460:	91 21 00 0c 	stw     r9,12(r1)                              
ffc04464:	39 21 00 10 	addi    r9,r1,16                               
ffc04468:	91 21 00 10 	stw     r9,16(r1)                              
  chars_written = rtems_verror(error_flag, printf_format, arglist);   
ffc0446c:	4b ff fe 01 	bl      ffc0426c <rtems_verror>                
  va_end(arglist);                                                    
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
ffc04470:	77 e9 20 00 	andis.  r9,r31,8192                            
ffc04474:	41 a2 00 24 	beq+    ffc04498 <rtems_error+0xa8>            
    rtems_error(0, "fatal error, exiting");                           
ffc04478:	3c 80 ff c2 	lis     r4,-62                                 
ffc0447c:	38 84 bb 73 	addi    r4,r4,-17549                           
ffc04480:	38 60 00 00 	li      r3,0                                   
ffc04484:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04488:	4b ff ff 69 	bl      ffc043f0 <rtems_error>                 
    _exit(errno);                                                     
ffc0448c:	48 00 b3 ad 	bl      ffc0f838 <__errno>                     
ffc04490:	80 63 00 00 	lwz     r3,0(r3)                               
ffc04494:	48 00 0a 19 	bl      ffc04eac <_exit>                       
  }                                                                   
  if (error_flag & RTEMS_ERROR_ABORT) {                               
ffc04498:	77 e9 10 00 	andis.  r9,r31,4096                            
ffc0449c:	41 a2 00 1c 	beq+    ffc044b8 <rtems_error+0xc8>            
    rtems_error(0, "fatal error, aborting");                          
ffc044a0:	3c 80 ff c2 	lis     r4,-62                                 
ffc044a4:	38 84 bb 88 	addi    r4,r4,-17528                           
ffc044a8:	38 60 00 00 	li      r3,0                                   
ffc044ac:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc044b0:	4b ff ff 41 	bl      ffc043f0 <rtems_error>                 
    abort();                                                          
ffc044b4:	48 00 b3 69 	bl      ffc0f81c <abort>                       
  }                                                                   
                                                                      
  return chars_written;                                               
}                                                                     
ffc044b8:	39 61 00 78 	addi    r11,r1,120                             
ffc044bc:	4b ff c1 08 	b       ffc005c4 <_restgpr_31_x>               
                                                                      

ffc11824 <rtems_event_system_receive>: rtems_event_set *event_out ) { rtems_status_code sc; if ( event_out != NULL ) {
ffc11824:	7c c9 33 79 	mr.     r9,r6                                  
  rtems_event_set  event_in,                                          
  rtems_option     option_set,                                        
  rtems_interval   ticks,                                             
  rtems_event_set *event_out                                          
)                                                                     
{                                                                     
ffc11828:	7c 08 02 a6 	mflr    r0                                     
ffc1182c:	7c 2b 0b 78 	mr      r11,r1                                 
ffc11830:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc11834:	90 01 00 14 	stw     r0,20(r1)                              
ffc11838:	48 00 71 59 	bl      ffc18990 <_savegpr_31>                 
  rtems_status_code sc;                                               
                                                                      
  if ( event_out != NULL ) {                                          
ffc1183c:	41 82 00 5c 	beq-    ffc11898 <rtems_event_system_receive+0x74><== NEVER TAKEN
    Thread_Control    *executing = _Thread_Executing;                 
    RTEMS_API_Control *api = executing->API_Extensions[ THREAD_API_RTEMS ];
    Event_Control     *event = &api->System_event;                    
                                                                      
    if ( !_Event_sets_Is_empty( event_in ) ) {                        
ffc11840:	2f 83 00 00 	cmpwi   cr7,r3,0                               
)                                                                     
{                                                                     
  rtems_status_code sc;                                               
                                                                      
  if ( event_out != NULL ) {                                          
    Thread_Control    *executing = _Thread_Executing;                 
ffc11844:	3d 00 00 00 	lis     r8,0                                   
ffc11848:	83 e8 2e 50 	lwz     r31,11856(r8)                          
    RTEMS_API_Control *api = executing->API_Extensions[ THREAD_API_RTEMS ];
ffc1184c:	81 1f 01 48 	lwz     r8,328(r31)                            
    Event_Control     *event = &api->System_event;                    
                                                                      
    if ( !_Event_sets_Is_empty( event_in ) ) {                        
ffc11850:	41 be 00 38 	beq+    cr7,ffc11888 <rtems_event_system_receive+0x64><== 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;                  
ffc11854:	3d 20 00 00 	lis     r9,0                                   
ffc11858:	81 49 27 bc 	lwz     r10,10172(r9)                          
                                                                      
    ++level;                                                          
ffc1185c:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc11860:	91 49 27 bc 	stw     r10,10172(r9)                          
      _Thread_Disable_dispatch();                                     
      _Event_Seize(                                                   
ffc11864:	3d 20 00 00 	lis     r9,0                                   
ffc11868:	7f e7 fb 78 	mr      r7,r31                                 
ffc1186c:	39 08 00 04 	addi    r8,r8,4                                
ffc11870:	39 29 27 ec 	addi    r9,r9,10220                            
ffc11874:	3d 40 00 04 	lis     r10,4                                  
ffc11878:	4b ff 7b 51 	bl      ffc093c8 <_Event_Seize>                
        executing,                                                    
        event,                                                        
        &_System_event_Sync_state,                                    
        STATES_WAITING_FOR_SYSTEM_EVENT                               
      );                                                              
      _Thread_Enable_dispatch();                                      
ffc1187c:	4b ff aa dd 	bl      ffc0c358 <_Thread_Enable_dispatch>     
                                                                      
      sc = executing->Wait.return_code;                               
ffc11880:	80 7f 00 34 	lwz     r3,52(r31)                             
ffc11884:	48 00 00 18 	b       ffc1189c <rtems_event_system_receive+0x78>
    } else {                                                          
      *event_out = event->pending_events;                             
ffc11888:	81 48 00 04 	lwz     r10,4(r8)                              <== NOT EXECUTED
      sc = RTEMS_SUCCESSFUL;                                          
ffc1188c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
      );                                                              
      _Thread_Enable_dispatch();                                      
                                                                      
      sc = executing->Wait.return_code;                               
    } else {                                                          
      *event_out = event->pending_events;                             
ffc11890:	91 49 00 00 	stw     r10,0(r9)                              <== NOT EXECUTED
ffc11894:	48 00 00 08 	b       ffc1189c <rtems_event_system_receive+0x78><== NOT EXECUTED
      sc = RTEMS_SUCCESSFUL;                                          
    }                                                                 
  } else {                                                            
    sc = RTEMS_INVALID_ADDRESS;                                       
ffc11898:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc1189c:	39 61 00 10 	addi    r11,r1,16                              
ffc118a0:	48 00 71 3c 	b       ffc189dc <_restgpr_31_x>               
                                                                      

ffc08a88 <rtems_event_system_send>: rtems_status_code rtems_event_system_send( rtems_id id, rtems_event_set event_in ) {
ffc08a88:	7c 2b 0b 78 	mr      r11,r1                                 
ffc08a8c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc08a90:	7c 08 02 a6 	mflr    r0                                     
ffc08a94:	48 01 15 b5 	bl      ffc1a048 <_savegpr_31>                 
ffc08a98:	7c 9f 23 78 	mr      r31,r4                                 
  rtems_status_code  sc;                                              
  Thread_Control    *thread;                                          
  Objects_Locations  location;                                        
  RTEMS_API_Control *api;                                             
                                                                      
  thread = _Thread_Get( id, &location );                              
ffc08a9c:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
rtems_status_code rtems_event_system_send(                            
  rtems_id        id,                                                 
  rtems_event_set event_in                                            
)                                                                     
{                                                                     
ffc08aa0:	90 01 00 24 	stw     r0,36(r1)                              
  rtems_status_code  sc;                                              
  Thread_Control    *thread;                                          
  Objects_Locations  location;                                        
  RTEMS_API_Control *api;                                             
                                                                      
  thread = _Thread_Get( id, &location );                              
ffc08aa4:	48 00 27 0d 	bl      ffc0b1b0 <_Thread_Get>                 
  switch ( location ) {                                               
ffc08aa8:	81 21 00 08 	lwz     r9,8(r1)                               
ffc08aac:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08ab0:	40 9e 00 2c 	bne-    cr7,ffc08adc <rtems_event_system_send+0x54><== NEVER TAKEN
    case OBJECTS_LOCAL:                                               
      api = thread->API_Extensions[ THREAD_API_RTEMS ];               
      _Event_Surrender(                                               
ffc08ab4:	80 a3 01 48 	lwz     r5,328(r3)                             
ffc08ab8:	3c c0 00 00 	lis     r6,0                                   
ffc08abc:	7f e4 fb 78 	mr      r4,r31                                 
ffc08ac0:	38 a5 00 04 	addi    r5,r5,4                                
ffc08ac4:	38 c6 28 54 	addi    r6,r6,10324                            
ffc08ac8:	3c e0 00 04 	lis     r7,4                                   
ffc08acc:	4b ff f9 89 	bl      ffc08454 <_Event_Surrender>            
        event_in,                                                     
        &api->System_event,                                           
        &_System_event_Sync_state,                                    
        STATES_WAITING_FOR_SYSTEM_EVENT                               
      );                                                              
      _Thread_Enable_dispatch();                                      
ffc08ad0:	48 00 26 c5 	bl      ffc0b194 <_Thread_Enable_dispatch>     
      sc = RTEMS_SUCCESSFUL;                                          
ffc08ad4:	38 60 00 00 	li      r3,0                                   
      break;                                                          
ffc08ad8:	48 00 00 08 	b       ffc08ae0 <rtems_event_system_send+0x58>
    case OBJECTS_REMOTE:                                              
      sc = RTEMS_ILLEGAL_ON_REMOTE_OBJECT;                            
      break;                                                          
#endif                                                                
    default:                                                          
      sc = RTEMS_INVALID_ID;                                          
ffc08adc:	38 60 00 04 	li      r3,4                                   <== NOT EXECUTED
      break;                                                          
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc08ae0:	39 61 00 20 	addi    r11,r1,32                              
ffc08ae4:	4b ff 7a e0 	b       ffc005c4 <_restgpr_31_x>               
                                                                      

ffc08130 <rtems_fdisk_abort.constprop.9>: * * @param format The format string. See printf for details. * @param ... The arguments for the format text. */ static void rtems_fdisk_abort (const char *format, ...)
ffc08130:	7c 2b 0b 78 	mr      r11,r1                                 <== NOT EXECUTED
ffc08134:	94 21 ff e0 	stwu    r1,-32(r1)                             <== NOT EXECUTED
ffc08138:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
{                                                                     
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:abort:");                                   
ffc0813c:	3c 60 ff c3 	lis     r3,-61                                 <== 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, ...)                           
ffc08140:	4b ff 93 e1 	bl      ffc01520 <_savegpr_31>                 <== NOT EXECUTED
{                                                                     
  va_list args;                                                       
  va_start (args, format);                                            
ffc08144:	39 21 00 28 	addi    r9,r1,40                               <== NOT EXECUTED
  fprintf (stderr, "fdisk:abort:");                                   
ffc08148:	3f e0 00 00 	lis     r31,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, ...)                           
ffc0814c:	90 01 00 24 	stw     r0,36(r1)                              <== NOT EXECUTED
{                                                                     
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:abort:");                                   
ffc08150:	38 63 24 c2 	addi    r3,r3,9410                             <== NOT EXECUTED
 */                                                                   
static void                                                           
rtems_fdisk_abort (const char *format, ...)                           
{                                                                     
  va_list args;                                                       
  va_start (args, format);                                            
ffc08154:	91 21 00 0c 	stw     r9,12(r1)                              <== NOT EXECUTED
  fprintf (stderr, "fdisk:abort:");                                   
ffc08158:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
ffc0815c:	80 89 00 0c 	lwz     r4,12(r9)                              <== NOT EXECUTED
ffc08160:	48 01 9c 79 	bl      ffc21dd8 <fputs>                       <== NOT EXECUTED
  vfprintf (stderr, format, args);                                    
ffc08164:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
ffc08168:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc0816c:	80 89 00 0c 	lwz     r4,12(r9)                              <== NOT EXECUTED
ffc08170:	38 63 24 cf 	addi    r3,r3,9423                             <== NOT EXECUTED
ffc08174:	48 01 9c 65 	bl      ffc21dd8 <fputs>                       <== NOT EXECUTED
  fprintf (stderr, "\n");                                             
ffc08178:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
ffc0817c:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc08180:	80 89 00 0c 	lwz     r4,12(r9)                              <== NOT EXECUTED
ffc08184:	48 01 9b 3d 	bl      ffc21cc0 <fputc>                       <== NOT EXECUTED
  fflush (stderr);                                                    
ffc08188:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
ffc0818c:	80 69 00 0c 	lwz     r3,12(r9)                              <== NOT EXECUTED
ffc08190:	48 01 95 05 	bl      ffc21694 <fflush>                      <== NOT EXECUTED
  va_end (args);                                                      
  exit (1);                                                           
ffc08194:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc08198:	48 01 90 41 	bl      ffc211d8 <exit>                        <== NOT EXECUTED
                                                                      

ffc0659c <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) {
ffc0659c:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc065a0:	7c 08 02 a6 	mflr    r0                                     
ffc065a4:	90 01 00 4c 	stw     r0,76(r1)                              
static bool                                                           
rtems_fdisk_is_erased_blocks_starvation (rtems_flashdisk* fd)         
{                                                                     
  bool starvation = fd->erased_blocks < fd->starvation_threshold;     
                                                                      
  if (starvation)                                                     
ffc065a8:	81 43 00 28 	lwz     r10,40(r3)                             
ffc065ac:	81 23 00 24 	lwz     r9,36(r3)                              
 * 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)                             
{                                                                     
ffc065b0:	be a1 00 1c 	stmw    r21,28(r1)                             
ffc065b4:	7c 7f 1b 78 	mr      r31,r3                                 
static bool                                                           
rtems_fdisk_is_erased_blocks_starvation (rtems_flashdisk* fd)         
{                                                                     
  bool starvation = fd->erased_blocks < fd->starvation_threshold;     
                                                                      
  if (starvation)                                                     
ffc065b8:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc065bc:	40 9c 01 b0 	bge-    cr7,ffc0676c <rtems_fdisk_compact+0x1d0>
    fd->starvations++;                                                
ffc065c0:	81 23 00 70 	lwz     r9,112(r3)                             
  uint32_t pages;                                                     
                                                                      
  if (rtems_fdisk_is_erased_blocks_starvation (fd))                   
  {                                                                   
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " resolve starvation");                   
ffc065c4:	3c 80 ff c3 	lis     r4,-61                                 
ffc065c8:	38 84 27 1f 	addi    r4,r4,10015                            
rtems_fdisk_is_erased_blocks_starvation (rtems_flashdisk* fd)         
{                                                                     
  bool starvation = fd->erased_blocks < fd->starvation_threshold;     
                                                                      
  if (starvation)                                                     
    fd->starvations++;                                                
ffc065cc:	39 29 00 01 	addi    r9,r9,1                                
ffc065d0:	91 23 00 70 	stw     r9,112(r3)                             
  uint32_t pages;                                                     
                                                                      
  if (rtems_fdisk_is_erased_blocks_starvation (fd))                   
  {                                                                   
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " resolve starvation");                   
ffc065d4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc065d8:	4b ff f2 fd 	bl      ffc058d4 <rtems_fdisk_printf>          
#endif                                                                
                                                                      
    ssc = rtems_fdisk_segment_queue_pop_head (&fd->used);             
ffc065dc:	38 7f 00 40 	addi    r3,r31,64                              
ffc065e0:	4b ff f0 a1 	bl      ffc05680 <rtems_fdisk_segment_queue_pop_head>
    if (!ssc)                                                         
ffc065e4:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc065e8:	40 a2 00 14 	bne+    ffc065fc <rtems_fdisk_compact+0x60>    <== ALWAYS TAKEN
      ssc = rtems_fdisk_segment_queue_pop_head (&fd->available);      
ffc065ec:	38 7f 00 34 	addi    r3,r31,52                              <== NOT EXECUTED
ffc065f0:	4b ff f0 91 	bl      ffc05680 <rtems_fdisk_segment_queue_pop_head><== NOT EXECUTED
                                                                      
    if (ssc)                                                          
ffc065f4:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc065f8:	41 a2 00 3c 	beq+    ffc06634 <rtems_fdisk_compact+0x98>    <== NOT EXECUTED
    {                                                                 
      dsc = rtems_fdisk_seg_most_available (&fd->available);          
ffc065fc:	80 7f 00 34 	lwz     r3,52(r31)                             
ffc06600:	4b ff f6 05 	bl      ffc05c04 <rtems_fdisk_seg_most_available.isra.8>
      if (dsc)                                                        
ffc06604:	7c 65 1b 79 	mr.     r5,r3                                  
ffc06608:	41 82 00 20 	beq-    ffc06628 <rtems_fdisk_compact+0x8c>    <== NEVER TAKEN
      {                                                               
        ret = rtems_fdisk_recycle_segment (fd, ssc, dsc, &pages);     
ffc0660c:	7f e3 fb 78 	mr      r3,r31                                 
ffc06610:	7f c4 f3 78 	mr      r4,r30                                 
ffc06614:	38 c1 00 08 	addi    r6,r1,8                                
ffc06618:	4b ff fc 01 	bl      ffc06218 <rtems_fdisk_recycle_segment> 
        if (ret)                                                      
ffc0661c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc06620:	41 a2 01 4c 	beq+    ffc0676c <rtems_fdisk_compact+0x1d0>   <== ALWAYS TAKEN
ffc06624:	48 00 01 94 	b       ffc067b8 <rtems_fdisk_compact+0x21c>   <== NOT EXECUTED
          return ret;                                                 
      }                                                               
      else                                                            
      {                                                               
        rtems_fdisk_error ("compacting: starvation");                 
ffc06628:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc0662c:	38 63 27 33 	addi    r3,r3,10035                            <== NOT EXECUTED
ffc06630:	48 00 00 0c 	b       ffc0663c <rtems_fdisk_compact+0xa0>    <== NOT EXECUTED
        return EIO;                                                   
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      rtems_fdisk_error ("compacting: nothing to recycle");           
ffc06634:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc06638:	38 63 27 4a 	addi    r3,r3,10058                            <== NOT EXECUTED
ffc0663c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06640:	4b ff f4 3d 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
      return EIO;                                                     
ffc06644:	38 60 00 05 	li      r3,5                                   <== NOT EXECUTED
ffc06648:	48 00 01 70 	b       ffc067b8 <rtems_fdisk_compact+0x21c>   <== NOT EXECUTED
  {                                                                   
    uint32_t                 dst_pages;                               
    uint32_t                 segments;                                
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " compacting");                           
ffc0664c:	7f 64 db 78 	mr      r4,r27                                 
ffc06650:	7f e3 fb 78 	mr      r3,r31                                 
ffc06654:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06658:	4b ff f2 7d 	bl      ffc058d4 <rtems_fdisk_printf>          
#endif                                                                
                                                                      
    dsc = rtems_fdisk_seg_most_available (&fd->available);            
ffc0665c:	80 7f 00 34 	lwz     r3,52(r31)                             
ffc06660:	4b ff f5 a5 	bl      ffc05c04 <rtems_fdisk_seg_most_available.isra.8>
                                                                      
    if (dsc == 0)                                                     
ffc06664:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc06668:	40 a2 00 10 	bne+    ffc06678 <rtems_fdisk_compact+0xdc>    <== ALWAYS TAKEN
    {                                                                 
      rtems_fdisk_error ("compacting: no available segments to compact too");
ffc0666c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc06670:	38 63 27 75 	addi    r3,r3,10101                            <== NOT EXECUTED
ffc06674:	4b ff ff c8 	b       ffc0663c <rtems_fdisk_compact+0xa0>    <== NOT EXECUTED
      return EIO;                                                     
    }                                                                 
                                                                      
    ssc = fd->used.head;                                              
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
ffc06678:	4b ff f1 69 	bl      ffc057e0 <rtems_fdisk_seg_pages_available>
    segments = 0;                                                     
    pages = 0;                                                        
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " dsc:%02d-%03d: most available",         
ffc0667c:	80 bc 00 08 	lwz     r5,8(r28)                              
ffc06680:	80 dc 00 0c 	lwz     r6,12(r28)                             
      rtems_fdisk_error ("compacting: no available segments to compact too");
      return EIO;                                                     
    }                                                                 
                                                                      
    ssc = fd->used.head;                                              
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
ffc06684:	7c 75 1b 78 	mr      r21,r3                                 
    segments = 0;                                                     
    pages = 0;                                                        
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " dsc:%02d-%03d: most available",         
ffc06688:	7f 24 cb 78 	mr      r4,r25                                 
    {                                                                 
      rtems_fdisk_error ("compacting: no available segments to compact too");
      return EIO;                                                     
    }                                                                 
                                                                      
    ssc = fd->used.head;                                              
ffc0668c:	83 df 00 40 	lwz     r30,64(r31)                            
    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",         
ffc06690:	7f e3 fb 78 	mr      r3,r31                                 
    }                                                                 
                                                                      
    ssc = fd->used.head;                                              
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
    segments = 0;                                                     
    pages = 0;                                                        
ffc06694:	93 41 00 08 	stw     r26,8(r1)                              
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " dsc:%02d-%03d: most available",         
ffc06698:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0669c:	4b ff f2 39 	bl      ffc058d4 <rtems_fdisk_printf>          
      return EIO;                                                     
    }                                                                 
                                                                      
    ssc = fd->used.head;                                              
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
    segments = 0;                                                     
ffc066a0:	39 00 00 00 	li      r8,0                                   
ffc066a4:	80 e1 00 08 	lwz     r7,8(r1)                               
     * 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 &&                                                     
ffc066a8:	48 00 00 10 	b       ffc066b8 <rtems_fdisk_compact+0x11c>   
           ((pages + ssc->pages_active) < dst_pages) &&               
           ((compacted_segs + segments) < fd->compact_segs))          
    {                                                                 
      pages += ssc->pages_active;                                     
      segments++;                                                     
      ssc = ssc->next;                                                
ffc066ac:	83 de 00 00 	lwz     r30,0(r30)                             
    while (ssc &&                                                     
           ((pages + ssc->pages_active) < dst_pages) &&               
           ((compacted_segs + segments) < fd->compact_segs))          
    {                                                                 
      pages += ssc->pages_active;                                     
      segments++;                                                     
ffc066b0:	39 08 00 01 	addi    r8,r8,1                                
                                                                      
    while (ssc &&                                                     
           ((pages + ssc->pages_active) < dst_pages) &&               
           ((compacted_segs + segments) < fd->compact_segs))          
    {                                                                 
      pages += ssc->pages_active;                                     
ffc066b4:	7d 27 4b 78 	mr      r7,r9                                  
     * 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 &&                                                     
ffc066b8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc066bc:	40 be 00 20 	bne+    cr7,ffc066dc <rtems_fdisk_compact+0x140>
ffc066c0:	90 e1 00 08 	stw     r7,8(r1)                               
     */                                                               
                                                                      
    if (!ssc || (pages == 0) || ((compacted_segs + segments) == 1))   
    {                                                                 
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_printf (fd, " nothing to compact");                 
ffc066c4:	3c 80 ff c3 	lis     r4,-61                                 
ffc066c8:	7f e3 fb 78 	mr      r3,r31                                 
ffc066cc:	38 84 27 c5 	addi    r4,r4,10181                            
ffc066d0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc066d4:	4b ff f2 01 	bl      ffc058d4 <rtems_fdisk_printf>          
ffc066d8:	48 00 00 c8 	b       ffc067a0 <rtems_fdisk_compact+0x204>   
     * compaction or less delay when compacting but it may mean the disk
     * will fill.                                                     
     */                                                               
                                                                      
    while (ssc &&                                                     
           ((pages + ssc->pages_active) < dst_pages) &&               
ffc066dc:	81 3e 00 1c 	lwz     r9,28(r30)                             
ffc066e0:	7d 27 4a 14 	add     r9,r7,r9                               
     * 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 &&                                                     
ffc066e4:	7f 89 a8 40 	cmplw   cr7,r9,r21                             
ffc066e8:	40 9c 00 c0 	bge-    cr7,ffc067a8 <rtems_fdisk_compact+0x20c>
           ((pages + ssc->pages_active) < dst_pages) &&               
ffc066ec:	81 5f 00 0c 	lwz     r10,12(r31)                            
 * 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)                             
ffc066f0:	7c c8 ea 14 	add     r6,r8,r29                              
     * compaction or less delay when compacting but it may mean the disk
     * will fill.                                                     
     */                                                               
                                                                      
    while (ssc &&                                                     
           ((pages + ssc->pages_active) < dst_pages) &&               
ffc066f4:	7f 86 50 40 	cmplw   cr7,r6,r10                             
ffc066f8:	41 9c ff b4 	blt+    cr7,ffc066ac <rtems_fdisk_compact+0x110><== ALWAYS TAKEN
ffc066fc:	48 00 00 ac 	b       ffc067a8 <rtems_fdisk_compact+0x20c>   <== 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))   
ffc06700:	7f bd 42 14 	add     r29,r29,r8                             
ffc06704:	2f 9d 00 01 	cmpwi   cr7,r29,1                              
ffc06708:	41 be ff bc 	beq-    cr7,ffc066c4 <rtems_fdisk_compact+0x128>
#endif                                                                
      break;                                                          
    }                                                                 
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " ssc scan: %d-%d: p=%ld, seg=%ld",       
ffc0670c:	80 be 00 08 	lwz     r5,8(r30)                              
ffc06710:	7f 04 c3 78 	mr      r4,r24                                 
ffc06714:	80 de 00 0c 	lwz     r6,12(r30)                             
ffc06718:	7f e3 fb 78 	mr      r3,r31                                 
ffc0671c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06720:	4b ff f1 b5 	bl      ffc058d4 <rtems_fdisk_printf>          
                        ssc->device, ssc->segment,                    
                        pages, segments);                             
#endif                                                                
                                                                      
    rtems_fdisk_segment_queue_remove (&fd->available, dsc);           
ffc06724:	7e e3 bb 78 	mr      r3,r23                                 
ffc06728:	7f 84 e3 78 	mr      r4,r28                                 
ffc0672c:	4b ff ef d5 	bl      ffc05700 <rtems_fdisk_segment_queue_remove>
                                                                      
    /*                                                                
     * We now copy the pages to the new segment.                      
     */                                                               
                                                                      
    while (pages)                                                     
ffc06730:	48 00 00 2c 	b       ffc0675c <rtems_fdisk_compact+0x1c0>   
    {                                                                 
      ssc = rtems_fdisk_segment_queue_pop_head (&fd->used);           
ffc06734:	7e c3 b3 78 	mr      r3,r22                                 
ffc06738:	4b ff ef 49 	bl      ffc05680 <rtems_fdisk_segment_queue_pop_head>
                                                                      
      if (ssc)                                                        
ffc0673c:	7c 64 1b 79 	mr.     r4,r3                                  
ffc06740:	41 a2 00 1c 	beq+    ffc0675c <rtems_fdisk_compact+0x1c0>   <== NEVER TAKEN
      {                                                               
        ret = rtems_fdisk_recycle_segment (fd, ssc, dsc, &pages);     
ffc06744:	7f e3 fb 78 	mr      r3,r31                                 
ffc06748:	7f 85 e3 78 	mr      r5,r28                                 
ffc0674c:	38 c1 00 08 	addi    r6,r1,8                                
ffc06750:	4b ff fa c9 	bl      ffc06218 <rtems_fdisk_recycle_segment> 
        if (ret)                                                      
ffc06754:	2c 03 00 00 	cmpwi   r3,0                                   
ffc06758:	40 82 00 60 	bne-    ffc067b8 <rtems_fdisk_compact+0x21c>   <== NEVER TAKEN
                                                                      
    /*                                                                
     * We now copy the pages to the new segment.                      
     */                                                               
                                                                      
    while (pages)                                                     
ffc0675c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc06760:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06764:	41 be 00 30 	beq+    cr7,ffc06794 <rtems_fdisk_compact+0x1f8>
ffc06768:	4b ff ff cc 	b       ffc06734 <rtems_fdisk_compact+0x198>   
  {                                                                   
    uint32_t                 dst_pages;                               
    uint32_t                 segments;                                
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " compacting");                           
ffc0676c:	3f 60 ff c3 	lis     r27,-61                                
    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",         
ffc06770:	3f 20 ff c3 	lis     r25,-61                                
#endif                                                                
      break;                                                          
    }                                                                 
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " ssc scan: %d-%d: p=%ld, seg=%ld",       
ffc06774:	3f 00 ff c3 	lis     r24,-61                                
     * compaction or less delay when compacting but it may mean the disk
     * will fill.                                                     
     */                                                               
                                                                      
    while (ssc &&                                                     
           ((pages + ssc->pages_active) < dst_pages) &&               
ffc06778:	3b a0 00 00 	li      r29,0                                  
  {                                                                   
    uint32_t                 dst_pages;                               
    uint32_t                 segments;                                
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " compacting");                           
ffc0677c:	3b 7b 27 69 	addi    r27,r27,10089                          
    }                                                                 
                                                                      
    ssc = fd->used.head;                                              
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
    segments = 0;                                                     
    pages = 0;                                                        
ffc06780:	3b 40 00 00 	li      r26,0                                  
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " dsc:%02d-%03d: most available",         
ffc06784:	3b 39 27 a6 	addi    r25,r25,10150                          
#endif                                                                
      break;                                                          
    }                                                                 
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " ssc scan: %d-%d: p=%ld, seg=%ld",       
ffc06788:	3b 18 27 d9 	addi    r24,r24,10201                          
                        ssc->device, ssc->segment,                    
                        pages, segments);                             
#endif                                                                
                                                                      
    rtems_fdisk_segment_queue_remove (&fd->available, dsc);           
ffc0678c:	3a ff 00 34 	addi    r23,r31,52                             
     * We now copy the pages to the new segment.                      
     */                                                               
                                                                      
    while (pages)                                                     
    {                                                                 
      ssc = rtems_fdisk_segment_queue_pop_head (&fd->used);           
ffc06790:	3a df 00 40 	addi    r22,r31,64                             
      rtems_fdisk_error ("compacting: nothing to recycle");           
      return EIO;                                                     
    }                                                                 
  }                                                                   
                                                                      
  while (fd->used.head)                                               
ffc06794:	81 3f 00 40 	lwz     r9,64(r31)                             
ffc06798:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0679c:	40 9e fe b0 	bne+    cr7,ffc0664c <rtems_fdisk_compact+0xb0>
    }                                                                 
                                                                      
    compacted_segs += segments;                                       
  }                                                                   
                                                                      
  return 0;                                                           
ffc067a0:	38 60 00 00 	li      r3,0                                   
ffc067a4:	48 00 00 14 	b       ffc067b8 <rtems_fdisk_compact+0x21c>   
     * 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))   
ffc067a8:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc067ac:	90 e1 00 08 	stw     r7,8(r1)                               
ffc067b0:	40 9e ff 50 	bne+    cr7,ffc06700 <rtems_fdisk_compact+0x164>
ffc067b4:	4b ff ff 10 	b       ffc066c4 <rtems_fdisk_compact+0x128>   
                                                                      
    compacted_segs += segments;                                       
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc067b8:	39 61 00 48 	addi    r11,r1,72                              
ffc067bc:	4b ff ad 88 	b       ffc01544 <_restgpr_21_x>               
                                                                      

ffc05e80 <rtems_fdisk_erase_segment>: /** * Erase the segment. */ static int rtems_fdisk_erase_segment (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc) {
ffc05e80:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc05e84:	7c 08 02 a6 	mflr    r0                                     
ffc05e88:	90 01 00 24 	stw     r0,36(r1)                              
ffc05e8c:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc05e90:	7c 9f 23 78 	mr      r31,r4                                 
ffc05e94:	7c 7e 1b 78 	mr      r30,r3                                 
  int                                ret;                             
  uint32_t                           device;                          
  uint32_t                           segment;                         
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
ffc05e98:	80 84 00 08 	lwz     r4,8(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;            
ffc05e9c:	81 23 00 2c 	lwz     r9,44(r3)                              
ffc05ea0:	1d 44 00 0c 	mulli   r10,r4,12                              
  uint32_t                           device;                          
  uint32_t                           segment;                         
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
  segment = sc->segment;                                              
ffc05ea4:	80 bf 00 0c 	lwz     r5,12(r31)                             
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;            
ffc05ea8:	7d 09 52 14 	add     r8,r9,r10                              
ffc05eac:	7d 49 50 2e 	lwzx    r10,r9,r10                             
  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;                    
ffc05eb0:	81 08 00 08 	lwz     r8,8(r8)                               
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;            
ffc05eb4:	1d 25 00 30 	mulli   r9,r5,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);                             
ffc05eb8:	81 08 00 08 	lwz     r8,8(r8)                               
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;            
ffc05ebc:	7d 4a 4a 14 	add     r10,r10,r9                             
  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);                             
ffc05ec0:	80 6a 00 04 	lwz     r3,4(r10)                              
ffc05ec4:	81 28 00 10 	lwz     r9,16(r8)                              
ffc05ec8:	7d 29 03 a6 	mtctr   r9                                     
ffc05ecc:	4e 80 04 21 	bctrl                                          
  if (ret)                                                            
ffc05ed0:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc05ed4:	41 82 00 58 	beq-    ffc05f2c <rtems_fdisk_erase_segment+0xac><== ALWAYS TAKEN
  {                                                                   
    rtems_fdisk_error (" erase-segment:%02d-%03d: "      \            
ffc05ed8:	83 7f 00 08 	lwz     r27,8(r31)                             <== NOT EXECUTED
ffc05edc:	83 9f 00 0c 	lwz     r28,12(r31)                            <== NOT EXECUTED
ffc05ee0:	48 01 de 7d 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc05ee4:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc05ee8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc05eec:	38 63 25 36 	addi    r3,r3,9526                             <== NOT EXECUTED
ffc05ef0:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc05ef4:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc05ef8:	7f a7 eb 78 	mr      r7,r29                                 <== NOT EXECUTED
ffc05efc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc05f00:	4b ff fb 7d 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
                       "segment erase failed: %s (%d)",               
                       sc->device, sc->segment, strerror (ret), ret); 
    sc->failed = true;                                                
ffc05f04:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc05f08:	91 3f 00 28 	stw     r9,40(r31)                             <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc05f0c:	81 3e 00 58 	lwz     r9,88(r30)                             <== NOT EXECUTED
ffc05f10:	48 00 00 10 	b       ffc05f20 <rtems_fdisk_erase_segment+0xa0><== NOT EXECUTED
{                                                                     
  rtems_fdisk_segment_ctl*  it = queue->head;                         
                                                                      
  while (it)                                                          
  {                                                                   
    if (it == sc)                                                     
ffc05f14:	7f 89 f8 00 	cmpw    cr7,r9,r31                             <== NOT EXECUTED
ffc05f18:	41 9e 00 6c 	beq-    cr7,ffc05f84 <rtems_fdisk_erase_segment+0x104><== NOT EXECUTED
      return true;                                                    
    it = it->next;                                                    
ffc05f1c:	81 29 00 00 	lwz     r9,0(r9)                               <== NOT EXECUTED
rtems_fdisk_segment_queue_present (rtems_fdisk_segment_ctl_queue* queue,
                                   rtems_fdisk_segment_ctl*       sc) 
{                                                                     
  rtems_fdisk_segment_ctl*  it = queue->head;                         
                                                                      
  while (it)                                                          
ffc05f20:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc05f24:	40 9e ff f0 	bne+    cr7,ffc05f14 <rtems_fdisk_erase_segment+0x94><== NOT EXECUTED
ffc05f28:	48 00 00 50 	b       ffc05f78 <rtems_fdisk_erase_segment+0xf8><== NOT EXECUTED
    if (!rtems_fdisk_segment_queue_present (&fd->failed, sc))         
      rtems_fdisk_segment_queue_push_tail (&fd->failed, sc);          
    return ret;                                                       
  }                                                                   
                                                                      
  fd->erased_blocks += sc->pages;                                     
ffc05f2c:	81 5e 00 28 	lwz     r10,40(r30)                            
  sc->erased++;                                                       
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
ffc05f30:	38 80 00 ff 	li      r4,255                                 
    if (!rtems_fdisk_segment_queue_present (&fd->failed, sc))         
      rtems_fdisk_segment_queue_push_tail (&fd->failed, sc);          
    return ret;                                                       
  }                                                                   
                                                                      
  fd->erased_blocks += sc->pages;                                     
ffc05f34:	81 3f 00 14 	lwz     r9,20(r31)                             
  sc->erased++;                                                       
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
ffc05f38:	80 be 00 14 	lwz     r5,20(r30)                             
    if (!rtems_fdisk_segment_queue_present (&fd->failed, sc))         
      rtems_fdisk_segment_queue_push_tail (&fd->failed, sc);          
    return ret;                                                       
  }                                                                   
                                                                      
  fd->erased_blocks += sc->pages;                                     
ffc05f3c:	7d 2a 4a 14 	add     r9,r10,r9                              
  sc->erased++;                                                       
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
ffc05f40:	80 7f 00 10 	lwz     r3,16(r31)                             
    if (!rtems_fdisk_segment_queue_present (&fd->failed, sc))         
      rtems_fdisk_segment_queue_push_tail (&fd->failed, sc);          
    return ret;                                                       
  }                                                                   
                                                                      
  fd->erased_blocks += sc->pages;                                     
ffc05f44:	91 3e 00 28 	stw     r9,40(r30)                             
  sc->erased++;                                                       
ffc05f48:	81 3f 00 2c 	lwz     r9,44(r31)                             
ffc05f4c:	39 29 00 01 	addi    r9,r9,1                                
ffc05f50:	91 3f 00 2c 	stw     r9,44(r31)                             
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
ffc05f54:	81 3f 00 18 	lwz     r9,24(r31)                             
ffc05f58:	7c a5 49 d6 	mullw   r5,r5,r9                               
ffc05f5c:	48 01 c9 b9 	bl      ffc22914 <memset>                      
                                                                      
  sc->pages_active = 0;                                               
ffc05f60:	93 bf 00 1c 	stw     r29,28(r31)                            
  /*                                                                  
   * 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);           
ffc05f64:	38 7e 00 34 	addi    r3,r30,52                              
  sc->erased++;                                                       
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
                                                                      
  sc->pages_active = 0;                                               
  sc->pages_used   = 0;                                               
ffc05f68:	93 bf 00 20 	stw     r29,32(r31)                            
  sc->pages_bad    = 0;                                               
ffc05f6c:	93 bf 00 24 	stw     r29,36(r31)                            
                                                                      
  sc->failed = false;                                                 
ffc05f70:	93 bf 00 28 	stw     r29,40(r31)                            
ffc05f74:	48 00 00 08 	b       ffc05f7c <rtems_fdisk_erase_segment+0xfc>
    rtems_fdisk_error (" erase-segment:%02d-%03d: "      \            
                       "segment erase failed: %s (%d)",               
                       sc->device, sc->segment, strerror (ret), ret); 
    sc->failed = true;                                                
    if (!rtems_fdisk_segment_queue_present (&fd->failed, sc))         
      rtems_fdisk_segment_queue_push_tail (&fd->failed, sc);          
ffc05f78:	38 7e 00 58 	addi    r3,r30,88                              <== NOT EXECUTED
ffc05f7c:	7f e4 fb 78 	mr      r4,r31                                 
ffc05f80:	4b ff f7 3d 	bl      ffc056bc <rtems_fdisk_segment_queue_push_tail>
   * segment will now get a go.                                       
   */                                                                 
  rtems_fdisk_segment_queue_push_tail (&fd->available, sc);           
                                                                      
  return 0;                                                           
}                                                                     
ffc05f84:	39 61 00 20 	addi    r11,r1,32                              
ffc05f88:	7f a3 eb 78 	mr      r3,r29                                 
ffc05f8c:	4b ff b5 d0 	b       ffc0155c <_restgpr_27_x>               
                                                                      

ffc05a7c <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, ...) {
ffc05a7c:	94 21 ff 80 	stwu    r1,-128(r1)                            <== NOT EXECUTED
ffc05a80:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc05a84:	bf c1 00 78 	stmw    r30,120(r1)                            <== NOT EXECUTED
ffc05a88:	90 01 00 84 	stw     r0,132(r1)                             <== NOT EXECUTED
ffc05a8c:	90 81 00 1c 	stw     r4,28(r1)                              <== NOT EXECUTED
ffc05a90:	90 a1 00 20 	stw     r5,32(r1)                              <== NOT EXECUTED
ffc05a94:	90 c1 00 24 	stw     r6,36(r1)                              <== NOT EXECUTED
ffc05a98:	90 e1 00 28 	stw     r7,40(r1)                              <== NOT EXECUTED
ffc05a9c:	91 01 00 2c 	stw     r8,44(r1)                              <== NOT EXECUTED
ffc05aa0:	91 21 00 30 	stw     r9,48(r1)                              <== NOT EXECUTED
ffc05aa4:	91 41 00 34 	stw     r10,52(r1)                             <== NOT EXECUTED
ffc05aa8:	40 86 00 24 	bne-    cr1,ffc05acc <rtems_fdisk_error+0x50>  <== NOT EXECUTED
ffc05aac:	d8 21 00 38 	stfd    f1,56(r1)                              <== NOT EXECUTED
ffc05ab0:	d8 41 00 40 	stfd    f2,64(r1)                              <== NOT EXECUTED
ffc05ab4:	d8 61 00 48 	stfd    f3,72(r1)                              <== NOT EXECUTED
ffc05ab8:	d8 81 00 50 	stfd    f4,80(r1)                              <== NOT EXECUTED
ffc05abc:	d8 a1 00 58 	stfd    f5,88(r1)                              <== NOT EXECUTED
ffc05ac0:	d8 c1 00 60 	stfd    f6,96(r1)                              <== NOT EXECUTED
ffc05ac4:	d8 e1 00 68 	stfd    f7,104(r1)                             <== NOT EXECUTED
ffc05ac8:	d9 01 00 70 	stfd    f8,112(r1)                             <== NOT EXECUTED
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
ffc05acc:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc05ad0:	99 21 00 08 	stb     r9,8(r1)                               <== NOT EXECUTED
ffc05ad4:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
  fprintf (stderr, "fdisk:error:");                                   
ffc05ad8:	3f e0 00 00 	lis     r31,0                                  <== NOT EXECUTED
static int                                                            
rtems_fdisk_error (const char *format, ...)                           
{                                                                     
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
ffc05adc:	99 21 00 09 	stb     r9,9(r1)                               <== NOT EXECUTED
ffc05ae0:	39 21 00 88 	addi    r9,r1,136                              <== 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, ...)                           
{                                                                     
ffc05ae4:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
ffc05ae8:	91 21 00 0c 	stw     r9,12(r1)                              <== NOT EXECUTED
ffc05aec:	39 21 00 18 	addi    r9,r1,24                               <== NOT EXECUTED
  fprintf (stderr, "fdisk:error:");                                   
ffc05af0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
static int                                                            
rtems_fdisk_error (const char *format, ...)                           
{                                                                     
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
ffc05af4:	91 21 00 10 	stw     r9,16(r1)                              <== NOT EXECUTED
  fprintf (stderr, "fdisk:error:");                                   
ffc05af8:	38 63 24 92 	addi    r3,r3,9362                             <== NOT EXECUTED
ffc05afc:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
ffc05b00:	80 89 00 0c 	lwz     r4,12(r9)                              <== NOT EXECUTED
ffc05b04:	48 01 c2 d5 	bl      ffc21dd8 <fputs>                       <== NOT EXECUTED
  ret =  vfprintf (stderr, format, args);                             
ffc05b08:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
ffc05b0c:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc05b10:	80 69 00 0c 	lwz     r3,12(r9)                              <== NOT EXECUTED
ffc05b14:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc05b18:	48 02 56 3d 	bl      ffc2b154 <vfprintf>                    <== NOT EXECUTED
  fprintf (stderr, "\n");                                             
ffc05b1c:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
{                                                                     
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:error:");                                   
  ret =  vfprintf (stderr, format, args);                             
ffc05b20:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
  fprintf (stderr, "\n");                                             
ffc05b24:	80 89 00 0c 	lwz     r4,12(r9)                              <== NOT EXECUTED
ffc05b28:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc05b2c:	48 01 c1 95 	bl      ffc21cc0 <fputc>                       <== NOT EXECUTED
  fflush (stderr);                                                    
ffc05b30:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
ffc05b34:	80 69 00 0c 	lwz     r3,12(r9)                              <== NOT EXECUTED
ffc05b38:	48 01 bb 5d 	bl      ffc21694 <fflush>                      <== NOT EXECUTED
  va_end (args);                                                      
  return ret;                                                         
}                                                                     
ffc05b3c:	39 61 00 80 	addi    r11,r1,128                             <== NOT EXECUTED
ffc05b40:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc05b44:	4b ff ba 24 	b       ffc01568 <_restgpr_30_x>               <== NOT EXECUTED
                                                                      

ffc05800 <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, ...) {
ffc05800:	94 21 ff 80 	stwu    r1,-128(r1)                            
ffc05804:	7c 08 02 a6 	mflr    r0                                     
ffc05808:	bf a1 00 74 	stmw    r29,116(r1)                            
ffc0580c:	90 01 00 84 	stw     r0,132(r1)                             
ffc05810:	90 a1 00 18 	stw     r5,24(r1)                              
ffc05814:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc05818:	90 e1 00 20 	stw     r7,32(r1)                              
ffc0581c:	91 01 00 24 	stw     r8,36(r1)                              
ffc05820:	91 21 00 28 	stw     r9,40(r1)                              
ffc05824:	91 41 00 2c 	stw     r10,44(r1)                             
ffc05828:	40 86 00 24 	bne-    cr1,ffc0584c <rtems_fdisk_info+0x4c>   <== ALWAYS TAKEN
ffc0582c:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc05830:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc05834:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc05838:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc0583c:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc05840:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc05844:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc05848:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  int ret = 0;                                                        
  if (fd->info_level >= 2)                                            
ffc0584c:	81 23 00 6c 	lwz     r9,108(r3)                             
 * @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, ...) 
{                                                                     
ffc05850:	7c 9d 23 78 	mr      r29,r4                                 
  int ret = 0;                                                        
ffc05854:	3b c0 00 00 	li      r30,0                                  
  if (fd->info_level >= 2)                                            
ffc05858:	2b 89 00 01 	cmplwi  cr7,r9,1                               
ffc0585c:	40 9d 00 6c 	ble-    cr7,ffc058c8 <rtems_fdisk_info+0xc8>   <== ALWAYS TAKEN
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc05860:	39 20 00 02 	li      r9,2                                   <== NOT EXECUTED
ffc05864:	9b c1 00 09 	stb     r30,9(r1)                              <== NOT EXECUTED
    fprintf (stdout, "fdisk:");                                       
ffc05868:	3f e0 00 00 	lis     r31,0                                  <== NOT EXECUTED
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 2)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc0586c:	99 21 00 08 	stb     r9,8(r1)                               <== NOT EXECUTED
ffc05870:	39 21 00 88 	addi    r9,r1,136                              <== NOT EXECUTED
    fprintf (stdout, "fdisk:");                                       
ffc05874:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 2)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc05878:	91 21 00 0c 	stw     r9,12(r1)                              <== NOT EXECUTED
ffc0587c:	39 21 00 10 	addi    r9,r1,16                               <== NOT EXECUTED
    fprintf (stdout, "fdisk:");                                       
ffc05880:	38 63 24 7c 	addi    r3,r3,9340                             <== NOT EXECUTED
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 2)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc05884:	91 21 00 10 	stw     r9,16(r1)                              <== NOT EXECUTED
    fprintf (stdout, "fdisk:");                                       
ffc05888:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
ffc0588c:	80 89 00 08 	lwz     r4,8(r9)                               <== NOT EXECUTED
ffc05890:	48 01 c5 49 	bl      ffc21dd8 <fputs>                       <== NOT EXECUTED
    ret =  vfprintf (stdout, format, args);                           
ffc05894:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
ffc05898:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc0589c:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc058a0:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc058a4:	48 02 58 b1 	bl      ffc2b154 <vfprintf>                    <== NOT EXECUTED
    fprintf (stdout, "\n");                                           
ffc058a8:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
  if (fd->info_level >= 2)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
    fprintf (stdout, "fdisk:");                                       
    ret =  vfprintf (stdout, format, args);                           
ffc058ac:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
    fprintf (stdout, "\n");                                           
ffc058b0:	80 89 00 08 	lwz     r4,8(r9)                               <== NOT EXECUTED
ffc058b4:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc058b8:	48 01 c4 09 	bl      ffc21cc0 <fputc>                       <== NOT EXECUTED
    fflush (stdout);                                                  
ffc058bc:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
ffc058c0:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc058c4:	48 01 bd d1 	bl      ffc21694 <fflush>                      <== NOT EXECUTED
    va_end (args);                                                    
  }                                                                   
  return ret;                                                         
}                                                                     
ffc058c8:	39 61 00 80 	addi    r11,r1,128                             
ffc058cc:	7f c3 f3 78 	mr      r3,r30                                 
ffc058d0:	4b ff bc 94 	b       ffc01564 <_restgpr_29_x>               
                                                                      

ffc07c88 <rtems_fdisk_initialize>: */ rtems_device_driver rtems_fdisk_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void* arg __attribute__((unused))) {
ffc07c88:	94 21 ff a8 	stwu    r1,-88(r1)                             
ffc07c8c:	7c 08 02 a6 	mflr    r0                                     
ffc07c90:	be 01 00 18 	stmw    r16,24(r1)                             
ffc07c94:	7c 7c 1b 78 	mr      r28,r3                                 
ffc07c98:	90 01 00 5c 	stw     r0,92(r1)                              
  const rtems_flashdisk_config* c = rtems_flashdisk_configuration;    
  rtems_flashdisk*              fd;                                   
  rtems_status_code             sc;                                   
                                                                      
  sc = rtems_disk_io_initialize ();                                   
ffc07c9c:	4b ff d8 61 	bl      ffc054fc <rtems_disk_io_initialize>    
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc07ca0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc07ca4:	40 a2 04 84 	bne+    ffc08128 <rtems_fdisk_initialize+0x4a0><== 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);        
ffc07ca8:	38 60 02 00 	li      r3,512                                 
ffc07cac:	48 00 15 31 	bl      ffc091dc <malloc>                      
ffc07cb0:	3d 20 00 01 	lis     r9,1                                   
  if (!rtems_fdisk_crc16_factor)                                      
ffc07cb4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
static rtems_status_code                                              
rtems_fdisk_crc16_gen_factors (uint16_t pattern)                      
{                                                                     
  uint32_t b;                                                         
                                                                      
  rtems_fdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);        
ffc07cb8:	90 69 29 04 	stw     r3,10500(r9)                           
  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;                        
ffc07cbc:	38 e0 84 08 	li      r7,-31736                              
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)                                      
ffc07cc0:	39 20 00 00 	li      r9,0                                   
ffc07cc4:	40 be 00 08 	bne+    cr7,ffc07ccc <rtems_fdisk_initialize+0x44><== ALWAYS TAKEN
ffc07cc8:	48 00 03 fc 	b       ffc080c4 <rtems_fdisk_initialize+0x43c><== NOT EXECUTED
  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;                        
ffc07ccc:	39 00 00 09 	li      r8,9                                   
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (b = 0; b < 256; b++)                                           
  {                                                                   
    uint32_t i;                                                       
    uint16_t v = b;                                                   
ffc07cd0:	55 2a 04 3e 	clrlwi  r10,r9,16                              
    for (i = 8; i--;)                                                 
      v = v & 1 ? (v >> 1) ^ pattern : v >> 1;                        
ffc07cd4:	7d 09 03 a6 	mtctr   r8                                     
ffc07cd8:	48 00 00 18 	b       ffc07cf0 <rtems_fdisk_initialize+0x68> 
ffc07cdc:	71 48 00 01 	andi.   r8,r10,1                               
ffc07ce0:	55 4a f8 7e 	rlwinm  r10,r10,31,1,31                        
ffc07ce4:	41 82 00 08 	beq-    ffc07cec <rtems_fdisk_initialize+0x64> 
ffc07ce8:	7d 4a 3a 78 	xor     r10,r10,r7                             
ffc07cec:	55 4a 04 3e 	clrlwi  r10,r10,16                             
                                                                      
  for (b = 0; b < 256; b++)                                           
  {                                                                   
    uint32_t i;                                                       
    uint16_t v = b;                                                   
    for (i = 8; i--;)                                                 
ffc07cf0:	42 00 ff ec 	bdnz+   ffc07cdc <rtems_fdisk_initialize+0x54> 
                                                                      
  rtems_fdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);        
  if (!rtems_fdisk_crc16_factor)                                      
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (b = 0; b < 256; b++)                                           
ffc07cf4:	2f 89 00 ff 	cmpwi   cr7,r9,255                             
 * @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,              
ffc07cf8:	55 28 08 3c 	rlwinm  r8,r9,1,0,30                           
  {                                                                   
    uint32_t i;                                                       
    uint16_t v = b;                                                   
    for (i = 8; i--;)                                                 
      v = v & 1 ? (v >> 1) ^ pattern : v >> 1;                        
    rtems_fdisk_crc16_factor[b] = v & 0xffff;                         
ffc07cfc:	7d 43 43 2e 	sthx    r10,r3,r8                              
                                                                      
  rtems_fdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);        
  if (!rtems_fdisk_crc16_factor)                                      
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (b = 0; b < 256; b++)                                           
ffc07d00:	39 29 00 01 	addi    r9,r9,1                                
ffc07d04:	40 9e ff c8 	bne+    cr7,ffc07ccc <rtems_fdisk_initialize+0x44>
ffc07d08:	48 00 03 fc 	b       ffc08104 <rtems_fdisk_initialize+0x47c>
  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";           
ffc07d0c:	39 57 2f 0f 	addi    r10,r23,12047                          
ffc07d10:	39 21 00 08 	addi    r9,r1,8                                
ffc07d14:	7c aa 54 aa 	lswi    r5,r10,10                              
ffc07d18:	7c a9 55 aa 	stswi   r5,r9,10                               
 * @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,              
ffc07d1c:	1d 5d 00 74 	mulli   r10,r29,116                            
    uint32_t blocks = 0;                                              
    int      ret;                                                     
                                                                      
    fd = &rtems_flashdisks[minor];                                    
                                                                      
    name [sizeof(RTEMS_FLASHDISK_DEVICE_BASE_NAME)] += minor;         
ffc07d20:	9b a1 00 11 	stb     r29,17(r1)                             
  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;                                              
ffc07d24:	3b 60 00 00 	li      r27,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++)              
ffc07d28:	3b 40 00 00 	li      r26,0                                  
    dev_t    dev = rtems_filesystem_make_dev_t (major, minor);        
    uint32_t device;                                                  
    uint32_t blocks = 0;                                              
    int      ret;                                                     
                                                                      
    fd = &rtems_flashdisks[minor];                                    
ffc07d2c:	81 36 28 fc 	lwz     r9,10492(r22)                          
    fd->major              = major;                                   
    fd->minor              = minor;                                   
    fd->flags              = c->flags;                                
    fd->compact_segs       = c->compact_segs;                         
    fd->avail_compact_segs = c->avail_compact_segs;                   
    fd->block_size         = c->block_size;                           
ffc07d30:	80 7e ff e0 	lwz     r3,-32(r30)                            
    dev_t    dev = rtems_filesystem_make_dev_t (major, minor);        
    uint32_t device;                                                  
    uint32_t blocks = 0;                                              
    int      ret;                                                     
                                                                      
    fd = &rtems_flashdisks[minor];                                    
ffc07d34:	7f e9 52 14 	add     r31,r9,r10                             
                                                                      
    name [sizeof(RTEMS_FLASHDISK_DEVICE_BASE_NAME)] += minor;         
                                                                      
    fd->major              = major;                                   
ffc07d38:	7f 89 51 2e 	stwx    r28,r9,r10                             
    fd->minor              = minor;                                   
    fd->flags              = c->flags;                                
ffc07d3c:	81 3e ff ec 	lwz     r9,-20(r30)                            
    fd = &rtems_flashdisks[minor];                                    
                                                                      
    name [sizeof(RTEMS_FLASHDISK_DEVICE_BASE_NAME)] += minor;         
                                                                      
    fd->major              = major;                                   
    fd->minor              = minor;                                   
ffc07d40:	93 bf 00 04 	stw     r29,4(r31)                             
    fd->flags              = c->flags;                                
ffc07d44:	91 3f 00 08 	stw     r9,8(r31)                              
    fd->compact_segs       = c->compact_segs;                         
ffc07d48:	81 3e ff f4 	lwz     r9,-12(r30)                            
    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++)              
ffc07d4c:	80 be ff e4 	lwz     r5,-28(r30)                            
    name [sizeof(RTEMS_FLASHDISK_DEVICE_BASE_NAME)] += minor;         
                                                                      
    fd->major              = major;                                   
    fd->minor              = minor;                                   
    fd->flags              = c->flags;                                
    fd->compact_segs       = c->compact_segs;                         
ffc07d50:	91 3f 00 0c 	stw     r9,12(r31)                             
    fd->avail_compact_segs = c->avail_compact_segs;                   
ffc07d54:	81 3e ff f8 	lwz     r9,-8(r30)                             
    fd->block_size         = c->block_size;                           
ffc07d58:	90 7f 00 14 	stw     r3,20(r31)                             
                                                                      
    fd->major              = major;                                   
    fd->minor              = minor;                                   
    fd->flags              = c->flags;                                
    fd->compact_segs       = c->compact_segs;                         
    fd->avail_compact_segs = c->avail_compact_segs;                   
ffc07d5c:	91 3f 00 10 	stw     r9,16(r31)                             
    fd->block_size         = c->block_size;                           
    fd->unavail_blocks     = c->unavail_blocks;                       
ffc07d60:	81 3e ff f0 	lwz     r9,-16(r30)                            
ffc07d64:	91 3f 00 20 	stw     r9,32(r31)                             
    fd->info_level         = c->info_level;                           
ffc07d68:	81 3e ff fc 	lwz     r9,-4(r30)                             
ffc07d6c:	91 3f 00 6c 	stw     r9,108(r31)                            
                                                                      
    for (device = 0; device < c->device_count; device++)              
ffc07d70:	48 00 00 6c 	b       ffc07ddc <rtems_fdisk_initialize+0x154>
 * @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,              
ffc07d74:	1d 5a 00 0c 	mulli   r10,r26,12                             
    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],    
ffc07d78:	81 3e ff e8 	lwz     r9,-24(r30)                            
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++)                             
ffc07d7c:	7d 09 50 2e 	lwzx    r8,r9,r10                              
    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],    
ffc07d80:	7c 89 52 14 	add     r4,r9,r10                              
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++)                             
ffc07d84:	39 40 00 00 	li      r10,0                                  
 */                                                                   
static uint32_t                                                       
rtems_fdisk_blocks_in_device (const rtems_fdisk_device_desc* dd,      
                              uint32_t                       page_size)
{                                                                     
  uint32_t count = 0;                                                 
ffc07d88:	39 08 00 01 	addi    r8,r8,1                                
ffc07d8c:	39 20 00 00 	li      r9,0                                   
ffc07d90:	7d 09 03 a6 	mtctr   r8                                     
ffc07d94:	48 00 00 3c 	b       ffc07dd0 <rtems_fdisk_initialize+0x148>
 * @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,              
ffc07d98:	1c ea 00 0c 	mulli   r7,r10,12                              
{                                                                     
  uint32_t count = 0;                                                 
  uint32_t s;                                                         
  for (s = 0; s < dd->segment_count; s++)                             
  {                                                                   
    const rtems_fdisk_segment_desc* sd = &dd->segments[s];            
ffc07d9c:	81 04 00 04 	lwz     r8,4(r4)                               
ffc07da0:	7c c8 3a 14 	add     r6,r8,r7                               
    count +=                                                          
      (rtems_fdisk_pages_in_segment (sd, page_size) -                 
       rtems_fdisk_page_desc_pages (sd, page_size)) * sd->count;      
ffc07da4:	7c e8 3a 2e 	lhzx    r7,r8,r7                               
 */                                                                   
static uint32_t                                                       
rtems_fdisk_pages_in_segment (const rtems_fdisk_segment_desc* sd,     
                              uint32_t                        page_size)
{                                                                     
  return sd->size / page_size;                                        
ffc07da8:	80 c6 00 08 	lwz     r6,8(r6)                               
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++)                             
ffc07dac:	39 4a 00 01 	addi    r10,r10,1                              
 */                                                                   
static uint32_t                                                       
rtems_fdisk_pages_in_segment (const rtems_fdisk_segment_desc* sd,     
                              uint32_t                        page_size)
{                                                                     
  return sd->size / page_size;                                        
ffc07db0:	7c c6 1b 96 	divwu   r6,r6,r3                               
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;                               
ffc07db4:	39 66 ff ff 	addi    r11,r6,-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);            
ffc07db8:	54 c6 18 38 	rlwinm  r6,r6,3,0,28                           
  return ((bytes - 1) / page_size) + 1;                               
ffc07dbc:	38 c6 ff ff 	addi    r6,r6,-1                               
ffc07dc0:	7c c6 1b 96 	divwu   r6,r6,r3                               
  uint32_t s;                                                         
  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) -                 
ffc07dc4:	7c c6 58 50 	subf    r6,r6,r11                              
       rtems_fdisk_page_desc_pages (sd, page_size)) * sd->count;      
ffc07dc8:	7d 06 39 d6 	mullw   r8,r6,r7                               
  uint32_t count = 0;                                                 
  uint32_t s;                                                         
  for (s = 0; s < dd->segment_count; s++)                             
  {                                                                   
    const rtems_fdisk_segment_desc* sd = &dd->segments[s];            
    count +=                                                          
ffc07dcc:	7d 29 42 14 	add     r9,r9,r8                               
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++)                             
ffc07dd0:	42 00 ff c8 	bdnz+   ffc07d98 <rtems_fdisk_initialize+0x110>
    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],    
ffc07dd4:	7f 7b 4a 14 	add     r27,r27,r9                             
    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++)              
ffc07dd8:	3b 5a 00 01 	addi    r26,r26,1                              
ffc07ddc:	7f 9a 28 00 	cmpw    cr7,r26,r5                             
ffc07de0:	40 9e ff 94 	bne+    cr7,ffc07d74 <rtems_fdisk_initialize+0xec>
                                              c->block_size);         
                                                                      
    /*                                                                
     * One copy buffer of a page size.                                
     */                                                               
    fd->copy_buffer = malloc (c->block_size);                         
ffc07de4:	48 00 13 f9 	bl      ffc091dc <malloc>                      
    if (!fd->copy_buffer)                                             
ffc07de8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
                                              c->block_size);         
                                                                      
    /*                                                                
     * One copy buffer of a page size.                                
     */                                                               
    fd->copy_buffer = malloc (c->block_size);                         
ffc07dec:	90 7f 00 68 	stw     r3,104(r31)                            
    if (!fd->copy_buffer)                                             
ffc07df0:	41 9e 02 d4 	beq-    cr7,ffc080c4 <rtems_fdisk_initialize+0x43c><== NEVER TAKEN
      return RTEMS_NO_MEMORY;                                         
                                                                      
    fd->blocks = calloc (blocks, sizeof (rtems_fdisk_block_ctl));     
ffc07df4:	7f 63 db 78 	mr      r3,r27                                 
ffc07df8:	38 80 00 08 	li      r4,8                                   
ffc07dfc:	48 00 0b 71 	bl      ffc0896c <calloc>                      
    if (!fd->blocks)                                                  
ffc07e00:	2f 83 00 00 	cmpwi   cr7,r3,0                               
     */                                                               
    fd->copy_buffer = malloc (c->block_size);                         
    if (!fd->copy_buffer)                                             
      return RTEMS_NO_MEMORY;                                         
                                                                      
    fd->blocks = calloc (blocks, sizeof (rtems_fdisk_block_ctl));     
ffc07e04:	90 7f 00 18 	stw     r3,24(r31)                             
    if (!fd->blocks)                                                  
ffc07e08:	41 9e 02 bc 	beq-    cr7,ffc080c4 <rtems_fdisk_initialize+0x43c><== NEVER TAKEN
      return RTEMS_NO_MEMORY;                                         
                                                                      
    fd->block_count = blocks;                                         
ffc07e0c:	93 7f 00 1c 	stw     r27,28(r31)                            
                                                                      
    fd->devices = calloc (c->device_count, sizeof (rtems_fdisk_device_ctl));
ffc07e10:	7f 43 d3 78 	mr      r3,r26                                 
ffc07e14:	38 80 00 0c 	li      r4,12                                  
ffc07e18:	48 00 0b 55 	bl      ffc0896c <calloc>                      
    if (!fd->devices)                                                 
ffc07e1c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    if (!fd->blocks)                                                  
      return RTEMS_NO_MEMORY;                                         
                                                                      
    fd->block_count = blocks;                                         
                                                                      
    fd->devices = calloc (c->device_count, sizeof (rtems_fdisk_device_ctl));
ffc07e20:	90 7f 00 2c 	stw     r3,44(r31)                             
    if (!fd->devices)                                                 
ffc07e24:	41 9e 02 a0 	beq-    cr7,ffc080c4 <rtems_fdisk_initialize+0x43c><== NEVER TAKEN
      return RTEMS_NO_MEMORY;                                         
                                                                      
    sc = rtems_semaphore_create (rtems_build_name ('F', 'D', 'S', 'K'), 1,
ffc07e28:	3c 60 46 44 	lis     r3,17988                               
ffc07e2c:	60 63 53 4b 	ori     r3,r3,21323                            
ffc07e30:	38 80 00 01 	li      r4,1                                   
ffc07e34:	38 a0 00 54 	li      r5,84                                  
ffc07e38:	38 c0 00 00 	li      r6,0                                   
ffc07e3c:	38 ff 00 64 	addi    r7,r31,100                             
ffc07e40:	48 00 58 21 	bl      ffc0d660 <rtems_semaphore_create>      
                                 RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE |
                                 RTEMS_INHERIT_PRIORITY, 0, &fd->lock);
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc07e44:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc07e48:	41 a2 00 34 	beq+    ffc07e7c <rtems_fdisk_initialize+0x1f4><== ALWAYS TAKEN
    {                                                                 
      rtems_fdisk_error ("disk lock create failed");                  
ffc07e4c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc07e50:	38 63 2e 9c 	addi    r3,r3,11932                            <== NOT EXECUTED
ffc07e54:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07e58:	4b ff dc 25 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
      free (fd->copy_buffer);                                         
ffc07e5c:	80 7f 00 68 	lwz     r3,104(r31)                            <== NOT EXECUTED
ffc07e60:	48 00 0c b5 	bl      ffc08b14 <free>                        <== NOT EXECUTED
      free (fd->blocks);                                              
ffc07e64:	80 7f 00 18 	lwz     r3,24(r31)                             <== NOT EXECUTED
ffc07e68:	48 00 0c ad 	bl      ffc08b14 <free>                        <== NOT EXECUTED
      free (fd->devices);                                             
ffc07e6c:	80 7f 00 2c 	lwz     r3,44(r31)                             <== NOT EXECUTED
ffc07e70:	48 00 0c a5 	bl      ffc08b14 <free>                        <== NOT EXECUTED
                                                                      
    fd->devices = calloc (c->device_count, sizeof (rtems_fdisk_device_ctl));
    if (!fd->devices)                                                 
      return RTEMS_NO_MEMORY;                                         
                                                                      
    sc = rtems_semaphore_create (rtems_build_name ('F', 'D', 'S', 'K'), 1,
ffc07e74:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc07e78:	48 00 02 b0 	b       ffc08128 <rtems_fdisk_initialize+0x4a0><== NOT EXECUTED
      free (fd->blocks);                                              
      free (fd->devices);                                             
      return sc;                                                      
    }                                                                 
                                                                      
    sc = rtems_disk_create_phys(dev, c->block_size,                   
ffc07e7c:	80 df 00 20 	lwz     r6,32(r31)                             
ffc07e80:	7f 83 e3 78 	mr      r3,r28                                 
ffc07e84:	80 be ff e0 	lwz     r5,-32(r30)                            
ffc07e88:	7f a4 eb 78 	mr      r4,r29                                 
ffc07e8c:	7c c6 d8 50 	subf    r6,r6,r27                              
ffc07e90:	7e 87 a3 78 	mr      r7,r20                                 
ffc07e94:	39 00 00 00 	li      r8,0                                   
ffc07e98:	39 21 00 08 	addi    r9,r1,8                                
ffc07e9c:	4b ff d3 ad 	bl      ffc05248 <rtems_disk_create_phys>      
                                blocks - fd->unavail_blocks,          
                                rtems_fdisk_ioctl, NULL, name);       
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc07ea0:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc07ea4:	41 a2 01 48 	beq+    ffc07fec <rtems_fdisk_initialize+0x364><== ALWAYS TAKEN
    {                                                                 
      rtems_semaphore_delete (fd->lock);                              
ffc07ea8:	80 7f 00 64 	lwz     r3,100(r31)                            <== NOT EXECUTED
ffc07eac:	48 00 59 7d 	bl      ffc0d828 <rtems_semaphore_delete>      <== NOT EXECUTED
      rtems_disk_delete (dev);                                        
ffc07eb0:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc07eb4:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc07eb8:	4b ff d1 11 	bl      ffc04fc8 <rtems_disk_delete>           <== NOT EXECUTED
      free (fd->copy_buffer);                                         
ffc07ebc:	80 7f 00 68 	lwz     r3,104(r31)                            <== NOT EXECUTED
ffc07ec0:	48 00 0c 55 	bl      ffc08b14 <free>                        <== NOT EXECUTED
      free (fd->blocks);                                              
ffc07ec4:	80 7f 00 18 	lwz     r3,24(r31)                             <== NOT EXECUTED
ffc07ec8:	48 00 0c 4d 	bl      ffc08b14 <free>                        <== NOT EXECUTED
      free (fd->devices);                                             
ffc07ecc:	80 7f 00 2c 	lwz     r3,44(r31)                             <== NOT EXECUTED
ffc07ed0:	48 00 0c 45 	bl      ffc08b14 <free>                        <== NOT EXECUTED
      rtems_fdisk_error ("disk create phy failed");                   
ffc07ed4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc07ed8:	38 63 2e b4 	addi    r3,r3,11956                            <== NOT EXECUTED
ffc07edc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07ee0:	4b ff db 9d 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
ffc07ee4:	48 00 01 78 	b       ffc0805c <rtems_fdisk_initialize+0x3d4><== NOT EXECUTED
    {                                                                 
      rtems_fdisk_segment_ctl* sc;                                    
      uint32_t                 segment_count;                         
      uint32_t                 segment;                               
                                                                      
      segment_count = rtems_fdisk_count_segments (&c->devices[device]);
ffc07ee8:	81 3e ff e8 	lwz     r9,-24(r30)                            
 * @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,              
ffc07eec:	1f 3b 00 0c 	mulli   r25,r27,12                             
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++)           
ffc07ef0:	7e 29 c8 2e 	lwzx    r17,r9,r25                             
    {                                                                 
      rtems_fdisk_segment_ctl* sc;                                    
      uint32_t                 segment_count;                         
      uint32_t                 segment;                               
                                                                      
      segment_count = rtems_fdisk_count_segments (&c->devices[device]);
ffc07ef4:	7e 69 ca 14 	add     r19,r9,r25                             
 * Count the segments for a device.                                   
 */                                                                   
static uint32_t                                                       
rtems_fdisk_count_segments (const rtems_fdisk_device_desc* dd)        
{                                                                     
  uint32_t count = 0;                                                 
ffc07ef8:	3b 40 00 00 	li      r26,0                                  
ffc07efc:	39 51 00 01 	addi    r10,r17,1                              
  uint32_t segment;                                                   
  for (segment = 0; segment < dd->segment_count; segment++)           
ffc07f00:	39 20 00 00 	li      r9,0                                   
 * Count the segments for a device.                                   
 */                                                                   
static uint32_t                                                       
rtems_fdisk_count_segments (const rtems_fdisk_device_desc* dd)        
{                                                                     
  uint32_t count = 0;                                                 
ffc07f04:	7d 49 03 a6 	mtctr   r10                                    
ffc07f08:	48 00 00 18 	b       ffc07f20 <rtems_fdisk_initialize+0x298>
  uint32_t segment;                                                   
  for (segment = 0; segment < dd->segment_count; segment++)           
    count += dd->segments[segment].count;                             
ffc07f0c:	1d 09 00 0c 	mulli   r8,r9,12                               
ffc07f10:	81 53 00 04 	lwz     r10,4(r19)                             
ffc07f14:	7d 4a 42 2e 	lhzx    r10,r10,r8                             
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++)           
ffc07f18:	39 29 00 01 	addi    r9,r9,1                                
    count += dd->segments[segment].count;                             
ffc07f1c:	7f 5a 52 14 	add     r26,r26,r10                            
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++)           
ffc07f20:	42 00 ff ec 	bdnz+   ffc07f0c <rtems_fdisk_initialize+0x284>
      uint32_t                 segment_count;                         
      uint32_t                 segment;                               
                                                                      
      segment_count = rtems_fdisk_count_segments (&c->devices[device]);
                                                                      
      fd->devices[device].segments = calloc (segment_count,           
ffc07f24:	7f 43 d3 78 	mr      r3,r26                                 
ffc07f28:	82 1f 00 2c 	lwz     r16,44(r31)                            
ffc07f2c:	38 80 00 30 	li      r4,48                                  
ffc07f30:	48 00 0a 3d 	bl      ffc0896c <calloc>                      
ffc07f34:	7e 50 ca 14 	add     r18,r16,r25                            
                                             sizeof (rtems_fdisk_segment_ctl));
      if (!fd->devices[device].segments)                              
ffc07f38:	2f 83 00 00 	cmpwi   cr7,r3,0                               
      uint32_t                 segment_count;                         
      uint32_t                 segment;                               
                                                                      
      segment_count = rtems_fdisk_count_segments (&c->devices[device]);
                                                                      
      fd->devices[device].segments = calloc (segment_count,           
ffc07f3c:	7c 70 c9 2e 	stwx    r3,r16,r25                             
                                             sizeof (rtems_fdisk_segment_ctl));
      if (!fd->devices[device].segments)                              
ffc07f40:	40 be 00 90 	bne+    cr7,ffc07fd0 <rtems_fdisk_initialize+0x348><== ALWAYS TAKEN
      {                                                               
        rtems_disk_delete (dev);                                      
ffc07f44:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc07f48:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc07f4c:	4b ff d0 7d 	bl      ffc04fc8 <rtems_disk_delete>           <== NOT EXECUTED
        rtems_semaphore_delete (fd->lock);                            
ffc07f50:	80 7f 00 64 	lwz     r3,100(r31)                            <== NOT EXECUTED
ffc07f54:	48 00 58 d5 	bl      ffc0d828 <rtems_semaphore_delete>      <== NOT EXECUTED
        free (fd->copy_buffer);                                       
ffc07f58:	80 7f 00 68 	lwz     r3,104(r31)                            <== NOT EXECUTED
ffc07f5c:	48 00 0b b9 	bl      ffc08b14 <free>                        <== NOT EXECUTED
        free (fd->blocks);                                            
ffc07f60:	80 7f 00 18 	lwz     r3,24(r31)                             <== NOT EXECUTED
ffc07f64:	48 00 0b b1 	bl      ffc08b14 <free>                        <== NOT EXECUTED
        free (fd->devices);                                           
ffc07f68:	80 7f 00 2c 	lwz     r3,44(r31)                             <== NOT EXECUTED
ffc07f6c:	48 00 0b a9 	bl      ffc08b14 <free>                        <== NOT EXECUTED
ffc07f70:	48 00 01 54 	b       ffc080c4 <rtems_fdisk_initialize+0x43c><== NOT EXECUTED
 * @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,              
ffc07f74:	1d 0a 00 0c 	mulli   r8,r10,12                              
      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];                   
ffc07f78:	81 33 00 04 	lwz     r9,4(r19)                              
                                                                      
        for (seg_segment = 0; seg_segment < sd->count; seg_segment++, sc++)
ffc07f7c:	7c e9 42 2e 	lhzx    r7,r9,r8                               
      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];                   
ffc07f80:	7c a9 42 14 	add     r5,r9,r8                               
                                                                      
        for (seg_segment = 0; seg_segment < sd->count; seg_segment++, sc++)
ffc07f84:	38 c0 00 00 	li      r6,0                                   
ffc07f88:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc07f8c:	7c 69 1b 78 	mr      r9,r3                                  
        {                                                             
          sc->descriptor = sd;                                        
          sc->device     = device;                                    
          sc->segment    = seg_segment;                               
          sc->erased     = 0;                                         
ffc07f90:	39 07 00 01 	addi    r8,r7,1                                
ffc07f94:	40 be 00 24 	bne+    cr7,ffc07fb8 <rtems_fdisk_initialize+0x330><== ALWAYS TAKEN
ffc07f98:	39 00 00 01 	li      r8,1                                   <== NOT EXECUTED
ffc07f9c:	48 00 00 1c 	b       ffc07fb8 <rtems_fdisk_initialize+0x330><== NOT EXECUTED
                                                                      
        for (seg_segment = 0; seg_segment < sd->count; seg_segment++, sc++)
        {                                                             
          sc->descriptor = sd;                                        
          sc->device     = device;                                    
          sc->segment    = seg_segment;                               
ffc07fa0:	90 c9 00 0c 	stw     r6,12(r9)                              
        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++)
ffc07fa4:	38 c6 00 01 	addi    r6,r6,1                                
        {                                                             
          sc->descriptor = sd;                                        
ffc07fa8:	90 a9 00 04 	stw     r5,4(r9)                               
          sc->device     = device;                                    
ffc07fac:	93 69 00 08 	stw     r27,8(r9)                              
          sc->segment    = seg_segment;                               
          sc->erased     = 0;                                         
ffc07fb0:	92 a9 00 2c 	stw     r21,44(r9)                             
        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++)
ffc07fb4:	39 29 00 30 	addi    r9,r9,48                               
ffc07fb8:	35 08 ff ff 	addic.  r8,r8,-1                               
ffc07fbc:	40 82 ff e4 	bne+    ffc07fa0 <rtems_fdisk_initialize+0x318>
 * @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,              
ffc07fc0:	1c e7 00 30 	mulli   r7,r7,48                               
        return RTEMS_NO_MEMORY;                                       
      }                                                               
                                                                      
      sc = fd->devices[device].segments;                              
                                                                      
      for (segment = 0; segment < c->devices[device].segment_count; segment++)
ffc07fc4:	39 4a 00 01 	addi    r10,r10,1                              
ffc07fc8:	7c 63 3a 14 	add     r3,r3,r7                               
ffc07fcc:	48 00 00 08 	b       ffc07fd4 <rtems_fdisk_initialize+0x34c>
                                                                      
      segment_count = rtems_fdisk_count_segments (&c->devices[device]);
                                                                      
      fd->devices[device].segments = calloc (segment_count,           
                                             sizeof (rtems_fdisk_segment_ctl));
      if (!fd->devices[device].segments)                              
ffc07fd0:	39 40 00 00 	li      r10,0                                  
        return RTEMS_NO_MEMORY;                                       
      }                                                               
                                                                      
      sc = fd->devices[device].segments;                              
                                                                      
      for (segment = 0; segment < c->devices[device].segment_count; segment++)
ffc07fd4:	7f 8a 88 00 	cmpw    cr7,r10,r17                            
ffc07fd8:	40 9e ff 9c 	bne+    cr7,ffc07f74 <rtems_fdisk_initialize+0x2ec>
          sc->segment    = seg_segment;                               
          sc->erased     = 0;                                         
        }                                                             
      }                                                               
                                                                      
      fd->devices[device].segment_count = segment_count;              
ffc07fdc:	93 52 00 04 	stw     r26,4(r18)                             
      free (fd->devices);                                             
      rtems_fdisk_error ("disk create phy failed");                   
      return sc;                                                      
    }                                                                 
                                                                      
    for (device = 0; device < c->device_count; device++)              
ffc07fe0:	3b 7b 00 01 	addi    r27,r27,1                              
          sc->erased     = 0;                                         
        }                                                             
      }                                                               
                                                                      
      fd->devices[device].segment_count = segment_count;              
      fd->devices[device].descriptor    = &c->devices[device];        
ffc07fe4:	92 72 00 08 	stw     r19,8(r18)                             
ffc07fe8:	48 00 00 08 	b       ffc07ff0 <rtems_fdisk_initialize+0x368>
    }                                                                 
                                                                      
    sc = rtems_disk_create_phys(dev, c->block_size,                   
                                blocks - fd->unavail_blocks,          
                                rtems_fdisk_ioctl, NULL, name);       
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc07fec:	3b 60 00 00 	li      r27,0                                  
      free (fd->devices);                                             
      rtems_fdisk_error ("disk create phy failed");                   
      return sc;                                                      
    }                                                                 
                                                                      
    for (device = 0; device < c->device_count; device++)              
ffc07ff0:	81 3e ff e4 	lwz     r9,-28(r30)                            
ffc07ff4:	7f 9b 48 40 	cmplw   cr7,r27,r9                             
ffc07ff8:	41 9c fe f0 	blt+    cr7,ffc07ee8 <rtems_fdisk_initialize+0x260>
                                                                      
      fd->devices[device].segment_count = segment_count;              
      fd->devices[device].descriptor    = &c->devices[device];        
    }                                                                 
                                                                      
    fd->device_count = c->device_count;                               
ffc07ffc:	91 3f 00 30 	stw     r9,48(r31)                             
                                                                      
    ret = rtems_fdisk_recover_block_mappings (fd);                    
ffc08000:	7f e3 fb 78 	mr      r3,r31                                 
ffc08004:	4b ff e7 bd 	bl      ffc067c0 <rtems_fdisk_recover_block_mappings>
    if (ret)                                                          
ffc08008:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc0800c:	41 a2 00 58 	beq+    ffc08064 <rtems_fdisk_initialize+0x3dc><== ALWAYS TAKEN
    {                                                                 
      rtems_disk_delete (dev);                                        
ffc08010:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc08014:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc08018:	4b ff cf b1 	bl      ffc04fc8 <rtems_disk_delete>           <== NOT EXECUTED
      rtems_semaphore_delete (fd->lock);                              
ffc0801c:	80 7f 00 64 	lwz     r3,100(r31)                            <== NOT EXECUTED
ffc08020:	48 00 58 09 	bl      ffc0d828 <rtems_semaphore_delete>      <== NOT EXECUTED
      free (fd->copy_buffer);                                         
ffc08024:	80 7f 00 68 	lwz     r3,104(r31)                            <== NOT EXECUTED
ffc08028:	48 00 0a ed 	bl      ffc08b14 <free>                        <== NOT EXECUTED
      free (fd->blocks);                                              
ffc0802c:	80 7f 00 18 	lwz     r3,24(r31)                             <== NOT EXECUTED
ffc08030:	48 00 0a e5 	bl      ffc08b14 <free>                        <== NOT EXECUTED
      free (fd->devices);                                             
ffc08034:	80 7f 00 2c 	lwz     r3,44(r31)                             <== NOT EXECUTED
ffc08038:	48 00 0a dd 	bl      ffc08b14 <free>                        <== NOT EXECUTED
      rtems_fdisk_error ("recovery of disk failed: %s (%d)",          
ffc0803c:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc08040:	48 01 bd 1d 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc08044:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc08048:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc0804c:	38 63 2e cb 	addi    r3,r3,11979                            <== NOT EXECUTED
ffc08050:	7f 65 db 78 	mr      r5,r27                                 <== NOT EXECUTED
ffc08054:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc08058:	4b ff da 25 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
                         strerror (ret), ret);                        
      return ret;                                                     
ffc0805c:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc08060:	48 00 00 c8 	b       ffc08128 <rtems_fdisk_initialize+0x4a0><== NOT EXECUTED
    }                                                                 
                                                                      
    ret = rtems_fdisk_compact (fd);                                   
ffc08064:	7f e3 fb 78 	mr      r3,r31                                 
ffc08068:	4b ff e5 35 	bl      ffc0659c <rtems_fdisk_compact>         
ffc0806c:	3b de 00 20 	addi    r30,r30,32                             
    if (ret)                                                          
ffc08070:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc08074:	41 a2 00 48 	beq+    ffc080bc <rtems_fdisk_initialize+0x434><== ALWAYS TAKEN
    {                                                                 
      rtems_disk_delete (dev);                                        
ffc08078:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc0807c:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc08080:	4b ff cf 49 	bl      ffc04fc8 <rtems_disk_delete>           <== NOT EXECUTED
      rtems_semaphore_delete (fd->lock);                              
ffc08084:	80 7f 00 64 	lwz     r3,100(r31)                            <== NOT EXECUTED
ffc08088:	48 00 57 a1 	bl      ffc0d828 <rtems_semaphore_delete>      <== NOT EXECUTED
      free (fd->copy_buffer);                                         
ffc0808c:	80 7f 00 68 	lwz     r3,104(r31)                            <== NOT EXECUTED
ffc08090:	48 00 0a 85 	bl      ffc08b14 <free>                        <== NOT EXECUTED
      free (fd->blocks);                                              
ffc08094:	80 7f 00 18 	lwz     r3,24(r31)                             <== NOT EXECUTED
ffc08098:	48 00 0a 7d 	bl      ffc08b14 <free>                        <== NOT EXECUTED
      free (fd->devices);                                             
ffc0809c:	80 7f 00 2c 	lwz     r3,44(r31)                             <== NOT EXECUTED
ffc080a0:	48 00 0a 75 	bl      ffc08b14 <free>                        <== NOT EXECUTED
      rtems_fdisk_error ("compacting of disk failed: %s (%d)",        
ffc080a4:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc080a8:	48 01 bc b5 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc080ac:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc080b0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc080b4:	38 63 2e ec 	addi    r3,r3,12012                            <== NOT EXECUTED
ffc080b8:	4b ff ff 98 	b       ffc08050 <rtems_fdisk_initialize+0x3c8><== NOT EXECUTED
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
ffc080bc:	3b bd 00 01 	addi    r29,r29,1                              
ffc080c0:	48 00 00 28 	b       ffc080e8 <rtems_fdisk_initialize+0x460>
    /*                                                                
     * One copy buffer of a page size.                                
     */                                                               
    fd->copy_buffer = malloc (c->block_size);                         
    if (!fd->copy_buffer)                                             
      return RTEMS_NO_MEMORY;                                         
ffc080c4:	38 60 00 1a 	li      r3,26                                  <== NOT EXECUTED
ffc080c8:	48 00 00 60 	b       ffc08128 <rtems_fdisk_initialize+0x4a0><== NOT EXECUTED
ffc080cc:	3f c0 ff c3 	lis     r30,-61                                
      free (fd->blocks);                                              
      free (fd->devices);                                             
      return sc;                                                      
    }                                                                 
                                                                      
    sc = rtems_disk_create_phys(dev, c->block_size,                   
ffc080d0:	3e 80 ff c0 	lis     r20,-64                                
ffc080d4:	3b de 16 64 	addi    r30,r30,5732                           
      return sc;                                                      
                                                                      
  rtems_flashdisks = calloc (rtems_flashdisk_configuration_size,      
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
ffc080d8:	3b a0 00 00 	li      r29,0                                  
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
  {                                                                   
    char     name[] = RTEMS_FLASHDISK_DEVICE_BASE_NAME "a";           
ffc080dc:	3e e0 ff c3 	lis     r23,-61                                
    dev_t    dev = rtems_filesystem_make_dev_t (major, minor);        
    uint32_t device;                                                  
    uint32_t blocks = 0;                                              
ffc080e0:	3a a0 00 00 	li      r21,0                                  
      free (fd->blocks);                                              
      free (fd->devices);                                             
      return sc;                                                      
    }                                                                 
                                                                      
    sc = rtems_disk_create_phys(dev, c->block_size,                   
ffc080e4:	3a 94 6b 14 	addi    r20,r20,27412                          
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
ffc080e8:	81 38 27 88 	lwz     r9,10120(r24)                          
ffc080ec:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc080f0:	41 9c fc 1c 	blt+    cr7,ffc07d0c <rtems_fdisk_initialize+0x84>
                         strerror (ret), ret);                        
      return ret;                                                     
    }                                                                 
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
ffc080f4:	3d 40 00 01 	lis     r10,1                                  
ffc080f8:	91 2a 29 00 	stw     r9,10496(r10)                          
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc080fc:	38 60 00 00 	li      r3,0                                   
ffc08100:	48 00 00 28 	b       ffc08128 <rtems_fdisk_initialize+0x4a0>
                                                                      
  sc = rtems_fdisk_crc16_gen_factors (0x8408);                        
  if (sc != RTEMS_SUCCESSFUL)                                         
      return sc;                                                      
                                                                      
  rtems_flashdisks = calloc (rtems_flashdisk_configuration_size,      
ffc08104:	3f 00 00 00 	lis     r24,0                                  
ffc08108:	80 78 27 88 	lwz     r3,10120(r24)                          
ffc0810c:	38 80 00 74 	li      r4,116                                 
ffc08110:	3e c0 00 01 	lis     r22,1                                  
ffc08114:	48 00 08 59 	bl      ffc0896c <calloc>                      
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
ffc08118:	2f 83 00 00 	cmpwi   cr7,r3,0                               
                                                                      
  sc = rtems_fdisk_crc16_gen_factors (0x8408);                        
  if (sc != RTEMS_SUCCESSFUL)                                         
      return sc;                                                      
                                                                      
  rtems_flashdisks = calloc (rtems_flashdisk_configuration_size,      
ffc0811c:	90 76 28 fc 	stw     r3,10492(r22)                          
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
ffc08120:	40 9e ff ac 	bne+    cr7,ffc080cc <rtems_fdisk_initialize+0x444><== ALWAYS TAKEN
ffc08124:	4b ff ff a0 	b       ffc080c4 <rtems_fdisk_initialize+0x43c><== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc08128:	39 61 00 58 	addi    r11,r1,88                              
ffc0812c:	4b ff 94 04 	b       ffc01530 <_restgpr_16_x>               
                                                                      

ffc06b14 <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) {
ffc06b14:	94 21 ff 68 	stwu    r1,-152(r1)                            
ffc06b18:	7c 08 02 a6 	mflr    r0                                     
ffc06b1c:	7d 80 00 26 	mfcr    r12                                    
ffc06b20:	90 01 00 9c 	stw     r0,156(r1)                             
ffc06b24:	bd c1 00 50 	stmw    r14,80(r1)                             
ffc06b28:	7c 9d 23 78 	mr      r29,r4                                 
ffc06b2c:	7c bf 2b 78 	mr      r31,r5                                 
  dev_t device                                                        
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.device = device;                                               
ffc06b30:	83 23 00 04 	lwz     r25,4(r3)                              
  rtems_blkdev_request*     r = argp;                                 
  rtems_status_code         sc;                                       
                                                                      
  errno = 0;                                                          
                                                                      
  sc = rtems_semaphore_obtain (rtems_flashdisks[minor].lock, RTEMS_WAIT, 0);
ffc06b34:	3f c0 00 01 	lis     r30,1                                  
 * @param argp IOCTL argument.                                        
 * @retval The IOCTL return value                                     
 */                                                                   
static int                                                            
rtems_fdisk_ioctl (rtems_disk_device *dd, uint32_t req, void* argp)   
{                                                                     
ffc06b38:	91 81 00 4c 	stw     r12,76(r1)                             
ffc06b3c:	7c 7b 1b 78 	mr      r27,r3                                 
  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;                                                          
ffc06b40:	48 01 a6 8d 	bl      ffc211cc <__errno>                     
ffc06b44:	39 20 00 00 	li      r9,0                                   
ffc06b48:	91 23 00 00 	stw     r9,0(r3)                               
                                                                      
  sc = rtems_semaphore_obtain (rtems_flashdisks[minor].lock, RTEMS_WAIT, 0);
ffc06b4c:	1f 99 00 74 	mulli   r28,r25,116                            
ffc06b50:	81 3e 28 fc 	lwz     r9,10492(r30)                          
ffc06b54:	38 80 00 00 	li      r4,0                                   
ffc06b58:	38 a0 00 00 	li      r5,0                                   
ffc06b5c:	7d 29 e2 14 	add     r9,r9,r28                              
ffc06b60:	80 69 00 64 	lwz     r3,100(r9)                             
ffc06b64:	3b 1e 28 fc 	addi    r24,r30,10492                          
ffc06b68:	48 00 6d 7d 	bl      ffc0d8e4 <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc06b6c:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc06b70:	41 82 00 08 	beq-    ffc06b78 <rtems_fdisk_ioctl+0x64>      <== ALWAYS TAKEN
ffc06b74:	48 00 10 c0 	b       ffc07c34 <rtems_fdisk_ioctl+0x1120>    <== NOT EXECUTED
    errno = EIO;                                                      
  else                                                                
  {                                                                   
    errno = 0;                                                        
ffc06b78:	48 01 a6 55 	bl      ffc211cc <__errno>                     
    switch (req)                                                      
ffc06b7c:	3d 20 20 00 	lis     r9,8192                                
ffc06b80:	61 29 42 83 	ori     r9,r9,17027                            
  sc = rtems_semaphore_obtain (rtems_flashdisks[minor].lock, RTEMS_WAIT, 0);
  if (sc != RTEMS_SUCCESSFUL)                                         
    errno = EIO;                                                      
  else                                                                
  {                                                                   
    errno = 0;                                                        
ffc06b84:	93 43 00 00 	stw     r26,0(r3)                              
    switch (req)                                                      
ffc06b88:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc06b8c:	41 9e 0a e0 	beq-    cr7,ffc0766c <rtems_fdisk_ioctl+0xb58> <== NEVER TAKEN
ffc06b90:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc06b94:	3d 20 20 00 	lis     r9,8192                                
ffc06b98:	41 9d 00 28 	bgt-    cr7,ffc06bc0 <rtems_fdisk_ioctl+0xac>  
ffc06b9c:	61 29 42 81 	ori     r9,r9,17025                            
ffc06ba0:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc06ba4:	41 9e 0a 5c 	beq-    cr7,ffc07600 <rtems_fdisk_ioctl+0xaec> <== NEVER TAKEN
ffc06ba8:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc06bac:	41 9d 0a 70 	bgt-    cr7,ffc0761c <rtems_fdisk_ioctl+0xb08> <== NEVER TAKEN
ffc06bb0:	6f a9 20 00 	xoris   r9,r29,8192                            
ffc06bb4:	2f 89 42 80 	cmpwi   cr7,r9,17024                           
ffc06bb8:	40 9e 10 50 	bne-    cr7,ffc07c08 <rtems_fdisk_ioctl+0x10f4><== ALWAYS TAKEN
ffc06bbc:	48 00 09 48 	b       ffc07504 <rtems_fdisk_ioctl+0x9f0>     <== NOT EXECUTED
ffc06bc0:	61 29 42 85 	ori     r9,r9,17029                            
ffc06bc4:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc06bc8:	41 9e 0c 2c 	beq-    cr7,ffc077f4 <rtems_fdisk_ioctl+0xce0> 
ffc06bcc:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc06bd0:	41 9c 0c 14 	blt-    cr7,ffc077e4 <rtems_fdisk_ioctl+0xcd0> <== NEVER TAKEN
ffc06bd4:	6f a9 c0 18 	xoris   r9,r29,49176                           
ffc06bd8:	2f 89 42 01 	cmpwi   cr7,r9,16897                           
ffc06bdc:	40 9e 10 2c 	bne-    cr7,ffc07c08 <rtems_fdisk_ioctl+0x10f4>
    {                                                                 
      case RTEMS_BLKIO_REQUEST:                                       
        if ((minor >= rtems_flashdisk_count) ||                       
ffc06be0:	81 38 00 04 	lwz     r9,4(r24)                              
ffc06be4:	7f 99 48 40 	cmplw   cr7,r25,r9                             
ffc06be8:	40 9c 00 18 	bge-    cr7,ffc06c00 <rtems_fdisk_ioctl+0xec>  <== NEVER TAKEN
            (rtems_flashdisks[minor].device_count == 0))              
ffc06bec:	81 3e 28 fc 	lwz     r9,10492(r30)                          
ffc06bf0:	7d 29 e2 14 	add     r9,r9,r28                              
  {                                                                   
    errno = 0;                                                        
    switch (req)                                                      
    {                                                                 
      case RTEMS_BLKIO_REQUEST:                                       
        if ((minor >= rtems_flashdisk_count) ||                       
ffc06bf4:	81 29 00 30 	lwz     r9,48(r9)                              
ffc06bf8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06bfc:	40 9e 00 10 	bne-    cr7,ffc06c0c <rtems_fdisk_ioctl+0xf8>  <== ALWAYS TAKEN
            (rtems_flashdisks[minor].device_count == 0))              
        {                                                             
          errno = ENODEV;                                             
ffc06c00:	48 01 a5 cd 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc06c04:	39 20 00 13 	li      r9,19                                  <== NOT EXECUTED
ffc06c08:	48 00 08 f4 	b       ffc074fc <rtems_fdisk_ioctl+0x9e8>     <== NOT EXECUTED
        }                                                             
        else                                                          
        {                                                             
          switch (r->req)                                             
ffc06c0c:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc06c10:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06c14:	41 9e 00 10 	beq-    cr7,ffc06c24 <rtems_fdisk_ioctl+0x110> 
ffc06c18:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc06c1c:	40 be 08 d8 	bne+    cr7,ffc074f4 <rtems_fdisk_ioctl+0x9e0> <== NEVER TAKEN
ffc06c20:	48 00 02 d8 	b       ffc06ef8 <rtems_fdisk_ioctl+0x3e4>     
          {                                                           
            case RTEMS_BLKDEV_REQ_READ:                               
              errno = rtems_fdisk_read (&rtems_flashdisks[minor], r); 
ffc06c24:	48 01 a5 a9 	bl      ffc211cc <__errno>                     
ffc06c28:	83 be 28 fc 	lwz     r29,10492(r30)                         
                         block, sc->device, sc->segment, bc->page);   
    }                                                                 
  }                                                                   
  else                                                                
  {                                                                   
    rtems_fdisk_error ("read-block: block page not active: %d: %d-%d-%d",
ffc06c2c:	3e 60 ff c3 	lis     r19,-61                                
        else                                                          
        {                                                             
          switch (r->req)                                             
          {                                                           
            case RTEMS_BLKDEV_REQ_READ:                               
              errno = rtems_fdisk_read (&rtems_flashdisks[minor], r); 
ffc06c30:	90 61 00 30 	stw     r3,48(r1)                              
      rtems_fdisk_error ("read-block: crc failure: %d: buffer:%04x page:%04x",
                         block, cs, pd->crc);                         
    }                                                                 
    else                                                              
    {                                                                 
      rtems_fdisk_error ("read-block: block points to used page: %d: %d-%d-%d",
ffc06c34:	3e 40 ff c3 	lis     r18,-61                                
      cs = rtems_fdisk_page_checksum (buffer, fd->block_size);        
                                                                      
      if (cs == pd->crc)                                              
        return 0;                                                     
                                                                      
      rtems_fdisk_error ("read-block: crc failure: %d: buffer:%04x page:%04x",
ffc06c38:	3e 20 ff c3 	lis     r17,-61                                
        else                                                          
        {                                                             
          switch (r->req)                                             
          {                                                           
            case RTEMS_BLKDEV_REQ_READ:                               
              errno = rtems_fdisk_read (&rtems_flashdisks[minor], r); 
ffc06c3c:	7f bd e2 14 	add     r29,r29,r28                            
 * @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;                             
ffc06c40:	3b 5f 00 18 	addi    r26,r31,24                             
  uint32_t                buf;                                        
  int                     ret = 0;                                    
                                                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
ffc06c44:	3a c0 00 00 	li      r22,0                                  
                         block, sc->device, sc->segment, bc->page);   
    }                                                                 
  }                                                                   
  else                                                                
  {                                                                   
    rtems_fdisk_error ("read-block: block page not active: %d: %d-%d-%d",
ffc06c48:	3a 73 2a 36 	addi    r19,r19,10806                          
      rtems_fdisk_error ("read-block: crc failure: %d: buffer:%04x page:%04x",
                         block, cs, pd->crc);                         
    }                                                                 
    else                                                              
    {                                                                 
      rtems_fdisk_error ("read-block: block points to used page: %d: %d-%d-%d",
ffc06c4c:	3a 52 2a 02 	addi    r18,r18,10754                          
      cs = rtems_fdisk_page_checksum (buffer, fd->block_size);        
                                                                      
      if (cs == pd->crc)                                              
        return 0;                                                     
                                                                      
      rtems_fdisk_error ("read-block: crc failure: %d: buffer:%04x page:%04x",
ffc06c50:	3a 31 29 cf 	addi    r17,r17,10703                          
ffc06c54:	48 00 02 6c 	b       ffc06ec0 <rtems_fdisk_ioctl+0x3ac>     
  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;                                 
ffc06c58:	82 1a 00 04 	lwz     r16,4(r26)                             
    data = sg->buffer;                                                
    for (b = 0; b < fb; b++, data += fd->block_size)                  
ffc06c5c:	3b 00 00 00 	li      r24,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;                                 
ffc06c60:	81 3d 00 14 	lwz     r9,20(r29)                             
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
ffc06c64:	3d e0 ff c3 	lis     r15,-61                                
  {                                                                   
    uint8_t* data;                                                    
    uint32_t fb;                                                      
    uint32_t b;                                                       
    fb = sg->length / fd->block_size;                                 
    data = sg->buffer;                                                
ffc06c68:	83 3a 00 08 	lwz     r25,8(r26)                             
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
ffc06c6c:	3d c0 ff c3 	lis     r14,-61                                
  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;                                 
ffc06c70:	7e 10 4b 96 	divwu   r16,r16,r9                             
ffc06c74:	48 00 02 30 	b       ffc06ea4 <rtems_fdisk_ioctl+0x390>     
    data = sg->buffer;                                                
    for (b = 0; b < fb; b++, data += fd->block_size)                  
    {                                                                 
      ret = rtems_fdisk_read_block (fd, sg->block + b, data);         
ffc06c78:	83 7a 00 00 	lwz     r27,0(r26)                             
  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);                      
ffc06c7c:	3c a0 ff c3 	lis     r5,-61                                 
ffc06c80:	80 85 24 5c 	lwz     r4,9308(r5)                            
ffc06c84:	7f a3 eb 78 	mr      r3,r29                                 
    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);         
ffc06c88:	7f 78 da 14 	add     r27,r24,r27                            
  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);                      
ffc06c8c:	7f 65 db 78 	mr      r5,r27                                 
ffc06c90:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06c94:	4b ff eb 6d 	bl      ffc05800 <rtems_fdisk_info>            
                                                                      
  /*                                                                  
   * Broken out to allow info messages when testing.                  
   */                                                                 
                                                                      
  if (block >= (fd->block_count - fd->unavail_blocks))                
ffc06c98:	81 5d 00 1c 	lwz     r10,28(r29)                            
ffc06c9c:	81 3d 00 20 	lwz     r9,32(r29)                             
ffc06ca0:	7d 29 50 50 	subf    r9,r9,r10                              
ffc06ca4:	7f 9b 48 40 	cmplw   cr7,r27,r9                             
ffc06ca8:	41 bc 00 1c 	blt+    cr7,ffc06cc4 <rtems_fdisk_ioctl+0x1b0> <== ALWAYS TAKEN
  {                                                                   
    rtems_fdisk_error ("read-block: block out of range: %d", block);  
ffc06cac:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc06cb0:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc06cb4:	38 63 29 0d 	addi    r3,r3,10509                            <== NOT EXECUTED
ffc06cb8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06cbc:	4b ff ed c1 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
ffc06cc0:	48 00 0f b0 	b       ffc07c70 <rtems_fdisk_ioctl+0x115c>    <== NOT EXECUTED
    return EIO;                                                       
  }                                                                   
                                                                      
  bc = &fd->blocks[block];                                            
ffc06cc4:	81 3d 00 18 	lwz     r9,24(r29)                             
ffc06cc8:	57 6a 18 38 	rlwinm  r10,r27,3,0,28                         
                                                                      
  if (!bc->segment)                                                   
ffc06ccc:	7f c9 50 2e 	lwzx    r30,r9,r10                             
  {                                                                   
    rtems_fdisk_error ("read-block: block out of range: %d", block);  
    return EIO;                                                       
  }                                                                   
                                                                      
  bc = &fd->blocks[block];                                            
ffc06cd0:	7e e9 52 14 	add     r23,r9,r10                             
                                                                      
  if (!bc->segment)                                                   
ffc06cd4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc06cd8:	40 be 00 30 	bne+    cr7,ffc06d08 <rtems_fdisk_ioctl+0x1f4> 
  {                                                                   
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, "read-block: no segment mapping: %d", block);
ffc06cdc:	3c c0 ff c3 	lis     r6,-61                                 
ffc06ce0:	80 86 24 60 	lwz     r4,9312(r6)                            
ffc06ce4:	7f 65 db 78 	mr      r5,r27                                 
ffc06ce8:	7f a3 eb 78 	mr      r3,r29                                 
ffc06cec:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06cf0:	4b ff eb 11 	bl      ffc05800 <rtems_fdisk_info>            
#endif                                                                
    memset (buffer, 0xff, fd->block_size);                            
ffc06cf4:	80 bd 00 14 	lwz     r5,20(r29)                             
ffc06cf8:	7f 23 cb 78 	mr      r3,r25                                 
ffc06cfc:	38 80 00 ff 	li      r4,255                                 
ffc06d00:	48 01 bc 15 	bl      ffc22914 <memset>                      
ffc06d04:	48 00 0f 5c 	b       ffc07c60 <rtems_fdisk_ioctl+0x114c>    
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
ffc06d08:	80 be 00 00 	lwz     r5,0(r30)                              
    memset (buffer, 0xff, fd->block_size);                            
    return 0;                                                         
  }                                                                   
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
ffc06d0c:	81 17 00 04 	lwz     r8,4(r23)                              
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
ffc06d10:	2f 85 00 00 	cmpwi   cr7,r5,0                               
    memset (buffer, 0xff, fd->block_size);                            
    return 0;                                                         
  }                                                                   
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
ffc06d14:	82 9e 00 10 	lwz     r20,16(r30)                            
ffc06d18:	55 15 18 38 	rlwinm  r21,r8,3,0,28                          
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
ffc06d1c:	80 de 00 08 	lwz     r6,8(r30)                              
    memset (buffer, 0xff, fd->block_size);                            
    return 0;                                                         
  }                                                                   
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
ffc06d20:	7d 94 aa 14 	add     r12,r20,r21                            
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
ffc06d24:	80 fe 00 0c 	lwz     r7,12(r30)                             
ffc06d28:	81 3e 00 14 	lwz     r9,20(r30)                             
ffc06d2c:	81 5e 00 1c 	lwz     r10,28(r30)                            
ffc06d30:	80 7e 00 20 	lwz     r3,32(r30)                             
ffc06d34:	80 9e 00 24 	lwz     r4,36(r30)                             
ffc06d38:	41 9e 00 0c 	beq-    cr7,ffc06d44 <rtems_fdisk_ioctl+0x230> 
ffc06d3c:	38 ae 41 8e 	addi    r5,r14,16782                           
ffc06d40:	48 00 00 08 	b       ffc06d48 <rtems_fdisk_ioctl+0x234>     
ffc06d44:	38 af 25 75 	addi    r5,r15,9589                            
ffc06d48:	90 61 00 08 	stw     r3,8(r1)                               
ffc06d4c:	7f a3 eb 78 	mr      r3,r29                                 
ffc06d50:	90 81 00 0c 	stw     r4,12(r1)                              
ffc06d54:	90 a1 00 10 	stw     r5,16(r1)                              
ffc06d58:	a0 ac 00 02 	lhz     r5,2(r12)                              
ffc06d5c:	90 a1 00 14 	stw     r5,20(r1)                              
ffc06d60:	7c b4 aa 2e 	lhzx    r5,r20,r21                             
ffc06d64:	90 a1 00 18 	stw     r5,24(r1)                              
ffc06d68:	80 ac 00 04 	lwz     r5,4(r12)                              
ffc06d6c:	91 81 00 3c 	stw     r12,60(r1)                             
ffc06d70:	90 a1 00 1c 	stw     r5,28(r1)                              
ffc06d74:	3c a0 ff c3 	lis     r5,-61                                 
ffc06d78:	80 85 24 64 	lwz     r4,9316(r5)                            
ffc06d7c:	7f 65 db 78 	mr      r5,r27                                 
ffc06d80:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06d84:	4b ff ea 7d 	bl      ffc05800 <rtems_fdisk_info>            
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc06d88:	81 81 00 3c 	lwz     r12,60(r1)                             
ffc06d8c:	a1 2c 00 02 	lhz     r9,2(r12)                              
                    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))  
ffc06d90:	71 26 00 01 	andi.   r6,r9,1                                
ffc06d94:	40 82 00 f0 	bne-    ffc06e84 <rtems_fdisk_ioctl+0x370>     <== NEVER TAKEN
  {                                                                   
    if (rtems_fdisk_page_desc_flags_clear (pd, RTEMS_FDISK_PAGE_USED))
ffc06d98:	71 28 00 02 	andi.   r8,r9,2                                
ffc06d9c:	80 f7 00 04 	lwz     r7,4(r23)                              
ffc06da0:	41 a2 00 d0 	beq+    ffc06e70 <rtems_fdisk_ioctl+0x35c>     <== NEVER TAKEN
                                                                      
      /*                                                              
       * 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,                    
ffc06da4:	81 5e 00 18 	lwz     r10,24(r30)                            
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,                                
ffc06da8:	7f a3 eb 78 	mr      r3,r29                                 
                               page * fd->block_size, buffer, fd->block_size);
ffc06dac:	81 3d 00 14 	lwz     r9,20(r29)                             
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,                                
ffc06db0:	7f c4 f3 78 	mr      r4,r30                                 
                                                                      
      /*                                                              
       * 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,                    
ffc06db4:	7c aa 3a 14 	add     r5,r10,r7                              
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,                                
ffc06db8:	7c a5 49 d6 	mullw   r5,r5,r9                               
ffc06dbc:	7d 27 4b 78 	mr      r7,r9                                  
ffc06dc0:	7f 26 cb 78 	mr      r6,r25                                 
ffc06dc4:	4b ff ed a5 	bl      ffc05b68 <rtems_fdisk_seg_read>        
       * driver. This skips the page descriptors.                     
       */                                                             
      int ret = rtems_fdisk_seg_read_page (fd, sc,                    
                                           bc->page + sc->pages_desc, buffer);
                                                                      
      if (ret)                                                        
ffc06dc8:	7c 69 1b 79 	mr.     r9,r3                                  
ffc06dcc:	41 a2 00 44 	beq+    ffc06e10 <rtems_fdisk_ioctl+0x2fc>     <== ALWAYS TAKEN
      {                                                               
#if RTEMS_FDISK_TRACE                                                 
        rtems_fdisk_info (fd,                                         
ffc06dd0:	83 3e 00 08 	lwz     r25,8(r30)                             <== NOT EXECUTED
ffc06dd4:	83 7e 00 0c 	lwz     r27,12(r30)                            <== NOT EXECUTED
ffc06dd8:	83 d7 00 04 	lwz     r30,4(r23)                             <== NOT EXECUTED
ffc06ddc:	91 21 00 44 	stw     r9,68(r1)                              <== NOT EXECUTED
ffc06de0:	48 01 cf 7d 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc06de4:	3c 80 ff c3 	lis     r4,-61                                 <== NOT EXECUTED
ffc06de8:	81 21 00 44 	lwz     r9,68(r1)                              <== NOT EXECUTED
ffc06dec:	7c 68 1b 78 	mr      r8,r3                                  <== NOT EXECUTED
ffc06df0:	38 84 29 9a 	addi    r4,r4,10650                            <== NOT EXECUTED
ffc06df4:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc06df8:	7f 25 cb 78 	mr      r5,r25                                 <== NOT EXECUTED
ffc06dfc:	7f 66 db 78 	mr      r6,r27                                 <== NOT EXECUTED
ffc06e00:	7f c7 f3 78 	mr      r7,r30                                 <== NOT EXECUTED
ffc06e04:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06e08:	4b ff e9 f9 	bl      ffc05800 <rtems_fdisk_info>            <== NOT EXECUTED
ffc06e0c:	48 00 0e 64 	b       ffc07c70 <rtems_fdisk_ioctl+0x115c>    <== NOT EXECUTED
                          strerror (ret), ret);                       
#endif                                                                
        return ret;                                                   
      }                                                               
                                                                      
      cs = rtems_fdisk_page_checksum (buffer, fd->block_size);        
ffc06e10:	81 5d 00 14 	lwz     r10,20(r29)                            
{                                                                     
  uint16_t cs = 0xffff;                                               
  uint32_t i;                                                         
                                                                      
  for (i = 0; i < page_size; i++, buffer++)                           
    cs = rtems_fdisk_calc_crc16 (cs, *buffer);                        
ffc06e14:	3c a0 00 01 	lis     r5,1                                   
ffc06e18:	39 25 28 fc 	addi    r9,r5,10492                            
 * Calculate the checksum of a page in a segment.                     
 */                                                                   
static uint16_t                                                       
rtems_fdisk_page_checksum (const uint8_t* buffer, uint32_t page_size) 
{                                                                     
  uint16_t cs = 0xffff;                                               
ffc06e1c:	39 4a 00 01 	addi    r10,r10,1                              
  uint32_t i;                                                         
                                                                      
  for (i = 0; i < page_size; i++, buffer++)                           
    cs = rtems_fdisk_calc_crc16 (cs, *buffer);                        
ffc06e20:	81 09 00 08 	lwz     r8,8(r9)                               
 * Calculate the checksum of a page in a segment.                     
 */                                                                   
static uint16_t                                                       
rtems_fdisk_page_checksum (const uint8_t* buffer, uint32_t page_size) 
{                                                                     
  uint16_t cs = 0xffff;                                               
ffc06e24:	38 a0 00 00 	li      r5,0                                   
ffc06e28:	7d 49 03 a6 	mtctr   r10                                    
  uint32_t i;                                                         
                                                                      
  for (i = 0; i < page_size; i++, buffer++)                           
ffc06e2c:	39 20 00 00 	li      r9,0                                   
 * Calculate the checksum of a page in a segment.                     
 */                                                                   
static uint16_t                                                       
rtems_fdisk_page_checksum (const uint8_t* buffer, uint32_t page_size) 
{                                                                     
  uint16_t cs = 0xffff;                                               
ffc06e30:	60 a5 ff ff 	ori     r5,r5,65535                            
ffc06e34:	48 00 00 18 	b       ffc06e4c <rtems_fdisk_ioctl+0x338>     
  uint32_t i;                                                         
                                                                      
  for (i = 0; i < page_size; i++, buffer++)                           
    cs = rtems_fdisk_calc_crc16 (cs, *buffer);                        
ffc06e38:	7d 59 48 ae 	lbzx    r10,r25,r9                             
rtems_fdisk_page_checksum (const uint8_t* buffer, uint32_t page_size) 
{                                                                     
  uint16_t cs = 0xffff;                                               
  uint32_t i;                                                         
                                                                      
  for (i = 0; i < page_size; i++, buffer++)                           
ffc06e3c:	39 29 00 01 	addi    r9,r9,1                                
    cs = rtems_fdisk_calc_crc16 (cs, *buffer);                        
ffc06e40:	7d 45 2a 78 	xor     r5,r10,r5                              
ffc06e44:	54 a5 0d fc 	rlwinm  r5,r5,1,23,30                          
ffc06e48:	7c a8 2a 2e 	lhzx    r5,r8,r5                               
rtems_fdisk_page_checksum (const uint8_t* buffer, uint32_t page_size) 
{                                                                     
  uint16_t cs = 0xffff;                                               
  uint32_t i;                                                         
                                                                      
  for (i = 0; i < page_size; i++, buffer++)                           
ffc06e4c:	42 00 ff ec 	bdnz+   ffc06e38 <rtems_fdisk_ioctl+0x324>     
        return ret;                                                   
      }                                                               
                                                                      
      cs = rtems_fdisk_page_checksum (buffer, fd->block_size);        
                                                                      
      if (cs == pd->crc)                                              
ffc06e50:	7c d4 aa 2e 	lhzx    r6,r20,r21                             
ffc06e54:	7f 85 30 00 	cmpw    cr7,r5,r6                              
ffc06e58:	41 9e 0e 08 	beq-    cr7,ffc07c60 <rtems_fdisk_ioctl+0x114c><== ALWAYS TAKEN
        return 0;                                                     
                                                                      
      rtems_fdisk_error ("read-block: crc failure: %d: buffer:%04x page:%04x",
ffc06e5c:	7e 23 8b 78 	mr      r3,r17                                 <== NOT EXECUTED
ffc06e60:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc06e64:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06e68:	4b ff ec 15 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
ffc06e6c:	48 00 0e 04 	b       ffc07c70 <rtems_fdisk_ioctl+0x115c>    <== NOT EXECUTED
                         block, cs, pd->crc);                         
    }                                                                 
    else                                                              
    {                                                                 
      rtems_fdisk_error ("read-block: block points to used page: %d: %d-%d-%d",
ffc06e70:	7e 43 93 78 	mr      r3,r18                                 <== NOT EXECUTED
ffc06e74:	80 be 00 08 	lwz     r5,8(r30)                              <== NOT EXECUTED
ffc06e78:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc06e7c:	80 de 00 0c 	lwz     r6,12(r30)                             <== NOT EXECUTED
ffc06e80:	48 00 00 18 	b       ffc06e98 <rtems_fdisk_ioctl+0x384>     <== NOT EXECUTED
                         block, sc->device, sc->segment, bc->page);   
    }                                                                 
  }                                                                   
  else                                                                
  {                                                                   
    rtems_fdisk_error ("read-block: block page not active: %d: %d-%d-%d",
ffc06e84:	80 be 00 08 	lwz     r5,8(r30)                              <== NOT EXECUTED
ffc06e88:	7e 63 9b 78 	mr      r3,r19                                 <== NOT EXECUTED
ffc06e8c:	80 de 00 0c 	lwz     r6,12(r30)                             <== NOT EXECUTED
ffc06e90:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc06e94:	80 f7 00 04 	lwz     r7,4(r23)                              <== NOT EXECUTED
ffc06e98:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06e9c:	4b ff eb e1 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
ffc06ea0:	48 00 0d d0 	b       ffc07c70 <rtems_fdisk_ioctl+0x115c>    <== 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)                  
ffc06ea4:	7f 98 80 00 	cmpw    cr7,r24,r16                            
ffc06ea8:	40 9e fd d0 	bne+    cr7,ffc06c78 <rtems_fdisk_ioctl+0x164> 
ffc06eac:	39 20 00 00 	li      r9,0                                   
{                                                                     
  rtems_blkdev_sg_buffer* sg = req->bufs;                             
  uint32_t                buf;                                        
  int                     ret = 0;                                    
                                                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
ffc06eb0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06eb4:	3a d6 00 01 	addi    r22,r22,1                              
ffc06eb8:	3b 5a 00 10 	addi    r26,r26,16                             
ffc06ebc:	40 9e 00 18 	bne-    cr7,ffc06ed4 <rtems_fdisk_ioctl+0x3c0> <== NEVER TAKEN
ffc06ec0:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc06ec4:	7f 96 48 40 	cmplw   cr7,r22,r9                             
ffc06ec8:	41 9c fd 90 	blt+    cr7,ffc06c58 <rtems_fdisk_ioctl+0x144> 
      if (ret)                                                        
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  rtems_blkdev_request_done (req, ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL);
ffc06ecc:	38 80 00 00 	li      r4,0                                   
ffc06ed0:	48 00 00 08 	b       ffc06ed8 <rtems_fdisk_ioctl+0x3c4>     
ffc06ed4:	38 80 00 1b 	li      r4,27                                  <== NOT EXECUTED
static inline void rtems_blkdev_request_done(                         
  rtems_blkdev_request *req,                                          
  rtems_status_code status                                            
)                                                                     
{                                                                     
  (*req->done)(req, status);                                          
ffc06ed8:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc06edc:	7f e3 fb 78 	mr      r3,r31                                 
ffc06ee0:	7d 29 03 a6 	mtctr   r9                                     
ffc06ee4:	4e 80 04 21 	bctrl                                          
        else                                                          
        {                                                             
          switch (r->req)                                             
          {                                                           
            case RTEMS_BLKDEV_REQ_READ:                               
              errno = rtems_fdisk_read (&rtems_flashdisks[minor], r); 
ffc06ee8:	80 a1 00 30 	lwz     r5,48(r1)                              
ffc06eec:	39 20 00 00 	li      r9,0                                   
ffc06ef0:	91 25 00 00 	stw     r9,0(r5)                               
              break;                                                  
ffc06ef4:	48 00 0d 24 	b       ffc07c18 <rtems_fdisk_ioctl+0x1104>    
                                                                      
            case RTEMS_BLKDEV_REQ_WRITE:                              
              errno = rtems_fdisk_write (&rtems_flashdisks[minor], r);
ffc06ef8:	48 01 a2 d5 	bl      ffc211cc <__errno>                     
ffc06efc:	3d 20 00 01 	lis     r9,1                                   
ffc06f00:	83 c9 28 fc 	lwz     r30,10492(r9)                          
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " write:%02d-%03d-%03d: flag used",         
ffc06f04:	3d e0 ff c3 	lis     r15,-61                                
            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);
ffc06f08:	7c 70 1b 78 	mr      r16,r3                                 
ffc06f0c:	7f de e2 14 	add     r30,r30,r28                            
 * @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;                             
ffc06f10:	3b 3f 00 18 	addi    r25,r31,24                             
  uint32_t                buf;                                        
  int                     ret = 0;                                    
                                                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
ffc06f14:	3a c0 00 00 	li      r22,0                                  
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " write:%02d-%03d-%03d: flag used",         
ffc06f18:	39 ef 2a 99 	addi    r15,r15,10905                          
ffc06f1c:	48 00 05 a4 	b       ffc074c0 <rtems_fdisk_ioctl+0x9ac>     
  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;                                 
ffc06f20:	81 d9 00 04 	lwz     r14,4(r25)                             
    data = sg->buffer;                                                
    for (b = 0; b < fb; b++, data += fd->block_size)                  
ffc06f24:	3a e0 00 00 	li      r23,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;                                 
ffc06f28:	81 3e 00 14 	lwz     r9,20(r30)                             
    data = sg->buffer;                                                
ffc06f2c:	83 19 00 08 	lwz     r24,8(r25)                             
  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;                                 
ffc06f30:	7d ce 4b 96 	divwu   r14,r14,r9                             
ffc06f34:	48 00 05 70 	b       ffc074a4 <rtems_fdisk_ioctl+0x990>     
    data = sg->buffer;                                                
    for (b = 0; b < fb; b++, data += fd->block_size)                  
    {                                                                 
      ret = rtems_fdisk_write_block (fd, sg->block + b, data);        
ffc06f38:	83 79 00 00 	lwz     r27,0(r25)                             
  rtems_fdisk_page_desc*   pd;                                        
  uint32_t                 page;                                      
  int                      ret;                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "write-block:%d", block);                     
ffc06f3c:	3c c0 ff c3 	lis     r6,-61                                 
ffc06f40:	80 86 24 68 	lwz     r4,9320(r6)                            
ffc06f44:	7f c3 f3 78 	mr      r3,r30                                 
    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);        
ffc06f48:	7f 77 da 14 	add     r27,r23,r27                            
  rtems_fdisk_page_desc*   pd;                                        
  uint32_t                 page;                                      
  int                      ret;                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "write-block:%d", block);                     
ffc06f4c:	7f 65 db 78 	mr      r5,r27                                 
ffc06f50:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06f54:	4b ff e8 ad 	bl      ffc05800 <rtems_fdisk_info>            
                                                                      
  /*                                                                  
   * Broken out to allow info messages when testing.                  
   */                                                                 
                                                                      
  if (block >= (fd->block_count - fd->unavail_blocks))                
ffc06f58:	81 5e 00 1c 	lwz     r10,28(r30)                            
ffc06f5c:	81 3e 00 20 	lwz     r9,32(r30)                             
ffc06f60:	7d 29 50 50 	subf    r9,r9,r10                              
ffc06f64:	7f 9b 48 40 	cmplw   cr7,r27,r9                             
ffc06f68:	41 9c 00 1c 	blt-    cr7,ffc06f84 <rtems_fdisk_ioctl+0x470> <== ALWAYS TAKEN
  {                                                                   
    rtems_fdisk_error ("write-block: block out of range: %d", block); 
ffc06f6c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc06f70:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc06f74:	38 63 2a 75 	addi    r3,r3,10869                            <== NOT EXECUTED
ffc06f78:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06f7c:	4b ff eb 01 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
ffc06f80:	48 00 05 08 	b       ffc07488 <rtems_fdisk_ioctl+0x974>     <== NOT EXECUTED
    return EIO;                                                       
  }                                                                   
                                                                      
  bc = &fd->blocks[block];                                            
ffc06f84:	82 9e 00 18 	lwz     r20,24(r30)                            
ffc06f88:	57 75 18 38 	rlwinm  r21,r27,3,0,28                         
                                                                      
  /*                                                                  
   * Does the page exist in flash ?                                   
   */                                                                 
  if (bc->segment)                                                    
ffc06f8c:	7f b4 a8 2e 	lwzx    r29,r20,r21                            
  {                                                                   
    rtems_fdisk_error ("write-block: block out of range: %d", block); 
    return EIO;                                                       
  }                                                                   
                                                                      
  bc = &fd->blocks[block];                                            
ffc06f90:	7f 54 aa 14 	add     r26,r20,r21                            
                                                                      
  /*                                                                  
   * Does the page exist in flash ?                                   
   */                                                                 
  if (bc->segment)                                                    
ffc06f94:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc06f98:	41 9e 02 30 	beq-    cr7,ffc071c8 <rtems_fdisk_ioctl+0x6b4> 
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
ffc06f9c:	81 3a 00 04 	lwz     r9,4(r26)                              
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " write:%02d-%03d-%03d: flag used",         
ffc06fa0:	7d e4 7b 78 	mr      r4,r15                                 
   * Does the page exist in flash ?                                   
   */                                                                 
  if (bc->segment)                                                    
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
ffc06fa4:	80 1d 00 10 	lwz     r0,16(r29)                             
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " write:%02d-%03d-%03d: flag used",         
ffc06fa8:	7f c3 f3 78 	mr      r3,r30                                 
ffc06fac:	80 bd 00 08 	lwz     r5,8(r29)                              
ffc06fb0:	7d 27 4b 78 	mr      r7,r9                                  
ffc06fb4:	80 dd 00 0c 	lwz     r6,12(r29)                             
ffc06fb8:	90 01 00 40 	stw     r0,64(r1)                              
ffc06fbc:	91 21 00 44 	stw     r9,68(r1)                              
ffc06fc0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06fc4:	4b ff e8 3d 	bl      ffc05800 <rtems_fdisk_info>            
  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",     
ffc06fc8:	3c 80 ff c3 	lis     r4,-61                                 
#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,     
ffc06fcc:	82 3d 00 08 	lwz     r17,8(r29)                             
  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",     
ffc06fd0:	38 84 2a ba 	addi    r4,r4,10938                            
#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,     
ffc06fd4:	81 1d 00 18 	lwz     r8,24(r29)                             
  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",     
ffc06fd8:	7f c3 f3 78 	mr      r3,r30                                 
#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,     
ffc06fdc:	81 5a 00 04 	lwz     r10,4(r26)                             
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;            
ffc06fe0:	1c f1 00 0c 	mulli   r7,r17,12                              
#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,     
ffc06fe4:	82 5d 00 0c 	lwz     r18,12(r29)                            
ffc06fe8:	7d 48 52 14 	add     r10,r8,r10                             
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;            
ffc06fec:	81 1e 00 2c 	lwz     r8,44(r30)                             
                             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);
ffc06ff0:	82 7e 00 14 	lwz     r19,20(r30)                            
  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",     
ffc06ff4:	7e 25 8b 78 	mr      r5,r17                                 
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;            
ffc06ff8:	7c c8 3a 14 	add     r6,r8,r7                               
ffc06ffc:	7c e8 38 2e 	lwzx    r7,r8,r7                               
ffc07000:	1d 12 00 30 	mulli   r8,r18,48                              
ffc07004:	7d 07 42 14 	add     r8,r7,r8                               
ffc07008:	81 88 00 04 	lwz     r12,4(r8)                              
                             uint32_t               device,           
                             uint32_t               segment,          
                             uint32_t               page,             
                             const void*            buffer)           
{                                                                     
  return rtems_fdisk_seg_verify (fd, device, segment,                 
ffc0700c:	7d 4a 99 d6 	mullw   r10,r10,r19                            
                        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;                    
ffc07010:	81 06 00 08 	lwz     r8,8(r6)                               
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-verify: %02d-%03d: o=%08x s=%d",     
ffc07014:	7e 46 93 78 	mr      r6,r18                                 
                        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;                    
ffc07018:	81 68 00 08 	lwz     r11,8(r8)                              
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-verify: %02d-%03d: o=%08x s=%d",     
ffc0701c:	7d 47 53 78 	mr      r7,r10                                 
ffc07020:	7e 68 9b 78 	mr      r8,r19                                 
ffc07024:	91 41 00 34 	stw     r10,52(r1)                             
ffc07028:	91 61 00 38 	stw     r11,56(r1)                             
ffc0702c:	91 81 00 3c 	stw     r12,60(r1)                             
ffc07030:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07034:	4b ff e8 a1 	bl      ffc058d4 <rtems_fdisk_printf>          
                      device, segment, offset, size);                 
#endif                                                                
  return ops->verify (sd, device, segment, offset, buffer, size);     
ffc07038:	7e 24 8b 78 	mr      r4,r17                                 
ffc0703c:	81 61 00 38 	lwz     r11,56(r1)                             
ffc07040:	7e 45 93 78 	mr      r5,r18                                 
ffc07044:	81 81 00 3c 	lwz     r12,60(r1)                             
ffc07048:	7f 07 c3 78 	mr      r7,r24                                 
ffc0704c:	81 6b 00 0c 	lwz     r11,12(r11)                            
ffc07050:	7e 68 9b 78 	mr      r8,r19                                 
ffc07054:	81 41 00 34 	lwz     r10,52(r1)                             
ffc07058:	7d 83 63 78 	mr      r3,r12                                 
ffc0705c:	7d 69 03 a6 	mtctr   r11                                    
ffc07060:	7d 46 53 78 	mr      r6,r10                                 
ffc07064:	4e 80 04 21 	bctrl                                          
#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,     
ffc07068:	80 01 00 40 	lwz     r0,64(r1)                              
ffc0706c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07070:	81 21 00 44 	lwz     r9,68(r1)                              
ffc07074:	40 be 00 2c 	bne+    cr7,ffc070a0 <rtems_fdisk_ioctl+0x58c> 
                                     bc->page + sc->pages_desc, buffer) == 0)
    {                                                                 
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, "write-block:%d=>%02d-%03d-%03d: page verified",
ffc07078:	3c 80 ff c3 	lis     r4,-61                                 
ffc0707c:	80 dd 00 08 	lwz     r6,8(r29)                              
ffc07080:	80 fd 00 0c 	lwz     r7,12(r29)                             
ffc07084:	7f c3 f3 78 	mr      r3,r30                                 
ffc07088:	81 1a 00 04 	lwz     r8,4(r26)                              
ffc0708c:	38 84 2a df 	addi    r4,r4,10975                            
ffc07090:	7f 65 db 78 	mr      r5,r27                                 
ffc07094:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07098:	4b ff e7 69 	bl      ffc05800 <rtems_fdisk_info>            
ffc0709c:	48 00 03 fc 	b       ffc07498 <rtems_fdisk_ioctl+0x984>     
   * Does the page exist in flash ?                                   
   */                                                                 
  if (bc->segment)                                                    
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
ffc070a0:	55 29 18 38 	rlwinm  r9,r9,3,0,28                           
                                       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));
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc070a4:	81 5e 00 08 	lwz     r10,8(r30)                             
   * Does the page exist in flash ?                                   
   */                                                                 
  if (bc->segment)                                                    
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
ffc070a8:	7e 40 4a 14 	add     r18,r0,r9                              
 * 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;                                                
ffc070ac:	a1 32 00 02 	lhz     r9,2(r18)                              
                                       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));
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc070b0:	71 45 00 08 	andi.   r5,r10,8                               
 * 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;                                                
ffc070b4:	55 29 07 fa 	rlwinm  r9,r9,0,31,29                          
ffc070b8:	b1 32 00 02 	sth     r9,2(r18)                              
     * matches the flash device.                                      
     */                                                               
                                                                      
    rtems_fdisk_page_desc_set_flags (pd, RTEMS_FDISK_PAGE_USED);      
                                                                      
    ret = rtems_fdisk_seg_write_page_desc_flags (fd, sc, bc->page, pd);
ffc070bc:	81 3a 00 04 	lwz     r9,4(r26)                              
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)) +        
ffc070c0:	55 31 18 38 	rlwinm  r17,r9,3,0,28                          
                     ((uint8_t*) &page_desc->flags) - ((uint8_t*) page_desc));
ffc070c4:	3a 31 00 02 	addi    r17,r17,2                              
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc070c8:	41 82 00 60 	beq-    ffc07128 <rtems_fdisk_ioctl+0x614>     <== NEVER TAKEN
  {                                                                   
    uint16_t flash_flags;                                             
    int      ret;                                                     
    ret = rtems_fdisk_seg_read (fd, sc, offset,                       
ffc070cc:	7f c3 f3 78 	mr      r3,r30                                 
ffc070d0:	91 21 00 44 	stw     r9,68(r1)                              
ffc070d4:	7f a4 eb 78 	mr      r4,r29                                 
ffc070d8:	7e 25 8b 78 	mr      r5,r17                                 
ffc070dc:	38 c1 00 26 	addi    r6,r1,38                               
ffc070e0:	38 e0 00 02 	li      r7,2                                   
ffc070e4:	4b ff ea 85 	bl      ffc05b68 <rtems_fdisk_seg_read>        
                                &flash_flags, sizeof (flash_flags));  
    if (ret)                                                          
ffc070e8:	81 21 00 44 	lwz     r9,68(r1)                              
ffc070ec:	7c 73 1b 79 	mr.     r19,r3                                 
ffc070f0:	40 82 00 54 	bne-    ffc07144 <rtems_fdisk_ioctl+0x630>     <== NEVER TAKEN
      return ret;                                                     
    if ((flash_flags & page_desc->flags) != page_desc->flags)         
ffc070f4:	a1 12 00 02 	lhz     r8,2(r18)                              
ffc070f8:	a0 e1 00 26 	lhz     r7,38(r1)                              
ffc070fc:	7d 0a 38 38 	and     r10,r8,r7                              
ffc07100:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc07104:	41 9e 00 24 	beq-    cr7,ffc07128 <rtems_fdisk_ioctl+0x614> <== ALWAYS TAKEN
    {                                                                 
      rtems_fdisk_error ("  seg-write-page-flags: %02d-%03d-%03d: "   
ffc07108:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc0710c:	80 9d 00 08 	lwz     r4,8(r29)                              <== NOT EXECUTED
ffc07110:	80 bd 00 0c 	lwz     r5,12(r29)                             <== NOT EXECUTED
ffc07114:	7d 26 4b 78 	mr      r6,r9                                  <== NOT EXECUTED
ffc07118:	38 63 2b 0d 	addi    r3,r3,11021                            <== NOT EXECUTED
ffc0711c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07120:	4b ff e9 5d 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
ffc07124:	48 00 00 6c 	b       ffc07190 <rtems_fdisk_ioctl+0x67c>     <== NOT EXECUTED
                         sc->device, sc->segment, page,               
                         flash_flags, page_desc->flags);              
      return ret;                                                     
    }                                                                 
  }                                                                   
  return rtems_fdisk_seg_write (fd, sc, offset,                       
ffc07128:	7f c3 f3 78 	mr      r3,r30                                 
ffc0712c:	7f a4 eb 78 	mr      r4,r29                                 
ffc07130:	7e 25 8b 78 	mr      r5,r17                                 
ffc07134:	38 d2 00 02 	addi    r6,r18,2                               
ffc07138:	38 e0 00 02 	li      r7,2                                   
ffc0713c:	4b ff eb b1 	bl      ffc05cec <rtems_fdisk_seg_write>       
ffc07140:	7c 73 1b 78 	mr      r19,r3                                 
                                                                      
    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)                                                          
ffc07144:	2f 93 00 00 	cmpwi   cr7,r19,0                              
ffc07148:	41 be 00 48 	beq+    cr7,ffc07190 <rtems_fdisk_ioctl+0x67c> <== ALWAYS TAKEN
    {                                                                 
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%02d-%03d-%03d: "      \          
ffc0714c:	80 bd 00 08 	lwz     r5,8(r29)                              <== NOT EXECUTED
ffc07150:	7e 63 9b 78 	mr      r3,r19                                 <== NOT EXECUTED
ffc07154:	82 3d 00 0c 	lwz     r17,12(r29)                            <== NOT EXECUTED
ffc07158:	82 5a 00 04 	lwz     r18,4(r26)                             <== NOT EXECUTED
ffc0715c:	90 a1 00 34 	stw     r5,52(r1)                              <== NOT EXECUTED
ffc07160:	48 01 cb fd 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc07164:	3c 80 ff c3 	lis     r4,-61                                 <== NOT EXECUTED
ffc07168:	80 a1 00 34 	lwz     r5,52(r1)                              <== NOT EXECUTED
ffc0716c:	7c 68 1b 78 	mr      r8,r3                                  <== NOT EXECUTED
ffc07170:	38 84 2b 57 	addi    r4,r4,11095                            <== NOT EXECUTED
ffc07174:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc07178:	7e 26 8b 78 	mr      r6,r17                                 <== NOT EXECUTED
ffc0717c:	7e 47 93 78 	mr      r7,r18                                 <== NOT EXECUTED
ffc07180:	7e 69 9b 78 	mr      r9,r19                                 <== NOT EXECUTED
ffc07184:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07188:	4b ff e6 79 	bl      ffc05800 <rtems_fdisk_info>            <== NOT EXECUTED
ffc0718c:	48 00 00 1c 	b       ffc071a8 <rtems_fdisk_ioctl+0x694>     <== NOT EXECUTED
                        strerror (ret), ret);                         
#endif                                                                
    }                                                                 
    else                                                              
    {                                                                 
      sc->pages_active--;                                             
ffc07190:	81 3d 00 1c 	lwz     r9,28(r29)                             
ffc07194:	39 29 ff ff 	addi    r9,r9,-1                               
ffc07198:	91 3d 00 1c 	stw     r9,28(r29)                             
      sc->pages_used++;                                               
ffc0719c:	81 3d 00 20 	lwz     r9,32(r29)                             
ffc071a0:	39 29 00 01 	addi    r9,r9,1                                
ffc071a4:	91 3d 00 20 	stw     r9,32(r29)                             
    /*                                                                
     * 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);                               
ffc071a8:	7f c3 f3 78 	mr      r3,r30                                 
ffc071ac:	7f a4 eb 78 	mr      r4,r29                                 
ffc071b0:	4b ff ee 9d 	bl      ffc0604c <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)            
ffc071b4:	81 3e 00 08 	lwz     r9,8(r30)                              
ffc071b8:	71 26 00 02 	andi.   r6,r9,2                                
ffc071bc:	40 a2 00 0c 	bne+    ffc071c8 <rtems_fdisk_ioctl+0x6b4>     <== NEVER TAKEN
      rtems_fdisk_compact (fd);                                       
ffc071c0:	7f c3 f3 78 	mr      r3,r30                                 
ffc071c4:	4b ff f3 d9 	bl      ffc0659c <rtems_fdisk_compact>         
  /*                                                                  
   * Is it time to compact the disk ?                                 
   *                                                                  
   * We override the background compaction configruation.             
   */                                                                 
  if (rtems_fdisk_segment_count_queue (&fd->available) <=             
ffc071c8:	80 7e 00 34 	lwz     r3,52(r30)                             
ffc071cc:	4b ff e9 7d 	bl      ffc05b48 <rtems_fdisk_segment_count_queue.isra.1>
ffc071d0:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc071d4:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc071d8:	41 bd 00 0c 	bgt+    cr7,ffc071e4 <rtems_fdisk_ioctl+0x6d0> 
      fd->avail_compact_segs)                                         
    rtems_fdisk_compact (fd);                                         
ffc071dc:	7f c3 f3 78 	mr      r3,r30                                 
ffc071e0:	4b ff f3 bd 	bl      ffc0659c <rtems_fdisk_compact>         
                                                                      
  /*                                                                  
   * Get the next avaliable segment.                                  
   */                                                                 
  sc = rtems_fdisk_segment_queue_pop_head (&fd->available);           
ffc071e4:	3b be 00 34 	addi    r29,r30,52                             
ffc071e8:	7f a3 eb 78 	mr      r3,r29                                 
ffc071ec:	4b ff e4 95 	bl      ffc05680 <rtems_fdisk_segment_queue_pop_head>
                                                                      
  /*                                                                  
   * Is the flash disk full ?                                         
   */                                                                 
  if (!sc)                                                            
ffc071f0:	7c 73 1b 79 	mr.     r19,r3                                 
ffc071f4:	40 a2 00 40 	bne+    ffc07234 <rtems_fdisk_ioctl+0x720>     <== 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))                 
ffc071f8:	81 3e 00 08 	lwz     r9,8(r30)                              <== NOT EXECUTED
ffc071fc:	71 28 00 02 	andi.   r8,r9,2                                <== NOT EXECUTED
ffc07200:	41 a2 00 0c 	beq+    ffc0720c <rtems_fdisk_ioctl+0x6f8>     <== NOT EXECUTED
      rtems_fdisk_compact (fd);                                       
ffc07204:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc07208:	4b ff f3 95 	bl      ffc0659c <rtems_fdisk_compact>         <== NOT EXECUTED
                                                                      
    /*                                                                
     * Try again for some free space.                                 
     */                                                               
    sc = rtems_fdisk_segment_queue_pop_head (&fd->available);         
ffc0720c:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc07210:	4b ff e4 71 	bl      ffc05680 <rtems_fdisk_segment_queue_pop_head><== NOT EXECUTED
                                                                      
    if (!sc)                                                          
ffc07214:	7c 73 1b 79 	mr.     r19,r3                                 <== NOT EXECUTED
ffc07218:	40 a2 00 1c 	bne+    ffc07234 <rtems_fdisk_ioctl+0x720>     <== NOT EXECUTED
    {                                                                 
      rtems_fdisk_error ("write-block: no available pages");          
ffc0721c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc07220:	38 63 2b 93 	addi    r3,r3,11155                            <== NOT EXECUTED
ffc07224:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07228:	4b ff e8 55 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
      return ENOSPC;                                                  
ffc0722c:	3b a0 00 1c 	li      r29,28                                 <== NOT EXECUTED
ffc07230:	48 00 02 80 	b       ffc074b0 <rtems_fdisk_ioctl+0x99c>     <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  if (fd->info_level >= 3)                                            
ffc07234:	81 3e 00 6c 	lwz     r9,108(r30)                            
ffc07238:	2b 89 00 02 	cmplwi  cr7,r9,2                               
ffc0723c:	40 bd 00 38 	ble+    cr7,ffc07274 <rtems_fdisk_ioctl+0x760> <== ALWAYS TAKEN
  {                                                                   
    char queues[5];                                                   
    rtems_fdisk_queue_status (fd, sc, queues);                        
ffc07240:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc07244:	7e 64 9b 78 	mr      r4,r19                                 <== NOT EXECUTED
ffc07248:	38 a1 00 20 	addi    r5,r1,32                               <== NOT EXECUTED
ffc0724c:	4b ff ed 45 	bl      ffc05f90 <rtems_fdisk_queue_status>    <== NOT EXECUTED
    rtems_fdisk_info (fd, " write:%d=>%02d-%03d: queue check: %s",    
ffc07250:	3d 20 ff c3 	lis     r9,-61                                 <== NOT EXECUTED
ffc07254:	80 89 24 6c 	lwz     r4,9324(r9)                            <== NOT EXECUTED
ffc07258:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc0725c:	80 d3 00 08 	lwz     r6,8(r19)                              <== NOT EXECUTED
ffc07260:	7f 65 db 78 	mr      r5,r27                                 <== NOT EXECUTED
ffc07264:	80 f3 00 0c 	lwz     r7,12(r19)                             <== NOT EXECUTED
ffc07268:	39 01 00 20 	addi    r8,r1,32                               <== NOT EXECUTED
ffc0726c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07270:	4b ff e5 91 	bl      ffc05800 <rtems_fdisk_info>            <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Find the next avaliable page in the segment.                     
   */                                                                 
                                                                      
  pd = sc->page_descriptors;                                          
ffc07274:	81 33 00 10 	lwz     r9,16(r19)                             
                                                                      
  for (page = 0; page < sc->pages; page++, pd++)                      
ffc07278:	3a 40 00 00 	li      r18,0                                  
ffc0727c:	83 b3 00 14 	lwz     r29,20(r19)                            
ffc07280:	48 00 01 cc 	b       ffc0744c <rtems_fdisk_ioctl+0x938>     
  {                                                                   
    if (rtems_fdisk_page_desc_erased (pd))                            
ffc07284:	7e 23 8b 78 	mr      r3,r17                                 
ffc07288:	91 21 00 44 	stw     r9,68(r1)                              
ffc0728c:	4b ff e5 2d 	bl      ffc057b8 <rtems_fdisk_page_desc_erased>
ffc07290:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07294:	81 21 00 44 	lwz     r9,68(r1)                              
ffc07298:	41 be 01 b0 	beq+    cr7,ffc07448 <rtems_fdisk_ioctl+0x934> 
    {                                                                 
      pd->crc   = rtems_fdisk_page_checksum (buffer, fd->block_size); 
ffc0729c:	81 5e 00 14 	lwz     r10,20(r30)                            
{                                                                     
  uint16_t cs = 0xffff;                                               
  uint32_t i;                                                         
                                                                      
  for (i = 0; i < page_size; i++, buffer++)                           
    cs = rtems_fdisk_calc_crc16 (cs, *buffer);                        
ffc072a0:	3c a0 00 01 	lis     r5,1                                   
ffc072a4:	39 25 28 fc 	addi    r9,r5,10492                            
 * Calculate the checksum of a page in a segment.                     
 */                                                                   
static uint16_t                                                       
rtems_fdisk_page_checksum (const uint8_t* buffer, uint32_t page_size) 
{                                                                     
  uint16_t cs = 0xffff;                                               
ffc072a8:	39 00 00 00 	li      r8,0                                   
  uint32_t i;                                                         
                                                                      
  for (i = 0; i < page_size; i++, buffer++)                           
    cs = rtems_fdisk_calc_crc16 (cs, *buffer);                        
ffc072ac:	80 e9 00 08 	lwz     r7,8(r9)                               
 * Calculate the checksum of a page in a segment.                     
 */                                                                   
static uint16_t                                                       
rtems_fdisk_page_checksum (const uint8_t* buffer, uint32_t page_size) 
{                                                                     
  uint16_t cs = 0xffff;                                               
ffc072b0:	39 4a 00 01 	addi    r10,r10,1                              
  uint32_t i;                                                         
                                                                      
  for (i = 0; i < page_size; i++, buffer++)                           
ffc072b4:	39 20 00 00 	li      r9,0                                   
 * Calculate the checksum of a page in a segment.                     
 */                                                                   
static uint16_t                                                       
rtems_fdisk_page_checksum (const uint8_t* buffer, uint32_t page_size) 
{                                                                     
  uint16_t cs = 0xffff;                                               
ffc072b8:	7d 49 03 a6 	mtctr   r10                                    
ffc072bc:	61 08 ff ff 	ori     r8,r8,65535                            
ffc072c0:	48 00 00 18 	b       ffc072d8 <rtems_fdisk_ioctl+0x7c4>     
  uint32_t i;                                                         
                                                                      
  for (i = 0; i < page_size; i++, buffer++)                           
    cs = rtems_fdisk_calc_crc16 (cs, *buffer);                        
ffc072c4:	7d 58 48 ae 	lbzx    r10,r24,r9                             
rtems_fdisk_page_checksum (const uint8_t* buffer, uint32_t page_size) 
{                                                                     
  uint16_t cs = 0xffff;                                               
  uint32_t i;                                                         
                                                                      
  for (i = 0; i < page_size; i++, buffer++)                           
ffc072c8:	39 29 00 01 	addi    r9,r9,1                                
    cs = rtems_fdisk_calc_crc16 (cs, *buffer);                        
ffc072cc:	7d 48 42 78 	xor     r8,r10,r8                              
ffc072d0:	55 08 0d fc 	rlwinm  r8,r8,1,23,30                          
ffc072d4:	7d 07 42 2e 	lhzx    r8,r7,r8                               
rtems_fdisk_page_checksum (const uint8_t* buffer, uint32_t page_size) 
{                                                                     
  uint16_t cs = 0xffff;                                               
  uint32_t i;                                                         
                                                                      
  for (i = 0; i < page_size; i++, buffer++)                           
ffc072d8:	42 00 ff ec 	bdnz+   ffc072c4 <rtems_fdisk_ioctl+0x7b0>     
      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: " \    
ffc072dc:	80 b3 00 00 	lwz     r5,0(r19)                              
 * 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;                                                
ffc072e0:	a1 31 00 02 	lhz     r9,2(r17)                              
      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: " \    
ffc072e4:	2f 85 00 00 	cmpwi   cr7,r5,0                               
                                                                      
  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); 
ffc072e8:	b1 11 00 00 	sth     r8,0(r17)                              
 * 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;                                                
ffc072ec:	55 29 04 3c 	rlwinm  r9,r9,0,16,30                          
  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); 
      pd->block = block;                                              
ffc072f0:	93 71 00 04 	stw     r27,4(r17)                             
      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: " \    
ffc072f4:	80 d3 00 08 	lwz     r6,8(r19)                              
    if (rtems_fdisk_page_desc_erased (pd))                            
    {                                                                 
      pd->crc   = rtems_fdisk_page_checksum (buffer, fd->block_size); 
      pd->block = block;                                              
                                                                      
      bc->segment = sc;                                               
ffc072f8:	7e 74 a9 2e 	stwx    r19,r20,r21                            
      bc->page    = page;                                             
ffc072fc:	92 5a 00 04 	stw     r18,4(r26)                             
                                                                      
      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: " \    
ffc07300:	80 f3 00 0c 	lwz     r7,12(r19)                             
 * 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;                                                
ffc07304:	b1 31 00 02 	sth     r9,2(r17)                              
      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: " \    
ffc07308:	81 53 00 1c 	lwz     r10,28(r19)                            
ffc0730c:	80 73 00 20 	lwz     r3,32(r19)                             
ffc07310:	80 93 00 24 	lwz     r4,36(r19)                             
ffc07314:	41 9e 00 10 	beq-    cr7,ffc07324 <rtems_fdisk_ioctl+0x810> <== ALWAYS TAKEN
ffc07318:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc0731c:	38 a5 41 8e 	addi    r5,r5,16782                            <== NOT EXECUTED
ffc07320:	48 00 00 0c 	b       ffc0732c <rtems_fdisk_ioctl+0x818>     <== NOT EXECUTED
ffc07324:	3c a0 ff c3 	lis     r5,-61                                 
ffc07328:	38 a5 25 75 	addi    r5,r5,9589                             
ffc0732c:	91 01 00 18 	stw     r8,24(r1)                              
ffc07330:	3d 00 ff c3 	lis     r8,-61                                 
ffc07334:	90 61 00 08 	stw     r3,8(r1)                               
ffc07338:	7f c3 f3 78 	mr      r3,r30                                 
ffc0733c:	90 81 00 0c 	stw     r4,12(r1)                              
ffc07340:	90 a1 00 10 	stw     r5,16(r1)                              
ffc07344:	7f 65 db 78 	mr      r5,r27                                 
ffc07348:	80 88 24 70 	lwz     r4,9328(r8)                            
ffc0734c:	7e 48 93 78 	mr      r8,r18                                 
ffc07350:	91 21 00 14 	stw     r9,20(r1)                              
ffc07354:	7f a9 eb 78 	mr      r9,r29                                 
ffc07358:	93 61 00 1c 	stw     r27,28(r1)                             
ffc0735c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07360:	4b ff e4 a1 	bl      ffc05800 <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);
ffc07364:	80 b3 00 18 	lwz     r5,24(r19)                             
ffc07368:	7f c3 f3 78 	mr      r3,r30                                 
ffc0736c:	7e 64 9b 78 	mr      r4,r19                                 
ffc07370:	7c b2 2a 14 	add     r5,r18,r5                              
ffc07374:	7f 06 c3 78 	mr      r6,r24                                 
ffc07378:	4b ff ea 8d 	bl      ffc05e04 <rtems_fdisk_seg_write_page>  
      if (ret)                                                        
ffc0737c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc07380:	41 82 00 30 	beq-    ffc073b0 <rtems_fdisk_ioctl+0x89c>     <== ALWAYS TAKEN
      {                                                               
#if RTEMS_FDISK_TRACE                                                 
        rtems_fdisk_info (fd, "write-block:%02d-%03d-%03d: write page failed: " \
ffc07384:	83 53 00 08 	lwz     r26,8(r19)                             <== NOT EXECUTED
ffc07388:	83 73 00 0c 	lwz     r27,12(r19)                            <== NOT EXECUTED
ffc0738c:	48 01 c9 d1 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc07390:	3d 20 ff c3 	lis     r9,-61                                 <== NOT EXECUTED
ffc07394:	7c 68 1b 78 	mr      r8,r3                                  <== NOT EXECUTED
ffc07398:	80 89 24 74 	lwz     r4,9332(r9)                            <== NOT EXECUTED
ffc0739c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc073a0:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc073a4:	7f 66 db 78 	mr      r6,r27                                 <== NOT EXECUTED
ffc073a8:	7e 47 93 78 	mr      r7,r18                                 <== NOT EXECUTED
ffc073ac:	48 00 00 4c 	b       ffc073f8 <rtems_fdisk_ioctl+0x8e4>     <== NOT EXECUTED
                          strerror (ret), ret);                       
#endif                                                                
      }                                                               
      else                                                            
      {                                                               
        ret = rtems_fdisk_seg_write_page_desc (fd, sc, page, pd);     
ffc073b0:	7f c3 f3 78 	mr      r3,r30                                 
ffc073b4:	7e 64 9b 78 	mr      r4,r19                                 
ffc073b8:	7e 45 93 78 	mr      r5,r18                                 
ffc073bc:	7e 26 8b 78 	mr      r6,r17                                 
ffc073c0:	4b ff e9 d5 	bl      ffc05d94 <rtems_fdisk_seg_write_page_desc>
        if (ret)                                                      
ffc073c4:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc073c8:	41 a2 00 40 	beq+    ffc07408 <rtems_fdisk_ioctl+0x8f4>     <== ALWAYS TAKEN
        {                                                             
#if RTEMS_FDISK_TRACE                                                 
          rtems_fdisk_info (fd, "write-block:%02d-%03d-%03d: "  \     
ffc073cc:	82 93 00 08 	lwz     r20,8(r19)                             <== NOT EXECUTED
ffc073d0:	82 b3 00 0c 	lwz     r21,12(r19)                            <== NOT EXECUTED
ffc073d4:	83 7a 00 04 	lwz     r27,4(r26)                             <== NOT EXECUTED
ffc073d8:	48 01 c9 85 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc073dc:	3d 40 ff c3 	lis     r10,-61                                <== NOT EXECUTED
ffc073e0:	80 8a 24 78 	lwz     r4,9336(r10)                           <== NOT EXECUTED
ffc073e4:	7c 68 1b 78 	mr      r8,r3                                  <== NOT EXECUTED
ffc073e8:	7e 85 a3 78 	mr      r5,r20                                 <== NOT EXECUTED
ffc073ec:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc073f0:	7e a6 ab 78 	mr      r6,r21                                 <== NOT EXECUTED
ffc073f4:	7f 67 db 78 	mr      r7,r27                                 <== NOT EXECUTED
ffc073f8:	7f a9 eb 78 	mr      r9,r29                                 <== NOT EXECUTED
ffc073fc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07400:	4b ff e4 01 	bl      ffc05800 <rtems_fdisk_info>            <== NOT EXECUTED
ffc07404:	48 00 00 10 	b       ffc07414 <rtems_fdisk_ioctl+0x900>     <== NOT EXECUTED
                            strerror (ret), ret);                     
#endif                                                                
        }                                                             
        else                                                          
        {                                                             
          sc->pages_active++;                                         
ffc07408:	81 33 00 1c 	lwz     r9,28(r19)                             
ffc0740c:	39 29 00 01 	addi    r9,r9,1                                
ffc07410:	91 33 00 1c 	stw     r9,28(r19)                             
        }                                                             
      }                                                               
                                                                      
      rtems_fdisk_queue_segment (fd, sc);                             
ffc07414:	7f c3 f3 78 	mr      r3,r30                                 
ffc07418:	7e 64 9b 78 	mr      r4,r19                                 
ffc0741c:	4b ff ec 31 	bl      ffc0604c <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)                                                     
ffc07420:	81 5e 00 28 	lwz     r10,40(r30)                            
ffc07424:	81 3e 00 24 	lwz     r9,36(r30)                             
ffc07428:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc0742c:	40 9c 00 64 	bge-    cr7,ffc07490 <rtems_fdisk_ioctl+0x97c> 
    fd->starvations++;                                                
ffc07430:	81 3e 00 70 	lwz     r9,112(r30)                            
      }                                                               
                                                                      
      rtems_fdisk_queue_segment (fd, sc);                             
                                                                      
      if (rtems_fdisk_is_erased_blocks_starvation (fd))               
        rtems_fdisk_compact (fd);                                     
ffc07434:	7f c3 f3 78 	mr      r3,r30                                 
rtems_fdisk_is_erased_blocks_starvation (rtems_flashdisk* fd)         
{                                                                     
  bool starvation = fd->erased_blocks < fd->starvation_threshold;     
                                                                      
  if (starvation)                                                     
    fd->starvations++;                                                
ffc07438:	39 29 00 01 	addi    r9,r9,1                                
ffc0743c:	91 3e 00 70 	stw     r9,112(r30)                            
      }                                                               
                                                                      
      rtems_fdisk_queue_segment (fd, sc);                             
                                                                      
      if (rtems_fdisk_is_erased_blocks_starvation (fd))               
        rtems_fdisk_compact (fd);                                     
ffc07440:	4b ff f1 5d 	bl      ffc0659c <rtems_fdisk_compact>         
ffc07444:	48 00 00 4c 	b       ffc07490 <rtems_fdisk_ioctl+0x97c>     
   * Find the next avaliable page in the segment.                     
   */                                                                 
                                                                      
  pd = sc->page_descriptors;                                          
                                                                      
  for (page = 0; page < sc->pages; page++, pd++)                      
ffc07448:	3a 52 00 01 	addi    r18,r18,1                              
ffc0744c:	7f 92 e8 00 	cmpw    cr7,r18,r29                            
 * @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)   
ffc07450:	56 51 18 38 	rlwinm  r17,r18,3,0,28                         
ffc07454:	7e 29 8a 14 	add     r17,r9,r17                             
   * Find the next avaliable page in the segment.                     
   */                                                                 
                                                                      
  pd = sc->page_descriptors;                                          
                                                                      
  for (page = 0; page < sc->pages; page++, pd++)                      
ffc07458:	40 9e fe 2c 	bne+    cr7,ffc07284 <rtems_fdisk_ioctl+0x770> <== ALWAYS TAKEN
                                                                      
      return ret;                                                     
    }                                                                 
  }                                                                   
                                                                      
  rtems_fdisk_error ("write-block: no erased page descs in segment: %d-%d",
ffc0745c:	80 93 00 08 	lwz     r4,8(r19)                              <== NOT EXECUTED
ffc07460:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc07464:	80 b3 00 0c 	lwz     r5,12(r19)                             <== NOT EXECUTED
ffc07468:	38 63 2c 9b 	addi    r3,r3,11419                            <== NOT EXECUTED
ffc0746c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07470:	4b ff e6 0d 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
                     sc->device, sc->segment);                        
                                                                      
  sc->failed = true;                                                  
ffc07474:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc07478:	91 33 00 28 	stw     r9,40(r19)                             <== NOT EXECUTED
  rtems_fdisk_queue_segment (fd, sc);                                 
ffc0747c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc07480:	7e 64 9b 78 	mr      r4,r19                                 <== NOT EXECUTED
ffc07484:	4b ff eb c9 	bl      ffc0604c <rtems_fdisk_queue_segment>   <== NOT EXECUTED
                                                                      
  return EIO;                                                         
ffc07488:	3b a0 00 05 	li      r29,5                                  <== NOT EXECUTED
ffc0748c:	48 00 00 24 	b       ffc074b0 <rtems_fdisk_ioctl+0x99c>     <== 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)                                                        
ffc07490:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc07494:	40 9e 00 1c 	bne-    cr7,ffc074b0 <rtems_fdisk_ioctl+0x99c> <== 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)                  
ffc07498:	81 3e 00 14 	lwz     r9,20(r30)                             
ffc0749c:	3a f7 00 01 	addi    r23,r23,1                              
ffc074a0:	7f 18 4a 14 	add     r24,r24,r9                             
ffc074a4:	7f 97 70 00 	cmpw    cr7,r23,r14                            
ffc074a8:	40 9e fa 90 	bne+    cr7,ffc06f38 <rtems_fdisk_ioctl+0x424> 
ffc074ac:	3b a0 00 00 	li      r29,0                                  
{                                                                     
  rtems_blkdev_sg_buffer* sg = req->bufs;                             
  uint32_t                buf;                                        
  int                     ret = 0;                                    
                                                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
ffc074b0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc074b4:	3a d6 00 01 	addi    r22,r22,1                              
ffc074b8:	3b 39 00 10 	addi    r25,r25,16                             
ffc074bc:	40 9e 00 18 	bne-    cr7,ffc074d4 <rtems_fdisk_ioctl+0x9c0> <== NEVER TAKEN
ffc074c0:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc074c4:	7f 96 48 40 	cmplw   cr7,r22,r9                             
ffc074c8:	41 9c fa 58 	blt+    cr7,ffc06f20 <rtems_fdisk_ioctl+0x40c> 
      if (ret)                                                        
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  rtems_blkdev_request_done (req, ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL);
ffc074cc:	38 80 00 00 	li      r4,0                                   
ffc074d0:	48 00 00 08 	b       ffc074d8 <rtems_fdisk_ioctl+0x9c4>     
ffc074d4:	38 80 00 1b 	li      r4,27                                  <== NOT EXECUTED
ffc074d8:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc074dc:	7f e3 fb 78 	mr      r3,r31                                 
ffc074e0:	7d 29 03 a6 	mtctr   r9                                     
ffc074e4:	4e 80 04 21 	bctrl                                          
            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);
ffc074e8:	39 20 00 00 	li      r9,0                                   
ffc074ec:	91 30 00 00 	stw     r9,0(r16)                              
              break;                                                  
ffc074f0:	48 00 07 28 	b       ffc07c18 <rtems_fdisk_ioctl+0x1104>    
                                                                      
            default:                                                  
              errno = EINVAL;                                         
ffc074f4:	48 01 9c d9 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc074f8:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc074fc:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
              break;                                                  
ffc07500:	48 00 07 18 	b       ffc07c18 <rtems_fdisk_ioctl+0x1104>    <== NOT EXECUTED
          }                                                           
        }                                                             
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_ERASE_DISK:                              
        errno = rtems_fdisk_erase_disk (&rtems_flashdisks[minor]);    
ffc07504:	48 01 9c c9 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc07508:	83 fe 28 fc 	lwz     r31,10492(r30)                         <== NOT EXECUTED
{                                                                     
  uint32_t device;                                                    
  int      ret;                                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "erase-disk");                                
ffc0750c:	3c 80 ff c3 	lis     r4,-61                                 <== NOT EXECUTED
          }                                                           
        }                                                             
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_ERASE_DISK:                              
        errno = rtems_fdisk_erase_disk (&rtems_flashdisks[minor]);    
ffc07510:	7f ff e2 14 	add     r31,r31,r28                            <== NOT EXECUTED
ffc07514:	7c 7b 1b 78 	mr      r27,r3                                 <== NOT EXECUTED
{                                                                     
  uint32_t device;                                                    
  int      ret;                                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "erase-disk");                                
ffc07518:	38 84 2c cf 	addi    r4,r4,11471                            <== NOT EXECUTED
ffc0751c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
  for (device = 0; device < fd->device_count; device++)               
  {                                                                   
    int ret;                                                          
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " erase-flash:%02d", device);               
ffc07520:	3f 00 ff c3 	lis     r24,-61                                <== NOT EXECUTED
{                                                                     
  uint32_t device;                                                    
  int      ret;                                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "erase-disk");                                
ffc07524:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07528:	4b ff e2 d9 	bl      ffc05800 <rtems_fdisk_info>            <== 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);             
ffc0752c:	3f 40 ff c3 	lis     r26,-61                                <== NOT EXECUTED
 */                                                                   
static int                                                            
rtems_fdisk_erase_flash (const rtems_flashdisk* fd)                   
{                                                                     
  uint32_t device;                                                    
  for (device = 0; device < fd->device_count; device++)               
ffc07530:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
  {                                                                   
    int ret;                                                          
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " erase-flash:%02d", device);               
ffc07534:	3b 18 2c da 	addi    r24,r24,11482                          <== 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);             
ffc07538:	3b 5a 2c ec 	addi    r26,r26,11500                          <== NOT EXECUTED
ffc0753c:	48 00 00 68 	b       ffc075a4 <rtems_fdisk_ioctl+0xa90>     <== NOT EXECUTED
  for (device = 0; device < fd->device_count; device++)               
  {                                                                   
    int ret;                                                          
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " erase-flash:%02d", device);               
ffc07540:	7f 04 c3 78 	mr      r4,r24                                 <== NOT EXECUTED
ffc07544:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc07548:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0754c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07550:	4b ff e2 b1 	bl      ffc05800 <rtems_fdisk_info>            <== NOT EXECUTED
 * @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)   
ffc07554:	1f be 00 0c 	mulli   r29,r30,12                             <== 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;                    
ffc07558:	81 3f 00 2c 	lwz     r9,44(r31)                             <== NOT EXECUTED
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, " device-erase: %02d", device);             
ffc0755c:	7f 44 d3 78 	mr      r4,r26                                 <== 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;                    
ffc07560:	7d 29 ea 14 	add     r9,r9,r29                              <== NOT EXECUTED
ffc07564:	81 29 00 08 	lwz     r9,8(r9)                               <== NOT EXECUTED
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, " device-erase: %02d", device);             
ffc07568:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc0756c:	7f e3 fb 78 	mr      r3,r31                                 <== 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;                    
ffc07570:	83 29 00 08 	lwz     r25,8(r9)                              <== NOT EXECUTED
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, " device-erase: %02d", device);             
ffc07574:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07578:	4b ff e3 5d 	bl      ffc058d4 <rtems_fdisk_printf>          <== NOT EXECUTED
#endif                                                                
  return ops->erase_device (fd->devices[device].descriptor, device);  
ffc0757c:	81 3f 00 2c 	lwz     r9,44(r31)                             <== NOT EXECUTED
ffc07580:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc07584:	7f a9 ea 14 	add     r29,r9,r29                             <== NOT EXECUTED
ffc07588:	81 39 00 14 	lwz     r9,20(r25)                             <== NOT EXECUTED
ffc0758c:	80 7d 00 08 	lwz     r3,8(r29)                              <== NOT EXECUTED
ffc07590:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc07594:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
    rtems_fdisk_info (fd, " erase-flash:%02d", device);               
#endif                                                                
                                                                      
    ret = rtems_fdisk_device_erase (fd, device);                      
                                                                      
    if (ret != 0)                                                     
ffc07598:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc0759c:	40 82 00 5c 	bne-    ffc075f8 <rtems_fdisk_ioctl+0xae4>     <== NOT EXECUTED
 */                                                                   
static int                                                            
rtems_fdisk_erase_flash (const rtems_flashdisk* fd)                   
{                                                                     
  uint32_t device;                                                    
  for (device = 0; device < fd->device_count; device++)               
ffc075a0:	3b de 00 01 	addi    r30,r30,1                              <== NOT EXECUTED
ffc075a4:	81 3f 00 30 	lwz     r9,48(r31)                             <== NOT EXECUTED
ffc075a8:	7f 9e 48 40 	cmplw   cr7,r30,r9                             <== NOT EXECUTED
ffc075ac:	41 9c ff 94 	blt+    cr7,ffc07540 <rtems_fdisk_ioctl+0xa2c> <== NOT EXECUTED
ffc075b0:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
ffc075b4:	48 00 00 2c 	b       ffc075e0 <rtems_fdisk_ioctl+0xacc>     <== NOT EXECUTED
                                                                      
  if (ret == 0)                                                       
  {                                                                   
    for (device = 0; device < fd->device_count; device++)             
    {                                                                 
      if (!fd->devices[device].segments)                              
ffc075b8:	81 3f 00 2c 	lwz     r9,44(r31)                             <== NOT EXECUTED
ffc075bc:	1d 5e 00 0c 	mulli   r10,r30,12                             <== NOT EXECUTED
ffc075c0:	7d 29 50 2e 	lwzx    r9,r9,r10                              <== NOT EXECUTED
ffc075c4:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc075c8:	41 9e 00 2c 	beq-    cr7,ffc075f4 <rtems_fdisk_ioctl+0xae0> <== NOT EXECUTED
        return ENOMEM;                                                
                                                                      
      ret = rtems_fdisk_recover_block_mappings (fd);                  
ffc075cc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc075d0:	4b ff f1 f1 	bl      ffc067c0 <rtems_fdisk_recover_block_mappings><== NOT EXECUTED
      if (ret)                                                        
ffc075d4:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc075d8:	40 82 00 20 	bne-    ffc075f8 <rtems_fdisk_ioctl+0xae4>     <== NOT EXECUTED
                                                                      
  ret = rtems_fdisk_erase_flash (fd);                                 
                                                                      
  if (ret == 0)                                                       
  {                                                                   
    for (device = 0; device < fd->device_count; device++)             
ffc075dc:	3b de 00 01 	addi    r30,r30,1                              <== NOT EXECUTED
ffc075e0:	81 3f 00 30 	lwz     r9,48(r31)                             <== NOT EXECUTED
ffc075e4:	7f 9e 48 40 	cmplw   cr7,r30,r9                             <== NOT EXECUTED
ffc075e8:	41 9c ff d0 	blt+    cr7,ffc075b8 <rtems_fdisk_ioctl+0xaa4> <== NOT EXECUTED
ffc075ec:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc075f0:	48 00 00 08 	b       ffc075f8 <rtems_fdisk_ioctl+0xae4>     <== NOT EXECUTED
    {                                                                 
      if (!fd->devices[device].segments)                              
        return ENOMEM;                                                
ffc075f4:	38 60 00 0c 	li      r3,12                                  <== NOT EXECUTED
          }                                                           
        }                                                             
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_ERASE_DISK:                              
        errno = rtems_fdisk_erase_disk (&rtems_flashdisks[minor]);    
ffc075f8:	90 7b 00 00 	stw     r3,0(r27)                              <== NOT EXECUTED
        break;                                                        
ffc075fc:	48 00 06 1c 	b       ffc07c18 <rtems_fdisk_ioctl+0x1104>    <== NOT EXECUTED
                                                                      
      case RTEMS_FDISK_IOCTL_COMPACT:                                 
        errno = rtems_fdisk_compact (&rtems_flashdisks[minor]);       
ffc07600:	48 01 9b cd 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc07604:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
ffc07608:	80 7e 28 fc 	lwz     r3,10492(r30)                          <== NOT EXECUTED
ffc0760c:	7c 63 e2 14 	add     r3,r3,r28                              <== NOT EXECUTED
ffc07610:	4b ff ef 8d 	bl      ffc0659c <rtems_fdisk_compact>         <== NOT EXECUTED
ffc07614:	90 7f 00 00 	stw     r3,0(r31)                              <== NOT EXECUTED
        break;                                                        
ffc07618:	48 00 06 00 	b       ffc07c18 <rtems_fdisk_ioctl+0x1104>    <== NOT EXECUTED
                                                                      
      case RTEMS_FDISK_IOCTL_ERASE_USED:                              
        errno = rtems_fdisk_erase_used (&rtems_flashdisks[minor]);    
ffc0761c:	48 01 9b b1 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc07620:	83 de 28 fc 	lwz     r30,10492(r30)                         <== NOT EXECUTED
ffc07624:	7c 7d 1b 78 	mr      r29,r3                                 <== NOT EXECUTED
ffc07628:	7f de e2 14 	add     r30,r30,r28                            <== NOT EXECUTED
 */                                                                   
static int                                                            
rtems_fdisk_erase_used (rtems_flashdisk* fd)                          
{                                                                     
  rtems_fdisk_segment_ctl* sc;                                        
  int                      latched_ret = 0;                           
ffc0762c:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
                                                                      
  while ((sc = rtems_fdisk_segment_queue_pop_head (&fd->erase)))      
ffc07630:	3b 7e 00 4c 	addi    r27,r30,76                             <== NOT EXECUTED
ffc07634:	48 00 00 20 	b       ffc07654 <rtems_fdisk_ioctl+0xb40>     <== NOT EXECUTED
  {                                                                   
    /*                                                                
     * The segment will either end up on the available queue or       
     * the failed queue.                                              
     */                                                               
    int ret = rtems_fdisk_erase_segment (fd, sc);                     
ffc07638:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc0763c:	4b ff e8 45 	bl      ffc05e80 <rtems_fdisk_erase_segment>   <== NOT EXECUTED
    if (ret && !latched_ret)                                          
ffc07640:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc07644:	41 82 00 10 	beq-    ffc07654 <rtems_fdisk_ioctl+0xb40>     <== NOT EXECUTED
ffc07648:	2f 9f 00 00 	cmpwi   cr7,r31,0                              <== NOT EXECUTED
ffc0764c:	40 9e 00 08 	bne-    cr7,ffc07654 <rtems_fdisk_ioctl+0xb40> <== NOT EXECUTED
ffc07650:	7c 7f 1b 78 	mr      r31,r3                                 <== 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)))      
ffc07654:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc07658:	4b ff e0 29 	bl      ffc05680 <rtems_fdisk_segment_queue_pop_head><== NOT EXECUTED
ffc0765c:	7c 64 1b 79 	mr.     r4,r3                                  <== NOT EXECUTED
ffc07660:	40 82 ff d8 	bne+    ffc07638 <rtems_fdisk_ioctl+0xb24>     <== 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]);    
ffc07664:	93 fd 00 00 	stw     r31,0(r29)                             <== NOT EXECUTED
        break;                                                        
ffc07668:	48 00 05 b0 	b       ffc07c18 <rtems_fdisk_ioctl+0x1104>    <== NOT EXECUTED
                                                                      
      case RTEMS_FDISK_IOCTL_MONITORING:                              
        errno = rtems_fdisk_monitoring_data (&rtems_flashdisks[minor],
ffc0766c:	48 01 9b 61 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc07670:	83 de 28 fc 	lwz     r30,10492(r30)                         <== NOT EXECUTED
ffc07674:	7c 7b 1b 78 	mr      r27,r3                                 <== NOT EXECUTED
ffc07678:	7f de e2 14 	add     r30,r30,r28                            <== NOT EXECUTED
                             rtems_fdisk_monitor_data* data)          
{                                                                     
  uint32_t i;                                                         
  uint32_t j;                                                         
                                                                      
  data->block_size     = fd->block_size;                              
ffc0767c:	81 3e 00 14 	lwz     r9,20(r30)                             <== NOT EXECUTED
  data->block_count    = fd->block_count;                             
ffc07680:	81 5e 00 1c 	lwz     r10,28(r30)                            <== NOT EXECUTED
  data->unavail_blocks = fd->unavail_blocks;                          
  data->device_count   = fd->device_count;                            
ffc07684:	83 be 00 30 	lwz     r29,48(r30)                            <== NOT EXECUTED
                             rtems_fdisk_monitor_data* data)          
{                                                                     
  uint32_t i;                                                         
  uint32_t j;                                                         
                                                                      
  data->block_size     = fd->block_size;                              
ffc07688:	91 3f 00 00 	stw     r9,0(r31)                              <== NOT EXECUTED
  data->block_count    = fd->block_count;                             
  data->unavail_blocks = fd->unavail_blocks;                          
ffc0768c:	81 3e 00 20 	lwz     r9,32(r30)                             <== NOT EXECUTED
{                                                                     
  uint32_t i;                                                         
  uint32_t j;                                                         
                                                                      
  data->block_size     = fd->block_size;                              
  data->block_count    = fd->block_count;                             
ffc07690:	91 5f 00 04 	stw     r10,4(r31)                             <== NOT EXECUTED
  data->unavail_blocks = fd->unavail_blocks;                          
  data->device_count   = fd->device_count;                            
                                                                      
  data->blocks_used = 0;                                              
  for (i = 0; i < fd->block_count; i++)                               
ffc07694:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
ffc07698:	7d 49 03 a6 	mtctr   r10                                    <== 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;                          
ffc0769c:	91 3f 00 08 	stw     r9,8(r31)                              <== NOT EXECUTED
  data->device_count   = fd->device_count;                            
                                                                      
  data->blocks_used = 0;                                              
  for (i = 0; i < fd->block_count; i++)                               
ffc076a0:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
  uint32_t j;                                                         
                                                                      
  data->block_size     = fd->block_size;                              
  data->block_count    = fd->block_count;                             
  data->unavail_blocks = fd->unavail_blocks;                          
  data->device_count   = fd->device_count;                            
ffc076a4:	93 bf 00 0c 	stw     r29,12(r31)                            <== NOT EXECUTED
                                                                      
  data->blocks_used = 0;                                              
ffc076a8:	93 5f 00 18 	stw     r26,24(r31)                            <== NOT EXECUTED
ffc076ac:	48 00 00 28 	b       ffc076d4 <rtems_fdisk_ioctl+0xbc0>     <== NOT EXECUTED
  for (i = 0; i < fd->block_count; i++)                               
    if (fd->blocks[i].segment)                                        
ffc076b0:	81 5e 00 18 	lwz     r10,24(r30)                            <== NOT EXECUTED
ffc076b4:	55 28 18 38 	rlwinm  r8,r9,3,0,28                           <== NOT EXECUTED
ffc076b8:	7d 4a 40 2e 	lwzx    r10,r10,r8                             <== NOT EXECUTED
ffc076bc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc076c0:	41 9e 00 10 	beq-    cr7,ffc076d0 <rtems_fdisk_ioctl+0xbbc> <== NOT EXECUTED
      data->blocks_used++;                                            
ffc076c4:	81 5f 00 18 	lwz     r10,24(r31)                            <== NOT EXECUTED
ffc076c8:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
ffc076cc:	91 5f 00 18 	stw     r10,24(r31)                            <== 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++)                               
ffc076d0:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc076d4:	42 00 ff dc 	bdnz+   ffc076b0 <rtems_fdisk_ioctl+0xb9c>     <== NOT EXECUTED
    if (fd->blocks[i].segment)                                        
      data->blocks_used++;                                            
                                                                      
  data->segs_available = rtems_fdisk_segment_count_queue (&fd->available);
ffc076d8:	80 7e 00 34 	lwz     r3,52(r30)                             <== NOT EXECUTED
ffc076dc:	4b ff e4 6d 	bl      ffc05b48 <rtems_fdisk_segment_count_queue.isra.1><== NOT EXECUTED
ffc076e0:	90 7f 00 1c 	stw     r3,28(r31)                             <== NOT EXECUTED
  data->segs_used      = rtems_fdisk_segment_count_queue (&fd->used); 
ffc076e4:	80 7e 00 40 	lwz     r3,64(r30)                             <== NOT EXECUTED
ffc076e8:	4b ff e4 61 	bl      ffc05b48 <rtems_fdisk_segment_count_queue.isra.1><== NOT EXECUTED
ffc076ec:	90 7f 00 20 	stw     r3,32(r31)                             <== NOT EXECUTED
  data->segs_failed    = rtems_fdisk_segment_count_queue (&fd->failed);
ffc076f0:	80 7e 00 58 	lwz     r3,88(r30)                             <== NOT EXECUTED
ffc076f4:	4b ff e4 55 	bl      ffc05b48 <rtems_fdisk_segment_count_queue.isra.1><== NOT EXECUTED
                                                                      
  data->segment_count = 0;                                            
ffc076f8:	39 20 00 00 	li      r9,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);
ffc076fc:	90 7f 00 24 	stw     r3,36(r31)                             <== 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++)                              
ffc07700:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
                                                                      
  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);
                                                                      
  data->segment_count = 0;                                            
ffc07704:	91 3f 00 10 	stw     r9,16(r31)                             <== NOT EXECUTED
  data->page_count    = 0;                                            
ffc07708:	91 3f 00 14 	stw     r9,20(r31)                             <== NOT EXECUTED
  data->pages_desc    = 0;                                            
ffc0770c:	91 3f 00 2c 	stw     r9,44(r31)                             <== NOT EXECUTED
  data->pages_active  = 0;                                            
ffc07710:	91 3f 00 30 	stw     r9,48(r31)                             <== NOT EXECUTED
  data->pages_used    = 0;                                            
ffc07714:	91 3f 00 34 	stw     r9,52(r31)                             <== NOT EXECUTED
  data->pages_bad     = 0;                                            
ffc07718:	91 3f 00 38 	stw     r9,56(r31)                             <== NOT EXECUTED
  data->seg_erases    = 0;                                            
ffc0771c:	91 3f 00 28 	stw     r9,40(r31)                             <== NOT EXECUTED
ffc07720:	48 00 00 a8 	b       ffc077c8 <rtems_fdisk_ioctl+0xcb4>     <== NOT EXECUTED
                                                                      
  for (i = 0; i < fd->device_count; i++)                              
  {                                                                   
    data->segment_count += fd->devices[i].segment_count;              
ffc07724:	81 3e 00 2c 	lwz     r9,44(r30)                             <== NOT EXECUTED
 * @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)   
ffc07728:	1c ea 00 0c 	mulli   r7,r10,12                              <== 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;              
ffc0772c:	81 1f 00 10 	lwz     r8,16(r31)                             <== NOT EXECUTED
ffc07730:	7c e9 3a 14 	add     r7,r9,r7                               <== NOT EXECUTED
ffc07734:	81 27 00 04 	lwz     r9,4(r7)                               <== NOT EXECUTED
ffc07738:	7d 08 4a 14 	add     r8,r8,r9                               <== NOT EXECUTED
                                                                      
    for (j = 0; j < fd->devices[i].segment_count; j++)                
ffc0773c:	39 29 00 01 	addi    r9,r9,1                                <== 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;              
ffc07740:	91 1f 00 10 	stw     r8,16(r31)                             <== NOT EXECUTED
                                                                      
    for (j = 0; j < fd->devices[i].segment_count; j++)                
ffc07744:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc07748:	39 00 00 00 	li      r8,0                                   <== NOT EXECUTED
ffc0774c:	48 00 00 74 	b       ffc077c0 <rtems_fdisk_ioctl+0xcac>     <== NOT EXECUTED
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[i].segments[j];      
ffc07750:	81 27 00 00 	lwz     r9,0(r7)                               <== NOT EXECUTED
 * @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)   
ffc07754:	1c c8 00 30 	mulli   r6,r8,48                               <== NOT EXECUTED
                                                                      
    for (j = 0; j < fd->devices[i].segment_count; j++)                
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[i].segments[j];      
                                                                      
      data->page_count   += sc->pages;                                
ffc07758:	80 bf 00 14 	lwz     r5,20(r31)                             <== NOT EXECUTED
  {                                                                   
    data->segment_count += fd->devices[i].segment_count;              
                                                                      
    for (j = 0; j < fd->devices[i].segment_count; j++)                
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[i].segments[j];      
ffc0775c:	7d 29 32 14 	add     r9,r9,r6                               <== NOT EXECUTED
                                                                      
      data->page_count   += sc->pages;                                
ffc07760:	80 c9 00 14 	lwz     r6,20(r9)                              <== 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++)                
ffc07764:	39 08 00 01 	addi    r8,r8,1                                <== NOT EXECUTED
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[i].segments[j];      
                                                                      
      data->page_count   += sc->pages;                                
ffc07768:	7c c5 32 14 	add     r6,r5,r6                               <== NOT EXECUTED
      data->pages_desc   += sc->pages_desc;                           
ffc0776c:	80 bf 00 2c 	lwz     r5,44(r31)                             <== NOT EXECUTED
                                                                      
    for (j = 0; j < fd->devices[i].segment_count; j++)                
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[i].segments[j];      
                                                                      
      data->page_count   += sc->pages;                                
ffc07770:	90 df 00 14 	stw     r6,20(r31)                             <== NOT EXECUTED
      data->pages_desc   += sc->pages_desc;                           
ffc07774:	80 c9 00 18 	lwz     r6,24(r9)                              <== NOT EXECUTED
ffc07778:	7c c5 32 14 	add     r6,r5,r6                               <== NOT EXECUTED
      data->pages_active += sc->pages_active;                         
ffc0777c:	80 bf 00 30 	lwz     r5,48(r31)                             <== NOT EXECUTED
    for (j = 0; j < fd->devices[i].segment_count; j++)                
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[i].segments[j];      
                                                                      
      data->page_count   += sc->pages;                                
      data->pages_desc   += sc->pages_desc;                           
ffc07780:	90 df 00 2c 	stw     r6,44(r31)                             <== NOT EXECUTED
      data->pages_active += sc->pages_active;                         
ffc07784:	80 c9 00 1c 	lwz     r6,28(r9)                              <== NOT EXECUTED
ffc07788:	7c c5 32 14 	add     r6,r5,r6                               <== NOT EXECUTED
      data->pages_used   += sc->pages_used;                           
ffc0778c:	80 bf 00 34 	lwz     r5,52(r31)                             <== NOT EXECUTED
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[i].segments[j];      
                                                                      
      data->page_count   += sc->pages;                                
      data->pages_desc   += sc->pages_desc;                           
      data->pages_active += sc->pages_active;                         
ffc07790:	90 df 00 30 	stw     r6,48(r31)                             <== NOT EXECUTED
      data->pages_used   += sc->pages_used;                           
ffc07794:	80 c9 00 20 	lwz     r6,32(r9)                              <== NOT EXECUTED
ffc07798:	7c c5 32 14 	add     r6,r5,r6                               <== NOT EXECUTED
      data->pages_bad    += sc->pages_bad;                            
ffc0779c:	80 bf 00 38 	lwz     r5,56(r31)                             <== NOT EXECUTED
      rtems_fdisk_segment_ctl* sc = &fd->devices[i].segments[j];      
                                                                      
      data->page_count   += sc->pages;                                
      data->pages_desc   += sc->pages_desc;                           
      data->pages_active += sc->pages_active;                         
      data->pages_used   += sc->pages_used;                           
ffc077a0:	90 df 00 34 	stw     r6,52(r31)                             <== NOT EXECUTED
      data->pages_bad    += sc->pages_bad;                            
ffc077a4:	80 c9 00 24 	lwz     r6,36(r9)                              <== NOT EXECUTED
      data->seg_erases   += sc->erased;                               
ffc077a8:	81 29 00 2c 	lwz     r9,44(r9)                              <== 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;                            
ffc077ac:	7c c5 32 14 	add     r6,r5,r6                               <== NOT EXECUTED
ffc077b0:	90 df 00 38 	stw     r6,56(r31)                             <== NOT EXECUTED
      data->seg_erases   += sc->erased;                               
ffc077b4:	80 df 00 28 	lwz     r6,40(r31)                             <== NOT EXECUTED
ffc077b8:	7c c6 4a 14 	add     r6,r6,r9                               <== NOT EXECUTED
ffc077bc:	90 df 00 28 	stw     r6,40(r31)                             <== 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++)                
ffc077c0:	42 00 ff 90 	bdnz+   ffc07750 <rtems_fdisk_ioctl+0xc3c>     <== 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++)                              
ffc077c4:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
ffc077c8:	7f 8a e8 00 	cmpw    cr7,r10,r29                            <== NOT EXECUTED
ffc077cc:	40 9e ff 58 	bne+    cr7,ffc07724 <rtems_fdisk_ioctl+0xc10> <== NOT EXECUTED
      data->pages_bad    += sc->pages_bad;                            
      data->seg_erases   += sc->erased;                               
    }                                                                 
  }                                                                   
                                                                      
  data->info_level = fd->info_level;                                  
ffc077d0:	81 3e 00 6c 	lwz     r9,108(r30)                            <== NOT EXECUTED
ffc077d4:	91 3f 00 3c 	stw     r9,60(r31)                             <== 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],
ffc077d8:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc077dc:	91 3b 00 00 	stw     r9,0(r27)                              <== NOT EXECUTED
                                             (rtems_fdisk_monitor_data*) argp);
        break;                                                        
ffc077e0:	48 00 04 38 	b       ffc07c18 <rtems_fdisk_ioctl+0x1104>    <== NOT EXECUTED
                                                                      
      case RTEMS_FDISK_IOCTL_INFO_LEVEL:                              
        rtems_flashdisks[minor].info_level = (uintptr_t) argp;        
ffc077e4:	81 3e 28 fc 	lwz     r9,10492(r30)                          <== NOT EXECUTED
ffc077e8:	7d 29 e2 14 	add     r9,r9,r28                              <== NOT EXECUTED
ffc077ec:	93 e9 00 6c 	stw     r31,108(r9)                            <== NOT EXECUTED
        break;                                                        
ffc077f0:	48 00 04 28 	b       ffc07c18 <rtems_fdisk_ioctl+0x1104>    <== NOT EXECUTED
                                                                      
      case RTEMS_FDISK_IOCTL_PRINT_STATUS:                            
        errno = rtems_fdisk_print_status (&rtems_flashdisks[minor]);  
ffc077f4:	48 01 99 d9 	bl      ffc211cc <__errno>                     
ffc077f8:	81 3e 28 fc 	lwz     r9,10492(r30)                          
  uint32_t current_info_level = fd->info_level;                       
  uint32_t total;                                                     
  uint32_t count;                                                     
  uint32_t device;                                                    
                                                                      
  fd->info_level = 3;                                                 
ffc077fc:	39 40 00 03 	li      r10,3                                  
      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]);  
ffc07800:	7f e9 e2 14 	add     r31,r9,r28                             
  uint32_t count;                                                     
  uint32_t device;                                                    
                                                                      
  fd->info_level = 3;                                                 
                                                                      
  rtems_fdisk_printf (fd,                                             
ffc07804:	7c a9 e0 2e 	lwzx    r5,r9,r28                              
ffc07808:	80 df 00 04 	lwz     r6,4(r31)                              
ffc0780c:	3c 80 ff c3 	lis     r4,-61                                 
 */                                                                   
static int                                                            
rtems_fdisk_print_status (rtems_flashdisk* fd)                        
{                                                                     
#if RTEMS_FDISK_TRACE                                                 
  uint32_t current_info_level = fd->info_level;                       
ffc07810:	82 5f 00 6c 	lwz     r18,108(r31)                           
  uint32_t count;                                                     
  uint32_t device;                                                    
                                                                      
  fd->info_level = 3;                                                 
                                                                      
  rtems_fdisk_printf (fd,                                             
ffc07814:	38 84 2d 00 	addi    r4,r4,11520                            
  uint32_t current_info_level = fd->info_level;                       
  uint32_t total;                                                     
  uint32_t count;                                                     
  uint32_t device;                                                    
                                                                      
  fd->info_level = 3;                                                 
ffc07818:	91 5f 00 6c 	stw     r10,108(r31)                           
      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]);  
ffc0781c:	7c 73 1b 78 	mr      r19,r3                                 
  uint32_t count;                                                     
  uint32_t device;                                                    
                                                                      
  fd->info_level = 3;                                                 
                                                                      
  rtems_fdisk_printf (fd,                                             
ffc07820:	7f e3 fb 78 	mr      r3,r31                                 
ffc07824:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07828:	4b ff e0 ad 	bl      ffc058d4 <rtems_fdisk_printf>          
                      "Flash Disk Driver Status : %d.%d", fd->major, fd->minor);
                                                                      
  rtems_fdisk_printf (fd, "Block count\t%d", fd->block_count);        
ffc0782c:	80 bf 00 1c 	lwz     r5,28(r31)                             
ffc07830:	3c 80 ff c3 	lis     r4,-61                                 
ffc07834:	38 84 2d 21 	addi    r4,r4,11553                            
ffc07838:	7f e3 fb 78 	mr      r3,r31                                 
ffc0783c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07840:	4b ff e0 95 	bl      ffc058d4 <rtems_fdisk_printf>          
  rtems_fdisk_printf (fd, "Unavail blocks\t%d", fd->unavail_blocks);  
ffc07844:	80 bf 00 20 	lwz     r5,32(r31)                             
ffc07848:	3c 80 ff c3 	lis     r4,-61                                 
ffc0784c:	38 84 2d 30 	addi    r4,r4,11568                            
ffc07850:	7f e3 fb 78 	mr      r3,r31                                 
ffc07854:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07858:	4b ff e0 7d 	bl      ffc058d4 <rtems_fdisk_printf>          
  rtems_fdisk_printf (fd, "Starvation threshold\t%d", fd->starvation_threshold);
ffc0785c:	80 bf 00 24 	lwz     r5,36(r31)                             
ffc07860:	3c 80 ff c3 	lis     r4,-61                                 
ffc07864:	38 84 2d 42 	addi    r4,r4,11586                            
ffc07868:	7f e3 fb 78 	mr      r3,r31                                 
ffc0786c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07870:	4b ff e0 65 	bl      ffc058d4 <rtems_fdisk_printf>          
  rtems_fdisk_printf (fd, "Starvations\t%d", fd->starvations);        
ffc07874:	80 bf 00 70 	lwz     r5,112(r31)                            
ffc07878:	3c 80 ff c3 	lis     r4,-61                                 
ffc0787c:	38 84 2d 5a 	addi    r4,r4,11610                            
ffc07880:	7f e3 fb 78 	mr      r3,r31                                 
ffc07884:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07888:	4b ff e0 4d 	bl      ffc058d4 <rtems_fdisk_printf>          
  count = rtems_fdisk_segment_count_queue (&fd->available);           
ffc0788c:	80 7f 00 34 	lwz     r3,52(r31)                             
ffc07890:	4b ff e2 b9 	bl      ffc05b48 <rtems_fdisk_segment_count_queue.isra.1>
  total = count;                                                      
  rtems_fdisk_printf (fd, "Available queue\t%ld (%ld)",               
ffc07894:	80 df 00 3c 	lwz     r6,60(r31)                             
                                                                      
  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);           
ffc07898:	7c 7e 1b 78 	mr      r30,r3                                 
  total = count;                                                      
  rtems_fdisk_printf (fd, "Available queue\t%ld (%ld)",               
ffc0789c:	3c 80 ff c3 	lis     r4,-61                                 
ffc078a0:	7f c5 f3 78 	mr      r5,r30                                 
ffc078a4:	38 84 2d 69 	addi    r4,r4,11625                            
ffc078a8:	7f e3 fb 78 	mr      r3,r31                                 
ffc078ac:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc078b0:	4b ff e0 25 	bl      ffc058d4 <rtems_fdisk_printf>          
                      count, rtems_fdisk_segment_queue_count (&fd->available));
  count = rtems_fdisk_segment_count_queue (&fd->used);                
ffc078b4:	80 7f 00 40 	lwz     r3,64(r31)                             
ffc078b8:	4b ff e2 91 	bl      ffc05b48 <rtems_fdisk_segment_count_queue.isra.1>
  total += count;                                                     
  rtems_fdisk_printf (fd, "Used queue\t%ld (%ld)",                    
ffc078bc:	80 df 00 48 	lwz     r6,72(r31)                             
ffc078c0:	3c 80 ff c3 	lis     r4,-61                                 
  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);                
ffc078c4:	7c 65 1b 78 	mr      r5,r3                                  
  total += count;                                                     
  rtems_fdisk_printf (fd, "Used queue\t%ld (%ld)",                    
ffc078c8:	38 84 2d 83 	addi    r4,r4,11651                            
  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;                                                     
ffc078cc:	7f c3 f2 14 	add     r30,r3,r30                             
  rtems_fdisk_printf (fd, "Used queue\t%ld (%ld)",                    
ffc078d0:	7f e3 fb 78 	mr      r3,r31                                 
ffc078d4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc078d8:	4b ff df fd 	bl      ffc058d4 <rtems_fdisk_printf>          
                      count, rtems_fdisk_segment_queue_count (&fd->used));
  count = rtems_fdisk_segment_count_queue (&fd->erase);               
ffc078dc:	80 7f 00 4c 	lwz     r3,76(r31)                             
ffc078e0:	4b ff e2 69 	bl      ffc05b48 <rtems_fdisk_segment_count_queue.isra.1>
  total += count;                                                     
  rtems_fdisk_printf (fd, "Erase queue\t%ld (%ld)",                   
ffc078e4:	80 df 00 54 	lwz     r6,84(r31)                             
ffc078e8:	3c 80 ff c3 	lis     r4,-61                                 
                      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);               
ffc078ec:	7c 65 1b 78 	mr      r5,r3                                  
  total += count;                                                     
  rtems_fdisk_printf (fd, "Erase queue\t%ld (%ld)",                   
ffc078f0:	38 84 2d 98 	addi    r4,r4,11672                            
  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;                                                     
ffc078f4:	7f de 1a 14 	add     r30,r30,r3                             
  rtems_fdisk_printf (fd, "Erase queue\t%ld (%ld)",                   
ffc078f8:	7f e3 fb 78 	mr      r3,r31                                 
ffc078fc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07900:	4b ff df d5 	bl      ffc058d4 <rtems_fdisk_printf>          
                      count, rtems_fdisk_segment_queue_count (&fd->erase));
  count = rtems_fdisk_segment_count_queue (&fd->failed);              
ffc07904:	80 7f 00 58 	lwz     r3,88(r31)                             
ffc07908:	4b ff e2 41 	bl      ffc05b48 <rtems_fdisk_segment_count_queue.isra.1>
  total += count;                                                     
  rtems_fdisk_printf (fd, "Failed queue\t%ld (%ld)",                  
ffc0790c:	80 df 00 60 	lwz     r6,96(r31)                             
ffc07910:	3c 80 ff c3 	lis     r4,-61                                 
                      count, rtems_fdisk_segment_queue_count (&fd->used));
  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);              
ffc07914:	7c 65 1b 78 	mr      r5,r3                                  
  total += count;                                                     
ffc07918:	7f de 1a 14 	add     r30,r30,r3                             
  rtems_fdisk_printf (fd, "Failed queue\t%ld (%ld)",                  
ffc0791c:	38 84 2d ae 	addi    r4,r4,11694                            
ffc07920:	7f e3 fb 78 	mr      r3,r31                                 
ffc07924:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07928:	4b ff df ad 	bl      ffc058d4 <rtems_fdisk_printf>          
                      count, rtems_fdisk_segment_queue_count (&fd->failed));
                                                                      
  count = 0;                                                          
  for (device = 0; device < fd->device_count; device++)               
ffc0792c:	81 5f 00 30 	lwz     r10,48(r31)                            
ffc07930:	39 20 00 00 	li      r9,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;                                                          
ffc07934:	39 4a 00 01 	addi    r10,r10,1                              
ffc07938:	38 c0 00 00 	li      r6,0                                   
ffc0793c:	7d 49 03 a6 	mtctr   r10                                    
ffc07940:	48 00 00 1c 	b       ffc0795c <rtems_fdisk_ioctl+0xe48>     
  for (device = 0; device < fd->device_count; device++)               
    count += fd->devices[device].segment_count;                       
ffc07944:	1d 09 00 0c 	mulli   r8,r9,12                               
ffc07948:	81 5f 00 2c 	lwz     r10,44(r31)                            
ffc0794c:	7d 4a 42 14 	add     r10,r10,r8                             
ffc07950:	81 4a 00 04 	lwz     r10,4(r10)                             
  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++)               
ffc07954:	39 29 00 01 	addi    r9,r9,1                                
    count += fd->devices[device].segment_count;                       
ffc07958:	7c c6 52 14 	add     r6,r6,r10                              
  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++)               
ffc0795c:	42 00 ff e8 	bdnz+   ffc07944 <rtems_fdisk_ioctl+0xe30>     
    count += fd->devices[device].segment_count;                       
                                                                      
  rtems_fdisk_printf (fd, "Queue total\t%ld of %ld, %s", total, count,
ffc07960:	7f 9e 30 00 	cmpw    cr7,r30,r6                             
ffc07964:	40 be 00 10 	bne+    cr7,ffc07974 <rtems_fdisk_ioctl+0xe60> <== NEVER TAKEN
ffc07968:	3c e0 ff c3 	lis     r7,-61                                 
ffc0796c:	38 e7 28 f4 	addi    r7,r7,10484                            
ffc07970:	48 00 00 0c 	b       ffc0797c <rtems_fdisk_ioctl+0xe68>     
ffc07974:	3c e0 ff c3 	lis     r7,-61                                 <== NOT EXECUTED
ffc07978:	38 e7 28 f7 	addi    r7,r7,10487                            <== NOT EXECUTED
ffc0797c:	3c 80 ff c3 	lis     r4,-61                                 
ffc07980:	38 84 2d c5 	addi    r4,r4,11717                            
ffc07984:	7f c5 f3 78 	mr      r5,r30                                 
ffc07988:	7f e3 fb 78 	mr      r3,r31                                 
ffc0798c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07990:	4b ff df 45 	bl      ffc058d4 <rtems_fdisk_printf>          
                      total == count ? "ok" : "MISSING");             
                                                                      
  rtems_fdisk_printf (fd, "Device count\t%d", fd->device_count);      
ffc07994:	3c 80 ff c3 	lis     r4,-61                                 
ffc07998:	80 bf 00 30 	lwz     r5,48(r31)                             
ffc0799c:	7f e3 fb 78 	mr      r3,r31                                 
ffc079a0:	38 84 2d e0 	addi    r4,r4,11744                            
  for (device = 0; device < fd->device_count; device++)               
  {                                                                   
    uint32_t block;                                                   
    uint32_t seg;                                                     
                                                                      
    rtems_fdisk_printf (fd, " Device\t\t%ld", device);                
ffc079a4:	3e 20 ff c3 	lis     r17,-61                                
    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);      
ffc079a8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc079ac:	4b ff df 29 	bl      ffc058d4 <rtems_fdisk_printf>          
  {                                                                   
    uint32_t block;                                                   
    uint32_t seg;                                                     
                                                                      
    rtems_fdisk_printf (fd, " Device\t\t%ld", device);                
    rtems_fdisk_printf (fd, "  Segment count\t%ld",                   
ffc079b0:	3e 00 ff c3 	lis     r16,-61                                
                                                                      
        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,                                   
ffc079b4:	3d e0 ff c3 	lis     r15,-61                                
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
ffc079b8:	3d c0 ff c3 	lis     r14,-61                                
  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++)               
ffc079bc:	3b 60 00 00 	li      r27,0                                  
  {                                                                   
    uint32_t block;                                                   
    uint32_t seg;                                                     
                                                                      
    rtems_fdisk_printf (fd, " Device\t\t%ld", device);                
ffc079c0:	3a 31 2d f0 	addi    r17,r17,11760                          
    rtems_fdisk_printf (fd, "  Segment count\t%ld",                   
ffc079c4:	3a 10 2d fd 	addi    r16,r16,11773                          
                                                                      
        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,                                   
ffc079c8:	39 ef 2e 11 	addi    r15,r15,11793                          
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
ffc079cc:	39 ce 2e 3e 	addi    r14,r14,11838                          
ffc079d0:	48 00 01 c8 	b       ffc07b98 <rtems_fdisk_ioctl+0x1084>    
  for (device = 0; device < fd->device_count; device++)               
  {                                                                   
    uint32_t block;                                                   
    uint32_t seg;                                                     
                                                                      
    rtems_fdisk_printf (fd, " Device\t\t%ld", device);                
ffc079d4:	7e 24 8b 78 	mr      r4,r17                                 
ffc079d8:	7f 65 db 78 	mr      r5,r27                                 
ffc079dc:	7f e3 fb 78 	mr      r3,r31                                 
ffc079e0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc079e4:	4b ff de f1 	bl      ffc058d4 <rtems_fdisk_printf>          
 * @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)   
ffc079e8:	1f 1b 00 0c 	mulli   r24,r27,12                             
  {                                                                   
    uint32_t block;                                                   
    uint32_t seg;                                                     
                                                                      
    rtems_fdisk_printf (fd, " Device\t\t%ld", device);                
    rtems_fdisk_printf (fd, "  Segment count\t%ld",                   
ffc079ec:	81 3f 00 2c 	lwz     r9,44(r31)                             
ffc079f0:	7f e3 fb 78 	mr      r3,r31                                 
ffc079f4:	7d 29 c2 14 	add     r9,r9,r24                              
ffc079f8:	80 a9 00 04 	lwz     r5,4(r9)                               
ffc079fc:	7e 04 83 78 	mr      r4,r16                                 
                        fd->devices[device].segment_count);           
                                                                      
    for (seg = 0; seg < fd->devices[device].segment_count; seg++)     
ffc07a00:	3b 40 00 00 	li      r26,0                                  
  {                                                                   
    uint32_t block;                                                   
    uint32_t seg;                                                     
                                                                      
    rtems_fdisk_printf (fd, " Device\t\t%ld", device);                
    rtems_fdisk_printf (fd, "  Segment count\t%ld",                   
ffc07a04:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07a08:	4b ff de cd 	bl      ffc058d4 <rtems_fdisk_printf>          
ffc07a0c:	48 00 01 74 	b       ffc07b80 <rtems_fdisk_ioctl+0x106c>    
 * @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)   
ffc07a10:	1d 5a 00 30 	mulli   r10,r26,48                             
    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];
ffc07a14:	7f c9 c0 2e 	lwzx    r30,r9,r24                             
ffc07a18:	7f de 52 14 	add     r30,r30,r10                            
      uint32_t                 active = 0;                            
      uint32_t                 used = 0;                              
      bool                     is_active = false;                     
      char                     queues[5];                             
                                                                      
      rtems_fdisk_queue_status (fd, sc, queues);                      
ffc07a1c:	7f e3 fb 78 	mr      r3,r31                                 
ffc07a20:	7f c4 f3 78 	mr      r4,r30                                 
ffc07a24:	38 a1 00 20 	addi    r5,r1,32                               
ffc07a28:	4b ff e5 69 	bl      ffc05f90 <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;                     
ffc07a2c:	3a 80 00 00 	li      r20,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;                              
ffc07a30:	3a a0 00 00 	li      r21,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;                            
ffc07a34:	3a e0 00 00 	li      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;                            
ffc07a38:	3a c0 00 00 	li      r22,0                                  
      bool                     is_active = false;                     
      char                     queues[5];                             
                                                                      
      rtems_fdisk_queue_status (fd, sc, queues);                      
                                                                      
      for (page = 0; page < sc->pages; page++)                        
ffc07a3c:	3b a0 00 00 	li      r29,0                                  
ffc07a40:	48 00 00 b0 	b       ffc07af0 <rtems_fdisk_ioctl+0xfdc>     
      {                                                               
        if (rtems_fdisk_page_desc_erased (&sc->page_descriptors[page]))
ffc07a44:	81 3e 00 10 	lwz     r9,16(r30)                             
 * @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)   
ffc07a48:	57 b9 18 38 	rlwinm  r25,r29,3,0,28                         
                                                                      
      rtems_fdisk_queue_status (fd, sc, queues);                      
                                                                      
      for (page = 0; page < sc->pages; page++)                        
      {                                                               
        if (rtems_fdisk_page_desc_erased (&sc->page_descriptors[page]))
ffc07a4c:	7f 29 ca 14 	add     r25,r9,r25                             
ffc07a50:	7f 23 cb 78 	mr      r3,r25                                 
ffc07a54:	4b ff dd 65 	bl      ffc057b8 <rtems_fdisk_page_desc_erased>
ffc07a58:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07a5c:	41 9e 00 0c 	beq-    cr7,ffc07a68 <rtems_fdisk_ioctl+0xf54> 
          erased++;                                                   
ffc07a60:	3a d6 00 01 	addi    r22,r22,1                              
ffc07a64:	48 00 00 2c 	b       ffc07a90 <rtems_fdisk_ioctl+0xf7c>     
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc07a68:	a1 39 00 02 	lhz     r9,2(r25)                              
                                                                      
      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],
ffc07a6c:	71 25 00 01 	andi.   r5,r9,1                                
ffc07a70:	40 82 00 20 	bne-    ffc07a90 <rtems_fdisk_ioctl+0xf7c>     <== NEVER TAKEN
                                                  RTEMS_FDISK_PAGE_ACTIVE))
        {                                                             
          if (rtems_fdisk_page_desc_flags_set (&sc->page_descriptors[page],
ffc07a74:	55 29 07 bc 	rlwinm  r9,r9,0,30,30                          
ffc07a78:	71 26 ff ff 	andi.   r6,r9,65535                            
ffc07a7c:	40 82 00 0c 	bne-    ffc07a88 <rtems_fdisk_ioctl+0xf74>     
                                               RTEMS_FDISK_PAGE_USED))
            used++;                                                   
ffc07a80:	3a b5 00 01 	addi    r21,r21,1                              
ffc07a84:	48 00 00 0c 	b       ffc07a90 <rtems_fdisk_ioctl+0xf7c>     
          else                                                        
          {                                                           
            active++;                                                 
ffc07a88:	3a f7 00 01 	addi    r23,r23,1                              
            is_active = true;                                         
ffc07a8c:	3a 80 00 01 	li      r20,1                                  
          }                                                           
        }                                                             
                                                                      
        for (block = 0; block < fd->block_count; block++)             
ffc07a90:	3b 20 00 00 	li      r25,0                                  
        {                                                             
          if ((fd->blocks[block].segment == sc) &&                    
              (fd->blocks[block].page == page) && !is_active)         
ffc07a94:	2e 14 00 00 	cmpwi   cr4,r20,0                              
ffc07a98:	48 00 00 48 	b       ffc07ae0 <rtems_fdisk_ioctl+0xfcc>     
          }                                                           
        }                                                             
                                                                      
        for (block = 0; block < fd->block_count; block++)             
        {                                                             
          if ((fd->blocks[block].segment == sc) &&                    
ffc07a9c:	81 3f 00 18 	lwz     r9,24(r31)                             
 * @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)   
ffc07aa0:	57 2a 18 38 	rlwinm  r10,r25,3,0,28                         
          }                                                           
        }                                                             
                                                                      
        for (block = 0; block < fd->block_count; block++)             
        {                                                             
          if ((fd->blocks[block].segment == sc) &&                    
ffc07aa4:	7d 09 52 14 	add     r8,r9,r10                              
ffc07aa8:	7d 29 50 2e 	lwzx    r9,r9,r10                              
ffc07aac:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc07ab0:	40 be 00 2c 	bne+    cr7,ffc07adc <rtems_fdisk_ioctl+0xfc8> 
ffc07ab4:	81 28 00 04 	lwz     r9,4(r8)                               
ffc07ab8:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc07abc:	40 be 00 20 	bne+    cr7,ffc07adc <rtems_fdisk_ioctl+0xfc8> 
              (fd->blocks[block].page == page) && !is_active)         
ffc07ac0:	40 b2 00 1c 	bne+    cr4,ffc07adc <rtems_fdisk_ioctl+0xfc8> <== ALWAYS TAKEN
            rtems_fdisk_printf (fd,                                   
ffc07ac4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc07ac8:	7d e4 7b 78 	mr      r4,r15                                 <== NOT EXECUTED
ffc07acc:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc07ad0:	7f 26 cb 78 	mr      r6,r25                                 <== NOT EXECUTED
ffc07ad4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07ad8:	4b ff dd fd 	bl      ffc058d4 <rtems_fdisk_printf>          <== NOT EXECUTED
            active++;                                                 
            is_active = true;                                         
          }                                                           
        }                                                             
                                                                      
        for (block = 0; block < fd->block_count; block++)             
ffc07adc:	3b 39 00 01 	addi    r25,r25,1                              
ffc07ae0:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc07ae4:	7f 99 48 40 	cmplw   cr7,r25,r9                             
ffc07ae8:	41 9c ff b4 	blt+    cr7,ffc07a9c <rtems_fdisk_ioctl+0xf88> 
      bool                     is_active = false;                     
      char                     queues[5];                             
                                                                      
      rtems_fdisk_queue_status (fd, sc, queues);                      
                                                                      
      for (page = 0; page < sc->pages; page++)                        
ffc07aec:	3b bd 00 01 	addi    r29,r29,1                              
ffc07af0:	80 fe 00 14 	lwz     r7,20(r30)                             
ffc07af4:	7f 9d 38 40 	cmplw   cr7,r29,r7                             
ffc07af8:	41 9c ff 4c 	blt+    cr7,ffc07a44 <rtems_fdisk_ioctl+0xf30> 
                                page, block);                         
        }                                                             
      }                                                               
                                                                      
      count = 0;                                                      
      for (block = 0; block < fd->block_count; block++)               
ffc07afc:	81 1f 00 1c 	lwz     r8,28(r31)                             
ffc07b00:	39 40 00 00 	li      r10,0                                  
ffc07b04:	39 20 00 00 	li      r9,0                                   
ffc07b08:	39 08 00 01 	addi    r8,r8,1                                
ffc07b0c:	7d 09 03 a6 	mtctr   r8                                     
ffc07b10:	48 00 00 24 	b       ffc07b34 <rtems_fdisk_ioctl+0x1020>    
      {                                                               
        if (fd->blocks[block].segment == sc)                          
ffc07b14:	81 1f 00 18 	lwz     r8,24(r31)                             
ffc07b18:	55 46 18 38 	rlwinm  r6,r10,3,0,28                          
                                page, block);                         
        }                                                             
      }                                                               
                                                                      
      count = 0;                                                      
      for (block = 0; block < fd->block_count; block++)               
ffc07b1c:	39 4a 00 01 	addi    r10,r10,1                              
      {                                                               
        if (fd->blocks[block].segment == sc)                          
ffc07b20:	7d 08 30 2e 	lwzx    r8,r8,r6                               
          count++;                                                    
ffc07b24:	7d 05 f2 78 	xor     r5,r8,r30                              
ffc07b28:	20 a5 00 00 	subfic  r5,r5,0                                
ffc07b2c:	7c a9 01 94 	addze   r5,r9                                  
ffc07b30:	7c a9 2b 78 	mr      r9,r5                                  
                                page, block);                         
        }                                                             
      }                                                               
                                                                      
      count = 0;                                                      
      for (block = 0; block < fd->block_count; block++)               
ffc07b34:	42 00 ff e0 	bdnz+   ffc07b14 <rtems_fdisk_ioctl+0x1000>    
      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 +             
ffc07b38:	81 1e 00 1c 	lwz     r8,28(r30)                             
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
ffc07b3c:	7f e3 fb 78 	mr      r3,r31                                 
                          " 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 +             
                                       sc->pages_used + sc->pages_bad),
ffc07b40:	81 5e 00 20 	lwz     r10,32(r30)                            
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
ffc07b44:	7d c4 73 78 	mr      r4,r14                                 
ffc07b48:	92 a1 00 08 	stw     r21,8(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)   
ffc07b4c:	7c a8 52 14 	add     r5,r8,r10                              
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
ffc07b50:	92 c1 00 0c 	stw     r22,12(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)   
ffc07b54:	80 de 00 24 	lwz     r6,36(r30)                             
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
ffc07b58:	91 21 00 14 	stw     r9,20(r1)                              
ffc07b5c:	7e e9 bb 78 	mr      r9,r23                                 
 * @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)   
ffc07b60:	7c c5 32 14 	add     r6,r5,r6                               
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
ffc07b64:	7c c6 38 50 	subf    r6,r6,r7                               
ffc07b68:	90 c1 00 10 	stw     r6,16(r1)                              
ffc07b6c:	7f 45 d3 78 	mr      r5,r26                                 
ffc07b70:	38 c1 00 20 	addi    r6,r1,32                               
ffc07b74:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07b78:	4b ff dd 5d 	bl      ffc058d4 <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++)     
ffc07b7c:	3b 5a 00 01 	addi    r26,r26,1                              
ffc07b80:	81 3f 00 2c 	lwz     r9,44(r31)                             
ffc07b84:	7d 49 c2 14 	add     r10,r9,r24                             
ffc07b88:	81 4a 00 04 	lwz     r10,4(r10)                             
ffc07b8c:	7f 9a 50 40 	cmplw   cr7,r26,r10                            
ffc07b90:	41 9c fe 80 	blt+    cr7,ffc07a10 <rtems_fdisk_ioctl+0xefc> 
  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++)               
ffc07b94:	3b 7b 00 01 	addi    r27,r27,1                              
ffc07b98:	81 3f 00 30 	lwz     r9,48(r31)                             
ffc07b9c:	7f 9b 48 40 	cmplw   cr7,r27,r9                             
ffc07ba0:	41 9c fe 34 	blt+    cr7,ffc079d4 <rtems_fdisk_ioctl+0xec0> 
  }                                                                   
                                                                      
  {                                                                   
    rtems_fdisk_segment_ctl* sc = fd->used.head;                      
    int count = 0;                                                    
    rtems_fdisk_printf (fd, "Used List:");                            
ffc07ba4:	3c 80 ff c3 	lis     r4,-61                                 
                          count);                                     
    }                                                                 
  }                                                                   
                                                                      
  {                                                                   
    rtems_fdisk_segment_ctl* sc = fd->used.head;                      
ffc07ba8:	83 df 00 40 	lwz     r30,64(r31)                            
    int count = 0;                                                    
    rtems_fdisk_printf (fd, "Used List:");                            
ffc07bac:	7f e3 fb 78 	mr      r3,r31                                 
ffc07bb0:	38 84 2e 7a 	addi    r4,r4,11898                            
    while (sc)                                                        
    {                                                                 
      rtems_fdisk_printf (fd, "  %3d %02d:%03d u:%3ld",               
ffc07bb4:	3f 60 ff c3 	lis     r27,-61                                
  }                                                                   
                                                                      
  {                                                                   
    rtems_fdisk_segment_ctl* sc = fd->used.head;                      
    int count = 0;                                                    
    rtems_fdisk_printf (fd, "Used List:");                            
ffc07bb8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07bbc:	4b ff dd 19 	bl      ffc058d4 <rtems_fdisk_printf>          
    }                                                                 
  }                                                                   
                                                                      
  {                                                                   
    rtems_fdisk_segment_ctl* sc = fd->used.head;                      
    int count = 0;                                                    
ffc07bc0:	3b a0 00 00 	li      r29,0                                  
    rtems_fdisk_printf (fd, "Used List:");                            
    while (sc)                                                        
    {                                                                 
      rtems_fdisk_printf (fd, "  %3d %02d:%03d u:%3ld",               
ffc07bc4:	3b 7b 2e 85 	addi    r27,r27,11909                          
ffc07bc8:	48 00 00 2c 	b       ffc07bf4 <rtems_fdisk_ioctl+0x10e0>    
ffc07bcc:	80 de 00 08 	lwz     r6,8(r30)                              
ffc07bd0:	7f a5 eb 78 	mr      r5,r29                                 
ffc07bd4:	80 fe 00 0c 	lwz     r7,12(r30)                             
ffc07bd8:	7f e3 fb 78 	mr      r3,r31                                 
ffc07bdc:	81 1e 00 20 	lwz     r8,32(r30)                             
ffc07be0:	7f 64 db 78 	mr      r4,r27                                 
                          count, sc->device, sc->segment, sc->pages_used);
      sc = sc->next;                                                  
      count++;                                                        
ffc07be4:	3b bd 00 01 	addi    r29,r29,1                              
    rtems_fdisk_segment_ctl* sc = fd->used.head;                      
    int count = 0;                                                    
    rtems_fdisk_printf (fd, "Used List:");                            
    while (sc)                                                        
    {                                                                 
      rtems_fdisk_printf (fd, "  %3d %02d:%03d u:%3ld",               
ffc07be8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07bec:	4b ff dc e9 	bl      ffc058d4 <rtems_fdisk_printf>          
                          count, sc->device, sc->segment, sc->pages_used);
      sc = sc->next;                                                  
ffc07bf0:	83 de 00 00 	lwz     r30,0(r30)                             
                                                                      
  {                                                                   
    rtems_fdisk_segment_ctl* sc = fd->used.head;                      
    int count = 0;                                                    
    rtems_fdisk_printf (fd, "Used List:");                            
    while (sc)                                                        
ffc07bf4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc07bf8:	40 9e ff d4 	bne+    cr7,ffc07bcc <rtems_fdisk_ioctl+0x10b8>
                          count, sc->device, sc->segment, sc->pages_used);
      sc = sc->next;                                                  
      count++;                                                        
    }                                                                 
  }                                                                   
  fd->info_level = current_info_level;                                
ffc07bfc:	92 5f 00 6c 	stw     r18,108(r31)                           
      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]);  
ffc07c00:	93 d3 00 00 	stw     r30,0(r19)                             
        break;                                                        
ffc07c04:	48 00 00 14 	b       ffc07c18 <rtems_fdisk_ioctl+0x1104>    
                                                                      
      default:                                                        
        rtems_blkdev_ioctl (dd, req, argp);                           
ffc07c08:	7f 63 db 78 	mr      r3,r27                                 
ffc07c0c:	7f a4 eb 78 	mr      r4,r29                                 
ffc07c10:	7f e5 fb 78 	mr      r5,r31                                 
ffc07c14:	48 00 f0 31 	bl      ffc16c44 <rtems_blkdev_ioctl>          
        break;                                                        
    }                                                                 
                                                                      
    sc = rtems_semaphore_release (rtems_flashdisks[minor].lock);      
ffc07c18:	3d 20 00 01 	lis     r9,1                                   
ffc07c1c:	81 29 28 fc 	lwz     r9,10492(r9)                           
ffc07c20:	7f 89 e2 14 	add     r28,r9,r28                             
ffc07c24:	80 7c 00 64 	lwz     r3,100(r28)                            
ffc07c28:	48 00 5d e1 	bl      ffc0da08 <rtems_semaphore_release>     
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc07c2c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07c30:	41 be 00 10 	beq+    cr7,ffc07c40 <rtems_fdisk_ioctl+0x112c><== ALWAYS TAKEN
      errno = EIO;                                                    
ffc07c34:	48 01 95 99 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc07c38:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc07c3c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
  }                                                                   
                                                                      
  return errno == 0 ? 0 : -1;                                         
ffc07c40:	48 01 95 8d 	bl      ffc211cc <__errno>                     
ffc07c44:	81 23 00 00 	lwz     r9,0(r3)                               
ffc07c48:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07c4c:	40 9e 00 0c 	bne-    cr7,ffc07c58 <rtems_fdisk_ioctl+0x1144>
ffc07c50:	38 60 00 00 	li      r3,0                                   
ffc07c54:	48 00 00 24 	b       ffc07c78 <rtems_fdisk_ioctl+0x1164>    
ffc07c58:	38 60 ff ff 	li      r3,-1                                  
ffc07c5c:	48 00 00 1c 	b       ffc07c78 <rtems_fdisk_ioctl+0x1164>    
    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)                  
ffc07c60:	81 3d 00 14 	lwz     r9,20(r29)                             
ffc07c64:	3b 18 00 01 	addi    r24,r24,1                              
ffc07c68:	7f 39 4a 14 	add     r25,r25,r9                             
ffc07c6c:	4b ff f2 38 	b       ffc06ea4 <rtems_fdisk_ioctl+0x390>     
ffc07c70:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc07c74:	4b ff f2 3c 	b       ffc06eb0 <rtems_fdisk_ioctl+0x39c>     <== NOT EXECUTED
    if (sc != RTEMS_SUCCESSFUL)                                       
      errno = EIO;                                                    
  }                                                                   
                                                                      
  return errno == 0 ? 0 : -1;                                         
}                                                                     
ffc07c78:	81 81 00 4c 	lwz     r12,76(r1)                             
ffc07c7c:	39 61 00 98 	addi    r11,r1,152                             
ffc07c80:	7d 80 81 20 	mtcrf   8,r12                                  
ffc07c84:	4b ff 98 a4 	b       ffc01528 <_restgpr_14_x>               
                                                                      

ffc058d4 <rtems_fdisk_printf>: * @param ... The arguments for the format text. * @return int The number of bytes written to the output. */ static int rtems_fdisk_printf (const rtems_flashdisk* fd, const char *format, ...) {
ffc058d4:	94 21 ff 80 	stwu    r1,-128(r1)                            
ffc058d8:	7c 08 02 a6 	mflr    r0                                     
ffc058dc:	bf a1 00 74 	stmw    r29,116(r1)                            
ffc058e0:	90 01 00 84 	stw     r0,132(r1)                             
ffc058e4:	90 a1 00 18 	stw     r5,24(r1)                              
ffc058e8:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc058ec:	90 e1 00 20 	stw     r7,32(r1)                              
ffc058f0:	91 01 00 24 	stw     r8,36(r1)                              
ffc058f4:	91 21 00 28 	stw     r9,40(r1)                              
ffc058f8:	91 41 00 2c 	stw     r10,44(r1)                             
ffc058fc:	40 86 00 24 	bne-    cr1,ffc05920 <rtems_fdisk_printf+0x4c> <== ALWAYS TAKEN
ffc05900:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc05904:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc05908:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc0590c:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc05910:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc05914:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc05918:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc0591c:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  int ret = 0;                                                        
  if (fd->info_level >= 3)                                            
ffc05920:	81 23 00 6c 	lwz     r9,108(r3)                             
 * @param ... The arguments for the format text.                      
 * @return int The number of bytes written to the output.             
 */                                                                   
static int                                                            
rtems_fdisk_printf (const rtems_flashdisk* fd, const char *format, ...)
{                                                                     
ffc05924:	7c 9d 23 78 	mr      r29,r4                                 
  int ret = 0;                                                        
ffc05928:	3b c0 00 00 	li      r30,0                                  
  if (fd->info_level >= 3)                                            
ffc0592c:	2b 89 00 02 	cmplwi  cr7,r9,2                               
ffc05930:	40 bd 00 6c 	ble+    cr7,ffc0599c <rtems_fdisk_printf+0xc8> 
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc05934:	39 20 00 02 	li      r9,2                                   
ffc05938:	9b c1 00 09 	stb     r30,9(r1)                              
    fprintf (stdout, "fdisk:");                                       
ffc0593c:	3f e0 00 00 	lis     r31,0                                  
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 3)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc05940:	99 21 00 08 	stb     r9,8(r1)                               
ffc05944:	39 21 00 88 	addi    r9,r1,136                              
    fprintf (stdout, "fdisk:");                                       
ffc05948:	3c 60 ff c3 	lis     r3,-61                                 
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 3)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc0594c:	91 21 00 0c 	stw     r9,12(r1)                              
ffc05950:	39 21 00 10 	addi    r9,r1,16                               
    fprintf (stdout, "fdisk:");                                       
ffc05954:	38 63 24 7c 	addi    r3,r3,9340                             
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 3)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc05958:	91 21 00 10 	stw     r9,16(r1)                              
    fprintf (stdout, "fdisk:");                                       
ffc0595c:	81 3f 27 cc 	lwz     r9,10188(r31)                          
ffc05960:	80 89 00 08 	lwz     r4,8(r9)                               
ffc05964:	48 01 c4 75 	bl      ffc21dd8 <fputs>                       
    ret =  vfprintf (stdout, format, args);                           
ffc05968:	81 3f 27 cc 	lwz     r9,10188(r31)                          
ffc0596c:	7f a4 eb 78 	mr      r4,r29                                 
ffc05970:	80 69 00 08 	lwz     r3,8(r9)                               
ffc05974:	38 a1 00 08 	addi    r5,r1,8                                
ffc05978:	48 02 57 dd 	bl      ffc2b154 <vfprintf>                    
    fprintf (stdout, "\n");                                           
ffc0597c:	81 3f 27 cc 	lwz     r9,10188(r31)                          
  if (fd->info_level >= 3)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
    fprintf (stdout, "fdisk:");                                       
    ret =  vfprintf (stdout, format, args);                           
ffc05980:	7c 7e 1b 78 	mr      r30,r3                                 
    fprintf (stdout, "\n");                                           
ffc05984:	80 89 00 08 	lwz     r4,8(r9)                               
ffc05988:	38 60 00 0a 	li      r3,10                                  
ffc0598c:	48 01 c3 35 	bl      ffc21cc0 <fputc>                       
    fflush (stdout);                                                  
ffc05990:	81 3f 27 cc 	lwz     r9,10188(r31)                          
ffc05994:	80 69 00 08 	lwz     r3,8(r9)                               
ffc05998:	48 01 bc fd 	bl      ffc21694 <fflush>                      
    va_end (args);                                                    
  }                                                                   
  return ret;                                                         
}                                                                     
ffc0599c:	39 61 00 80 	addi    r11,r1,128                             
ffc059a0:	7f c3 f3 78 	mr      r3,r30                                 
ffc059a4:	4b ff bb c0 	b       ffc01564 <_restgpr_29_x>               
                                                                      

ffc0604c <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) {
ffc0604c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc06050:	7c 08 02 a6 	mflr    r0                                     
ffc06054:	90 01 00 2c 	stw     r0,44(r1)                              
ffc06058:	bf 61 00 14 	stmw    r27,20(r1)                             
ffc0605c:	7c 9f 23 78 	mr      r31,r4                                 
ffc06060:	7c 7e 1b 78 	mr      r30,r3                                 
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, " queue-seg:%02d-%03d: p=%d a=%d u=%d b=%d f=%s n=%s",
ffc06064:	80 a4 00 08 	lwz     r5,8(r4)                               
ffc06068:	80 c4 00 0c 	lwz     r6,12(r4)                              
ffc0606c:	80 e4 00 14 	lwz     r7,20(r4)                              
ffc06070:	81 04 00 1c 	lwz     r8,28(r4)                              
ffc06074:	81 24 00 20 	lwz     r9,32(r4)                              
ffc06078:	81 44 00 24 	lwz     r10,36(r4)                             
ffc0607c:	80 84 00 28 	lwz     r4,40(r4)                              
ffc06080:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc06084:	41 9e 00 10 	beq-    cr7,ffc06094 <rtems_fdisk_queue_segment+0x48><== ALWAYS TAKEN
ffc06088:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc0608c:	38 63 25 6e 	addi    r3,r3,9582                             <== NOT EXECUTED
ffc06090:	48 00 00 0c 	b       ffc0609c <rtems_fdisk_queue_segment+0x50><== NOT EXECUTED
ffc06094:	3c 60 ff c3 	lis     r3,-61                                 
ffc06098:	38 63 40 fb 	addi    r3,r3,16635                            
ffc0609c:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc060a0:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc060a4:	41 9e 00 10 	beq-    cr7,ffc060b4 <rtems_fdisk_queue_segment+0x68>
ffc060a8:	3c 80 ff c3 	lis     r4,-61                                 
ffc060ac:	38 84 41 8e 	addi    r4,r4,16782                            
ffc060b0:	48 00 00 0c 	b       ffc060bc <rtems_fdisk_queue_segment+0x70>
ffc060b4:	3c 80 ff c3 	lis     r4,-61                                 
ffc060b8:	38 84 25 75 	addi    r4,r4,9589                             
ffc060bc:	90 61 00 08 	stw     r3,8(r1)                               
ffc060c0:	7f c3 f3 78 	mr      r3,r30                                 
ffc060c4:	90 81 00 0c 	stw     r4,12(r1)                              
ffc060c8:	3c 80 ff c3 	lis     r4,-61                                 
ffc060cc:	38 84 25 7a 	addi    r4,r4,9594                             
ffc060d0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc060d4:	4b ff f7 2d 	bl      ffc05800 <rtems_fdisk_info>            
                                                                      
  /*                                                                  
   * If the segment has failed then check the failed queue and append 
   * if not failed.                                                   
   */                                                                 
  if (sc->failed)                                                     
ffc060d8:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc060dc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc060e0:	41 9e 00 24 	beq-    cr7,ffc06104 <rtems_fdisk_queue_segment+0xb8><== ALWAYS TAKEN
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc060e4:	81 3e 00 58 	lwz     r9,88(r30)                             <== NOT EXECUTED
ffc060e8:	48 00 00 10 	b       ffc060f8 <rtems_fdisk_queue_segment+0xac><== NOT EXECUTED
{                                                                     
  rtems_fdisk_segment_ctl*  it = queue->head;                         
                                                                      
  while (it)                                                          
  {                                                                   
    if (it == sc)                                                     
ffc060ec:	7f 89 f8 00 	cmpw    cr7,r9,r31                             <== NOT EXECUTED
ffc060f0:	41 9e 01 20 	beq-    cr7,ffc06210 <rtems_fdisk_queue_segment+0x1c4><== NOT EXECUTED
      return true;                                                    
    it = it->next;                                                    
ffc060f4:	81 29 00 00 	lwz     r9,0(r9)                               <== NOT EXECUTED
rtems_fdisk_segment_queue_present (rtems_fdisk_segment_ctl_queue* queue,
                                   rtems_fdisk_segment_ctl*       sc) 
{                                                                     
  rtems_fdisk_segment_ctl*  it = queue->head;                         
                                                                      
  while (it)                                                          
ffc060f8:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc060fc:	40 9e ff f0 	bne+    cr7,ffc060ec <rtems_fdisk_queue_segment+0xa0><== NOT EXECUTED
ffc06100:	48 00 00 bc 	b       ffc061bc <rtems_fdisk_queue_segment+0x170><== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Remove the queue from the available or used queue.               
   */                                                                 
  rtems_fdisk_segment_queue_remove (&fd->available, sc);              
ffc06104:	3b be 00 34 	addi    r29,r30,52                             
ffc06108:	7f a3 eb 78 	mr      r3,r29                                 
ffc0610c:	7f e4 fb 78 	mr      r4,r31                                 
  rtems_fdisk_segment_queue_remove (&fd->used, sc);                   
ffc06110:	3b 9e 00 40 	addi    r28,r30,64                             
  }                                                                   
                                                                      
  /*                                                                  
   * Remove the queue from the available or used queue.               
   */                                                                 
  rtems_fdisk_segment_queue_remove (&fd->available, sc);              
ffc06114:	4b ff f5 ed 	bl      ffc05700 <rtems_fdisk_segment_queue_remove>
  rtems_fdisk_segment_queue_remove (&fd->used, sc);                   
ffc06118:	7f 83 e3 78 	mr      r3,r28                                 
ffc0611c:	7f e4 fb 78 	mr      r4,r31                                 
ffc06120:	4b ff f5 e1 	bl      ffc05700 <rtems_fdisk_segment_queue_remove>
   * 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)                      
ffc06124:	7f e3 fb 78 	mr      r3,r31                                 
ffc06128:	4b ff f6 b9 	bl      ffc057e0 <rtems_fdisk_seg_pages_available>
ffc0612c:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc06130:	40 82 00 64 	bne-    ffc06194 <rtems_fdisk_queue_segment+0x148>
  {                                                                   
    if (sc->pages_active)                                             
ffc06134:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc06138:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0613c:	41 9e 00 2c 	beq-    cr7,ffc06168 <rtems_fdisk_queue_segment+0x11c><== 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;                   
ffc06140:	80 9e 00 40 	lwz     r4,64(r30)                             
                                                                      
      while (seg)                                                     
ffc06144:	48 00 00 18 	b       ffc0615c <rtems_fdisk_queue_segment+0x110>
      {                                                               
        if (sc->pages_used > seg->pages_used)                         
ffc06148:	81 5f 00 20 	lwz     r10,32(r31)                            
ffc0614c:	81 24 00 20 	lwz     r9,32(r4)                              
ffc06150:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc06154:	41 9d 00 78 	bgt-    cr7,ffc061cc <rtems_fdisk_queue_segment+0x180>
          break;                                                      
        seg = seg->next;                                              
ffc06158:	80 84 00 00 	lwz     r4,0(r4)                               
       * 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)                                                     
ffc0615c:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc06160:	40 9e ff e8 	bne+    cr7,ffc06148 <rtems_fdisk_queue_segment+0xfc>
ffc06164:	48 00 00 60 	b       ffc061c4 <rtems_fdisk_queue_segment+0x178>
      else                                                            
        rtems_fdisk_segment_queue_push_tail (&fd->used, sc);          
    }                                                                 
    else                                                              
    {                                                                 
      if ((fd->flags & RTEMS_FDISK_BACKGROUND_ERASE))                 
ffc06168:	81 3e 00 08 	lwz     r9,8(r30)                              <== NOT EXECUTED
        rtems_fdisk_segment_queue_push_tail (&fd->erase, sc);         
ffc0616c:	38 7e 00 4c 	addi    r3,r30,76                              <== NOT EXECUTED
      else                                                            
        rtems_fdisk_segment_queue_push_tail (&fd->used, sc);          
    }                                                                 
    else                                                              
    {                                                                 
      if ((fd->flags & RTEMS_FDISK_BACKGROUND_ERASE))                 
ffc06170:	71 2a 00 01 	andi.   r10,r9,1                               <== NOT EXECUTED
ffc06174:	40 82 00 84 	bne-    ffc061f8 <rtems_fdisk_queue_segment+0x1ac><== NOT EXECUTED
    if (seg)                                                          
      rtems_fdisk_segment_queue_insert_before (&fd->available, seg, sc);
    else                                                              
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
ffc06178:	80 01 00 2c 	lwz     r0,44(r1)                              <== NOT EXECUTED
    else                                                              
    {                                                                 
      if ((fd->flags & RTEMS_FDISK_BACKGROUND_ERASE))                 
        rtems_fdisk_segment_queue_push_tail (&fd->erase, sc);         
      else                                                            
        rtems_fdisk_erase_segment (fd, sc);                           
ffc0617c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc06180:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
    if (seg)                                                          
      rtems_fdisk_segment_queue_insert_before (&fd->available, seg, sc);
    else                                                              
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
ffc06184:	bb 61 00 14 	lmw     r27,20(r1)                             <== NOT EXECUTED
ffc06188:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0618c:	38 21 00 28 	addi    r1,r1,40                               <== NOT EXECUTED
    else                                                              
    {                                                                 
      if ((fd->flags & RTEMS_FDISK_BACKGROUND_ERASE))                 
        rtems_fdisk_segment_queue_push_tail (&fd->erase, sc);         
      else                                                            
        rtems_fdisk_erase_segment (fd, sc);                           
ffc06190:	4b ff fc f0 	b       ffc05e80 <rtems_fdisk_erase_segment>   <== 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;                
ffc06194:	83 de 00 34 	lwz     r30,52(r30)                            
                                                                      
    while (seg)                                                       
ffc06198:	48 00 00 18 	b       ffc061b0 <rtems_fdisk_queue_segment+0x164>
    {                                                                 
      if (rtems_fdisk_seg_pages_available (sc) <                      
          rtems_fdisk_seg_pages_available (seg))                      
ffc0619c:	7f c3 f3 78 	mr      r3,r30                                 
ffc061a0:	4b ff f6 41 	bl      ffc057e0 <rtems_fdisk_seg_pages_available>
     */                                                               
    rtems_fdisk_segment_ctl* seg = fd->available.head;                
                                                                      
    while (seg)                                                       
    {                                                                 
      if (rtems_fdisk_seg_pages_available (sc) <                      
ffc061a4:	7f 9b 18 40 	cmplw   cr7,r27,r3                             
ffc061a8:	41 9c 00 2c 	blt-    cr7,ffc061d4 <rtems_fdisk_queue_segment+0x188>
          rtems_fdisk_seg_pages_available (seg))                      
        break;                                                        
      seg = seg->next;                                                
ffc061ac:	83 de 00 00 	lwz     r30,0(r30)                             
     * 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)                                                       
ffc061b0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc061b4:	40 9e ff e8 	bne+    cr7,ffc0619c <rtems_fdisk_queue_segment+0x150>
ffc061b8:	48 00 00 3c 	b       ffc061f4 <rtems_fdisk_queue_segment+0x1a8>
   * if not failed.                                                   
   */                                                                 
  if (sc->failed)                                                     
  {                                                                   
    if (!rtems_fdisk_segment_queue_present (&fd->failed, sc))         
      rtems_fdisk_segment_queue_push_tail (&fd->failed, sc);          
ffc061bc:	38 7e 00 58 	addi    r3,r30,88                              <== NOT EXECUTED
ffc061c0:	48 00 00 38 	b       ffc061f8 <rtems_fdisk_queue_segment+0x1ac><== NOT EXECUTED
      }                                                               
                                                                      
      if (seg)                                                        
        rtems_fdisk_segment_queue_insert_before (&fd->used, seg, sc); 
      else                                                            
        rtems_fdisk_segment_queue_push_tail (&fd->used, sc);          
ffc061c4:	7f 83 e3 78 	mr      r3,r28                                 
ffc061c8:	48 00 00 30 	b       ffc061f8 <rtems_fdisk_queue_segment+0x1ac>
          break;                                                      
        seg = seg->next;                                              
      }                                                               
                                                                      
      if (seg)                                                        
        rtems_fdisk_segment_queue_insert_before (&fd->used, seg, sc); 
ffc061cc:	7f 83 e3 78 	mr      r3,r28                                 
ffc061d0:	48 00 00 0c 	b       ffc061dc <rtems_fdisk_queue_segment+0x190>
        break;                                                        
      seg = seg->next;                                                
    }                                                                 
                                                                      
    if (seg)                                                          
      rtems_fdisk_segment_queue_insert_before (&fd->available, seg, sc);
ffc061d4:	7f a3 eb 78 	mr      r3,r29                                 
ffc061d8:	7f c4 f3 78 	mr      r4,r30                                 
    else                                                              
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
ffc061dc:	80 01 00 2c 	lwz     r0,44(r1)                              
        break;                                                        
      seg = seg->next;                                                
    }                                                                 
                                                                      
    if (seg)                                                          
      rtems_fdisk_segment_queue_insert_before (&fd->available, seg, sc);
ffc061e0:	7f e5 fb 78 	mr      r5,r31                                 
    else                                                              
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
ffc061e4:	bb 61 00 14 	lmw     r27,20(r1)                             
ffc061e8:	7c 08 03 a6 	mtlr    r0                                     
ffc061ec:	38 21 00 28 	addi    r1,r1,40                               
        break;                                                        
      seg = seg->next;                                                
    }                                                                 
                                                                      
    if (seg)                                                          
      rtems_fdisk_segment_queue_insert_before (&fd->available, seg, sc);
ffc061f0:	4b ff f5 7c 	b       ffc0576c <rtems_fdisk_segment_queue_insert_before>
    else                                                              
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
ffc061f4:	7f a3 eb 78 	mr      r3,r29                                 
  }                                                                   
}                                                                     
ffc061f8:	80 01 00 2c 	lwz     r0,44(r1)                              
    }                                                                 
                                                                      
    if (seg)                                                          
      rtems_fdisk_segment_queue_insert_before (&fd->available, seg, sc);
    else                                                              
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
ffc061fc:	7f e4 fb 78 	mr      r4,r31                                 
  }                                                                   
}                                                                     
ffc06200:	bb 61 00 14 	lmw     r27,20(r1)                             
ffc06204:	7c 08 03 a6 	mtlr    r0                                     
ffc06208:	38 21 00 28 	addi    r1,r1,40                               
    }                                                                 
                                                                      
    if (seg)                                                          
      rtems_fdisk_segment_queue_insert_before (&fd->available, seg, sc);
    else                                                              
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
ffc0620c:	4b ff f4 b0 	b       ffc056bc <rtems_fdisk_segment_queue_push_tail>
  }                                                                   
}                                                                     
ffc06210:	39 61 00 28 	addi    r11,r1,40                              <== NOT EXECUTED
ffc06214:	4b ff b3 48 	b       ffc0155c <_restgpr_27_x>               <== NOT EXECUTED
                                                                      

ffc05f90 <rtems_fdisk_queue_status>: } rtems_flashdisk_count = rtems_flashdisk_configuration_size; return RTEMS_SUCCESSFUL; }
ffc05f90:	81 23 00 34 	lwz     r9,52(r3)                              
ffc05f94:	48 00 00 10 	b       ffc05fa4 <rtems_fdisk_queue_status+0x14>
{                                                                     
  rtems_fdisk_segment_ctl*  it = queue->head;                         
                                                                      
  while (it)                                                          
  {                                                                   
    if (it == sc)                                                     
ffc05f98:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc05f9c:	41 9e 00 18 	beq-    cr7,ffc05fb4 <rtems_fdisk_queue_status+0x24>
      return true;                                                    
    it = it->next;                                                    
ffc05fa0:	81 29 00 00 	lwz     r9,0(r9)                               
rtems_fdisk_segment_queue_present (rtems_fdisk_segment_ctl_queue* queue,
                                   rtems_fdisk_segment_ctl*       sc) 
{                                                                     
  rtems_fdisk_segment_ctl*  it = queue->head;                         
                                                                      
  while (it)                                                          
ffc05fa4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05fa8:	40 9e ff f0 	bne+    cr7,ffc05f98 <rtems_fdisk_queue_status+0x8>
static void                                                           
rtems_fdisk_queue_status (rtems_flashdisk*         fd,                
                          rtems_fdisk_segment_ctl* sc,                
                          char                     queues[5])         
{                                                                     
  queues[0] = rtems_fdisk_segment_queue_present (&fd->available, sc) ? 'A' : '-';
ffc05fac:	39 20 00 2d 	li      r9,45                                  
ffc05fb0:	48 00 00 08 	b       ffc05fb8 <rtems_fdisk_queue_status+0x28>
ffc05fb4:	39 20 00 41 	li      r9,65                                  
ffc05fb8:	99 25 00 00 	stb     r9,0(r5)                               
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc05fbc:	81 23 00 40 	lwz     r9,64(r3)                              
ffc05fc0:	48 00 00 10 	b       ffc05fd0 <rtems_fdisk_queue_status+0x40>
{                                                                     
  rtems_fdisk_segment_ctl*  it = queue->head;                         
                                                                      
  while (it)                                                          
  {                                                                   
    if (it == sc)                                                     
ffc05fc4:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc05fc8:	41 9e 00 18 	beq-    cr7,ffc05fe0 <rtems_fdisk_queue_status+0x50>
      return true;                                                    
    it = it->next;                                                    
ffc05fcc:	81 29 00 00 	lwz     r9,0(r9)                               
rtems_fdisk_segment_queue_present (rtems_fdisk_segment_ctl_queue* queue,
                                   rtems_fdisk_segment_ctl*       sc) 
{                                                                     
  rtems_fdisk_segment_ctl*  it = queue->head;                         
                                                                      
  while (it)                                                          
ffc05fd0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05fd4:	40 9e ff f0 	bne+    cr7,ffc05fc4 <rtems_fdisk_queue_status+0x34>
rtems_fdisk_queue_status (rtems_flashdisk*         fd,                
                          rtems_fdisk_segment_ctl* sc,                
                          char                     queues[5])         
{                                                                     
  queues[0] = rtems_fdisk_segment_queue_present (&fd->available, sc) ? 'A' : '-';
  queues[1] = rtems_fdisk_segment_queue_present (&fd->used, sc)      ? 'U' : '-';
ffc05fd8:	39 20 00 2d 	li      r9,45                                  
ffc05fdc:	48 00 00 08 	b       ffc05fe4 <rtems_fdisk_queue_status+0x54>
ffc05fe0:	39 20 00 55 	li      r9,85                                  
ffc05fe4:	99 25 00 01 	stb     r9,1(r5)                               
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc05fe8:	81 23 00 4c 	lwz     r9,76(r3)                              
ffc05fec:	48 00 00 10 	b       ffc05ffc <rtems_fdisk_queue_status+0x6c>
{                                                                     
  rtems_fdisk_segment_ctl*  it = queue->head;                         
                                                                      
  while (it)                                                          
  {                                                                   
    if (it == sc)                                                     
ffc05ff0:	7f 89 20 00 	cmpw    cr7,r9,r4                              <== NOT EXECUTED
ffc05ff4:	41 9e 00 18 	beq-    cr7,ffc0600c <rtems_fdisk_queue_status+0x7c><== NOT EXECUTED
      return true;                                                    
    it = it->next;                                                    
ffc05ff8:	81 29 00 00 	lwz     r9,0(r9)                               <== NOT EXECUTED
rtems_fdisk_segment_queue_present (rtems_fdisk_segment_ctl_queue* queue,
                                   rtems_fdisk_segment_ctl*       sc) 
{                                                                     
  rtems_fdisk_segment_ctl*  it = queue->head;                         
                                                                      
  while (it)                                                          
ffc05ffc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06000:	40 9e ff f0 	bne+    cr7,ffc05ff0 <rtems_fdisk_queue_status+0x60><== NEVER TAKEN
                          rtems_fdisk_segment_ctl* sc,                
                          char                     queues[5])         
{                                                                     
  queues[0] = rtems_fdisk_segment_queue_present (&fd->available, sc) ? 'A' : '-';
  queues[1] = rtems_fdisk_segment_queue_present (&fd->used, sc)      ? 'U' : '-';
  queues[2] = rtems_fdisk_segment_queue_present (&fd->erase, sc)     ? 'E' : '-';
ffc06004:	39 20 00 2d 	li      r9,45                                  
ffc06008:	48 00 00 08 	b       ffc06010 <rtems_fdisk_queue_status+0x80>
ffc0600c:	39 20 00 45 	li      r9,69                                  <== NOT EXECUTED
ffc06010:	99 25 00 02 	stb     r9,2(r5)                               
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc06014:	81 23 00 58 	lwz     r9,88(r3)                              
ffc06018:	48 00 00 10 	b       ffc06028 <rtems_fdisk_queue_status+0x98>
{                                                                     
  rtems_fdisk_segment_ctl*  it = queue->head;                         
                                                                      
  while (it)                                                          
  {                                                                   
    if (it == sc)                                                     
ffc0601c:	7f 89 20 00 	cmpw    cr7,r9,r4                              <== NOT EXECUTED
ffc06020:	41 9e 00 18 	beq-    cr7,ffc06038 <rtems_fdisk_queue_status+0xa8><== NOT EXECUTED
      return true;                                                    
    it = it->next;                                                    
ffc06024:	81 29 00 00 	lwz     r9,0(r9)                               <== NOT EXECUTED
rtems_fdisk_segment_queue_present (rtems_fdisk_segment_ctl_queue* queue,
                                   rtems_fdisk_segment_ctl*       sc) 
{                                                                     
  rtems_fdisk_segment_ctl*  it = queue->head;                         
                                                                      
  while (it)                                                          
ffc06028:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0602c:	40 9e ff f0 	bne+    cr7,ffc0601c <rtems_fdisk_queue_status+0x8c><== NEVER TAKEN
                          char                     queues[5])         
{                                                                     
  queues[0] = rtems_fdisk_segment_queue_present (&fd->available, sc) ? 'A' : '-';
  queues[1] = rtems_fdisk_segment_queue_present (&fd->used, sc)      ? 'U' : '-';
  queues[2] = rtems_fdisk_segment_queue_present (&fd->erase, sc)     ? 'E' : '-';
  queues[3] = rtems_fdisk_segment_queue_present (&fd->failed, sc)    ? 'F' : '-';
ffc06030:	39 20 00 2d 	li      r9,45                                  
ffc06034:	48 00 00 08 	b       ffc0603c <rtems_fdisk_queue_status+0xac>
ffc06038:	39 20 00 46 	li      r9,70                                  <== NOT EXECUTED
ffc0603c:	99 25 00 03 	stb     r9,3(r5)                               
  queues[4] = '\0';                                                   
ffc06040:	39 20 00 00 	li      r9,0                                   
ffc06044:	99 25 00 04 	stb     r9,4(r5)                               
ffc06048:	4e 80 00 20 	blr                                            
                                                                      

ffc067c0 <rtems_fdisk_recover_block_mappings>: /** * Recover the block mappings from the devices. */ static int rtems_fdisk_recover_block_mappings (rtems_flashdisk* fd) {
ffc067c0:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc067c4:	7c 08 02 a6 	mflr    r0                                     
  rtems_fdisk_segment_queue_init (&fd->failed);                       
                                                                      
  /*                                                                  
   * Clear the lock mappings.                                         
   */                                                                 
  memset (fd->blocks, 0, fd->block_count * sizeof (rtems_fdisk_block_ctl));
ffc067c8:	38 80 00 00 	li      r4,0                                   
/**                                                                   
 * Recover the block mappings from the devices.                       
 */                                                                   
static int                                                            
rtems_fdisk_recover_block_mappings (rtems_flashdisk* fd)              
{                                                                     
ffc067cc:	90 01 00 44 	stw     r0,68(r1)                              
ffc067d0:	be 41 00 08 	stmw    r18,8(r1)                              
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
ffc067d4:	3b c0 00 00 	li      r30,0                                  
/**                                                                   
 * Recover the block mappings from the devices.                       
 */                                                                   
static int                                                            
rtems_fdisk_recover_block_mappings (rtems_flashdisk* fd)              
{                                                                     
ffc067d8:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_fdisk_segment_queue_init (&fd->failed);                       
                                                                      
  /*                                                                  
   * Clear the lock mappings.                                         
   */                                                                 
  memset (fd->blocks, 0, fd->block_count * sizeof (rtems_fdisk_block_ctl));
ffc067dc:	80 a3 00 1c 	lwz     r5,28(r3)                              
      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);
ffc067e0:	3e c0 ff c3 	lis     r22,-61                                
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
ffc067e4:	93 c3 00 38 	stw     r30,56(r3)                             
               * 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: " \      
ffc067e8:	3e a0 ff c3 	lis     r21,-61                                
  rtems_fdisk_segment_queue_init (&fd->failed);                       
                                                                      
  /*                                                                  
   * Clear the lock mappings.                                         
   */                                                                 
  memset (fd->blocks, 0, fd->block_count * sizeof (rtems_fdisk_block_ctl));
ffc067ec:	54 a5 18 38 	rlwinm  r5,r5,3,0,28                           
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
ffc067f0:	93 c3 00 34 	stw     r30,52(r3)                             
          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,                                
ffc067f4:	3e 80 ff c3 	lis     r20,-61                                
            ++fd->erased_blocks;                                      
          }                                                           
          else                                                        
          {                                                           
#if RTEMS_FDISK_TRACE                                                 
            rtems_fdisk_warning (fd, "page not blank: %d-%d-%d",      
ffc067f8:	3e 60 ff c3 	lis     r19,-61                                
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
  queue->count = 0;                                                   
ffc067fc:	93 c3 00 3c 	stw     r30,60(r3)                             
            ret = rtems_fdisk_seg_write_page_desc (fd, sc,            
                                                   page, pd);         
                                                                      
            if (ret)                                                  
            {                                                         
              rtems_fdisk_error ("forcing page to used failed: %d-%d-%d",
ffc06800:	3e 40 ff c3 	lis     r18,-61                                
  /*                                                                  
   * 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++)               
ffc06804:	3b 60 00 00 	li      r27,0                                  
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
ffc06808:	93 c3 00 44 	stw     r30,68(r3)                             
                                                                      
/**                                                                   
 * Recover the block mappings from the devices.                       
 */                                                                   
static int                                                            
rtems_fdisk_recover_block_mappings (rtems_flashdisk* fd)              
ffc0680c:	3b 20 00 00 	li      r25,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);
ffc06810:	3a d6 27 fa 	addi    r22,r22,10234                          
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
ffc06814:	93 c3 00 40 	stw     r30,64(r3)                             
               * 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: " \      
ffc06818:	3a b5 28 c5 	addi    r21,r21,10437                          
          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,                                
ffc0681c:	3a 94 28 9b 	addi    r20,r20,10395                          
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
  queue->count = 0;                                                   
ffc06820:	93 c3 00 48 	stw     r30,72(r3)                             
            ++fd->erased_blocks;                                      
          }                                                           
          else                                                        
          {                                                           
#if RTEMS_FDISK_TRACE                                                 
            rtems_fdisk_warning (fd, "page not blank: %d-%d-%d",      
ffc06824:	3a 73 28 5c 	addi    r19,r19,10332                          
            ret = rtems_fdisk_seg_write_page_desc (fd, sc,            
                                                   page, pd);         
                                                                      
            if (ret)                                                  
            {                                                         
              rtems_fdisk_error ("forcing page to used failed: %d-%d-%d",
ffc06828:	3a 52 28 75 	addi    r18,r18,10357                          
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
ffc0682c:	93 c3 00 50 	stw     r30,80(r3)                             
ffc06830:	93 c3 00 4c 	stw     r30,76(r3)                             
  queue->count = 0;                                                   
ffc06834:	93 c3 00 54 	stw     r30,84(r3)                             
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
ffc06838:	93 c3 00 5c 	stw     r30,92(r3)                             
ffc0683c:	93 c3 00 58 	stw     r30,88(r3)                             
  queue->count = 0;                                                   
ffc06840:	93 c3 00 60 	stw     r30,96(r3)                             
  rtems_fdisk_segment_queue_init (&fd->failed);                       
                                                                      
  /*                                                                  
   * Clear the lock mappings.                                         
   */                                                                 
  memset (fd->blocks, 0, fd->block_count * sizeof (rtems_fdisk_block_ctl));
ffc06844:	80 63 00 18 	lwz     r3,24(r3)                              
ffc06848:	48 01 c0 cd 	bl      ffc22914 <memset>                      
                                                                      
  /*                                                                  
   * Scan each segment or each device recovering the valid pages.     
   */                                                                 
  fd->erased_blocks = 0;                                              
ffc0684c:	93 df 00 28 	stw     r30,40(r31)                            
  fd->starvation_threshold = 0;                                       
ffc06850:	93 df 00 24 	stw     r30,36(r31)                            
  for (device = 0; device < fd->device_count; device++)               
ffc06854:	48 00 02 98 	b       ffc06aec <rtems_fdisk_recover_block_mappings+0x32c>
                                                                      
/**                                                                   
 * Recover the block mappings from the devices.                       
 */                                                                   
static int                                                            
rtems_fdisk_recover_block_mappings (rtems_flashdisk* fd)              
ffc06858:	1d 5c 00 30 	mulli   r10,r28,48                             
  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];
ffc0685c:	7f c9 b8 2e 	lwzx    r30,r9,r23                             
ffc06860:	7f de 52 14 	add     r30,r30,r10                            
      const rtems_fdisk_segment_desc* sd = sc->descriptor;            
ffc06864:	83 be 00 04 	lwz     r29,4(r30)                             
      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);
ffc06868:	7f e3 fb 78 	mr      r3,r31                                 
ffc0686c:	7e c4 b3 78 	mr      r4,r22                                 
ffc06870:	7f 65 db 78 	mr      r5,r27                                 
ffc06874:	7f 86 e3 78 	mr      r6,r28                                 
ffc06878:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0687c:	4b ff ef 85 	bl      ffc05800 <rtems_fdisk_info>            
#endif                                                                
                                                                      
      sc->pages_desc = rtems_fdisk_page_desc_pages (sd, fd->block_size);
ffc06880:	83 5f 00 14 	lwz     r26,20(r31)                            
 */                                                                   
static uint32_t                                                       
rtems_fdisk_pages_in_segment (const rtems_fdisk_segment_desc* sd,     
                              uint32_t                        page_size)
{                                                                     
  return sd->size / page_size;                                        
ffc06884:	81 3d 00 08 	lwz     r9,8(r29)                              
#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)                       
ffc06888:	81 5f 00 24 	lwz     r10,36(r31)                            
 */                                                                   
static uint32_t                                                       
rtems_fdisk_pages_in_segment (const rtems_fdisk_segment_desc* sd,     
                              uint32_t                        page_size)
{                                                                     
  return sd->size / page_size;                                        
ffc0688c:	7d 29 d3 96 	divwu   r9,r9,r26                              
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);            
ffc06890:	55 38 18 38 	rlwinm  r24,r9,3,0,28                          
  return ((bytes - 1) / page_size) + 1;                               
ffc06894:	3b 18 ff ff 	addi    r24,r24,-1                             
ffc06898:	7f 18 d3 96 	divwu   r24,r24,r26                            
ffc0689c:	3b 18 00 01 	addi    r24,r24,1                              
      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;
ffc068a0:	7d 38 48 50 	subf    r9,r24,r9                              
                                                                      
#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);
ffc068a4:	93 1e 00 18 	stw     r24,24(r30)                            
      sc->pages =                                                     
        rtems_fdisk_pages_in_segment (sd, fd->block_size) - sc->pages_desc;
      if (sc->pages > fd->starvation_threshold)                       
ffc068a8:	7f 89 50 40 	cmplw   cr7,r9,r10                             
#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);
      sc->pages =                                                     
ffc068ac:	91 3e 00 14 	stw     r9,20(r30)                             
        rtems_fdisk_pages_in_segment (sd, fd->block_size) - sc->pages_desc;
      if (sc->pages > fd->starvation_threshold)                       
ffc068b0:	40 9d 00 08 	ble-    cr7,ffc068b8 <rtems_fdisk_recover_block_mappings+0xf8>
        fd->starvation_threshold = sc->pages;                         
ffc068b4:	91 3f 00 24 	stw     r9,36(r31)                             
      sc->pages_used   = 0;                                           
      sc->pages_bad    = 0;                                           
                                                                      
      sc->failed = false;                                             
                                                                      
      if (!sc->page_descriptors)                                      
ffc068b8:	81 3e 00 10 	lwz     r9,16(r30)                             
      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;                                           
ffc068bc:	93 3e 00 1c 	stw     r25,28(r30)                            
      sc->pages_used   = 0;                                           
      sc->pages_bad    = 0;                                           
                                                                      
      sc->failed = false;                                             
                                                                      
      if (!sc->page_descriptors)                                      
ffc068c0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
        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;                                           
      sc->pages_used   = 0;                                           
ffc068c4:	93 3e 00 20 	stw     r25,32(r30)                            
      sc->pages_bad    = 0;                                           
ffc068c8:	93 3e 00 24 	stw     r25,36(r30)                            
                                                                      
      sc->failed = false;                                             
ffc068cc:	93 3e 00 28 	stw     r25,40(r30)                            
                                                                      
      if (!sc->page_descriptors)                                      
ffc068d0:	40 be 00 10 	bne+    cr7,ffc068e0 <rtems_fdisk_recover_block_mappings+0x120><== NEVER TAKEN
        sc->page_descriptors = malloc (sc->pages_desc * fd->block_size);
ffc068d4:	7c 78 d1 d6 	mullw   r3,r24,r26                             
ffc068d8:	48 00 29 05 	bl      ffc091dc <malloc>                      
ffc068dc:	90 7e 00 10 	stw     r3,16(r30)                             
                                                                      
      if (!sc->page_descriptors)                                      
ffc068e0:	83 be 00 10 	lwz     r29,16(r30)                            
ffc068e4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc068e8:	40 be 00 14 	bne+    cr7,ffc068fc <rtems_fdisk_recover_block_mappings+0x13c><== ALWAYS TAKEN
        rtems_fdisk_abort ("no memory for page descriptors");         
ffc068ec:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc068f0:	38 63 24 cf 	addi    r3,r3,9423                             <== NOT EXECUTED
ffc068f4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc068f8:	48 00 18 39 	bl      ffc08130 <rtems_fdisk_abort.constprop.9><== 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,              
ffc068fc:	7c f8 d1 d6 	mullw   r7,r24,r26                             
ffc06900:	7f e3 fb 78 	mr      r3,r31                                 
ffc06904:	7f c4 f3 78 	mr      r4,r30                                 
ffc06908:	38 a0 00 00 	li      r5,0                                   
ffc0690c:	7f a6 eb 78 	mr      r6,r29                                 
ffc06910:	4b ff f2 59 	bl      ffc05b68 <rtems_fdisk_seg_read>        
                                  sc->pages_desc * fd->block_size);   
                                                                      
      if (ret)                                                        
ffc06914:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc06918:	41 a2 01 9c 	beq+    ffc06ab4 <rtems_fdisk_recover_block_mappings+0x2f4><== ALWAYS TAKEN
      {                                                               
        rtems_fdisk_error ("recover-block-mappings:%02d-%03d: " \     
ffc0691c:	48 01 d4 41 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc06920:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc06924:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc06928:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc0692c:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc06930:	7f 47 d3 78 	mr      r7,r26                                 <== NOT EXECUTED
ffc06934:	38 63 28 1b 	addi    r3,r3,10267                            <== NOT EXECUTED
ffc06938:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc0693c:	4b ff f1 41 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
                           "read page desc failed: %s (%d)",          
                           device, segment, strerror (ret), ret);     
        return ret;                                                   
ffc06940:	48 00 01 c8 	b       ffc06b08 <rtems_fdisk_recover_block_mappings+0x348><== 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))                        
ffc06944:	7f a3 eb 78 	mr      r3,r29                                 
ffc06948:	4b ff ee 71 	bl      ffc057b8 <rtems_fdisk_page_desc_erased>
ffc0694c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06950:	41 be 00 9c 	beq+    cr7,ffc069ec <rtems_fdisk_recover_block_mappings+0x22c><== NEVER TAKEN
        {                                                             
          /*                                                          
           * Is the page erased ?                                     
           */                                                         
          ret = rtems_fdisk_seg_blank_check_page (fd, sc,             
ffc06954:	80 be 00 18 	lwz     r5,24(r30)                             
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,                         
ffc06958:	7f e3 fb 78 	mr      r3,r31                                 
                                      page * fd->block_size, fd->block_size);
ffc0695c:	80 df 00 14 	lwz     r6,20(r31)                             
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,                         
ffc06960:	7f c4 f3 78 	mr      r4,r30                                 
        if (rtems_fdisk_page_desc_erased (pd))                        
        {                                                             
          /*                                                          
           * Is the page erased ?                                     
           */                                                         
          ret = rtems_fdisk_seg_blank_check_page (fd, sc,             
ffc06964:	7c ba 2a 14 	add     r5,r26,r5                              
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,                         
ffc06968:	7c a5 31 d6 	mullw   r5,r5,r6                               
ffc0696c:	4b ff f2 ed 	bl      ffc05c58 <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)                                               
ffc06970:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06974:	40 9e 00 14 	bne-    cr7,ffc06988 <rtems_fdisk_recover_block_mappings+0x1c8><== NEVER TAKEN
          {                                                           
            ++fd->erased_blocks;                                      
ffc06978:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc0697c:	39 29 00 01 	addi    r9,r9,1                                
ffc06980:	91 3f 00 28 	stw     r9,40(r31)                             
ffc06984:	48 00 01 24 	b       ffc06aa8 <rtems_fdisk_recover_block_mappings+0x2e8>
          }                                                           
          else                                                        
          {                                                           
#if RTEMS_FDISK_TRACE                                                 
            rtems_fdisk_warning (fd, "page not blank: %d-%d-%d",      
ffc06988:	81 1d 00 04 	lwz     r8,4(r29)                              <== NOT EXECUTED
ffc0698c:	7e 64 9b 78 	mr      r4,r19                                 <== NOT EXECUTED
ffc06990:	7f 65 db 78 	mr      r5,r27                                 <== NOT EXECUTED
ffc06994:	7f 86 e3 78 	mr      r6,r28                                 <== NOT EXECUTED
ffc06998:	7f 47 d3 78 	mr      r7,r26                                 <== NOT EXECUTED
ffc0699c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc069a0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc069a4:	4b ff f0 05 	bl      ffc059a8 <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;                                                
ffc069a8:	a1 3d 00 02 	lhz     r9,2(r29)                              <== 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,            
ffc069ac:	7f e3 fb 78 	mr      r3,r31                                 <== 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;                                                
ffc069b0:	55 29 07 fa 	rlwinm  r9,r9,0,31,29                          <== NOT EXECUTED
ffc069b4:	b1 3d 00 02 	sth     r9,2(r29)                              <== 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,            
ffc069b8:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc069bc:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc069c0:	7f a6 eb 78 	mr      r6,r29                                 <== NOT EXECUTED
ffc069c4:	4b ff f3 d1 	bl      ffc05d94 <rtems_fdisk_seg_write_page_desc><== NOT EXECUTED
                                                   page, pd);         
                                                                      
            if (ret)                                                  
ffc069c8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc069cc:	41 be 00 30 	beq+    cr7,ffc069fc <rtems_fdisk_recover_block_mappings+0x23c><== NOT EXECUTED
            {                                                         
              rtems_fdisk_error ("forcing page to used failed: %d-%d-%d",
ffc069d0:	7e 43 93 78 	mr      r3,r18                                 <== NOT EXECUTED
ffc069d4:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc069d8:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc069dc:	7f 46 d3 78 	mr      r6,r26                                 <== NOT EXECUTED
ffc069e0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc069e4:	4b ff f0 99 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
ffc069e8:	48 00 00 14 	b       ffc069fc <rtems_fdisk_recover_block_mappings+0x23c><== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc069ec:	a1 3d 00 02 	lhz     r9,2(r29)                              <== NOT EXECUTED
            sc->pages_used++;                                         
          }                                                           
        }                                                             
        else                                                          
        {                                                             
          if (rtems_fdisk_page_desc_flags_set (pd, RTEMS_FDISK_PAGE_USED))
ffc069f0:	55 2a 07 bc 	rlwinm  r10,r9,0,30,30                         <== NOT EXECUTED
ffc069f4:	71 48 ff ff 	andi.   r8,r10,65535                           <== NOT EXECUTED
ffc069f8:	40 82 00 14 	bne-    ffc06a0c <rtems_fdisk_recover_block_mappings+0x24c><== NOT EXECUTED
          {                                                           
            sc->pages_used++;                                         
ffc069fc:	81 3e 00 20 	lwz     r9,32(r30)                             <== NOT EXECUTED
ffc06a00:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc06a04:	91 3e 00 20 	stw     r9,32(r30)                             <== NOT EXECUTED
ffc06a08:	48 00 00 a0 	b       ffc06aa8 <rtems_fdisk_recover_block_mappings+0x2e8><== NOT EXECUTED
          }                                                           
          else if (rtems_fdisk_page_desc_flags_set (pd, RTEMS_FDISK_PAGE_ACTIVE))
ffc06a0c:	71 2a 00 01 	andi.   r10,r9,1                               <== NOT EXECUTED
ffc06a10:	40 82 00 8c 	bne-    ffc06a9c <rtems_fdisk_recover_block_mappings+0x2dc><== NOT EXECUTED
          {                                                           
            if (pd->block >= fd->block_count)                         
ffc06a14:	81 1d 00 04 	lwz     r8,4(r29)                              <== NOT EXECUTED
ffc06a18:	81 3f 00 1c 	lwz     r9,28(r31)                             <== NOT EXECUTED
ffc06a1c:	7f 88 48 40 	cmplw   cr7,r8,r9                              <== NOT EXECUTED
ffc06a20:	41 bc 00 24 	blt+    cr7,ffc06a44 <rtems_fdisk_recover_block_mappings+0x284><== NOT EXECUTED
            {                                                         
#if RTEMS_FDISK_TRACE                                                 
              rtems_fdisk_warning (fd,                                
ffc06a24:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc06a28:	7e 84 a3 78 	mr      r4,r20                                 <== NOT EXECUTED
ffc06a2c:	7f 65 db 78 	mr      r5,r27                                 <== NOT EXECUTED
ffc06a30:	7f 86 e3 78 	mr      r6,r28                                 <== NOT EXECUTED
ffc06a34:	7f 47 d3 78 	mr      r7,r26                                 <== NOT EXECUTED
ffc06a38:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06a3c:	4b ff ef 6d 	bl      ffc059a8 <rtems_fdisk_warning>         <== NOT EXECUTED
ffc06a40:	48 00 00 5c 	b       ffc06a9c <rtems_fdisk_recover_block_mappings+0x2dc><== 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)                   
ffc06a44:	81 5f 00 18 	lwz     r10,24(r31)                            <== NOT EXECUTED
ffc06a48:	55 08 18 38 	rlwinm  r8,r8,3,0,28                           <== NOT EXECUTED
ffc06a4c:	7d 2a 40 2e 	lwzx    r9,r10,r8                              <== NOT EXECUTED
ffc06a50:	7c ea 42 14 	add     r7,r10,r8                              <== NOT EXECUTED
ffc06a54:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc06a58:	41 9e 00 2c 	beq-    cr7,ffc06a84 <rtems_fdisk_recover_block_mappings+0x2c4><== 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: " \      
ffc06a5c:	80 89 00 08 	lwz     r4,8(r9)                               <== NOT EXECUTED
ffc06a60:	7e a3 ab 78 	mr      r3,r21                                 <== NOT EXECUTED
ffc06a64:	80 a9 00 0c 	lwz     r5,12(r9)                              <== NOT EXECUTED
ffc06a68:	7f 88 e3 78 	mr      r8,r28                                 <== NOT EXECUTED
ffc06a6c:	80 c7 00 04 	lwz     r6,4(r7)                               <== NOT EXECUTED
ffc06a70:	7f 49 d3 78 	mr      r9,r26                                 <== NOT EXECUTED
ffc06a74:	7f 67 db 78 	mr      r7,r27                                 <== NOT EXECUTED
ffc06a78:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06a7c:	4b ff f0 01 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
ffc06a80:	48 00 00 1c 	b       ffc06a9c <rtems_fdisk_recover_block_mappings+0x2dc><== NOT EXECUTED
              fd->blocks[pd->block].page    = page;                   
                                                                      
              /*                                                      
               * The page is active.                                  
               */                                                     
              sc->pages_active++;                                     
ffc06a84:	81 3e 00 1c 	lwz     r9,28(r30)                             <== NOT EXECUTED
            {                                                         
              /**                                                     
               * @todo                                                
               * Add start up crc checks here.                        
               */                                                     
              fd->blocks[pd->block].segment = sc;                     
ffc06a88:	7f ca 41 2e 	stwx    r30,r10,r8                             <== NOT EXECUTED
              fd->blocks[pd->block].page    = page;                   
                                                                      
              /*                                                      
               * The page is active.                                  
               */                                                     
              sc->pages_active++;                                     
ffc06a8c:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
              /**                                                     
               * @todo                                                
               * Add start up crc checks here.                        
               */                                                     
              fd->blocks[pd->block].segment = sc;                     
              fd->blocks[pd->block].page    = page;                   
ffc06a90:	93 47 00 04 	stw     r26,4(r7)                              <== NOT EXECUTED
                                                                      
              /*                                                      
               * The page is active.                                  
               */                                                     
              sc->pages_active++;                                     
ffc06a94:	91 3e 00 1c 	stw     r9,28(r30)                             <== NOT EXECUTED
ffc06a98:	48 00 00 10 	b       ffc06aa8 <rtems_fdisk_recover_block_mappings+0x2e8><== NOT EXECUTED
            }                                                         
          }                                                           
          else                                                        
            sc->pages_bad++;                                          
ffc06a9c:	81 3e 00 24 	lwz     r9,36(r30)                             <== NOT EXECUTED
ffc06aa0:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc06aa4:	91 3e 00 24 	stw     r9,36(r30)                             <== 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++)                  
ffc06aa8:	3b 5a 00 01 	addi    r26,r26,1                              
ffc06aac:	3b bd 00 08 	addi    r29,r29,8                              
ffc06ab0:	48 00 00 08 	b       ffc06ab8 <rtems_fdisk_recover_block_mappings+0x2f8>
       *       so NAND flash could be better supported.               
       */                                                             
      ret = rtems_fdisk_seg_read (fd, sc, 0, (void*) pd,              
                                  sc->pages_desc * fd->block_size);   
                                                                      
      if (ret)                                                        
ffc06ab4:	3b 40 00 00 	li      r26,0                                  
       * 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++)                  
ffc06ab8:	81 3e 00 14 	lwz     r9,20(r30)                             
ffc06abc:	7f 9a 48 40 	cmplw   cr7,r26,r9                             
ffc06ac0:	41 9c fe 84 	blt+    cr7,ffc06944 <rtems_fdisk_recover_block_mappings+0x184>
      }                                                               
                                                                      
      /*                                                              
       * Place the segment on to the correct queue.                   
       */                                                             
      rtems_fdisk_queue_segment (fd, sc);                             
ffc06ac4:	7f e3 fb 78 	mr      r3,r31                                 
ffc06ac8:	7f c4 f3 78 	mr      r4,r30                                 
ffc06acc:	4b ff f5 81 	bl      ffc0604c <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++)
ffc06ad0:	3b 9c 00 01 	addi    r28,r28,1                              
ffc06ad4:	81 3f 00 2c 	lwz     r9,44(r31)                             
ffc06ad8:	7d 49 ba 14 	add     r10,r9,r23                             
ffc06adc:	81 4a 00 04 	lwz     r10,4(r10)                             
ffc06ae0:	7f 9c 50 40 	cmplw   cr7,r28,r10                            
ffc06ae4:	41 9c fd 74 	blt+    cr7,ffc06858 <rtems_fdisk_recover_block_mappings+0x98>
  /*                                                                  
   * 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++)               
ffc06ae8:	3b 7b 00 01 	addi    r27,r27,1                              
ffc06aec:	81 3f 00 30 	lwz     r9,48(r31)                             
ffc06af0:	7f 9b 48 40 	cmplw   cr7,r27,r9                             
ffc06af4:	40 9c 00 10 	bge-    cr7,ffc06b04 <rtems_fdisk_recover_block_mappings+0x344>
                                                                      
/**                                                                   
 * Recover the block mappings from the devices.                       
 */                                                                   
static int                                                            
rtems_fdisk_recover_block_mappings (rtems_flashdisk* fd)              
ffc06af8:	1e fb 00 0c 	mulli   r23,r27,12                             
ffc06afc:	3b 80 00 00 	li      r28,0                                  
ffc06b00:	4b ff ff d4 	b       ffc06ad4 <rtems_fdisk_recover_block_mappings+0x314>
       */                                                             
      rtems_fdisk_queue_segment (fd, sc);                             
    }                                                                 
  }                                                                   
                                                                      
  return 0;                                                           
ffc06b04:	3b 40 00 00 	li      r26,0                                  
}                                                                     
ffc06b08:	39 61 00 40 	addi    r11,r1,64                              
ffc06b0c:	7f 43 d3 78 	mr      r3,r26                                 
ffc06b10:	4b ff aa 28 	b       ffc01538 <_restgpr_18_x>               
                                                                      

ffc06218 <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) {
ffc06218:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc0621c:	7c 08 02 a6 	mflr    r0                                     
ffc06220:	be 41 00 10 	stmw    r18,16(r1)                             
        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",
ffc06224:	3e 60 ff c3 	lis     r19,-61                                
                           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",
ffc06228:	3e 40 ff c3 	lis     r18,-61                                
static int                                                            
rtems_fdisk_recycle_segment (rtems_flashdisk*         fd,             
                                    rtems_fdisk_segment_ctl* ssc,     
                                    rtems_fdisk_segment_ctl* dsc,     
                                    uint32_t *pages)                  
{                                                                     
ffc0622c:	90 01 00 4c 	stw     r0,76(r1)                              
ffc06230:	7c 7d 1b 78 	mr      r29,r3                                 
ffc06234:	7c 9e 23 78 	mr      r30,r4                                 
ffc06238:	7c bf 2b 78 	mr      r31,r5                                 
ffc0623c:	7c d6 33 78 	mr      r22,r6                                 
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
ffc06240:	3a e0 00 00 	li      r23,0                                  
                                    rtems_fdisk_segment_ctl* dsc,     
                                    uint32_t *pages)                  
{                                                                     
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
ffc06244:	3b 00 00 00 	li      r24,0                                  
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
ffc06248:	3b 60 00 00 	li      r27,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",
ffc0624c:	3a 73 25 ff 	addi    r19,r19,9727                           
                           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",
ffc06250:	3a 52 26 27 	addi    r18,r18,9767                           
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
ffc06254:	48 00 02 d0 	b       ffc06524 <rtems_fdisk_recycle_segment+0x30c>
  {                                                                   
    rtems_fdisk_page_desc* spd = &ssc->page_descriptors[spage];       
                                                                      
    if (!dsc && ssc->pages_active > 0)                                
ffc06258:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
  {                                                                   
    rtems_fdisk_page_desc* spd = &ssc->page_descriptors[spage];       
ffc0625c:	81 3e 00 10 	lwz     r9,16(r30)                             
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
                                                                      
static int                                                            
rtems_fdisk_recycle_segment (rtems_flashdisk*         fd,             
ffc06260:	57 79 18 38 	rlwinm  r25,r27,3,0,28                         
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
  {                                                                   
    rtems_fdisk_page_desc* spd = &ssc->page_descriptors[spage];       
ffc06264:	7f 29 ca 14 	add     r25,r9,r25                             
                                                                      
    if (!dsc && ssc->pages_active > 0)                                
ffc06268:	40 be 00 24 	bne+    cr7,ffc0628c <rtems_fdisk_recycle_segment+0x74>
ffc0626c:	81 3e 00 1c 	lwz     r9,28(r30)                             
ffc06270:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06274:	41 be 00 18 	beq+    cr7,ffc0628c <rtems_fdisk_recycle_segment+0x74><== ALWAYS TAKEN
    {                                                                 
      rtems_fdisk_error ("recycle: no available dst segment");        
ffc06278:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc0627c:	38 63 25 ae 	addi    r3,r3,9646                             <== NOT EXECUTED
ffc06280:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06284:	4b ff f7 f9 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
ffc06288:	48 00 00 a4 	b       ffc0632c <rtems_fdisk_recycle_segment+0x114><== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0628c:	a1 39 00 02 	lhz     r9,2(r25)                              
    {                                                                 
      rtems_fdisk_error ("recycle: no available dst segment");        
      return EIO;                                                     
    }                                                                 
                                                                      
    if (rtems_fdisk_page_desc_flags_set (spd, RTEMS_FDISK_PAGE_ACTIVE) &&
ffc06290:	71 2a 00 01 	andi.   r10,r9,1                               
ffc06294:	40 82 02 68 	bne-    ffc064fc <rtems_fdisk_recycle_segment+0x2e4><== NEVER TAKEN
ffc06298:	55 29 07 bc 	rlwinm  r9,r9,0,30,30                          
ffc0629c:	71 2a ff ff 	andi.   r10,r9,65535                           
ffc062a0:	41 a2 02 5c 	beq+    ffc064fc <rtems_fdisk_recycle_segment+0x2e4>
 * 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];               
ffc062a4:	82 bf 00 10 	lwz     r21,16(r31)                            
  uint32_t               page;                                        
                                                                      
  for (page = 0; page < sc->pages; page++, pd++)                      
ffc062a8:	3b 80 00 00 	li      r28,0                                  
ffc062ac:	83 5f 00 14 	lwz     r26,20(r31)                            
ffc062b0:	48 00 00 14 	b       ffc062c4 <rtems_fdisk_recycle_segment+0xac>
    if (rtems_fdisk_page_desc_erased (pd))                            
ffc062b4:	4b ff f5 05 	bl      ffc057b8 <rtems_fdisk_page_desc_erased>
ffc062b8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc062bc:	40 9e 00 18 	bne-    cr7,ffc062d4 <rtems_fdisk_recycle_segment+0xbc>
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++)                      
ffc062c0:	3b 9c 00 01 	addi    r28,r28,1                              
ffc062c4:	7f 9c d0 00 	cmpw    cr7,r28,r26                            
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
                                                                      
static int                                                            
rtems_fdisk_recycle_segment (rtems_flashdisk*         fd,             
ffc062c8:	57 83 18 38 	rlwinm  r3,r28,3,0,28                          
ffc062cc:	7c 75 1a 14 	add     r3,r21,r3                              
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++)                      
ffc062d0:	40 9e ff e4 	bne+    cr7,ffc062b4 <rtems_fdisk_recycle_segment+0x9c><== ALWAYS TAKEN
      dpage = rtems_fdisk_seg_next_available_page (dsc);              
      dpd   = &dsc->page_descriptors[dpage];                          
                                                                      
      active++;                                                       
                                                                      
      if (dpage >= dsc->pages)                                        
ffc062d4:	7f 9c d0 40 	cmplw   cr7,r28,r26                            
      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];                          
ffc062d8:	57 89 18 38 	rlwinm  r9,r28,3,0,28                          
ffc062dc:	7e b5 4a 14 	add     r21,r21,r9                             
                                                                      
      active++;                                                       
ffc062e0:	3a f7 00 01 	addi    r23,r23,1                              
                                                                      
      if (dpage >= dsc->pages)                                        
ffc062e4:	41 bc 00 50 	blt+    cr7,ffc06334 <rtems_fdisk_recycle_segment+0x11c><== ALWAYS TAKEN
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d: " \                   
ffc062e8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc062ec:	4b ff f4 f5 	bl      ffc057e0 <rtems_fdisk_seg_pages_available><== NOT EXECUTED
ffc062f0:	80 9f 00 08 	lwz     r4,8(r31)                              <== NOT EXECUTED
ffc062f4:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc062f8:	80 bf 00 0c 	lwz     r5,12(r31)                             <== NOT EXECUTED
ffc062fc:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc06300:	38 63 25 d0 	addi    r3,r3,9680                             <== NOT EXECUTED
ffc06304:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06308:	4b ff f7 75 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
                           "no page desc available: %d",              
                           dsc->device, dsc->segment,                 
                           rtems_fdisk_seg_pages_available (dsc));    
        dsc->failed = true;                                           
ffc0630c:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc06310:	91 3f 00 28 	stw     r9,40(r31)                             <== NOT EXECUTED
        rtems_fdisk_queue_segment (fd, dsc);                          
ffc06314:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc06318:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc0631c:	4b ff fd 31 	bl      ffc0604c <rtems_fdisk_queue_segment>   <== NOT EXECUTED
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
ffc06320:	38 7d 00 40 	addi    r3,r29,64                              <== NOT EXECUTED
ffc06324:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc06328:	4b ff f3 25 	bl      ffc0564c <rtems_fdisk_segment_queue_push_head><== NOT EXECUTED
        return EIO;                                                   
ffc0632c:	3b 40 00 05 	li      r26,5                                  <== NOT EXECUTED
ffc06330:	48 00 02 60 	b       ffc06590 <rtems_fdisk_recycle_segment+0x378><== NOT EXECUTED
      }                                                               
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, "recycle: %02d-%03d-%03d=>%02d-%03d-%03d",
ffc06334:	80 be 00 08 	lwz     r5,8(r30)                              
ffc06338:	7e 64 9b 78 	mr      r4,r19                                 
ffc0633c:	80 de 00 0c 	lwz     r6,12(r30)                             
ffc06340:	7f 67 db 78 	mr      r7,r27                                 
ffc06344:	81 1f 00 08 	lwz     r8,8(r31)                              
ffc06348:	7f 8a e3 78 	mr      r10,r28                                
ffc0634c:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc06350:	7f a3 eb 78 	mr      r3,r29                                 
ffc06354:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06358:	4b ff f4 a9 	bl      ffc05800 <rtems_fdisk_info>            
                        ssc->device, ssc->segment, spage,             
                        dsc->device, dsc->segment, dpage);            
#endif                                                                
      ret = rtems_fdisk_seg_copy_page (fd, ssc,                       
ffc0635c:	83 5e 00 18 	lwz     r26,24(r30)                            
ffc06360:	82 9f 00 18 	lwz     r20,24(r31)                            
                           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",
ffc06364:	7e 44 93 78 	mr      r4,r18                                 
#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,                       
ffc06368:	7f 5b d2 14 	add     r26,r27,r26                            
                           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",
ffc0636c:	80 be 00 08 	lwz     r5,8(r30)                              
ffc06370:	80 de 00 0c 	lwz     r6,12(r30)                             
#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,                       
ffc06374:	7e 9c a2 14 	add     r20,r28,r20                            
                           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",
ffc06378:	81 1f 00 08 	lwz     r8,8(r31)                              
ffc0637c:	7f 47 d3 78 	mr      r7,r26                                 
ffc06380:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc06384:	7e 8a a3 78 	mr      r10,r20                                
ffc06388:	7f a3 eb 78 	mr      r3,r29                                 
ffc0638c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06390:	4b ff f5 45 	bl      ffc058d4 <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);
ffc06394:	80 fd 00 14 	lwz     r7,20(r29)                             
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,                                
ffc06398:	80 dd 00 68 	lwz     r6,104(r29)                            
ffc0639c:	7f a3 eb 78 	mr      r3,r29                                 
ffc063a0:	7c ba 39 d6 	mullw   r5,r26,r7                              
ffc063a4:	7f c4 f3 78 	mr      r4,r30                                 
ffc063a8:	4b ff f7 c1 	bl      ffc05b68 <rtems_fdisk_seg_read>        
                      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)                                                            
ffc063ac:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc063b0:	40 a2 00 20 	bne+    ffc063d0 <rtems_fdisk_recycle_segment+0x1b8><== NEVER TAKEN
    return ret;                                                       
  return rtems_fdisk_seg_write_page (fd, dst_sc, dst_page,            
ffc063b4:	80 dd 00 68 	lwz     r6,104(r29)                            
ffc063b8:	7f a3 eb 78 	mr      r3,r29                                 
ffc063bc:	7f e4 fb 78 	mr      r4,r31                                 
ffc063c0:	7e 85 a3 78 	mr      r5,r20                                 
ffc063c4:	4b ff fa 41 	bl      ffc05e04 <rtems_fdisk_seg_write_page>  
#endif                                                                
      ret = rtems_fdisk_seg_copy_page (fd, ssc,                       
                                       spage + ssc->pages_desc,       
                                       dsc,                           
                                       dpage + dsc->pages_desc);      
      if (ret)                                                        
ffc063c8:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc063cc:	41 a2 00 30 	beq+    ffc063fc <rtems_fdisk_recycle_segment+0x1e4><== ALWAYS TAKEN
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d-%03d=>" \              
ffc063d0:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc063d4:	82 de 00 08 	lwz     r22,8(r30)                             <== NOT EXECUTED
ffc063d8:	82 fe 00 0c 	lwz     r23,12(r30)                            <== NOT EXECUTED
ffc063dc:	83 1f 00 08 	lwz     r24,8(r31)                             <== NOT EXECUTED
ffc063e0:	83 3f 00 0c 	lwz     r25,12(r31)                            <== NOT EXECUTED
ffc063e4:	48 01 d9 79 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc063e8:	7c 6a 1b 78 	mr      r10,r3                                 <== NOT EXECUTED
ffc063ec:	93 41 00 08 	stw     r26,8(r1)                              <== NOT EXECUTED
ffc063f0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc063f4:	38 63 26 57 	addi    r3,r3,9815                             <== NOT EXECUTED
ffc063f8:	48 00 00 54 	b       ffc0644c <rtems_fdisk_recycle_segment+0x234><== NOT EXECUTED
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      *dpd = *spd;                                                    
ffc063fc:	81 39 00 00 	lwz     r9,0(r25)                              
                                                                      
      ret = rtems_fdisk_seg_write_page_desc (fd,                      
ffc06400:	7f a3 eb 78 	mr      r3,r29                                 
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      *dpd = *spd;                                                    
ffc06404:	81 59 00 04 	lwz     r10,4(r25)                             
                                                                      
      ret = rtems_fdisk_seg_write_page_desc (fd,                      
ffc06408:	7f e4 fb 78 	mr      r4,r31                                 
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      *dpd = *spd;                                                    
ffc0640c:	91 35 00 00 	stw     r9,0(r21)                              
                                                                      
      ret = rtems_fdisk_seg_write_page_desc (fd,                      
ffc06410:	7f 85 e3 78 	mr      r5,r28                                 
ffc06414:	7e a6 ab 78 	mr      r6,r21                                 
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      *dpd = *spd;                                                    
ffc06418:	91 55 00 04 	stw     r10,4(r21)                             
                                                                      
      ret = rtems_fdisk_seg_write_page_desc (fd,                      
ffc0641c:	4b ff f9 79 	bl      ffc05d94 <rtems_fdisk_seg_write_page_desc>
                                             dsc,                     
                                             dpage, dpd);             
                                                                      
      if (ret)                                                        
ffc06420:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc06424:	41 a2 00 64 	beq+    ffc06488 <rtems_fdisk_recycle_segment+0x270><== ALWAYS TAKEN
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d-%03d=>"   \            
ffc06428:	82 de 00 08 	lwz     r22,8(r30)                             <== NOT EXECUTED
ffc0642c:	82 fe 00 0c 	lwz     r23,12(r30)                            <== NOT EXECUTED
ffc06430:	83 1f 00 08 	lwz     r24,8(r31)                             <== NOT EXECUTED
ffc06434:	83 3f 00 0c 	lwz     r25,12(r31)                            <== NOT EXECUTED
ffc06438:	48 01 d9 25 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc0643c:	7c 6a 1b 78 	mr      r10,r3                                 <== NOT EXECUTED
ffc06440:	93 41 00 08 	stw     r26,8(r1)                              <== NOT EXECUTED
ffc06444:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc06448:	38 63 26 9a 	addi    r3,r3,9882                             <== NOT EXECUTED
ffc0644c:	7e c4 b3 78 	mr      r4,r22                                 <== NOT EXECUTED
ffc06450:	7e e5 bb 78 	mr      r5,r23                                 <== NOT EXECUTED
ffc06454:	7f 66 db 78 	mr      r6,r27                                 <== NOT EXECUTED
ffc06458:	7f 07 c3 78 	mr      r7,r24                                 <== NOT EXECUTED
ffc0645c:	7f 28 cb 78 	mr      r8,r25                                 <== NOT EXECUTED
ffc06460:	7f 89 e3 78 	mr      r9,r28                                 <== NOT EXECUTED
ffc06464:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06468:	4b ff f6 15 	bl      ffc05a7c <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);                          
ffc0646c:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc06470:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc06474:	4b ff fb d9 	bl      ffc0604c <rtems_fdisk_queue_segment>   <== NOT EXECUTED
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
ffc06478:	38 7d 00 40 	addi    r3,r29,64                              <== NOT EXECUTED
ffc0647c:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc06480:	4b ff f1 cd 	bl      ffc0564c <rtems_fdisk_segment_queue_push_head><== NOT EXECUTED
        return ret;                                                   
ffc06484:	48 00 01 0c 	b       ffc06590 <rtems_fdisk_recycle_segment+0x378><== NOT EXECUTED
      }                                                               
                                                                      
      dsc->pages_active++;                                            
ffc06488:	81 3f 00 1c 	lwz     r9,28(r31)                             
      fd->blocks[spd->block].page    = dpage;                         
                                                                      
      /*                                                              
       * Place the segment on to the correct queue.                   
       */                                                             
      rtems_fdisk_queue_segment (fd, dsc);                            
ffc0648c:	7f a3 eb 78 	mr      r3,r29                                 
       */                                                             
                                                                      
      ssc->pages_active--;                                            
      ssc->pages_used++;                                              
                                                                      
      fd->blocks[spd->block].segment = dsc;                           
ffc06490:	81 59 00 04 	lwz     r10,4(r25)                             
      fd->blocks[spd->block].page    = dpage;                         
                                                                      
      /*                                                              
       * Place the segment on to the correct queue.                   
       */                                                             
      rtems_fdisk_queue_segment (fd, dsc);                            
ffc06494:	7f e4 fb 78 	mr      r4,r31                                 
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      dsc->pages_active++;                                            
ffc06498:	39 29 00 01 	addi    r9,r9,1                                
ffc0649c:	91 3f 00 1c 	stw     r9,28(r31)                             
       */                                                             
                                                                      
      ssc->pages_active--;                                            
      ssc->pages_used++;                                              
                                                                      
      fd->blocks[spd->block].segment = dsc;                           
ffc064a0:	55 4a 18 38 	rlwinm  r10,r10,3,0,28                         
       * 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--;                                            
ffc064a4:	81 3e 00 1c 	lwz     r9,28(r30)                             
ffc064a8:	39 29 ff ff 	addi    r9,r9,-1                               
ffc064ac:	91 3e 00 1c 	stw     r9,28(r30)                             
      ssc->pages_used++;                                              
ffc064b0:	81 3e 00 20 	lwz     r9,32(r30)                             
ffc064b4:	39 29 00 01 	addi    r9,r9,1                                
ffc064b8:	91 3e 00 20 	stw     r9,32(r30)                             
                                                                      
      fd->blocks[spd->block].segment = dsc;                           
ffc064bc:	81 3d 00 18 	lwz     r9,24(r29)                             
ffc064c0:	7d 09 52 14 	add     r8,r9,r10                              
ffc064c4:	7f e9 51 2e 	stwx    r31,r9,r10                             
      fd->blocks[spd->block].page    = dpage;                         
ffc064c8:	93 88 00 04 	stw     r28,4(r8)                              
                                                                      
      /*                                                              
       * Place the segment on to the correct queue.                   
       */                                                             
      rtems_fdisk_queue_segment (fd, dsc);                            
ffc064cc:	4b ff fb 81 	bl      ffc0604c <rtems_fdisk_queue_segment>   
                                                                      
      /*                                                              
       * Get new destination segment if necessary.                    
       */                                                             
      dst_pages = rtems_fdisk_seg_pages_available (dsc);              
ffc064d0:	7f e3 fb 78 	mr      r3,r31                                 
ffc064d4:	4b ff f3 0d 	bl      ffc057e0 <rtems_fdisk_seg_pages_available>
      if (dst_pages == 0)                                             
ffc064d8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc064dc:	40 be 00 10 	bne+    cr7,ffc064ec <rtems_fdisk_recycle_segment+0x2d4>
        dsc = rtems_fdisk_seg_most_available (&fd->available);        
ffc064e0:	80 7d 00 34 	lwz     r3,52(r29)                             
ffc064e4:	4b ff f7 21 	bl      ffc05c04 <rtems_fdisk_seg_most_available.isra.8>
ffc064e8:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
      (*pages)--;                                                     
ffc064ec:	81 36 00 00 	lwz     r9,0(r22)                              
ffc064f0:	39 29 ff ff 	addi    r9,r9,-1                               
ffc064f4:	91 36 00 00 	stw     r9,0(r22)                              
      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))
    {                                                                 
ffc064f8:	48 00 00 28 	b       ffc06520 <rtems_fdisk_recycle_segment+0x308>
      if (dst_pages == 0)                                             
        dsc = rtems_fdisk_seg_most_available (&fd->available);        
                                                                      
      (*pages)--;                                                     
    }                                                                 
    else if (rtems_fdisk_page_desc_erased (spd))                      
ffc064fc:	7f 23 cb 78 	mr      r3,r25                                 
ffc06500:	4b ff f2 b9 	bl      ffc057b8 <rtems_fdisk_page_desc_erased>
ffc06504:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06508:	41 9e 00 14 	beq-    cr7,ffc0651c <rtems_fdisk_recycle_segment+0x304><== ALWAYS TAKEN
    {                                                                 
      --fd->erased_blocks;                                            
ffc0650c:	81 3d 00 28 	lwz     r9,40(r29)                             <== NOT EXECUTED
ffc06510:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc06514:	91 3d 00 28 	stw     r9,40(r29)                             <== NOT EXECUTED
ffc06518:	48 00 00 08 	b       ffc06520 <rtems_fdisk_recycle_segment+0x308><== NOT EXECUTED
    }                                                                 
    else                                                              
    {                                                                 
      used++;                                                         
ffc0651c:	3b 18 00 01 	addi    r24,r24,1                              
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
ffc06520:	3b 7b 00 01 	addi    r27,r27,1                              
ffc06524:	81 3e 00 14 	lwz     r9,20(r30)                             
ffc06528:	7f 9b 48 40 	cmplw   cr7,r27,r9                             
ffc0652c:	41 9c fd 2c 	blt+    cr7,ffc06258 <rtems_fdisk_recycle_segment+0x40>
      used++;                                                         
    }                                                                 
  }                                                                   
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "ssc end: %d-%d: p=%ld, a=%ld, u=%ld",      
ffc06530:	3c 80 ff c3 	lis     r4,-61                                 
ffc06534:	80 be 00 08 	lwz     r5,8(r30)                              
ffc06538:	80 de 00 0c 	lwz     r6,12(r30)                             
ffc0653c:	38 84 26 db 	addi    r4,r4,9947                             
ffc06540:	7f a3 eb 78 	mr      r3,r29                                 
ffc06544:	7e c7 b3 78 	mr      r7,r22                                 
ffc06548:	7e e8 bb 78 	mr      r8,r23                                 
ffc0654c:	7f 09 c3 78 	mr      r9,r24                                 
ffc06550:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06554:	4b ff f3 81 	bl      ffc058d4 <rtems_fdisk_printf>          
                      ssc->device, ssc->segment,                      
                      pages, active, used);                           
#endif                                                                
  if (ssc->pages_active != 0)                                         
ffc06558:	80 9e 00 1c 	lwz     r4,28(r30)                             
ffc0655c:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc06560:	41 be 00 14 	beq+    cr7,ffc06574 <rtems_fdisk_recycle_segment+0x35c><== ALWAYS TAKEN
  {                                                                   
    rtems_fdisk_error ("compacting: ssc pages not 0: %d",             
ffc06564:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc06568:	38 63 26 ff 	addi    r3,r3,9983                             <== NOT EXECUTED
ffc0656c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06570:	4b ff f5 0d 	bl      ffc05a7c <rtems_fdisk_error>           <== NOT EXECUTED
  }                                                                   
                                                                      
  ret = rtems_fdisk_erase_segment (fd, ssc);                          
                                                                      
  return ret;                                                         
}                                                                     
ffc06574:	80 01 00 4c 	lwz     r0,76(r1)                              
  {                                                                   
    rtems_fdisk_error ("compacting: ssc pages not 0: %d",             
                       ssc->pages_active);                            
  }                                                                   
                                                                      
  ret = rtems_fdisk_erase_segment (fd, ssc);                          
ffc06578:	7f a3 eb 78 	mr      r3,r29                                 
ffc0657c:	7f c4 f3 78 	mr      r4,r30                                 
                                                                      
  return ret;                                                         
}                                                                     
ffc06580:	ba 41 00 10 	lmw     r18,16(r1)                             
ffc06584:	7c 08 03 a6 	mtlr    r0                                     
ffc06588:	38 21 00 48 	addi    r1,r1,72                               
  {                                                                   
    rtems_fdisk_error ("compacting: ssc pages not 0: %d",             
                       ssc->pages_active);                            
  }                                                                   
                                                                      
  ret = rtems_fdisk_erase_segment (fd, ssc);                          
ffc0658c:	4b ff f8 f4 	b       ffc05e80 <rtems_fdisk_erase_segment>   
                                                                      
  return ret;                                                         
}                                                                     
ffc06590:	39 61 00 48 	addi    r11,r1,72                              <== NOT EXECUTED
ffc06594:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc06598:	4b ff af a0 	b       ffc01538 <_restgpr_18_x>               <== NOT EXECUTED
                                                                      

ffc05cec <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) {
ffc05cec:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc05cf0:	7c 08 02 a6 	mflr    r0                                     
ffc05cf4:	90 01 00 2c 	stw     r0,44(r1)                              
ffc05cf8:	bf 01 00 08 	stmw    r24,8(r1)                              
ffc05cfc:	7c bb 2b 78 	mr      r27,r5                                 
ffc05d00:	7c fc 3b 78 	mr      r28,r7                                 
  int ret;                                                            
  uint32_t                           device;                          
  uint32_t                           segment;                         
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
ffc05d04:	83 a4 00 08 	lwz     r29,8(r4)                              
rtems_fdisk_seg_write (const rtems_flashdisk*   fd,                   
                       rtems_fdisk_segment_ctl* sc,                   
                       uint32_t                 offset,               
                       const void*              buffer,               
                       uint32_t                 size)                 
{                                                                     
ffc05d08:	7c 9f 23 78 	mr      r31,r4                                 
  uint32_t                           device;                          
  uint32_t                           segment;                         
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
  segment = sc->segment;                                              
ffc05d0c:	83 c4 00 0c 	lwz     r30,12(r4)                             
  sd = rtems_fdisk_seg_descriptor (fd, device, segment);              
  ops = fd->devices[device].descriptor->flash_ops;                    
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-write: %02d-%03d: o=%08x s=%d",      
ffc05d10:	3c 80 ff c3 	lis     r4,-61                                 
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;            
ffc05d14:	81 23 00 2c 	lwz     r9,44(r3)                              
ffc05d18:	1d 5d 00 0c 	mulli   r10,r29,12                             
ffc05d1c:	7d 09 52 14 	add     r8,r9,r10                              
ffc05d20:	7d 49 50 2e 	lwzx    r10,r9,r10                             
ffc05d24:	1d 3e 00 30 	mulli   r9,r30,48                              
ffc05d28:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc05d2c:	83 09 00 04 	lwz     r24,4(r9)                              
rtems_fdisk_seg_write (const rtems_flashdisk*   fd,                   
                       rtems_fdisk_segment_ctl* sc,                   
                       uint32_t                 offset,               
                       const void*              buffer,               
                       uint32_t                 size)                 
{                                                                     
ffc05d30:	7c d9 33 78 	mr      r25,r6                                 
  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;                    
ffc05d34:	81 28 00 08 	lwz     r9,8(r8)                               
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-write: %02d-%03d: o=%08x s=%d",      
ffc05d38:	38 84 25 12 	addi    r4,r4,9490                             
ffc05d3c:	7f a5 eb 78 	mr      r5,r29                                 
  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;                    
ffc05d40:	83 49 00 08 	lwz     r26,8(r9)                              
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-write: %02d-%03d: o=%08x s=%d",      
ffc05d44:	7f c6 f3 78 	mr      r6,r30                                 
ffc05d48:	7f 67 db 78 	mr      r7,r27                                 
ffc05d4c:	7f 88 e3 78 	mr      r8,r28                                 
ffc05d50:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc05d54:	4b ff fb 81 	bl      ffc058d4 <rtems_fdisk_printf>          
                      device, segment, offset, size);                 
#endif                                                                
  ret = ops->write (sd, device, segment, offset, buffer, size);       
ffc05d58:	81 3a 00 04 	lwz     r9,4(r26)                              
ffc05d5c:	7f 03 c3 78 	mr      r3,r24                                 
ffc05d60:	7f a4 eb 78 	mr      r4,r29                                 
ffc05d64:	7d 29 03 a6 	mtctr   r9                                     
ffc05d68:	7f c5 f3 78 	mr      r5,r30                                 
ffc05d6c:	7f 66 db 78 	mr      r6,r27                                 
ffc05d70:	7f 27 cb 78 	mr      r7,r25                                 
ffc05d74:	7f 88 e3 78 	mr      r8,r28                                 
ffc05d78:	4e 80 04 21 	bctrl                                          
  if (ret)                                                            
ffc05d7c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc05d80:	41 82 00 0c 	beq-    ffc05d8c <rtems_fdisk_seg_write+0xa0>  <== ALWAYS TAKEN
    sc->failed = true;                                                
ffc05d84:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc05d88:	91 3f 00 28 	stw     r9,40(r31)                             <== NOT EXECUTED
                                                                      
  return ret;                                                         
}                                                                     
ffc05d8c:	39 61 00 28 	addi    r11,r1,40                              
ffc05d90:	4b ff b7 c0 	b       ffc01550 <_restgpr_24_x>               
                                                                      

ffc05e04 <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) {
ffc05e04:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc05e08:	7c 08 02 a6 	mflr    r0                                     
ffc05e0c:	90 01 00 1c 	stw     r0,28(r1)                              
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc05e10:	81 23 00 08 	lwz     r9,8(r3)                               
static int                                                            
rtems_fdisk_seg_write_page (rtems_flashdisk*         fd,              
                            rtems_fdisk_segment_ctl* sc,              
                            uint32_t                 page,            
                            const void*              buffer)          
{                                                                     
ffc05e14:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc05e18:	7c 7f 1b 78 	mr      r31,r3                                 
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc05e1c:	71 2a 00 08 	andi.   r10,r9,8                               
static int                                                            
rtems_fdisk_seg_write_page (rtems_flashdisk*         fd,              
                            rtems_fdisk_segment_ctl* sc,              
                            uint32_t                 page,            
                            const void*              buffer)          
{                                                                     
ffc05e20:	7c 9d 23 78 	mr      r29,r4                                 
ffc05e24:	7c be 2b 78 	mr      r30,r5                                 
ffc05e28:	7c dc 33 78 	mr      r28,r6                                 
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc05e2c:	40 82 00 38 	bne-    ffc05e64 <rtems_fdisk_seg_write_page+0x60><== ALWAYS TAKEN
      return ret;                                                     
  }                                                                   
  --fd->erased_blocks;                                                
  return rtems_fdisk_seg_write (fd, sc,                               
                                page * fd->block_size, buffer, fd->block_size);
}                                                                     
ffc05e30:	80 01 00 1c 	lwz     r0,28(r1)                              
    int ret = rtems_fdisk_seg_blank_check_page (fd, sc, page);        
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  --fd->erased_blocks;                                                
  return rtems_fdisk_seg_write (fd, sc,                               
ffc05e34:	7f e3 fb 78 	mr      r3,r31                                 
  {                                                                   
    int ret = rtems_fdisk_seg_blank_check_page (fd, sc, page);        
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  --fd->erased_blocks;                                                
ffc05e38:	81 3f 00 28 	lwz     r9,40(r31)                             
  return rtems_fdisk_seg_write (fd, sc,                               
ffc05e3c:	7f a4 eb 78 	mr      r4,r29                                 
                                page * fd->block_size, buffer, fd->block_size);
ffc05e40:	80 ff 00 14 	lwz     r7,20(r31)                             
}                                                                     
ffc05e44:	7c 08 03 a6 	mtlr    r0                                     
  {                                                                   
    int ret = rtems_fdisk_seg_blank_check_page (fd, sc, page);        
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  --fd->erased_blocks;                                                
ffc05e48:	39 29 ff ff 	addi    r9,r9,-1                               
  return rtems_fdisk_seg_write (fd, sc,                               
ffc05e4c:	7c be 39 d6 	mullw   r5,r30,r7                              
  {                                                                   
    int ret = rtems_fdisk_seg_blank_check_page (fd, sc, page);        
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  --fd->erased_blocks;                                                
ffc05e50:	91 3f 00 28 	stw     r9,40(r31)                             
  return rtems_fdisk_seg_write (fd, sc,                               
ffc05e54:	7f 86 e3 78 	mr      r6,r28                                 
                                page * fd->block_size, buffer, fd->block_size);
}                                                                     
ffc05e58:	bb 81 00 08 	lmw     r28,8(r1)                              
ffc05e5c:	38 21 00 18 	addi    r1,r1,24                               
    int ret = rtems_fdisk_seg_blank_check_page (fd, sc, page);        
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  --fd->erased_blocks;                                                
  return rtems_fdisk_seg_write (fd, sc,                               
ffc05e60:	4b ff fe 8c 	b       ffc05cec <rtems_fdisk_seg_write>       
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);
ffc05e64:	80 c3 00 14 	lwz     r6,20(r3)                              
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,                         
ffc05e68:	7c a5 31 d6 	mullw   r5,r5,r6                               
ffc05e6c:	4b ff fd ed 	bl      ffc05c58 <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)                                                          
ffc05e70:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05e74:	41 9e ff bc 	beq+    cr7,ffc05e30 <rtems_fdisk_seg_write_page+0x2c><== ALWAYS TAKEN
      return ret;                                                     
  }                                                                   
  --fd->erased_blocks;                                                
  return rtems_fdisk_seg_write (fd, sc,                               
                                page * fd->block_size, buffer, fd->block_size);
}                                                                     
ffc05e78:	39 61 00 18 	addi    r11,r1,24                              <== NOT EXECUTED
ffc05e7c:	4b ff b6 e4 	b       ffc01560 <_restgpr_28_x>               <== NOT EXECUTED
                                                                      

ffc05d94 <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) {
ffc05d94:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc05d98:	7c 08 02 a6 	mflr    r0                                     
ffc05d9c:	90 01 00 1c 	stw     r0,28(r1)                              
  uint32_t offset = page * sizeof (rtems_fdisk_page_desc);            
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc05da0:	81 23 00 08 	lwz     r9,8(r3)                               
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)
{                                                                     
ffc05da4:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc05da8:	7c 7e 1b 78 	mr      r30,r3                                 
  uint32_t offset = page * sizeof (rtems_fdisk_page_desc);            
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc05dac:	71 2a 00 08 	andi.   r10,r9,8                               
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)
{                                                                     
ffc05db0:	7c 9d 23 78 	mr      r29,r4                                 
ffc05db4:	7c dc 33 78 	mr      r28,r6                                 
  uint32_t offset = page * sizeof (rtems_fdisk_page_desc);            
ffc05db8:	54 bf 18 38 	rlwinm  r31,r5,3,0,28                          
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc05dbc:	40 82 00 2c 	bne-    ffc05de8 <rtems_fdisk_seg_write_page_desc+0x54><== ALWAYS TAKEN
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  return rtems_fdisk_seg_write (fd, sc, offset,                       
                                page_desc, sizeof (rtems_fdisk_page_desc));
}                                                                     
ffc05dc0:	80 01 00 1c 	lwz     r0,28(r1)                              
                                           offset,                    
                                           sizeof (rtems_fdisk_page_desc));
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  return rtems_fdisk_seg_write (fd, sc, offset,                       
ffc05dc4:	7f c3 f3 78 	mr      r3,r30                                 
ffc05dc8:	7f a4 eb 78 	mr      r4,r29                                 
                                page_desc, sizeof (rtems_fdisk_page_desc));
}                                                                     
ffc05dcc:	7c 08 03 a6 	mtlr    r0                                     
                                           offset,                    
                                           sizeof (rtems_fdisk_page_desc));
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  return rtems_fdisk_seg_write (fd, sc, offset,                       
ffc05dd0:	7f e5 fb 78 	mr      r5,r31                                 
ffc05dd4:	7f 86 e3 78 	mr      r6,r28                                 
                                page_desc, sizeof (rtems_fdisk_page_desc));
}                                                                     
ffc05dd8:	bb 81 00 08 	lmw     r28,8(r1)                              
                                           offset,                    
                                           sizeof (rtems_fdisk_page_desc));
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  return rtems_fdisk_seg_write (fd, sc, offset,                       
ffc05ddc:	38 e0 00 08 	li      r7,8                                   
                                page_desc, sizeof (rtems_fdisk_page_desc));
}                                                                     
ffc05de0:	38 21 00 18 	addi    r1,r1,24                               
                                           offset,                    
                                           sizeof (rtems_fdisk_page_desc));
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  return rtems_fdisk_seg_write (fd, sc, offset,                       
ffc05de4:	4b ff ff 08 	b       ffc05cec <rtems_fdisk_seg_write>       
                                 const rtems_fdisk_page_desc* page_desc)
{                                                                     
  uint32_t offset = page * sizeof (rtems_fdisk_page_desc);            
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
  {                                                                   
    int ret = rtems_fdisk_seg_blank_check (fd, sc,                    
ffc05de8:	7f e5 fb 78 	mr      r5,r31                                 
ffc05dec:	38 c0 00 08 	li      r6,8                                   
ffc05df0:	4b ff fe 69 	bl      ffc05c58 <rtems_fdisk_seg_blank_check> 
                                           offset,                    
                                           sizeof (rtems_fdisk_page_desc));
    if (ret)                                                          
ffc05df4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05df8:	41 9e ff c8 	beq+    cr7,ffc05dc0 <rtems_fdisk_seg_write_page_desc+0x2c><== ALWAYS TAKEN
      return ret;                                                     
  }                                                                   
  return rtems_fdisk_seg_write (fd, sc, offset,                       
                                page_desc, sizeof (rtems_fdisk_page_desc));
}                                                                     
ffc05dfc:	39 61 00 18 	addi    r11,r1,24                              <== NOT EXECUTED
ffc05e00:	4b ff b7 60 	b       ffc01560 <_restgpr_28_x>               <== NOT EXECUTED
                                                                      

ffc0576c <rtems_fdisk_segment_queue_insert_before>: static void rtems_fdisk_segment_queue_insert_before (rtems_fdisk_segment_ctl_queue* queue, rtems_fdisk_segment_ctl* item, rtems_fdisk_segment_ctl* sc) { if (item)
ffc0576c:	2c 04 00 00 	cmpwi   r4,0                                   
ffc05770:	41 82 00 40 	beq-    ffc057b0 <rtems_fdisk_segment_queue_insert_before+0x44><== NEVER TAKEN
  {                                                                   
    rtems_fdisk_segment_ctl** prev = &queue->head;                    
ffc05774:	7c 6a 1b 78 	mr      r10,r3                                 
    rtems_fdisk_segment_ctl*  it = queue->head;                       
ffc05778:	81 23 00 00 	lwz     r9,0(r3)                               
                                                                      
    while (it)                                                        
ffc0577c:	48 00 00 2c 	b       ffc057a8 <rtems_fdisk_segment_queue_insert_before+0x3c>
    {                                                                 
      if (item == it)                                                 
ffc05780:	7f 84 48 00 	cmpw    cr7,r4,r9                              
ffc05784:	40 be 00 1c 	bne+    cr7,ffc057a0 <rtems_fdisk_segment_queue_insert_before+0x34>
      {                                                               
        sc->next = item;                                              
        *prev = sc;                                                   
        queue->count++;                                               
ffc05788:	81 23 00 08 	lwz     r9,8(r3)                               
                                                                      
    while (it)                                                        
    {                                                                 
      if (item == it)                                                 
      {                                                               
        sc->next = item;                                              
ffc0578c:	90 85 00 00 	stw     r4,0(r5)                               
        *prev = sc;                                                   
        queue->count++;                                               
ffc05790:	39 29 00 01 	addi    r9,r9,1                                
    while (it)                                                        
    {                                                                 
      if (item == it)                                                 
      {                                                               
        sc->next = item;                                              
        *prev = sc;                                                   
ffc05794:	90 aa 00 00 	stw     r5,0(r10)                              
        queue->count++;                                               
ffc05798:	91 23 00 08 	stw     r9,8(r3)                               
        return;                                                       
ffc0579c:	4e 80 00 20 	blr                                            
      }                                                               
                                                                      
      prev = &it->next;                                               
ffc057a0:	7d 2a 4b 78 	mr      r10,r9                                 
      it = it->next;                                                  
ffc057a4:	81 29 00 00 	lwz     r9,0(r9)                               
  if (item)                                                           
  {                                                                   
    rtems_fdisk_segment_ctl** prev = &queue->head;                    
    rtems_fdisk_segment_ctl*  it = queue->head;                       
                                                                      
    while (it)                                                        
ffc057a8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc057ac:	40 9e ff d4 	bne+    cr7,ffc05780 <rtems_fdisk_segment_queue_insert_before+0x14><== ALWAYS TAKEN
      prev = &it->next;                                               
      it = it->next;                                                  
    }                                                                 
  }                                                                   
                                                                      
  rtems_fdisk_segment_queue_push_tail (queue, sc);                    
ffc057b0:	7c a4 2b 78 	mr      r4,r5                                  <== NOT EXECUTED
ffc057b4:	4b ff ff 08 	b       ffc056bc <rtems_fdisk_segment_queue_push_tail><== NOT EXECUTED
                                                                      

ffc0564c <rtems_fdisk_segment_queue_push_head>: */ static void rtems_fdisk_segment_queue_push_head (rtems_fdisk_segment_ctl_queue* queue, rtems_fdisk_segment_ctl* sc) { if (sc)
ffc0564c:	2c 04 00 00 	cmpwi   r4,0                                   <== NOT EXECUTED
ffc05650:	4d 82 00 20 	beqlr                                          <== NOT EXECUTED
  {                                                                   
    sc->next = queue->head;                                           
ffc05654:	81 43 00 00 	lwz     r10,0(r3)                              <== NOT EXECUTED
ffc05658:	91 44 00 00 	stw     r10,0(r4)                              <== NOT EXECUTED
    queue->head = sc;                                                 
                                                                      
    if (queue->tail == 0)                                             
ffc0565c:	81 43 00 04 	lwz     r10,4(r3)                              <== NOT EXECUTED
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = queue->head;                                           
    queue->head = sc;                                                 
ffc05660:	90 83 00 00 	stw     r4,0(r3)                               <== NOT EXECUTED
                                                                      
    if (queue->tail == 0)                                             
ffc05664:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc05668:	40 be 00 08 	bne+    cr7,ffc05670 <rtems_fdisk_segment_queue_push_head+0x24><== NOT EXECUTED
      queue->tail = sc;                                               
ffc0566c:	90 83 00 04 	stw     r4,4(r3)                               <== NOT EXECUTED
    queue->count++;                                                   
ffc05670:	81 23 00 08 	lwz     r9,8(r3)                               <== NOT EXECUTED
ffc05674:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc05678:	91 23 00 08 	stw     r9,8(r3)                               <== NOT EXECUTED
ffc0567c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc059a8 <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, ...) {
ffc059a8:	94 21 ff 80 	stwu    r1,-128(r1)                            <== NOT EXECUTED
ffc059ac:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc059b0:	bf a1 00 74 	stmw    r29,116(r1)                            <== NOT EXECUTED
ffc059b4:	90 01 00 84 	stw     r0,132(r1)                             <== NOT EXECUTED
ffc059b8:	90 a1 00 18 	stw     r5,24(r1)                              <== NOT EXECUTED
ffc059bc:	90 c1 00 1c 	stw     r6,28(r1)                              <== NOT EXECUTED
ffc059c0:	90 e1 00 20 	stw     r7,32(r1)                              <== NOT EXECUTED
ffc059c4:	91 01 00 24 	stw     r8,36(r1)                              <== NOT EXECUTED
ffc059c8:	91 21 00 28 	stw     r9,40(r1)                              <== NOT EXECUTED
ffc059cc:	91 41 00 2c 	stw     r10,44(r1)                             <== NOT EXECUTED
ffc059d0:	40 86 00 24 	bne-    cr1,ffc059f4 <rtems_fdisk_warning+0x4c><== NOT EXECUTED
ffc059d4:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc059d8:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc059dc:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc059e0:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc059e4:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc059e8:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc059ec:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc059f0:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  int ret = 0;                                                        
  if (fd->info_level >= 1)                                            
ffc059f4:	81 23 00 6c 	lwz     r9,108(r3)                             <== 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, ...)
{                                                                     
ffc059f8:	7c 9d 23 78 	mr      r29,r4                                 <== NOT EXECUTED
  int ret = 0;                                                        
ffc059fc:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
  if (fd->info_level >= 1)                                            
ffc05a00:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc05a04:	41 be 00 6c 	beq+    cr7,ffc05a70 <rtems_fdisk_warning+0xc8><== NOT EXECUTED
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc05a08:	39 20 00 02 	li      r9,2                                   <== NOT EXECUTED
ffc05a0c:	9b c1 00 09 	stb     r30,9(r1)                              <== NOT EXECUTED
    fprintf (stdout, "fdisk:warning:");                               
ffc05a10:	3f e0 00 00 	lis     r31,0                                  <== NOT EXECUTED
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 1)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc05a14:	99 21 00 08 	stb     r9,8(r1)                               <== NOT EXECUTED
ffc05a18:	39 21 00 88 	addi    r9,r1,136                              <== NOT EXECUTED
    fprintf (stdout, "fdisk:warning:");                               
ffc05a1c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 1)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc05a20:	91 21 00 0c 	stw     r9,12(r1)                              <== NOT EXECUTED
ffc05a24:	39 21 00 10 	addi    r9,r1,16                               <== NOT EXECUTED
    fprintf (stdout, "fdisk:warning:");                               
ffc05a28:	38 63 24 83 	addi    r3,r3,9347                             <== NOT EXECUTED
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 1)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc05a2c:	91 21 00 10 	stw     r9,16(r1)                              <== NOT EXECUTED
    fprintf (stdout, "fdisk:warning:");                               
ffc05a30:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
ffc05a34:	80 89 00 08 	lwz     r4,8(r9)                               <== NOT EXECUTED
ffc05a38:	48 01 c3 a1 	bl      ffc21dd8 <fputs>                       <== NOT EXECUTED
    ret =  vfprintf (stdout, format, args);                           
ffc05a3c:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
ffc05a40:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc05a44:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc05a48:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc05a4c:	48 02 57 09 	bl      ffc2b154 <vfprintf>                    <== NOT EXECUTED
    fprintf (stdout, "\n");                                           
ffc05a50:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
  if (fd->info_level >= 1)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
    fprintf (stdout, "fdisk:warning:");                               
    ret =  vfprintf (stdout, format, args);                           
ffc05a54:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
    fprintf (stdout, "\n");                                           
ffc05a58:	80 89 00 08 	lwz     r4,8(r9)                               <== NOT EXECUTED
ffc05a5c:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc05a60:	48 01 c2 61 	bl      ffc21cc0 <fputc>                       <== NOT EXECUTED
    fflush (stdout);                                                  
ffc05a64:	81 3f 27 cc 	lwz     r9,10188(r31)                          <== NOT EXECUTED
ffc05a68:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc05a6c:	48 01 bc 29 	bl      ffc21694 <fflush>                      <== NOT EXECUTED
    va_end (args);                                                    
  }                                                                   
  return ret;                                                         
}                                                                     
ffc05a70:	39 61 00 80 	addi    r11,r1,128                             <== NOT EXECUTED
ffc05a74:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc05a78:	4b ff ba ec 	b       ffc01564 <_restgpr_29_x>               <== NOT EXECUTED
                                                                      

ffc0d248 <rtems_filesystem_check_access>: int eval_flags, mode_t node_mode, uid_t node_uid, gid_t node_gid ) {
ffc0d248:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0d24c:	7c 08 02 a6 	mflr    r0                                     
ffc0d250:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc0d254:	7c 9e 23 78 	mr      r30,r4                                 
ffc0d258:	7c bc 2b 78 	mr      r28,r5                                 
ffc0d25c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0d260:	7c dd 33 78 	mr      r29,r6                                 
  mode_t perm_flags = eval_flags & RTEMS_FS_PERMS_RWX;                
ffc0d264:	54 7f 07 7e 	clrlwi  r31,r3,29                              
  uid_t task_uid = geteuid();                                         
ffc0d268:	48 00 20 b1 	bl      ffc0f318 <geteuid>                     
                                                                      
  if (task_uid == 0 || task_uid == node_uid) {                        
ffc0d26c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0d270:	41 82 00 0c 	beq-    ffc0d27c <rtems_filesystem_check_access+0x34>
ffc0d274:	7f 83 e0 00 	cmpw    cr7,r3,r28                             
ffc0d278:	40 be 00 0c 	bne+    cr7,ffc0d284 <rtems_filesystem_check_access+0x3c>
    perm_flags <<= RTEMS_FS_USR_SHIFT;                                
ffc0d27c:	57 ff 30 32 	rlwinm  r31,r31,6,0,25                         
ffc0d280:	48 00 00 1c 	b       ffc0d29c <rtems_filesystem_check_access+0x54>
  } else {                                                            
    gid_t task_gid = getegid();                                       
ffc0d284:	48 00 20 85 	bl      ffc0f308 <getegid>                     
                                                                      
    if (task_gid == 0 || task_gid == node_gid) {                      
ffc0d288:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0d28c:	41 82 00 0c 	beq-    ffc0d298 <rtems_filesystem_check_access+0x50>
ffc0d290:	7f 83 e8 00 	cmpw    cr7,r3,r29                             
ffc0d294:	40 be 00 08 	bne+    cr7,ffc0d29c <rtems_filesystem_check_access+0x54><== ALWAYS TAKEN
      perm_flags <<= RTEMS_FS_GRP_SHIFT;                              
ffc0d298:	57 ff 18 38 	rlwinm  r31,r31,3,0,28                         
    } else {                                                          
      perm_flags <<= RTEMS_FS_OTH_SHIFT;                              
    }                                                                 
  }                                                                   
                                                                      
  return (perm_flags & node_mode) == perm_flags;                      
ffc0d29c:	7f e3 f0 38 	and     r3,r31,r30                             
}                                                                     
ffc0d2a0:	7c 63 fa 78 	xor     r3,r3,r31                              
ffc0d2a4:	7c 63 00 34 	cntlzw  r3,r3                                  
ffc0d2a8:	39 61 00 18 	addi    r11,r1,24                              
ffc0d2ac:	54 63 d9 7e 	rlwinm  r3,r3,27,5,31                          
ffc0d2b0:	4b ff 33 08 	b       ffc005b8 <_restgpr_28_x>               
                                                                      

ffc05cd8 <rtems_filesystem_do_unmount>: } void rtems_filesystem_do_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
ffc05cd8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc05cdc:	7c 08 02 a6 	mflr    r0                                     
 */                                                                   
#include <rtems/userenv.h>                                            
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
ffc05ce0:	38 80 00 00 	li      r4,0                                   
ffc05ce4:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc05ce8:	3f c0 00 00 	lis     r30,0                                  
ffc05cec:	7c 7f 1b 78 	mr      r31,r3                                 
ffc05cf0:	80 7e 28 10 	lwz     r3,10256(r30)                          
ffc05cf4:	38 a0 00 00 	li      r5,0                                   
ffc05cf8:	90 01 00 14 	stw     r0,20(r1)                              
ffc05cfc:	48 00 2b b1 	bl      ffc088ac <rtems_semaphore_obtain>      
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc05d00:	81 3f 00 00 	lwz     r9,0(r31)                              
  previous       = the_node->previous;                                
ffc05d04:	81 5f 00 04 	lwz     r10,4(r31)                             
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
ffc05d08:	80 7e 28 10 	lwz     r3,10256(r30)                          
  next->previous = previous;                                          
ffc05d0c:	91 49 00 04 	stw     r10,4(r9)                              
  previous->next = next;                                              
ffc05d10:	91 2a 00 00 	stw     r9,0(r10)                              
ffc05d14:	48 00 2c bd 	bl      ffc089d0 <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);  
ffc05d18:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc05d1c:	48 00 01 7d 	bl      ffc05e98 <rtems_filesystem_global_location_release>
  (*mt_entry->ops->fsunmount_me_h)(mt_entry);                         
ffc05d20:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc05d24:	7f e3 fb 78 	mr      r3,r31                                 
ffc05d28:	81 29 00 3c 	lwz     r9,60(r9)                              
ffc05d2c:	7d 29 03 a6 	mtctr   r9                                     
ffc05d30:	4e 80 04 21 	bctrl                                          
                                                                      
  if (mt_entry->unmount_task != 0) {                                  
ffc05d34:	80 7f 00 3c 	lwz     r3,60(r31)                             
ffc05d38:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05d3c:	41 9e 00 20 	beq-    cr7,ffc05d5c <rtems_filesystem_do_unmount+0x84><== 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 ); 
ffc05d40:	3c 80 80 00 	lis     r4,-32768                              
ffc05d44:	48 00 2d 45 	bl      ffc08a88 <rtems_event_system_send>     
    rtems_status_code sc =                                            
      rtems_event_transient_send(mt_entry->unmount_task);             
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc05d48:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05d4c:	41 be 00 10 	beq+    cr7,ffc05d5c <rtems_filesystem_do_unmount+0x84><== ALWAYS TAKEN
      rtems_fatal_error_occurred(0xdeadbeef);                         
ffc05d50:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc05d54:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc05d58:	48 00 33 19 	bl      ffc09070 <rtems_fatal_error_occurred>  <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  free(mt_entry);                                                     
}                                                                     
ffc05d5c:	80 01 00 14 	lwz     r0,20(r1)                              
    if (sc != RTEMS_SUCCESSFUL) {                                     
      rtems_fatal_error_occurred(0xdeadbeef);                         
    }                                                                 
  }                                                                   
                                                                      
  free(mt_entry);                                                     
ffc05d60:	7f e3 fb 78 	mr      r3,r31                                 
}                                                                     
ffc05d64:	bb c1 00 08 	lmw     r30,8(r1)                              
ffc05d68:	7c 08 03 a6 	mtlr    r0                                     
ffc05d6c:	38 21 00 10 	addi    r1,r1,16                               
    if (sc != RTEMS_SUCCESSFUL) {                                     
      rtems_fatal_error_occurred(0xdeadbeef);                         
    }                                                                 
  }                                                                   
                                                                      
  free(mt_entry);                                                     
ffc05d70:	4b ff e7 ec 	b       ffc0455c <free>                        
                                                                      

ffc0d2fc <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 ) {
ffc0d2fc:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0d300:	7c 08 02 a6 	mflr    r0                                     
ffc0d304:	bf 01 00 08 	stmw    r24,8(r1)                              
            } else {                                                  
              /* This is the root file system */                      
              status = (*config->eval_token)(ctx, arg, ".", 1);       
            }                                                         
          } else {                                                    
            status = (*config->eval_token)(ctx, arg, "..", 2);        
ffc0d308:	3f 00 ff c2 	lis     r24,-62                                
                ¤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);       
ffc0d30c:	3f 80 ff c2 	lis     r28,-62                                
void rtems_filesystem_eval_path_generic(                              
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const rtems_filesystem_eval_path_generic_config *config             
)                                                                     
{                                                                     
ffc0d310:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0d314:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0d318:	7c 9e 23 78 	mr      r30,r4                                 
ffc0d31c:	7c bd 2b 78 	mr      r29,r5                                 
              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 =              
ffc0d320:	3b 23 00 18 	addi    r25,r3,24                              
            } else {                                                  
              /* This is the root file system */                      
              status = (*config->eval_token)(ctx, arg, ".", 1);       
            }                                                         
          } else {                                                    
            status = (*config->eval_token)(ctx, arg, "..", 2);        
ffc0d324:	3b 18 c1 ef 	addi    r24,r24,-15889                         
                ¤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);       
ffc0d328:	3b 9c c1 f0 	addi    r28,r28,-15888                         
  rtems_filesystem_eval_path_context_t *ctx,                          
  const char **token,                                                 
  size_t *tokenlen                                                    
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_next_token(ctx);                         
ffc0d32c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d330:	48 00 02 55 	bl      ffc0d584 <rtems_filesystem_eval_path_next_token>
  *token = ctx->token;                                                
  *tokenlen = ctx->tokenlen;                                          
ffc0d334:	83 7f 00 0c 	lwz     r27,12(r31)                            
  const char **token,                                                 
  size_t *tokenlen                                                    
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_next_token(ctx);                         
  *token = ctx->token;                                                
ffc0d338:	83 5f 00 08 	lwz     r26,8(r31)                             
    const char *token;                                                
    size_t tokenlen;                                                  
                                                                      
    rtems_filesystem_eval_path_get_next_token(ctx, &token, &tokenlen);
                                                                      
    if (tokenlen > 0) {                                               
ffc0d33c:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc0d340:	41 be 01 e0 	beq+    cr7,ffc0d520 <rtems_filesystem_eval_path_generic+0x224>
      if ((*config->is_directory)(ctx, arg)) {                        
ffc0d344:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc0d348:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d34c:	7f c4 f3 78 	mr      r4,r30                                 
ffc0d350:	7d 29 03 a6 	mtctr   r9                                     
ffc0d354:	4e 80 04 21 	bctrl                                          
ffc0d358:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0d35c:	41 9e 01 b4 	beq-    cr7,ffc0d510 <rtems_filesystem_eval_path_generic+0x214>
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
ffc0d360:	2f 9b 00 01 	cmpwi   cr7,r27,1                              
ffc0d364:	39 20 00 00 	li      r9,0                                   
ffc0d368:	40 be 00 14 	bne+    cr7,ffc0d37c <rtems_filesystem_eval_path_generic+0x80>
ffc0d36c:	89 3a 00 00 	lbz     r9,0(r26)                              
ffc0d370:	69 29 00 2e 	xori    r9,r9,46                               
ffc0d374:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0d378:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
        if (rtems_filesystem_is_current_directory(token, tokenlen)) { 
ffc0d37c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0d380:	41 9e 00 30 	beq-    cr7,ffc0d3b0 <rtems_filesystem_eval_path_generic+0xb4>
          if (rtems_filesystem_eval_path_has_path(ctx)) {             
ffc0d384:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0d388:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0d38c:	41 be 00 08 	beq+    cr7,ffc0d394 <rtems_filesystem_eval_path_generic+0x98>
ffc0d390:	48 00 00 ec 	b       ffc0d47c <rtems_filesystem_eval_path_generic+0x180>
            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) {   
ffc0d394:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0d398:	71 2a 01 00 	andi.   r10,r9,256                             
ffc0d39c:	40 82 00 08 	bne-    ffc0d3a4 <rtems_filesystem_eval_path_generic+0xa8>
ffc0d3a0:	48 00 00 dc 	b       ffc0d47c <rtems_filesystem_eval_path_generic+0x180>
              status = (*config->eval_token)(ctx, arg, ".", 1);       
            } else {                                                  
              rtems_filesystem_eval_path_error(ctx, EINVAL);          
ffc0d3a4:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d3a8:	38 80 00 16 	li      r4,22                                  
ffc0d3ac:	48 00 01 5c 	b       ffc0d508 <rtems_filesystem_eval_path_generic+0x20c>
static inline bool rtems_filesystem_is_parent_directory(              
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 2 && token [0] == '.' && token [1] == '.';       
ffc0d3b0:	2f 9b 00 02 	cmpwi   cr7,r27,2                              
ffc0d3b4:	39 20 00 00 	li      r9,0                                   
ffc0d3b8:	40 be 00 20 	bne+    cr7,ffc0d3d8 <rtems_filesystem_eval_path_generic+0xdc>
ffc0d3bc:	89 5a 00 00 	lbz     r10,0(r26)                             
ffc0d3c0:	2f 8a 00 2e 	cmpwi   cr7,r10,46                             
ffc0d3c4:	40 be 00 14 	bne+    cr7,ffc0d3d8 <rtems_filesystem_eval_path_generic+0xdc>
ffc0d3c8:	89 3a 00 01 	lbz     r9,1(r26)                              
ffc0d3cc:	69 29 00 2e 	xori    r9,r9,46                               
ffc0d3d0:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0d3d4:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
              status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;       
            }                                                         
          }                                                           
        } else if (rtems_filesystem_is_parent_directory(token, tokenlen)) {
ffc0d3d8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0d3dc:	41 9e 00 d0 	beq-    cr7,ffc0d4ac <rtems_filesystem_eval_path_generic+0x1b0>
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
ffc0d3e0:	80 9f 00 30 	lwz     r4,48(r31)                             
{                                                                     
  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
  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 );           
ffc0d3e4:	38 60 00 00 	li      r3,0                                   
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;
ffc0d3e8:	81 3f 00 2c 	lwz     r9,44(r31)                             
  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 );           
ffc0d3ec:	81 44 00 14 	lwz     r10,20(r4)                             
ffc0d3f0:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0d3f4:	40 be 00 18 	bne+    cr7,ffc0d40c <rtems_filesystem_eval_path_generic+0x110>
ffc0d3f8:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc0d3fc:	7f 23 cb 78 	mr      r3,r25                                 
ffc0d400:	81 29 00 10 	lwz     r9,16(r9)                              
ffc0d404:	7d 29 03 a6 	mtctr   r9                                     
ffc0d408:	4e 80 04 21 	bctrl                                          
          }                                                           
        } else if (rtems_filesystem_is_parent_directory(token, tokenlen)) {
          rtems_filesystem_location_info_t *currentloc =              
            rtems_filesystem_eval_path_get_currentloc( ctx );         
                                                                      
          if (is_eval_path_root(ctx, currentloc)) {                   
ffc0d40c:	70 7b 00 01 	andi.   r27,r3,1                               
ffc0d410:	41 82 00 08 	beq-    ffc0d418 <rtems_filesystem_eval_path_generic+0x11c>
ffc0d414:	48 00 00 68 	b       ffc0d47c <rtems_filesystem_eval_path_generic+0x180>
                                                                      
#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;
ffc0d418:	81 3f 00 2c 	lwz     r9,44(r31)                             
  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 );      
ffc0d41c:	7f 23 cb 78 	mr      r3,r25                                 
ffc0d420:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0d424:	80 89 00 24 	lwz     r4,36(r9)                              
ffc0d428:	81 4a 00 10 	lwz     r10,16(r10)                            
ffc0d42c:	7d 49 03 a6 	mtctr   r10                                    
ffc0d430:	4e 80 04 21 	bctrl                                          
            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)) {                        
ffc0d434:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0d438:	41 9e 00 5c 	beq-    cr7,ffc0d494 <rtems_filesystem_eval_path_generic+0x198>
            if (currentloc->mt_entry->mt_point_node != NULL) {        
ffc0d43c:	80 9f 00 2c 	lwz     r4,44(r31)                             
ffc0d440:	81 24 00 20 	lwz     r9,32(r4)                              
ffc0d444:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0d448:	41 9e 00 34 	beq-    cr7,ffc0d47c <rtems_filesystem_eval_path_generic+0x180><== NEVER TAKEN
                                                                      
static inline void rtems_filesystem_eval_path_put_back_token(         
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  size_t tokenlen = ctx->tokenlen;                                    
ffc0d44c:	81 3f 00 0c 	lwz     r9,12(r31)                             
              rtems_filesystem_eval_path_put_back_token(ctx);         
              rtems_filesystem_eval_path_restart(                     
ffc0d450:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  ctx->path -= tokenlen;                                              
ffc0d454:	81 5f 00 00 	lwz     r10,0(r31)                             
ffc0d458:	38 84 00 20 	addi    r4,r4,32                               
  ctx->pathlen += tokenlen;                                           
  ctx->tokenlen = 0;                                                  
ffc0d45c:	93 7f 00 0c 	stw     r27,12(r31)                            
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  size_t tokenlen = ctx->tokenlen;                                    
                                                                      
  ctx->path -= tokenlen;                                              
ffc0d460:	7d 49 50 50 	subf    r10,r9,r10                             
ffc0d464:	91 5f 00 00 	stw     r10,0(r31)                             
  ctx->pathlen += tokenlen;                                           
ffc0d468:	81 5f 00 04 	lwz     r10,4(r31)                             
ffc0d46c:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc0d470:	91 3f 00 04 	stw     r9,4(r31)                              
ffc0d474:	4b ff 85 dd 	bl      ffc05a50 <rtems_filesystem_eval_path_restart>
ffc0d478:	48 00 00 a8 	b       ffc0d520 <rtems_filesystem_eval_path_generic+0x224>
                ¤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);       
ffc0d47c:	81 3d 00 04 	lwz     r9,4(r29)                              
ffc0d480:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d484:	7f c4 f3 78 	mr      r4,r30                                 
ffc0d488:	7f 85 e3 78 	mr      r5,r28                                 
ffc0d48c:	38 c0 00 01 	li      r6,1                                   
ffc0d490:	48 00 00 30 	b       ffc0d4c0 <rtems_filesystem_eval_path_generic+0x1c4>
            }                                                         
          } else {                                                    
            status = (*config->eval_token)(ctx, arg, "..", 2);        
ffc0d494:	81 3d 00 04 	lwz     r9,4(r29)                              
ffc0d498:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d49c:	7f c4 f3 78 	mr      r4,r30                                 
ffc0d4a0:	7f 05 c3 78 	mr      r5,r24                                 
ffc0d4a4:	38 c0 00 02 	li      r6,2                                   
ffc0d4a8:	48 00 00 18 	b       ffc0d4c0 <rtems_filesystem_eval_path_generic+0x1c4>
          }                                                           
        } else {                                                      
          status = (*config->eval_token)(ctx, arg, token, tokenlen);  
ffc0d4ac:	81 3d 00 04 	lwz     r9,4(r29)                              
ffc0d4b0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d4b4:	7f c4 f3 78 	mr      r4,r30                                 
ffc0d4b8:	7f 45 d3 78 	mr      r5,r26                                 
ffc0d4bc:	7f 66 db 78 	mr      r6,r27                                 
ffc0d4c0:	7d 29 03 a6 	mtctr   r9                                     
ffc0d4c4:	4e 80 04 21 	bctrl                                          
        }                                                             
                                                                      
        if (status == RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY) {  
ffc0d4c8:	2f 83 00 02 	cmpwi   cr7,r3,2                               
ffc0d4cc:	2f 03 00 00 	cmpwi   cr6,r3,0                               
ffc0d4d0:	40 be 00 4c 	bne+    cr7,ffc0d51c <rtems_filesystem_eval_path_generic+0x220>
          if (rtems_filesystem_eval_path_has_path(ctx)) {             
ffc0d4d4:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0d4d8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0d4dc:	41 be 00 44 	beq+    cr7,ffc0d520 <rtems_filesystem_eval_path_generic+0x224>
            int eval_flags;                                           
                                                                      
            rtems_filesystem_eval_path_eat_delimiter(ctx);            
ffc0d4e0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d4e4:	48 00 00 45 	bl      ffc0d528 <rtems_filesystem_eval_path_eat_delimiter>
            eval_flags = rtems_filesystem_eval_path_get_flags(ctx);   
            if (                                                      
              (eval_flags & RTEMS_FS_ACCEPT_RESIDUAL_DELIMITERS) == 0 
ffc0d4e8:	81 3f 00 10 	lwz     r9,16(r31)                             
          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 (                                                      
ffc0d4ec:	71 2a 00 80 	andi.   r10,r9,128                             
ffc0d4f0:	41 82 00 10 	beq-    ffc0d500 <rtems_filesystem_eval_path_generic+0x204>
              (eval_flags & RTEMS_FS_ACCEPT_RESIDUAL_DELIMITERS) == 0 
                || rtems_filesystem_eval_path_has_path(ctx)           
ffc0d4f4:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0d4f8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0d4fc:	41 9e 00 24 	beq-    cr7,ffc0d520 <rtems_filesystem_eval_path_generic+0x224>
            ) {                                                       
              rtems_filesystem_eval_path_error(ctx, ENOENT);          
ffc0d500:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d504:	38 80 00 02 	li      r4,2                                   
ffc0d508:	4b ff 80 71 	bl      ffc05578 <rtems_filesystem_eval_path_error>
ffc0d50c:	48 00 00 14 	b       ffc0d520 <rtems_filesystem_eval_path_generic+0x224>
            }                                                         
          }                                                           
        }                                                             
      } else {                                                        
        rtems_filesystem_eval_path_error(ctx, ENOTDIR);               
ffc0d510:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d514:	38 80 00 14 	li      r4,20                                  
ffc0d518:	4b ff ff f0 	b       ffc0d508 <rtems_filesystem_eval_path_generic+0x20c>
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
    RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;                      
                                                                      
  while (status == RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE) {     
ffc0d51c:	41 9a fe 10 	beq+    cr6,ffc0d32c <rtems_filesystem_eval_path_generic+0x30>
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
ffc0d520:	39 61 00 28 	addi    r11,r1,40                              
ffc0d524:	4b ff 30 84 	b       ffc005a8 <_restgpr_24_x>               
                                                                      

ffc05ad8 <rtems_filesystem_eval_path_recursive>: void rtems_filesystem_eval_path_recursive( rtems_filesystem_eval_path_context_t *ctx, const char *path, size_t pathlen ) {
ffc05ad8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc05adc:	7c 08 02 a6 	mflr    r0                                     
ffc05ae0:	bf 61 00 0c 	stmw    r27,12(r1)                             
  if (pathlen > 0) {                                                  
ffc05ae4:	7c bb 2b 79 	mr.     r27,r5                                 
void rtems_filesystem_eval_path_recursive(                            
  rtems_filesystem_eval_path_context_t *ctx,                          
  const char *path,                                                   
  size_t pathlen                                                      
)                                                                     
{                                                                     
ffc05ae8:	90 01 00 24 	stw     r0,36(r1)                              
  if (pathlen > 0) {                                                  
ffc05aec:	41 82 00 b0 	beq-    ffc05b9c <rtems_filesystem_eval_path_recursive+0xc4><== NEVER TAKEN
    if (ctx->recursionlevel < RTEMS_FILESYSTEM_SYMLOOP_MAX) {         
ffc05af0:	81 23 00 14 	lwz     r9,20(r3)                              
ffc05af4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc05af8:	2f 89 00 1f 	cmpwi   cr7,r9,31                              
ffc05afc:	41 9d 00 98 	bgt-    cr7,ffc05b94 <rtems_filesystem_eval_path_recursive+0xbc>
      const char *saved_path = ctx->path;                             
      size_t saved_pathlen = ctx->pathlen;                            
                                                                      
      if (rtems_filesystem_is_delimiter(path [0])) {                  
ffc05b00:	89 24 00 00 	lbz     r9,0(r4)                               
ffc05b04:	7c 9e 23 78 	mr      r30,r4                                 
  size_t pathlen                                                      
)                                                                     
{                                                                     
  if (pathlen > 0) {                                                  
    if (ctx->recursionlevel < RTEMS_FILESYSTEM_SYMLOOP_MAX) {         
      const char *saved_path = ctx->path;                             
ffc05b08:	83 83 00 00 	lwz     r28,0(r3)                              
  gid_t node_gid                                                      
);                                                                    
                                                                      
static inline bool rtems_filesystem_is_delimiter(char c)              
{                                                                     
  return c == '/' || c == '\\';                                       
ffc05b0c:	2f 89 00 2f 	cmpwi   cr7,r9,47                              
      size_t saved_pathlen = ctx->pathlen;                            
ffc05b10:	83 a3 00 04 	lwz     r29,4(r3)                              
ffc05b14:	41 9e 00 14 	beq-    cr7,ffc05b28 <rtems_filesystem_eval_path_recursive+0x50>
ffc05b18:	69 29 00 5c 	xori    r9,r9,92                               
ffc05b1c:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc05b20:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc05b24:	48 00 00 08 	b       ffc05b2c <rtems_filesystem_eval_path_recursive+0x54>
ffc05b28:	39 20 00 01 	li      r9,1                                   
                                                                      
      if (rtems_filesystem_is_delimiter(path [0])) {                  
ffc05b2c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05b30:	41 be 00 10 	beq+    cr7,ffc05b40 <rtems_filesystem_eval_path_recursive+0x68>
        rtems_filesystem_eval_path_restart(ctx, &ctx->rootloc);       
ffc05b34:	7f e3 fb 78 	mr      r3,r31                                 
ffc05b38:	38 9f 00 30 	addi    r4,r31,48                              
ffc05b3c:	4b ff ff 15 	bl      ffc05a50 <rtems_filesystem_eval_path_restart>
      }                                                               
                                                                      
      ctx->path = path;                                               
      ctx->pathlen = pathlen;                                         
                                                                      
      ++ctx->recursionlevel;                                          
ffc05b40:	81 3f 00 14 	lwz     r9,20(r31)                             
                                                                      
      if (rtems_filesystem_is_delimiter(path [0])) {                  
        rtems_filesystem_eval_path_restart(ctx, &ctx->rootloc);       
      }                                                               
                                                                      
      ctx->path = path;                                               
ffc05b44:	93 df 00 00 	stw     r30,0(r31)                             
      ctx->pathlen = pathlen;                                         
                                                                      
      ++ctx->recursionlevel;                                          
ffc05b48:	39 29 00 01 	addi    r9,r9,1                                
      if (rtems_filesystem_is_delimiter(path [0])) {                  
        rtems_filesystem_eval_path_restart(ctx, &ctx->rootloc);       
      }                                                               
                                                                      
      ctx->path = path;                                               
      ctx->pathlen = pathlen;                                         
ffc05b4c:	93 7f 00 04 	stw     r27,4(r31)                             
                                                                      
      ++ctx->recursionlevel;                                          
ffc05b50:	91 3f 00 14 	stw     r9,20(r31)                             
      while (ctx->pathlen > 0) {                                      
ffc05b54:	48 00 00 1c 	b       ffc05b70 <rtems_filesystem_eval_path_recursive+0x98>
        (*ctx->currentloc.mt_entry->ops->eval_path_h)(ctx);           
ffc05b58:	81 3f 00 2c 	lwz     r9,44(r31)                             
ffc05b5c:	7f e3 fb 78 	mr      r3,r31                                 
ffc05b60:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc05b64:	81 29 00 08 	lwz     r9,8(r9)                               
ffc05b68:	7d 29 03 a6 	mtctr   r9                                     
ffc05b6c:	4e 80 04 21 	bctrl                                          
                                                                      
      ctx->path = path;                                               
      ctx->pathlen = pathlen;                                         
                                                                      
      ++ctx->recursionlevel;                                          
      while (ctx->pathlen > 0) {                                      
ffc05b70:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc05b74:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05b78:	40 9e ff e0 	bne+    cr7,ffc05b58 <rtems_filesystem_eval_path_recursive+0x80>
        (*ctx->currentloc.mt_entry->ops->eval_path_h)(ctx);           
      }                                                               
      --ctx->recursionlevel;                                          
ffc05b7c:	81 3f 00 14 	lwz     r9,20(r31)                             
                                                                      
      ctx->path = saved_path;                                         
ffc05b80:	93 9f 00 00 	stw     r28,0(r31)                             
                                                                      
      ++ctx->recursionlevel;                                          
      while (ctx->pathlen > 0) {                                      
        (*ctx->currentloc.mt_entry->ops->eval_path_h)(ctx);           
      }                                                               
      --ctx->recursionlevel;                                          
ffc05b84:	39 29 ff ff 	addi    r9,r9,-1                               
ffc05b88:	91 3f 00 14 	stw     r9,20(r31)                             
                                                                      
      ctx->path = saved_path;                                         
      ctx->pathlen = saved_pathlen;                                   
ffc05b8c:	93 bf 00 04 	stw     r29,4(r31)                             
ffc05b90:	48 00 00 24 	b       ffc05bb4 <rtems_filesystem_eval_path_recursive+0xdc>
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ELOOP);                   
ffc05b94:	38 80 00 5c 	li      r4,92                                  
ffc05b98:	48 00 00 08 	b       ffc05ba0 <rtems_filesystem_eval_path_recursive+0xc8>
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error(ctx, ENOENT);                    
ffc05b9c:	38 80 00 02 	li      r4,2                                   <== NOT EXECUTED
  }                                                                   
}                                                                     
ffc05ba0:	80 01 00 24 	lwz     r0,36(r1)                              
ffc05ba4:	bb 61 00 0c 	lmw     r27,12(r1)                             
ffc05ba8:	7c 08 03 a6 	mtlr    r0                                     
ffc05bac:	38 21 00 20 	addi    r1,r1,32                               
      ctx->pathlen = saved_pathlen;                                   
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ELOOP);                   
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error(ctx, ENOENT);                    
ffc05bb0:	4b ff f9 c8 	b       ffc05578 <rtems_filesystem_eval_path_error>
  }                                                                   
}                                                                     
ffc05bb4:	39 61 00 20 	addi    r11,r1,32                              
ffc05bb8:	4b ff a9 fc 	b       ffc005b4 <_restgpr_27_x>               
                                                                      

ffc058a8 <rtems_filesystem_eval_path_start_with_parent>: const char *path, int eval_flags, rtems_filesystem_location_info_t *parentloc, int parent_eval_flags ) {
ffc058a8:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc058ac:	7c 08 02 a6 	mflr    r0                                     
ffc058b0:	bf 21 00 0c 	stmw    r25,12(r1)                             
ffc058b4:	7c 7e 1b 78 	mr      r30,r3                                 
  size_t pathlen = strlen(path);                                      
ffc058b8:	7c 83 23 78 	mr      r3,r4                                  
  const char *path,                                                   
  int eval_flags,                                                     
  rtems_filesystem_location_info_t *parentloc,                        
  int parent_eval_flags                                               
)                                                                     
{                                                                     
ffc058bc:	90 01 00 2c 	stw     r0,44(r1)                              
ffc058c0:	7c 9f 23 78 	mr      r31,r4                                 
ffc058c4:	7c bb 2b 78 	mr      r27,r5                                 
ffc058c8:	7c da 33 78 	mr      r26,r6                                 
ffc058cc:	7c f9 3b 78 	mr      r25,r7                                 
  size_t pathlen = strlen(path);                                      
ffc058d0:	48 00 b8 2d 	bl      ffc110fc <strlen>                      
  gid_t node_gid                                                      
);                                                                    
                                                                      
static inline bool rtems_filesystem_is_delimiter(char c)              
{                                                                     
  return c == '/' || c == '\\';                                       
ffc058d4:	39 43 00 01 	addi    r10,r3,1                               
ffc058d8:	7c 69 1b 78 	mr      r9,r3                                  
ffc058dc:	7d 49 03 a6 	mtctr   r10                                    
ffc058e0:	48 00 00 34 	b       ffc05914 <rtems_filesystem_eval_path_start_with_parent+0x6c>
#include <rtems/libio_.h>                                             
                                                                      
static size_t get_parentpathlen(const char *path, size_t pathlen)     
{                                                                     
  while (pathlen > 0) {                                               
    size_t i = pathlen - 1;                                           
ffc058e4:	39 09 ff ff 	addi    r8,r9,-1                               
                                                                      
    if (rtems_filesystem_is_delimiter(path [i])) {                    
ffc058e8:	7d 5f 40 ae 	lbzx    r10,r31,r8                             
ffc058ec:	2f 8a 00 2f 	cmpwi   cr7,r10,47                             
ffc058f0:	41 9e 00 14 	beq-    cr7,ffc05904 <rtems_filesystem_eval_path_start_with_parent+0x5c>
ffc058f4:	69 4a 00 5c 	xori    r10,r10,92                             
ffc058f8:	7d 4a 00 34 	cntlzw  r10,r10                                
ffc058fc:	55 4a d9 7e 	rlwinm  r10,r10,27,5,31                        
ffc05900:	48 00 00 08 	b       ffc05908 <rtems_filesystem_eval_path_start_with_parent+0x60>
ffc05904:	39 40 00 01 	li      r10,1                                  
ffc05908:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0590c:	40 9e 00 90 	bne-    cr7,ffc0599c <rtems_filesystem_eval_path_start_with_parent+0xf4>
      return pathlen;                                                 
    }                                                                 
                                                                      
    pathlen = i;                                                      
ffc05910:	7d 09 43 78 	mr      r9,r8                                  
                                                                      
#include <rtems/libio_.h>                                             
                                                                      
static size_t get_parentpathlen(const char *path, size_t pathlen)     
{                                                                     
  while (pathlen > 0) {                                               
ffc05914:	42 00 ff d0 	bdnz+   ffc058e4 <rtems_filesystem_eval_path_start_with_parent+0x3c>
  size_t parentpathlen = get_parentpathlen(path, pathlen);            
  const char *name = NULL;                                            
  size_t namelen = 0;                                                 
  const rtems_filesystem_location_info_t *currentloc = NULL;          
                                                                      
  if (pathlen > 0) {                                                  
ffc05918:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0591c:	41 9e 00 30 	beq-    cr7,ffc0594c <rtems_filesystem_eval_path_start_with_parent+0xa4>
    if (parentpathlen == 0) {                                         
      parentpath = ".";                                               
      parentpathlen = 1;                                              
      name = path;                                                    
ffc05920:	7f fd fb 78 	mr      r29,r31                                
  size_t namelen = 0;                                                 
  const rtems_filesystem_location_info_t *currentloc = NULL;          
                                                                      
  if (pathlen > 0) {                                                  
    if (parentpathlen == 0) {                                         
      parentpath = ".";                                               
ffc05924:	3f e0 ff c2 	lis     r31,-62                                
  size_t parentpathlen = get_parentpathlen(path, pathlen);            
  const char *name = NULL;                                            
  size_t namelen = 0;                                                 
  const rtems_filesystem_location_info_t *currentloc = NULL;          
                                                                      
  if (pathlen > 0) {                                                  
ffc05928:	7c 7c 1b 78 	mr      r28,r3                                 
    if (parentpathlen == 0) {                                         
      parentpath = ".";                                               
      parentpathlen = 1;                                              
ffc0592c:	38 a0 00 01 	li      r5,1                                   
  size_t namelen = 0;                                                 
  const rtems_filesystem_location_info_t *currentloc = NULL;          
                                                                      
  if (pathlen > 0) {                                                  
    if (parentpathlen == 0) {                                         
      parentpath = ".";                                               
ffc05930:	38 9f c1 f0 	addi    r4,r31,-15888                          
ffc05934:	48 00 00 28 	b       ffc0595c <rtems_filesystem_eval_path_start_with_parent+0xb4>
      parentpathlen = 1;                                              
      name = path;                                                    
      namelen = pathlen;                                              
    } else {                                                          
      name = path + parentpathlen;                                    
ffc05938:	7f bf 4a 14 	add     r29,r31,r9                             
      namelen = pathlen - parentpathlen;                              
ffc0593c:	7f 89 18 50 	subf    r28,r9,r3                              
ffc05940:	7d 25 4b 78 	mr      r5,r9                                  
  rtems_filesystem_location_info_t *parentloc,                        
  int parent_eval_flags                                               
)                                                                     
{                                                                     
  size_t pathlen = strlen(path);                                      
  const char *parentpath = path;                                      
ffc05944:	7f e4 fb 78 	mr      r4,r31                                 
ffc05948:	48 00 00 14 	b       ffc0595c <rtems_filesystem_eval_path_start_with_parent+0xb4>
ffc0594c:	7f e4 fb 78 	mr      r4,r31                                 
  size_t parentpathlen = get_parentpathlen(path, pathlen);            
  const char *name = NULL;                                            
  size_t namelen = 0;                                                 
ffc05950:	3b 80 00 00 	li      r28,0                                  
)                                                                     
{                                                                     
  size_t pathlen = strlen(path);                                      
  const char *parentpath = path;                                      
  size_t parentpathlen = get_parentpathlen(path, pathlen);            
  const char *name = NULL;                                            
ffc05954:	3b a0 00 00 	li      r29,0                                  
    }                                                                 
                                                                      
    pathlen = i;                                                      
  }                                                                   
                                                                      
  return 0;                                                           
ffc05958:	38 a0 00 00 	li      r5,0                                   
  currentloc = eval_path_start(                                       
    ctx,                                                              
    parentpath,                                                       
    parentpathlen,                                                    
    parent_eval_flags,                                                
    &rtems_filesystem_root,                                           
ffc0595c:	3d 40 00 00 	lis     r10,0                                  
ffc05960:	81 0a 27 98 	lwz     r8,10136(r10)                          
      name = path + parentpathlen;                                    
      namelen = pathlen - parentpathlen;                              
    }                                                                 
  }                                                                   
                                                                      
  currentloc = eval_path_start(                                       
ffc05964:	7f 26 cb 78 	mr      r6,r25                                 
ffc05968:	7f c3 f3 78 	mr      r3,r30                                 
ffc0596c:	38 e8 00 04 	addi    r7,r8,4                                
ffc05970:	4b ff fd b9 	bl      ffc05728 <eval_path_start>             
ffc05974:	7c 64 1b 78 	mr      r4,r3                                  
    parent_eval_flags,                                                
    &rtems_filesystem_root,                                           
    &rtems_filesystem_current                                         
  );                                                                  
                                                                      
  rtems_filesystem_location_clone(parentloc, currentloc);             
ffc05978:	7f 43 d3 78 	mr      r3,r26                                 
ffc0597c:	48 00 73 45 	bl      ffc0ccc0 <rtems_filesystem_location_clone>
                                                                      
  ctx->path = name;                                                   
ffc05980:	93 be 00 00 	stw     r29,0(r30)                             
  ctx->pathlen = namelen;                                             
  ctx->flags = eval_flags;                                            
                                                                      
  rtems_filesystem_eval_path_continue(ctx);                           
ffc05984:	7f c3 f3 78 	mr      r3,r30                                 
  );                                                                  
                                                                      
  rtems_filesystem_location_clone(parentloc, currentloc);             
                                                                      
  ctx->path = name;                                                   
  ctx->pathlen = namelen;                                             
ffc05988:	93 9e 00 04 	stw     r28,4(r30)                             
  ctx->flags = eval_flags;                                            
ffc0598c:	93 7e 00 10 	stw     r27,16(r30)                            
                                                                      
  rtems_filesystem_eval_path_continue(ctx);                           
ffc05990:	4b ff fd 01 	bl      ffc05690 <rtems_filesystem_eval_path_continue>
                                                                      
  return &ctx->currentloc;                                            
ffc05994:	38 7e 00 18 	addi    r3,r30,24                              
ffc05998:	48 00 00 20 	b       ffc059b8 <rtems_filesystem_eval_path_start_with_parent+0x110>
  size_t parentpathlen = get_parentpathlen(path, pathlen);            
  const char *name = NULL;                                            
  size_t namelen = 0;                                                 
  const rtems_filesystem_location_info_t *currentloc = NULL;          
                                                                      
  if (pathlen > 0) {                                                  
ffc0599c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc059a0:	40 9e ff 98 	bne+    cr7,ffc05938 <rtems_filesystem_eval_path_start_with_parent+0x90><== ALWAYS TAKEN
ffc059a4:	7d 25 4b 78 	mr      r5,r9                                  <== NOT EXECUTED
  rtems_filesystem_location_info_t *parentloc,                        
  int parent_eval_flags                                               
)                                                                     
{                                                                     
  size_t pathlen = strlen(path);                                      
  const char *parentpath = path;                                      
ffc059a8:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
  size_t parentpathlen = get_parentpathlen(path, pathlen);            
  const char *name = NULL;                                            
  size_t namelen = 0;                                                 
ffc059ac:	3b 80 00 00 	li      r28,0                                  <== NOT EXECUTED
)                                                                     
{                                                                     
  size_t pathlen = strlen(path);                                      
  const char *parentpath = path;                                      
  size_t parentpathlen = get_parentpathlen(path, pathlen);            
  const char *name = NULL;                                            
ffc059b0:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
ffc059b4:	4b ff ff a8 	b       ffc0595c <rtems_filesystem_eval_path_start_with_parent+0xb4><== NOT EXECUTED
  ctx->flags = eval_flags;                                            
                                                                      
  rtems_filesystem_eval_path_continue(ctx);                           
                                                                      
  return &ctx->currentloc;                                            
}                                                                     
ffc059b8:	39 61 00 28 	addi    r11,r1,40                              
ffc059bc:	4b ff ab f0 	b       ffc005ac <_restgpr_25_x>               
                                                                      

ffc0d0b0 <rtems_filesystem_get_mount_handler>: find_arg fa = { .type = type, .mount_h = NULL }; if ( type != NULL ) {
ffc0d0b0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
                                                                      
rtems_filesystem_fsmount_me_t                                         
rtems_filesystem_get_mount_handler(                                   
  const char *type                                                    
)                                                                     
{                                                                     
ffc0d0b4:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0d0b8:	7c 08 02 a6 	mflr    r0                                     
  find_arg fa = {                                                     
ffc0d0bc:	39 20 00 00 	li      r9,0                                   
ffc0d0c0:	90 61 00 08 	stw     r3,8(r1)                               
                                                                      
rtems_filesystem_fsmount_me_t                                         
rtems_filesystem_get_mount_handler(                                   
  const char *type                                                    
)                                                                     
{                                                                     
ffc0d0c4:	90 01 00 1c 	stw     r0,28(r1)                              
  find_arg fa = {                                                     
ffc0d0c8:	91 21 00 0c 	stw     r9,12(r1)                              
    .type = type,                                                     
    .mount_h = NULL                                                   
  };                                                                  
                                                                      
  if ( type != NULL ) {                                               
ffc0d0cc:	41 9e 00 14 	beq-    cr7,ffc0d0e0 <rtems_filesystem_get_mount_handler+0x30><== NEVER TAKEN
    rtems_filesystem_iterate( find_handler, &fa );                    
ffc0d0d0:	3c 60 ff c1 	lis     r3,-63                                 
ffc0d0d4:	38 63 cf 94 	addi    r3,r3,-12396                           
ffc0d0d8:	38 81 00 08 	addi    r4,r1,8                                
ffc0d0dc:	4b ff ff 21 	bl      ffc0cffc <rtems_filesystem_iterate>    
  }                                                                   
                                                                      
  return fa.mount_h;                                                  
}                                                                     
ffc0d0e0:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0d0e4:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc0d0e8:	7c 08 03 a6 	mtlr    r0                                     
ffc0d0ec:	38 21 00 18 	addi    r1,r1,24                               
ffc0d0f0:	4e 80 00 20 	blr                                            
                                                                      

ffc0418c <rtems_filesystem_initialize>: { int rv = 0; const rtems_filesystem_mount_configuration *root_config = &rtems_filesystem_root_configuration; rv = mount(
ffc0418c:	3d 40 ff c2 	lis     r10,-62                                
/*                                                                    
 *  Default mode for created files.                                   
 */                                                                   
                                                                      
void rtems_filesystem_initialize( void )                              
{                                                                     
ffc04190:	94 21 ff f8 	stwu    r1,-8(r1)                              
  int rv = 0;                                                         
  const rtems_filesystem_mount_configuration *root_config =           
    &rtems_filesystem_root_configuration;                             
                                                                      
  rv = mount(                                                         
ffc04194:	39 2a ad a0 	addi    r9,r10,-21088                          
/*                                                                    
 *  Default mode for created files.                                   
 */                                                                   
                                                                      
void rtems_filesystem_initialize( void )                              
{                                                                     
ffc04198:	7c 08 02 a6 	mflr    r0                                     
  int rv = 0;                                                         
  const rtems_filesystem_mount_configuration *root_config =           
    &rtems_filesystem_root_configuration;                             
                                                                      
  rv = mount(                                                         
ffc0419c:	80 6a ad a0 	lwz     r3,-21088(r10)                         
ffc041a0:	80 89 00 04 	lwz     r4,4(r9)                               
ffc041a4:	80 a9 00 08 	lwz     r5,8(r9)                               
ffc041a8:	80 c9 00 0c 	lwz     r6,12(r9)                              
ffc041ac:	80 e9 00 10 	lwz     r7,16(r9)                              
/*                                                                    
 *  Default mode for created files.                                   
 */                                                                   
                                                                      
void rtems_filesystem_initialize( void )                              
{                                                                     
ffc041b0:	90 01 00 0c 	stw     r0,12(r1)                              
  int rv = 0;                                                         
  const rtems_filesystem_mount_configuration *root_config =           
    &rtems_filesystem_root_configuration;                             
                                                                      
  rv = mount(                                                         
ffc041b4:	48 00 09 59 	bl      ffc04b0c <mount>                       
    root_config->target,                                              
    root_config->filesystemtype,                                      
    root_config->options,                                             
    root_config->data                                                 
  );                                                                  
  if ( rv != 0 )                                                      
ffc041b8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc041bc:	41 be 00 10 	beq+    cr7,ffc041cc <rtems_filesystem_initialize+0x40><== ALWAYS TAKEN
    rtems_fatal_error_occurred( 0xABCD0002 );                         
ffc041c0:	3c 60 ab cd 	lis     r3,-21555                              <== NOT EXECUTED
ffc041c4:	60 63 00 02 	ori     r3,r3,2                                <== NOT EXECUTED
ffc041c8:	48 00 00 24 	b       ffc041ec <rtems_filesystem_initialize+0x60><== NOT EXECUTED
   *                                                                  
   *  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);                                          
ffc041cc:	3c 60 ff c2 	lis     r3,-62                                 
ffc041d0:	38 63 b9 d4 	addi    r3,r3,-17964                           
ffc041d4:	38 80 01 ff 	li      r4,511                                 
ffc041d8:	48 00 08 1d 	bl      ffc049f4 <mkdir>                       
  if ( rv != 0 )                                                      
ffc041dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc041e0:	41 be 00 10 	beq+    cr7,ffc041f0 <rtems_filesystem_initialize+0x64><== ALWAYS TAKEN
    rtems_fatal_error_occurred( 0xABCD0003 );                         
ffc041e4:	3c 60 ab cd 	lis     r3,-21555                              <== NOT EXECUTED
ffc041e8:	60 63 00 03 	ori     r3,r3,3                                <== NOT EXECUTED
ffc041ec:	48 00 4e 85 	bl      ffc09070 <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.        
   */                                                                 
}                                                                     
ffc041f0:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc041f4:	38 21 00 08 	addi    r1,r1,8                                
ffc041f8:	7c 08 03 a6 	mtlr    r0                                     
ffc041fc:	4e 80 00 20 	blr                                            
                                                                      

ffc0cffc <rtems_filesystem_iterate>: bool rtems_filesystem_iterate( rtems_per_filesystem_routine routine, void *routine_arg ) {
ffc0cffc:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0d000:	7c 08 02 a6 	mflr    r0                                     
ffc0d004:	bf 61 00 0c 	stmw    r27,12(r1)                             
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
ffc0d008:	3f c0 ff c2 	lis     r30,-62                                
                                                                      
bool rtems_filesystem_iterate(                                        
  rtems_per_filesystem_routine routine,                               
  void *routine_arg                                                   
)                                                                     
{                                                                     
ffc0d00c:	7c 7d 1b 78 	mr      r29,r3                                 
ffc0d010:	90 01 00 24 	stw     r0,36(r1)                              
ffc0d014:	7c 9c 23 78 	mr      r28,r4                                 
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
ffc0d018:	3b e0 00 00 	li      r31,0                                  
bool rtems_filesystem_iterate(                                        
  rtems_per_filesystem_routine routine,                               
  void *routine_arg                                                   
)                                                                     
{                                                                     
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
ffc0d01c:	3b de ad b4 	addi    r30,r30,-21068                         
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
ffc0d020:	48 00 00 1c 	b       ffc0d03c <rtems_filesystem_iterate+0x40>
    stop = (*routine)( table_entry, routine_arg );                    
ffc0d024:	7f c3 f3 78 	mr      r3,r30                                 
ffc0d028:	7f a9 03 a6 	mtctr   r29                                    
ffc0d02c:	7f 84 e3 78 	mr      r4,r28                                 
    ++table_entry;                                                    
ffc0d030:	3b de 00 08 	addi    r30,r30,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 ) {                              
    stop = (*routine)( table_entry, routine_arg );                    
ffc0d034:	4e 80 04 21 	bctrl                                          
ffc0d038:	7c 7f 1b 78 	mr      r31,r3                                 
{                                                                     
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
ffc0d03c:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc0d040:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0d044:	2f 09 00 00 	cmpwi   cr6,r9,0                               
ffc0d048:	41 9a 00 0c 	beq-    cr6,ffc0d054 <rtems_filesystem_iterate+0x58>
ffc0d04c:	41 9e ff d8 	beq+    cr7,ffc0d024 <rtems_filesystem_iterate+0x28>
ffc0d050:	48 00 00 54 	b       ffc0d0a4 <rtems_filesystem_iterate+0xa8>
    stop = (*routine)( table_entry, routine_arg );                    
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
ffc0d054:	40 9e 00 50 	bne-    cr7,ffc0d0a4 <rtems_filesystem_iterate+0xa8>
    rtems_libio_lock();                                               
ffc0d058:	4b ff ff 85 	bl      ffc0cfdc <rtems_libio_lock>            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc0d05c:	3d 20 00 00 	lis     r9,0                                   
ffc0d060:	83 c9 22 14 	lwz     r30,8724(r9)                           
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 ));            
ffc0d064:	39 29 22 14 	addi    r9,r9,8724                             
ffc0d068:	3b 69 00 04 	addi    r27,r9,4                               
    for (                                                             
ffc0d06c:	48 00 00 1c 	b       ffc0d088 <rtems_filesystem_iterate+0x8c>
      !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 );                  
ffc0d070:	38 7e 00 08 	addi    r3,r30,8                               
ffc0d074:	7f a9 03 a6 	mtctr   r29                                    
ffc0d078:	7f 84 e3 78 	mr      r4,r28                                 
ffc0d07c:	4e 80 04 21 	bctrl                                          
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
ffc0d080:	83 de 00 00 	lwz     r30,0(r30)                             
      !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 );                  
ffc0d084:	7c 7f 1b 78 	mr      r31,r3                                 
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
ffc0d088:	7f 9e d8 00 	cmpw    cr7,r30,r27                            
ffc0d08c:	40 be 00 0c 	bne+    cr7,ffc0d098 <rtems_filesystem_iterate+0x9c>
    ) {                                                               
      const filesystem_node *fsn = (filesystem_node *) node;          
                                                                      
      stop = (*routine)( &fsn->entry, routine_arg );                  
    }                                                                 
    rtems_libio_unlock();                                             
ffc0d090:	4b ff ff 61 	bl      ffc0cff0 <rtems_libio_unlock>          
ffc0d094:	48 00 00 10 	b       ffc0d0a4 <rtems_filesystem_iterate+0xa8>
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
      node = rtems_chain_first( &filesystem_chain );                  
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
ffc0d098:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0d09c:	41 9e ff d4 	beq+    cr7,ffc0d070 <rtems_filesystem_iterate+0x74><== ALWAYS TAKEN
ffc0d0a0:	4b ff ff f0 	b       ffc0d090 <rtems_filesystem_iterate+0x94><== NOT EXECUTED
    }                                                                 
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  return stop;                                                        
}                                                                     
ffc0d0a4:	39 61 00 20 	addi    r11,r1,32                              
ffc0d0a8:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d0ac:	4b ff 35 08 	b       ffc005b4 <_restgpr_27_x>               
                                                                      

ffc05d74 <rtems_filesystem_location_remove_from_mt_entry>: } void rtems_filesystem_location_remove_from_mt_entry( rtems_filesystem_location_info_t *loc ) {
ffc05d74:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc05d78:	7c 08 02 a6 	mflr    r0                                     
ffc05d7c:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc05d80:	7c 7f 1b 78 	mr      r31,r3                                 
ffc05d84:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_filesystem_mt_entry_declare_lock_context(lock_context);       
  bool do_unmount;                                                    
                                                                      
  rtems_filesystem_mt_entry_lock(lock_context);                       
ffc05d88:	4b ff fe 35 	bl      ffc05bbc <ppc_interrupt_disable>       
ffc05d8c:	7c 7e 1b 78 	mr      r30,r3                                 
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc05d90:	81 3f 00 00 	lwz     r9,0(r31)                              
  previous       = the_node->previous;                                
ffc05d94:	81 5f 00 04 	lwz     r10,4(r31)                             
  rtems_chain_extract_unprotected(&loc->mt_entry_node);               
  do_unmount = rtems_filesystem_is_ready_for_unmount(loc->mt_entry);  
ffc05d98:	80 7f 00 14 	lwz     r3,20(r31)                             
  next->previous = previous;                                          
ffc05d9c:	91 49 00 04 	stw     r10,4(r9)                              
  previous->next = next;                                              
ffc05da0:	91 2a 00 00 	stw     r9,0(r10)                              
ffc05da4:	4b ff fe 2d 	bl      ffc05bd0 <rtems_filesystem_is_ready_for_unmount>
ffc05da8:	7f c0 01 24 	mtmsr   r30                                    
  rtems_filesystem_mt_entry_unlock(lock_context);                     
                                                                      
  if (do_unmount) {                                                   
ffc05dac:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05db0:	41 be 00 1c 	beq+    cr7,ffc05dcc <rtems_filesystem_location_remove_from_mt_entry+0x58><== ALWAYS TAKEN
    rtems_filesystem_do_unmount(loc->mt_entry);                       
  }                                                                   
}                                                                     
ffc05db4:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
  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);                     
                                                                      
  if (do_unmount) {                                                   
    rtems_filesystem_do_unmount(loc->mt_entry);                       
ffc05db8:	80 7f 00 14 	lwz     r3,20(r31)                             <== NOT EXECUTED
  }                                                                   
}                                                                     
ffc05dbc:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc05dc0:	bb c1 00 08 	lmw     r30,8(r1)                              <== NOT EXECUTED
ffc05dc4:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
  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);                     
                                                                      
  if (do_unmount) {                                                   
    rtems_filesystem_do_unmount(loc->mt_entry);                       
ffc05dc8:	4b ff ff 10 	b       ffc05cd8 <rtems_filesystem_do_unmount> <== NOT EXECUTED
  }                                                                   
}                                                                     
ffc05dcc:	39 61 00 10 	addi    r11,r1,16                              
ffc05dd0:	4b ff a7 f0 	b       ffc005c0 <_restgpr_30_x>               
                                                                      

ffc05ffc <rtems_filesystem_location_transform_to_global>: } rtems_filesystem_global_location_t *rtems_filesystem_location_transform_to_global( rtems_filesystem_location_info_t *loc ) {
ffc05ffc:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc06000:	7c 08 02 a6 	mflr    r0                                     
ffc06004:	bf c1 00 18 	stmw    r30,24(r1)                             
ffc06008:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_filesystem_global_location_t *global_loc = malloc(sizeof(*global_loc));
ffc0600c:	38 60 00 24 	li      r3,36                                  
}                                                                     
                                                                      
rtems_filesystem_global_location_t *rtems_filesystem_location_transform_to_global(
  rtems_filesystem_location_info_t *loc                               
)                                                                     
{                                                                     
ffc06010:	90 01 00 24 	stw     r0,36(r1)                              
  rtems_filesystem_global_location_t *global_loc = malloc(sizeof(*global_loc));
ffc06014:	4b ff e8 e5 	bl      ffc048f8 <malloc>                      
                                                                      
  if (global_loc != NULL) {                                           
ffc06018:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0601c:	41 82 00 2c 	beq-    ffc06048 <rtems_filesystem_location_transform_to_global+0x4c><== NEVER TAKEN
    global_loc->reference_count = 1;                                  
ffc06020:	39 20 00 01 	li      r9,1                                   
ffc06024:	91 3f 00 18 	stw     r9,24(r31)                             
    global_loc->deferred_released_next = NULL;                        
ffc06028:	39 20 00 00 	li      r9,0                                   
    global_loc->deferred_released_count = 0;                          
    rtems_filesystem_location_copy(&global_loc->location, loc);       
ffc0602c:	7f c4 f3 78 	mr      r4,r30                                 
{                                                                     
  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;                        
ffc06030:	91 3f 00 1c 	stw     r9,28(r31)                             
    global_loc->deferred_released_count = 0;                          
ffc06034:	91 3f 00 20 	stw     r9,32(r31)                             
    rtems_filesystem_location_copy(&global_loc->location, loc);       
ffc06038:	4b ff fb fd 	bl      ffc05c34 <rtems_filesystem_location_copy>
    rtems_filesystem_location_remove_from_mt_entry(loc);              
ffc0603c:	7f c3 f3 78 	mr      r3,r30                                 
ffc06040:	4b ff fd 35 	bl      ffc05d74 <rtems_filesystem_location_remove_from_mt_entry>
ffc06044:	48 00 00 28 	b       ffc0606c <rtems_filesystem_location_transform_to_global+0x70>
  } else {                                                            
    rtems_filesystem_location_free(loc);                              
ffc06048:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc0604c:	48 00 6c dd 	bl      ffc0cd28 <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;              
ffc06050:	7c 23 0b 78 	mr      r3,r1                                  <== NOT EXECUTED
ffc06054:	97 e3 00 08 	stwu    r31,8(r3)                              <== NOT EXECUTED
                                                                      
  return rtems_filesystem_global_location_obtain( &global_loc );      
ffc06058:	4b ff fe d9 	bl      ffc05f30 <rtems_filesystem_global_location_obtain><== NOT EXECUTED
ffc0605c:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
    global_loc = rtems_filesystem_global_location_obtain_null();      
    errno = ENOMEM;                                                   
ffc06060:	48 00 97 d9 	bl      ffc0f838 <__errno>                     <== NOT EXECUTED
ffc06064:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc06068:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
  }                                                                   
                                                                      
  return global_loc;                                                  
}                                                                     
ffc0606c:	39 61 00 20 	addi    r11,r1,32                              
ffc06070:	7f e3 fb 78 	mr      r3,r31                                 
ffc06074:	4b ff a5 4c 	b       ffc005c0 <_restgpr_30_x>               
                                                                      

ffc04b4c <rtems_gxx_key_create>: int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *)) {
ffc04b4c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc04b50:	7c 08 02 a6 	mflr    r0                                     
ffc04b54:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc04b58:	7c 7d 1b 78 	mr      r29,r3                                 
   * 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 ) );
ffc04b5c:	38 60 00 08 	li      r3,8                                   
  }                                                                   
  return 0;                                                           
}                                                                     
                                                                      
int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *))
{                                                                     
ffc04b60:	7c 9e 23 78 	mr      r30,r4                                 
ffc04b64:	90 01 00 1c 	stw     r0,28(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 ) );
ffc04b68:	48 00 04 bd 	bl      ffc05024 <malloc>                      
  *key = new_key;                                                     
  new_key->val  = NULL;                                               
ffc04b6c:	39 20 00 00 	li      r9,0                                   
   * We have to to this, because the others functions on this interface
   * deal with the value of the key, as used with the POSIX API.      
   */                                                                 
   /* Do not pull your hair, trust me this works. :-) */              
  __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) );
  *key = new_key;                                                     
ffc04b70:	90 7d 00 00 	stw     r3,0(r29)                              
   * 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 ) );
ffc04b74:	7c 7f 1b 78 	mr      r31,r3                                 
      "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 );
ffc04b78:	7f e4 fb 78 	mr      r4,r31                                 
   * deal with the value of the key, as used with the POSIX API.      
   */                                                                 
   /* Do not pull your hair, trust me this works. :-) */              
  __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) );
  *key = new_key;                                                     
  new_key->val  = NULL;                                               
ffc04b7c:	91 23 00 00 	stw     r9,0(r3)                               
      "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 );
ffc04b80:	7f c5 f3 78 	mr      r5,r30                                 
   */                                                                 
   /* Do not pull your hair, trust me this works. :-) */              
  __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) );
  *key = new_key;                                                     
  new_key->val  = NULL;                                               
  new_key->dtor = dtor;                                               
ffc04b84:	93 c3 00 04 	stw     r30,4(r3)                              
      "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 );
ffc04b88:	38 60 00 00 	li      r3,0                                   
ffc04b8c:	48 00 4a 5d 	bl      ffc095e8 <rtems_task_variable_add>     
  if ( status == RTEMS_SUCCESSFUL )                                   
ffc04b90:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04b94:	41 be 00 14 	beq+    cr7,ffc04ba8 <rtems_gxx_key_create+0x5c><== ALWAYS TAKEN
    return 0;                                                         
                                                                      
  free( new_key );                                                    
ffc04b98:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc04b9c:	4b ff fd c9 	bl      ffc04964 <free>                        <== NOT EXECUTED
  return -1;                                                          
ffc04ba0:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc04ba4:	48 00 00 08 	b       ffc04bac <rtems_gxx_key_create+0x60>   <== NOT EXECUTED
  #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 )                                   
    return 0;                                                         
ffc04ba8:	38 60 00 00 	li      r3,0                                   
                                                                      
  free( new_key );                                                    
  return -1;                                                          
}                                                                     
ffc04bac:	39 61 00 18 	addi    r11,r1,24                              
ffc04bb0:	4b ff c1 14 	b       ffc00cc4 <_restgpr_29_x>               
                                                                      

ffc04bc4 <rtems_gxx_key_delete>: int rtems_gxx_key_delete (__gthread_key_t key) {
ffc04bc4:	7c 2b 0b 78 	mr      r11,r1                                 
ffc04bc8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc04bcc:	7c 08 02 a6 	mflr    r0                                     
ffc04bd0:	48 01 02 19 	bl      ffc14de8 <_savegpr_31>                 
ffc04bd4:	7c 7f 1b 78 	mr      r31,r3                                 
  #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 );    
ffc04bd8:	7f e4 fb 78 	mr      r4,r31                                 
  key->val  = 0;                                                      
  return 0;                                                           
}                                                                     
                                                                      
int rtems_gxx_key_delete (__gthread_key_t key)                        
{                                                                     
ffc04bdc:	90 01 00 14 	stw     r0,20(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 );    
ffc04be0:	38 60 00 00 	li      r3,0                                   
ffc04be4:	48 00 4a b9 	bl      ffc0969c <rtems_task_variable_delete>  
  if ( status == RTEMS_SUCCESSFUL ) {                                 
ffc04be8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04bec:	40 9e 00 14 	bne-    cr7,ffc04c00 <rtems_gxx_key_delete+0x3c><== NEVER TAKEN
    /* Hmm - hopefully all tasks using this key have gone away... */  
    if ( key ) free( *(void **)key );                                 
ffc04bf0:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc04bf4:	41 9e 00 0c 	beq-    cr7,ffc04c00 <rtems_gxx_key_delete+0x3c><== NEVER TAKEN
ffc04bf8:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc04bfc:	4b ff fd 69 	bl      ffc04964 <free>                        
    return 0;                                                         
  }                                                                   
  key = NULL;                                                         
  return 0;                                                           
}                                                                     
ffc04c00:	39 61 00 10 	addi    r11,r1,16                              
ffc04c04:	38 60 00 00 	li      r3,0                                   
ffc04c08:	4b ff c0 c4 	b       ffc00ccc <_restgpr_31_x>               
                                                                      

ffc04d1c <rtems_gxx_mutex_lock>: int rtems_gxx_mutex_lock (__gthread_mutex_t *mutex) {
ffc04d1c:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc04d20:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: lock mutex=%X\n", *mutex );                
  #endif                                                              
                                                                      
  status = rtems_semaphore_obtain(                                    
ffc04d24:	38 80 00 00 	li      r4,0                                   
    printk( "gxx_wrappers: mutex init complete =%X\n", *mutex );      
  #endif                                                              
}                                                                     
                                                                      
int rtems_gxx_mutex_lock (__gthread_mutex_t *mutex)                   
{                                                                     
ffc04d28:	90 01 00 0c 	stw     r0,12(r1)                              
                                                                      
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: lock mutex=%X\n", *mutex );                
  #endif                                                              
                                                                      
  status = rtems_semaphore_obtain(                                    
ffc04d2c:	38 a0 00 00 	li      r5,0                                   
ffc04d30:	80 63 00 00 	lwz     r3,0(r3)                               
ffc04d34:	48 00 42 0d 	bl      ffc08f40 <rtems_semaphore_obtain>      
    *(rtems_id *)mutex,                                               
    RTEMS_WAIT,                                                       
    RTEMS_NO_TIMEOUT                                                  
  );                                                                  
  if ( status == RTEMS_SUCCESSFUL )                                   
ffc04d38:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04d3c:	41 be 00 08 	beq+    cr7,ffc04d44 <rtems_gxx_mutex_lock+0x28><== ALWAYS TAKEN
    return 0;                                                         
  return -1;                                                          
ffc04d40:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
}                                                                     
ffc04d44:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc04d48:	38 21 00 08 	addi    r1,r1,8                                
ffc04d4c:	7c 08 03 a6 	mtlr    r0                                     
ffc04d50:	4e 80 00 20 	blr                                            
                                                                      

ffc04d84 <rtems_gxx_mutex_trylock>: int rtems_gxx_mutex_trylock (__gthread_mutex_t *mutex) {
ffc04d84:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc04d88:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: trylock mutex=%X\n", *mutex );             
  #endif                                                              
                                                                      
  status = rtems_semaphore_obtain (*(rtems_id *)mutex, RTEMS_NO_WAIT, 0);
ffc04d8c:	38 80 00 01 	li      r4,1                                   
    return 0;                                                         
  return -1;                                                          
}                                                                     
                                                                      
int rtems_gxx_mutex_trylock (__gthread_mutex_t *mutex)                
{                                                                     
ffc04d90:	90 01 00 0c 	stw     r0,12(r1)                              
                                                                      
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: trylock mutex=%X\n", *mutex );             
  #endif                                                              
                                                                      
  status = rtems_semaphore_obtain (*(rtems_id *)mutex, RTEMS_NO_WAIT, 0);
ffc04d94:	38 a0 00 00 	li      r5,0                                   
ffc04d98:	80 63 00 00 	lwz     r3,0(r3)                               
ffc04d9c:	48 00 41 a5 	bl      ffc08f40 <rtems_semaphore_obtain>      
  if ( status == RTEMS_SUCCESSFUL )                                   
ffc04da0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04da4:	41 be 00 08 	beq+    cr7,ffc04dac <rtems_gxx_mutex_trylock+0x28><== ALWAYS TAKEN
    return 0;                                                         
  return -1;                                                          
ffc04da8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
}                                                                     
ffc04dac:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc04db0:	38 21 00 08 	addi    r1,r1,8                                
ffc04db4:	7c 08 03 a6 	mtlr    r0                                     
ffc04db8:	4e 80 00 20 	blr                                            
                                                                      

ffc04dbc <rtems_gxx_mutex_unlock>: int rtems_gxx_mutex_unlock (__gthread_mutex_t *mutex) {
ffc04dbc:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc04dc0:	7c 08 02 a6 	mflr    r0                                     
ffc04dc4:	90 01 00 0c 	stw     r0,12(r1)                              
                                                                      
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: unlock mutex=%X\n", *mutex );              
  #endif                                                              
                                                                      
  status = rtems_semaphore_release( *(rtems_id *)mutex );             
ffc04dc8:	80 63 00 00 	lwz     r3,0(r3)                               
ffc04dcc:	48 00 42 99 	bl      ffc09064 <rtems_semaphore_release>     
  if ( status == RTEMS_SUCCESSFUL )                                   
ffc04dd0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04dd4:	41 be 00 08 	beq+    cr7,ffc04ddc <rtems_gxx_mutex_unlock+0x20><== ALWAYS TAKEN
    return 0;                                                         
  return -1;                                                          
ffc04dd8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
}                                                                     
ffc04ddc:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc04de0:	38 21 00 08 	addi    r1,r1,8                                
ffc04de4:	7c 08 03 a6 	mtlr    r0                                     
ffc04de8:	4e 80 00 20 	blr                                            
                                                                      

ffc04ad8 <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)) {
ffc04ad8:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc04adc:	7c 08 02 a6 	mflr    r0                                     
ffc04ae0:	90 01 00 2c 	stw     r0,44(r1)                              
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );        
  #endif                                                              
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
ffc04ae4:	81 23 00 00 	lwz     r9,0(r3)                               
                                                                      
/* 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))       
{                                                                     
ffc04ae8:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc04aec:	7c 7f 1b 78 	mr      r31,r3                                 
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );        
  #endif                                                              
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
ffc04af0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04af4:	40 be 00 4c 	bne+    cr7,ffc04b40 <rtems_gxx_once+0x68>     
ffc04af8:	7c 9d 23 78 	mr      r29,r4                                 
    rtems_mode saveMode;                                              
    __gthread_once_t o;                                               
                                                                      
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
ffc04afc:	38 60 01 00 	li      r3,256                                 
ffc04b00:	38 80 01 00 	li      r4,256                                 
ffc04b04:	38 a1 00 08 	addi    r5,r1,8                                
ffc04b08:	48 00 48 c9 	bl      ffc093d0 <rtems_task_mode>             
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
ffc04b0c:	83 df 00 00 	lwz     r30,0(r31)                             
ffc04b10:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc04b14:	40 9e 00 0c 	bne-    cr7,ffc04b20 <rtems_gxx_once+0x48>     <== NEVER TAKEN
      *(volatile __gthread_once_t *)once = 1;                         
ffc04b18:	39 20 00 01 	li      r9,1                                   
ffc04b1c:	91 3f 00 00 	stw     r9,0(r31)                              
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
ffc04b20:	7c 25 0b 78 	mr      r5,r1                                  
ffc04b24:	84 65 00 08 	lwzu    r3,8(r5)                               
ffc04b28:	38 80 01 00 	li      r4,256                                 
ffc04b2c:	48 00 48 a5 	bl      ffc093d0 <rtems_task_mode>             
    if ( o == 0 )                                                     
ffc04b30:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc04b34:	40 be 00 0c 	bne+    cr7,ffc04b40 <rtems_gxx_once+0x68>     <== NEVER TAKEN
      (*func)();                                                      
ffc04b38:	7f a9 03 a6 	mtctr   r29                                    
ffc04b3c:	4e 80 04 21 	bctrl                                          
  }                                                                   
  return 0;                                                           
}                                                                     
ffc04b40:	39 61 00 28 	addi    r11,r1,40                              
ffc04b44:	38 60 00 00 	li      r3,0                                   
ffc04b48:	4b ff c1 7c 	b       ffc00cc4 <_restgpr_29_x>               
                                                                      

ffc04c88 <rtems_gxx_setspecific>: int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr) {
ffc04c88:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc04c8c:	7c 08 02 a6 	mflr    r0                                     
ffc04c90:	90 01 00 14 	stw     r0,20(r1)                              
ffc04c94:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc04c98:	7c 7f 1b 78 	mr      r31,r3                                 
ffc04c9c:	7c 9e 23 78 	mr      r30,r4                                 
      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 );
ffc04ca0:	80 bf 00 04 	lwz     r5,4(r31)                              
ffc04ca4:	38 60 00 00 	li      r3,0                                   
ffc04ca8:	7f e4 fb 78 	mr      r4,r31                                 
ffc04cac:	48 00 49 3d 	bl      ffc095e8 <rtems_task_variable_add>     
  if ( status == RTEMS_SUCCESSFUL ) {                                 
ffc04cb0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04cb4:	40 9e 00 0c 	bne-    cr7,ffc04cc0 <rtems_gxx_setspecific+0x38><== NEVER TAKEN
    /* now let's set the proper value */                              
    key->val =  (void *)ptr;                                          
ffc04cb8:	93 df 00 00 	stw     r30,0(r31)                             
    return 0;                                                         
ffc04cbc:	48 00 00 08 	b       ffc04cc4 <rtems_gxx_setspecific+0x3c>  
  }                                                                   
  return -1;                                                          
ffc04cc0:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
}                                                                     
ffc04cc4:	39 61 00 10 	addi    r11,r1,16                              
ffc04cc8:	4b ff c0 00 	b       ffc00cc8 <_restgpr_30_x>               
                                                                      

ffc0889c <rtems_heap_allocate_aligned_with_boundary>: size_t size, uintptr_t alignment, uintptr_t boundary ) { if (
ffc0889c:	3d 20 00 00 	lis     r9,0                                   
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
ffc088a0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc088a4:	7c 08 02 a6 	mflr    r0                                     
  if (                                                                
ffc088a8:	81 29 28 a8 	lwz     r9,10408(r9)                           
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
ffc088ac:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc088b0:	7c 7f 1b 78 	mr      r31,r3                                 
  if (                                                                
ffc088b4:	2f 89 00 03 	cmpwi   cr7,r9,3                               
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
ffc088b8:	90 01 00 1c 	stw     r0,28(r1)                              
ffc088bc:	7c 9e 23 78 	mr      r30,r4                                 
ffc088c0:	7c bd 2b 78 	mr      r29,r5                                 
  if (                                                                
ffc088c4:	41 9e 00 30 	beq-    cr7,ffc088f4 <rtems_heap_allocate_aligned_with_boundary+0x58><== ALWAYS TAKEN
      && !malloc_is_system_state_OK()                                 
  ) {                                                                 
    return NULL;                                                      
  }                                                                   
                                                                      
  malloc_deferred_frees_process();                                    
ffc088c8:	4b ff ee 9d 	bl      ffc07764 <malloc_deferred_frees_process>
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
ffc088cc:	80 01 00 1c 	lwz     r0,28(r1)                              
                                                                      
  malloc_deferred_frees_process();                                    
                                                                      
  /* FIXME: Statistics, boundary checks */                            
                                                                      
  return _Protected_heap_Allocate_aligned_with_boundary(              
ffc088d0:	3d 20 00 00 	lis     r9,0                                   
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
ffc088d4:	7c 08 03 a6 	mtlr    r0                                     
                                                                      
  malloc_deferred_frees_process();                                    
                                                                      
  /* FIXME: Statistics, boundary checks */                            
                                                                      
  return _Protected_heap_Allocate_aligned_with_boundary(              
ffc088d8:	7f e4 fb 78 	mr      r4,r31                                 
ffc088dc:	7f c5 f3 78 	mr      r5,r30                                 
ffc088e0:	80 69 27 94 	lwz     r3,10132(r9)                           
ffc088e4:	7f a6 eb 78 	mr      r6,r29                                 
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
ffc088e8:	bb a1 00 0c 	lmw     r29,12(r1)                             
ffc088ec:	38 21 00 18 	addi    r1,r1,24                               
                                                                      
  malloc_deferred_frees_process();                                    
                                                                      
  /* FIXME: Statistics, boundary checks */                            
                                                                      
  return _Protected_heap_Allocate_aligned_with_boundary(              
ffc088f0:	48 00 61 40 	b       ffc0ea30 <_Protected_heap_Allocate_aligned_with_boundary>
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
  if (                                                                
    _System_state_Is_up( _System_state_Get() )                        
      && !malloc_is_system_state_OK()                                 
ffc088f4:	4b ff ee 45 	bl      ffc07738 <malloc_is_system_state_OK>   
ffc088f8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc088fc:	40 9e ff cc 	bne+    cr7,ffc088c8 <rtems_heap_allocate_aligned_with_boundary+0x2c>
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
ffc08900:	39 61 00 18 	addi    r11,r1,24                              
ffc08904:	4b ff ac 44 	b       ffc03548 <_restgpr_29_x>               
                                                                      

ffc05118 <rtems_heap_extend_via_sbrk>: void *rtems_heap_extend_via_sbrk( Heap_Control *heap, size_t alloc_size ) { ptrdiff_t sbrk_amount = RTEMS_Malloc_Sbrk_amount;
ffc05118:	3d 20 00 00 	lis     r9,0                                   
                                                                      
void *rtems_heap_extend_via_sbrk(                                     
  Heap_Control *heap,                                                 
  size_t alloc_size                                                   
)                                                                     
{                                                                     
ffc0511c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc05120:	7c 08 02 a6 	mflr    r0                                     
  ptrdiff_t sbrk_amount = RTEMS_Malloc_Sbrk_amount;                   
ffc05124:	81 29 27 e8 	lwz     r9,10216(r9)                           
                                                                      
void *rtems_heap_extend_via_sbrk(                                     
  Heap_Control *heap,                                                 
  size_t alloc_size                                                   
)                                                                     
{                                                                     
ffc05128:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc0512c:	7c 7d 1b 78 	mr      r29,r3                                 
  ptrdiff_t sbrk_amount = RTEMS_Malloc_Sbrk_amount;                   
  ptrdiff_t sbrk_size = (ptrdiff_t) alloc_size;                       
  ptrdiff_t misaligned = sbrk_size % sbrk_amount;                     
ffc05130:	7d 44 4b d6 	divw    r10,r4,r9                              
                                                                      
void *rtems_heap_extend_via_sbrk(                                     
  Heap_Control *heap,                                                 
  size_t alloc_size                                                   
)                                                                     
{                                                                     
ffc05134:	90 01 00 1c 	stw     r0,28(r1)                              
  ptrdiff_t sbrk_amount = RTEMS_Malloc_Sbrk_amount;                   
  ptrdiff_t sbrk_size = (ptrdiff_t) alloc_size;                       
  ptrdiff_t misaligned = sbrk_size % sbrk_amount;                     
ffc05138:	7d 4a 49 d6 	mullw   r10,r10,r9                             
                                                                      
void *rtems_heap_extend_via_sbrk(                                     
  Heap_Control *heap,                                                 
  size_t alloc_size                                                   
)                                                                     
{                                                                     
ffc0513c:	7c 9e 23 78 	mr      r30,r4                                 
  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;                                           
                                                                      
  if ( misaligned != 0 ) {                                            
ffc05140:	7d 0a 20 51 	subf.   r8,r10,r4                              
  Heap_Control *heap,                                                 
  size_t alloc_size                                                   
)                                                                     
{                                                                     
  ptrdiff_t sbrk_amount = RTEMS_Malloc_Sbrk_amount;                   
  ptrdiff_t sbrk_size = (ptrdiff_t) alloc_size;                       
ffc05144:	7c 9f 23 78 	mr      r31,r4                                 
  ptrdiff_t misaligned = sbrk_size % sbrk_amount;                     
  void *return_this = NULL;                                           
                                                                      
  if ( misaligned != 0 ) {                                            
ffc05148:	41 82 00 0c 	beq-    ffc05154 <rtems_heap_extend_via_sbrk+0x3c>
    sbrk_size += sbrk_amount - misaligned;                            
ffc0514c:	7f e8 48 50 	subf    r31,r8,r9                              
ffc05150:	7f e4 fa 14 	add     r31,r4,r31                             
  }                                                                   
                                                                      
  if ( sbrk_size > 0 && sbrk_amount > 0 ) {                           
ffc05154:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc05158:	40 9d 00 70 	ble-    cr7,ffc051c8 <rtems_heap_extend_via_sbrk+0xb0><== NEVER TAKEN
ffc0515c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05160:	40 9d 00 68 	ble-    cr7,ffc051c8 <rtems_heap_extend_via_sbrk+0xb0><== NEVER TAKEN
    void *area_begin = sbrk( sbrk_size );                             
ffc05164:	7f e3 fb 78 	mr      r3,r31                                 
ffc05168:	4b ff b3 15 	bl      ffc0047c <sbrk>                        
                                                                      
    if ( area_begin != (void *) -1 ) {                                
ffc0516c:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
  if ( misaligned != 0 ) {                                            
    sbrk_size += sbrk_amount - misaligned;                            
  }                                                                   
                                                                      
  if ( sbrk_size > 0 && sbrk_amount > 0 ) {                           
    void *area_begin = sbrk( sbrk_size );                             
ffc05170:	7c 64 1b 78 	mr      r4,r3                                  
                                                                      
    if ( area_begin != (void *) -1 ) {                                
ffc05174:	41 9e 00 54 	beq-    cr7,ffc051c8 <rtems_heap_extend_via_sbrk+0xb0><== NEVER TAKEN
      bool ok = _Protected_heap_Extend( heap, area_begin, sbrk_size );
ffc05178:	7f a3 eb 78 	mr      r3,r29                                 
ffc0517c:	7f e5 fb 78 	mr      r5,r31                                 
ffc05180:	48 00 50 3d 	bl      ffc0a1bc <_Protected_heap_Extend>      
                                                                      
      if ( ok ) {                                                     
ffc05184:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05188:	41 9e 00 38 	beq-    cr7,ffc051c0 <rtems_heap_extend_via_sbrk+0xa8><== ALWAYS TAKEN
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return return_this;                                                 
}                                                                     
ffc0518c:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
                                                                      
    if ( area_begin != (void *) -1 ) {                                
      bool ok = _Protected_heap_Extend( heap, area_begin, sbrk_size );
                                                                      
      if ( ok ) {                                                     
        MSBUMP( space_available, sbrk_size );                         
ffc05190:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
ffc05194:	81 49 2b f8 	lwz     r10,11256(r9)                          <== NOT EXECUTED
ffc05198:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return return_this;                                                 
}                                                                     
ffc0519c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc051a0:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
                                                                      
    if ( area_begin != (void *) -1 ) {                                
      bool ok = _Protected_heap_Extend( heap, area_begin, sbrk_size );
                                                                      
      if ( ok ) {                                                     
        MSBUMP( space_available, sbrk_size );                         
ffc051a4:	7f ff 52 14 	add     r31,r31,r10                            <== NOT EXECUTED
ffc051a8:	93 e9 2b f8 	stw     r31,11256(r9)                          <== NOT EXECUTED
ffc051ac:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc051b0:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return return_this;                                                 
}                                                                     
ffc051b4:	bb a1 00 0c 	lmw     r29,12(r1)                             <== NOT EXECUTED
ffc051b8:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc051bc:	48 00 4f a8 	b       ffc0a164 <_Protected_heap_Allocate_aligned_with_boundary><== NOT EXECUTED
      if ( ok ) {                                                     
        MSBUMP( space_available, sbrk_size );                         
                                                                      
        return_this = _Protected_heap_Allocate( heap, alloc_size );   
      } else {                                                        
        sbrk( -sbrk_size );                                           
ffc051c0:	7c 7f 00 d0 	neg     r3,r31                                 
ffc051c4:	4b ff b2 b9 	bl      ffc0047c <sbrk>                        
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return return_this;                                                 
}                                                                     
ffc051c8:	39 61 00 18 	addi    r11,r1,24                              
ffc051cc:	38 60 00 00 	li      r3,0                                   
ffc051d0:	4b ff b3 e4 	b       ffc005b4 <_restgpr_29_x>               
                                                                      

ffc05d6c <rtems_ide_part_table_free>: * N/A */ void rtems_ide_part_table_free(rtems_disk_desc_t *disk_desc) { partition_table_free( disk_desc );
ffc05d6c:	4b ff fb 14 	b       ffc05880 <partition_table_free>        <== NOT EXECUTED
                                                                      

ffc05d70 <rtems_ide_part_table_get>: * RTEMS_INTERNAL_ERROR otherwise */ rtems_status_code rtems_ide_part_table_get(const char *dev_name, rtems_disk_desc_t *disk_desc) { return partition_table_get( dev_name, disk_desc );
ffc05d70:	4b ff fd ec 	b       ffc05b5c <partition_table_get>         <== NOT EXECUTED
                                                                      

ffc05d74 <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) {
ffc05d74:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc05d78:	7c 08 02 a6 	mflr    r0                                     
    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));
ffc05d7c:	38 80 01 28 	li      r4,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)                 
{                                                                     
ffc05d80:	be e1 00 1c 	stmw    r23,28(r1)                             
ffc05d84:	7c 7c 1b 78 	mr      r28,r3                                 
    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));
ffc05d88:	38 60 00 01 	li      r3,1                                   
 *      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)                 
{                                                                     
ffc05d8c:	90 01 00 44 	stw     r0,68(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));
ffc05d90:	48 00 08 b9 	bl      ffc06648 <calloc>                      
    if (disk_desc == NULL)                                            
ffc05d94:	7c 7f 1b 79 	mr.     r31,r3                                 
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
ffc05d98:	3b a0 00 1a 	li      r29,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)                                            
ffc05d9c:	41 82 00 d0 	beq-    ffc05e6c <rtems_ide_part_table_initialize+0xf8><== NEVER TAKEN
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
    }                                                                 
                                                                      
    /* get partition table */                                         
    rc = partition_table_get(dev_name, disk_desc);                    
ffc05da0:	7f 83 e3 78 	mr      r3,r28                                 
ffc05da4:	7f e4 fb 78 	mr      r4,r31                                 
ffc05da8:	4b ff fd b5 	bl      ffc05b5c <partition_table_get>         
    if (rc != RTEMS_SUCCESSFUL)                                       
ffc05dac:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc05db0:	41 a2 00 10 	beq+    ffc05dc0 <rtems_ide_part_table_initialize+0x4c><== ALWAYS TAKEN
    {                                                                 
        free(disk_desc);                                              
ffc05db4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc05db8:	48 00 09 75 	bl      ffc0672c <free>                        <== NOT EXECUTED
ffc05dbc:	48 00 00 b0 	b       ffc05e6c <rtems_ide_part_table_initialize+0xf8><== 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);                
ffc05dc0:	3f 20 ff c2 	lis     r25,-62                                
    /* 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);      
ffc05dc4:	83 7f 00 00 	lwz     r27,0(r31)                             
                                                                      
        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);
ffc05dc8:	3e e0 ff c2 	lis     r23,-62                                
    /* 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);      
ffc05dcc:	83 5f 00 04 	lwz     r26,4(r31)                             
                                                                      
    /* create logical disks on the physical one */                    
    for (part_num = 0; part_num < disk_desc->last_log_id; part_num++) 
ffc05dd0:	3b c0 00 00 	li      r30,0                                  
    {                                                                 
        sprintf(name, "%s%d", dev_name, part_num + 1);                
ffc05dd4:	3b 39 50 22 	addi    r25,r25,20514                          
                                                                      
        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);
ffc05dd8:	3f 00 00 00 	lis     r24,0                                  
ffc05ddc:	3a f7 50 27 	addi    r23,r23,20519                          
     */                                                               
                                                                      
    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++) 
ffc05de0:	48 00 00 74 	b       ffc05e54 <rtems_ide_part_table_initialize+0xe0>
    {                                                                 
        sprintf(name, "%s%d", dev_name, part_num + 1);                
ffc05de4:	3b de 00 01 	addi    r30,r30,1                              
ffc05de8:	7f 24 cb 78 	mr      r4,r25                                 
ffc05dec:	38 61 00 08 	addi    r3,r1,8                                
ffc05df0:	7f 85 e3 78 	mr      r5,r28                                 
ffc05df4:	7f c6 f3 78 	mr      r6,r30                                 
ffc05df8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc05dfc:	48 01 06 6d 	bl      ffc16468 <sprintf>                     
 *      RTEMS_SUCCESSFUL if success,                                  
 *      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)                 
ffc05e00:	57 c9 10 3a 	rlwinm  r9,r30,2,0,29                          
ffc05e04:	7d 3f 4a 14 	add     r9,r31,r9                              
    for (part_num = 0; part_num < disk_desc->last_log_id; part_num++) 
    {                                                                 
        sprintf(name, "%s%d", dev_name, part_num + 1);                
        dev = rtems_filesystem_make_dev_t(major, ++minor);            
                                                                      
        part_desc = disk_desc->partitions[part_num];                  
ffc05e08:	81 29 00 24 	lwz     r9,36(r9)                              
 *      RTEMS_SUCCESSFUL if success,                                  
 *      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)                 
ffc05e0c:	7c 9e d2 14 	add     r4,r30,r26                             
    {                                                                 
        sprintf(name, "%s%d", dev_name, part_num + 1);                
        dev = rtems_filesystem_make_dev_t(major, ++minor);            
                                                                      
        part_desc = disk_desc->partitions[part_num];                  
        if (part_desc == NULL)                                        
ffc05e10:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05e14:	41 9e 00 40 	beq-    cr7,ffc05e54 <rtems_ide_part_table_initialize+0xe0>
        {                                                             
            continue;                                                 
        }                                                             
                                                                      
        rc = rtems_disk_create_log(dev, disk_desc->dev, part_desc->start,
ffc05e18:	80 df 00 04 	lwz     r6,4(r31)                              
ffc05e1c:	7f 63 db 78 	mr      r3,r27                                 
ffc05e20:	80 e9 00 04 	lwz     r7,4(r9)                               
ffc05e24:	81 09 00 08 	lwz     r8,8(r9)                               
ffc05e28:	39 21 00 08 	addi    r9,r1,8                                
ffc05e2c:	80 bf 00 00 	lwz     r5,0(r31)                              
ffc05e30:	4b ff f4 6d 	bl      ffc0529c <rtems_disk_create_log>       
                                   part_desc->size, name);            
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc05e34:	7c 66 1b 79 	mr.     r6,r3                                  
ffc05e38:	41 a2 00 1c 	beq+    ffc05e54 <rtems_ide_part_table_initialize+0xe0><== ALWAYS TAKEN
        {                                                             
            fprintf(stdout,"Cannot create device %s, error code %d\n", name, rc);
ffc05e3c:	81 38 27 ac 	lwz     r9,10156(r24)                          <== NOT EXECUTED
ffc05e40:	7e e4 bb 78 	mr      r4,r23                                 <== NOT EXECUTED
ffc05e44:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc05e48:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc05e4c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc05e50:	48 00 fb 61 	bl      ffc159b0 <fprintf>                     <== 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++) 
ffc05e54:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc05e58:	7f 9e 48 00 	cmpw    cr7,r30,r9                             
ffc05e5c:	41 9c ff 88 	blt+    cr7,ffc05de4 <rtems_ide_part_table_initialize+0x70>
            fprintf(stdout,"Cannot create device %s, error code %d\n", name, rc);
            continue;                                                 
        }                                                             
    }                                                                 
                                                                      
    partition_table_free(disk_desc);                                  
ffc05e60:	7f e3 fb 78 	mr      r3,r31                                 
ffc05e64:	4b ff fa 1d 	bl      ffc05880 <partition_table_free>        
ffc05e68:	48 00 00 04 	b       ffc05e6c <rtems_ide_part_table_initialize+0xf8>
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc05e6c:	39 61 00 40 	addi    r11,r1,64                              
ffc05e70:	7f a3 eb 78 	mr      r3,r29                                 
ffc05e74:	4b ff a9 60 	b       ffc007d4 <_restgpr_23_x>               
                                                                      

ffc0b594 <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) {
ffc0b594:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0b598:	7c 08 02 a6 	mflr    r0                                     
ffc0b59c:	bf 61 00 0c 	stmw    r27,12(r1)                             
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
ffc0b5a0:	7c 7b 1b 79 	mr.     r27,r3                                 
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
{                                                                     
ffc0b5a4:	90 01 00 24 	stw     r0,36(r1)                              
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
ffc0b5a8:	41 82 00 6c 	beq-    ffc0b614 <rtems_iterate_over_all_threads+0x80><== NEVER TAKEN
ffc0b5ac:	3f e0 00 00 	lis     r31,0                                  
ffc0b5b0:	3b ff 2f f8 	addi    r31,r31,12280                          
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
ffc0b5b4:	3b 9f 00 0c 	addi    r28,r31,12                             
  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 ] )                 
ffc0b5b8:	85 3f 00 04 	lwzu    r9,4(r31)                              
ffc0b5bc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b5c0:	40 be 00 10 	bne+    cr7,ffc0b5d0 <rtems_iterate_over_all_threads+0x3c>
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
ffc0b5c4:	7f 9f e0 00 	cmpw    cr7,r31,r28                            
ffc0b5c8:	40 9e ff f0 	bne+    cr7,ffc0b5b8 <rtems_iterate_over_all_threads+0x24>
ffc0b5cc:	48 00 00 48 	b       ffc0b614 <rtems_iterate_over_all_threads+0x80>
    #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)             
      if ( !_Objects_Information_table[ api_index ] )                 
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
ffc0b5d0:	83 a9 00 04 	lwz     r29,4(r9)                              
    if ( !information )                                               
ffc0b5d4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0b5d8:	41 be ff ec 	beq-    cr7,ffc0b5c4 <rtems_iterate_over_all_threads+0x30>
ffc0b5dc:	3b c0 00 01 	li      r30,1                                  
ffc0b5e0:	48 00 00 24 	b       ffc0b604 <rtems_iterate_over_all_threads+0x70>
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
      the_thread = (Thread_Control *)information->local_table[ i ];   
ffc0b5e4:	81 3d 00 1c 	lwz     r9,28(r29)                             
ffc0b5e8:	57 ca 10 3a 	rlwinm  r10,r30,2,0,29                         
ffc0b5ec:	7c 69 50 2e 	lwzx    r3,r9,r10                              
                                                                      
      if ( !the_thread )                                              
ffc0b5f0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0b5f4:	41 9e 00 0c 	beq-    cr7,ffc0b600 <rtems_iterate_over_all_threads+0x6c>
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
ffc0b5f8:	7f 69 03 a6 	mtctr   r27                                    
ffc0b5fc:	4e 80 04 21 	bctrl                                          
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
ffc0b600:	3b de 00 01 	addi    r30,r30,1                              
ffc0b604:	a1 3d 00 10 	lhz     r9,16(r29)                             
ffc0b608:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc0b60c:	40 9d ff d8 	ble+    cr7,ffc0b5e4 <rtems_iterate_over_all_threads+0x50>
ffc0b610:	4b ff ff b4 	b       ffc0b5c4 <rtems_iterate_over_all_threads+0x30>
                                                                      
      (*routine)(the_thread);                                         
    }                                                                 
  }                                                                   
                                                                      
}                                                                     
ffc0b614:	39 61 00 20 	addi    r11,r1,32                              
ffc0b618:	4b ff 5d 14 	b       ffc0132c <_restgpr_27_x>               
                                                                      

ffc046d0 <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 ) {
ffc046d0:	7c 2b 0b 78 	mr      r11,r1                                 
ffc046d4:	94 21 ff f0 	stwu    r1,-16(r1)                             
    rtems_status_code rc;                                             
    uint32_t i;                                                       
    rtems_libio_t *iop;                                               
                                                                      
    if (rtems_libio_number_iops > 0)                                  
ffc046d8:	3d 20 00 00 	lis     r9,0                                   
rtems_id           rtems_libio_semaphore;                             
rtems_libio_t     *rtems_libio_iops;                                  
rtems_libio_t     *rtems_libio_iop_freelist;                          
                                                                      
void rtems_libio_init( void )                                         
{                                                                     
ffc046dc:	7c 08 02 a6 	mflr    r0                                     
ffc046e0:	48 01 59 69 	bl      ffc1a048 <_savegpr_31>                 
    rtems_status_code rc;                                             
    uint32_t i;                                                       
    rtems_libio_t *iop;                                               
                                                                      
    if (rtems_libio_number_iops > 0)                                  
ffc046e4:	83 e9 27 58 	lwz     r31,10072(r9)                          
rtems_id           rtems_libio_semaphore;                             
rtems_libio_t     *rtems_libio_iops;                                  
rtems_libio_t     *rtems_libio_iop_freelist;                          
                                                                      
void rtems_libio_init( void )                                         
{                                                                     
ffc046e8:	90 01 00 14 	stw     r0,20(r1)                              
    rtems_status_code rc;                                             
    uint32_t i;                                                       
    rtems_libio_t *iop;                                               
                                                                      
    if (rtems_libio_number_iops > 0)                                  
ffc046ec:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc046f0:	41 9e 00 60 	beq-    cr7,ffc04750 <rtems_libio_init+0x80>   <== NEVER TAKEN
    {                                                                 
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
ffc046f4:	7f e3 fb 78 	mr      r3,r31                                 
ffc046f8:	38 80 00 38 	li      r4,56                                  
ffc046fc:	4b ff fb 05 	bl      ffc04200 <calloc>                      
ffc04700:	3d 20 00 00 	lis     r9,0                                   
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
ffc04704:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    uint32_t i;                                                       
    rtems_libio_t *iop;                                               
                                                                      
    if (rtems_libio_number_iops > 0)                                  
    {                                                                 
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
ffc04708:	90 69 28 08 	stw     r3,10248(r9)                           
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
ffc0470c:	40 be 00 0c 	bne+    cr7,ffc04718 <rtems_libio_init+0x48>   
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
ffc04710:	38 60 00 1a 	li      r3,26                                  
ffc04714:	48 00 00 64 	b       ffc04778 <rtems_libio_init+0xa8>       
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
ffc04718:	3d 20 00 00 	lis     r9,0                                   
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
ffc0471c:	7f e9 03 a6 	mtctr   r31                                    
        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;            
ffc04720:	90 69 28 0c 	stw     r3,10252(r9)                           
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
ffc04724:	39 40 00 00 	li      r10,0                                  
ffc04728:	7c 69 1b 78 	mr      r9,r3                                  
ffc0472c:	48 00 00 0c 	b       ffc04738 <rtems_libio_init+0x68>       
          iop->data1 = iop + 1;                                       
ffc04730:	39 29 00 38 	addi    r9,r9,56                               
ffc04734:	91 29 ff f8 	stw     r9,-8(r9)                              
                                                    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++)  
ffc04738:	39 4a 00 01 	addi    r10,r10,1                              
ffc0473c:	42 00 ff f4 	bdnz+   ffc04730 <rtems_libio_init+0x60>       
          iop->data1 = iop + 1;                                       
        iop->data1 = NULL;                                            
ffc04740:	1d 4a 00 38 	mulli   r10,r10,56                             
ffc04744:	39 20 00 00 	li      r9,0                                   
ffc04748:	7c 63 52 14 	add     r3,r3,r10                              
ffc0474c:	91 23 ff f8 	stw     r9,-8(r3)                              
  /*                                                                  
   *  Create the binary semaphore used to provide mutual exclusion    
   *  on the IOP Table.                                               
   */                                                                 
                                                                      
  rc = rtems_semaphore_create(                                        
ffc04750:	3c 60 4c 42 	lis     r3,19522                               
ffc04754:	3c e0 00 00 	lis     r7,0                                   
ffc04758:	60 63 49 4f 	ori     r3,r3,18767                            
ffc0475c:	38 80 00 01 	li      r4,1                                   
ffc04760:	38 a0 00 54 	li      r5,84                                  
ffc04764:	38 c0 00 00 	li      r6,0                                   
ffc04768:	38 e7 28 10 	addi    r7,r7,10256                            
ffc0476c:	48 00 3e bd 	bl      ffc08628 <rtems_semaphore_create>      
    1,                                                                
    RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 
    RTEMS_NO_PRIORITY,                                                
    &rtems_libio_semaphore                                            
  );                                                                  
  if ( rc != RTEMS_SUCCESSFUL )                                       
ffc04770:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04774:	41 be 00 08 	beq+    cr7,ffc0477c <rtems_libio_init+0xac>   <== ALWAYS TAKEN
    rtems_fatal_error_occurred( rc );                                 
ffc04778:	48 00 48 f9 	bl      ffc09070 <rtems_fatal_error_occurred>  
                                                                      
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
ffc0477c:	3d 20 00 00 	lis     r9,0                                   
ffc04780:	81 29 27 5c 	lwz     r9,10076(r9)                           
ffc04784:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04788:	41 9e 00 1c 	beq-    cr7,ffc047a4 <rtems_libio_init+0xd4>   
     (* rtems_fs_init_helper)();                                      
}                                                                     
ffc0478c:	80 01 00 14 	lwz     r0,20(r1)                              
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
     (* rtems_fs_init_helper)();                                      
ffc04790:	7d 29 03 a6 	mtctr   r9                                     
}                                                                     
ffc04794:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc04798:	7c 08 03 a6 	mtlr    r0                                     
ffc0479c:	38 21 00 10 	addi    r1,r1,16                               
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
     (* rtems_fs_init_helper)();                                      
ffc047a0:	4e 80 04 20 	bctr                                           
}                                                                     
ffc047a4:	39 61 00 10 	addi    r11,r1,16                              
ffc047a8:	4b ff be 1c 	b       ffc005c4 <_restgpr_31_x>               
                                                                      

ffc05bec <rtems_libio_set_private_env>: } rtems_status_code rtems_libio_set_private_env(void) {
ffc05bec:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc05bf0:	7c 08 02 a6 	mflr    r0                                     
ffc05bf4:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc05bf8:	90 01 00 1c 	stw     r0,28(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id self_task_id = rtems_task_self();                          
ffc05bfc:	48 00 1b 39 	bl      ffc07734 <rtems_task_self>             
  rtems_user_env_t *old_env = rtems_current_user_env;                 
ffc05c00:	3d 20 00 00 	lis     r9,0                                   
ffc05c04:	83 c9 27 08 	lwz     r30,9992(r9)                           
  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) {                           
ffc05c08:	3d 40 00 00 	lis     r10,0                                  
ffc05c0c:	39 4a 21 38 	addi    r10,r10,8504                           
ffc05c10:	7f 9e 50 00 	cmpw    cr7,r30,r10                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  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;            
ffc05c14:	81 3e 00 24 	lwz     r9,36(r30)                             
}                                                                     
                                                                      
rtems_status_code rtems_libio_set_private_env(void)                   
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id self_task_id = rtems_task_self();                          
ffc05c18:	7c 7c 1b 78 	mr      r28,r3                                 
  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) {                           
ffc05c1c:	41 9e 00 0c 	beq-    cr7,ffc05c28 <rtems_libio_set_private_env+0x3c>
ffc05c20:	7f 89 18 00 	cmpw    cr7,r9,r3                              
ffc05c24:	41 9e 00 a0 	beq-    cr7,ffc05cc4 <rtems_libio_set_private_env+0xd8>
    rtems_user_env_t *new_env = calloc(1, sizeof(*new_env));          
ffc05c28:	38 60 00 01 	li      r3,1                                   
ffc05c2c:	38 80 00 2c 	li      r4,44                                  
ffc05c30:	48 00 4e bd 	bl      ffc0aaec <calloc>                      
                                                                      
      if (sc != RTEMS_SUCCESSFUL) {                                   
        free_user_env(new_env);                                       
      }                                                               
    } else {                                                          
      sc = RTEMS_NO_MEMORY;                                           
ffc05c34:	3b a0 00 1a 	li      r29,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) {                                            
ffc05c38:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc05c3c:	41 82 00 a4 	beq-    ffc05ce0 <rtems_libio_set_private_env+0xf4>
      *new_env = *old_env;                                            
ffc05c40:	7f c4 f3 78 	mr      r4,r30                                 
ffc05c44:	38 a0 00 2c 	li      r5,44                                  
ffc05c48:	48 00 73 01 	bl      ffc0cf48 <memcpy>                      
      new_env->reference_count = 1;                                   
ffc05c4c:	39 20 00 01 	li      r9,1                                   
ffc05c50:	91 3f 00 28 	stw     r9,40(r31)                             
      new_env->task_id = self_task_id;                                
      new_env->root_directory =                                       
        rtems_filesystem_global_location_obtain(&old_env->root_directory);
ffc05c54:	38 7e 00 04 	addi    r3,r30,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;                                
ffc05c58:	93 9f 00 24 	stw     r28,36(r31)                            
      new_env->root_directory =                                       
        rtems_filesystem_global_location_obtain(&old_env->root_directory);
ffc05c5c:	48 00 0e 65 	bl      ffc06ac0 <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 =                                       
ffc05c60:	90 7f 00 04 	stw     r3,4(r31)                              
        rtems_filesystem_global_location_obtain(&old_env->root_directory);
      new_env->current_directory =                                    
        rtems_filesystem_global_location_obtain(&old_env->current_directory);
ffc05c64:	7f c3 f3 78 	mr      r3,r30                                 
ffc05c68:	48 00 0e 59 	bl      ffc06ac0 <rtems_filesystem_global_location_obtain>
      rtems_fatal_error_occurred(0xdeadbeef);                         
    }                                                                 
                                                                      
    rtems_current_user_env = &rtems_global_user_env;                  
  }                                                                   
}                                                                     
ffc05c6c:	81 5f 00 04 	lwz     r10,4(r31)                             
      *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 =                                    
ffc05c70:	90 7f 00 00 	stw     r3,0(r31)                              
        rtems_filesystem_global_location_obtain(&old_env->current_directory);
                                                                      
      if (                                                            
ffc05c74:	3d 20 ff c1 	lis     r9,-63                                 
ffc05c78:	39 29 2d 80 	addi    r9,r9,11648                            
ffc05c7c:	81 4a 00 10 	lwz     r10,16(r10)                            
ffc05c80:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc05c84:	41 9e 00 48 	beq-    cr7,ffc05ccc <rtems_libio_set_private_env+0xe0>
        !rtems_filesystem_global_location_is_null(new_env->root_directory)
          && !rtems_filesystem_global_location_is_null(new_env->current_directory)
ffc05c88:	81 43 00 10 	lwz     r10,16(r3)                             
ffc05c8c:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc05c90:	41 9e 00 3c 	beq-    cr7,ffc05ccc <rtems_libio_set_private_env+0xe0><== NEVER TAKEN
      ) {                                                             
        sc = rtems_task_variable_add(                                 
ffc05c94:	3f 80 00 00 	lis     r28,0                                  
ffc05c98:	3c a0 ff c0 	lis     r5,-64                                 
ffc05c9c:	38 60 00 00 	li      r3,0                                   
ffc05ca0:	38 9c 27 08 	addi    r4,r28,9992                            
ffc05ca4:	38 a5 5b 50 	addi    r5,r5,23376                            
ffc05ca8:	48 00 1b 15 	bl      ffc077bc <rtems_task_variable_add>     
          RTEMS_SELF,                                                 
          (void **) &rtems_current_user_env,                          
          free_user_env                                               
        );                                                            
        if (sc == RTEMS_SUCCESSFUL) {                                 
ffc05cac:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc05cb0:	40 a2 00 24 	bne+    ffc05cd4 <rtems_libio_set_private_env+0xe8>
          free_user_env_protected(old_env);                           
ffc05cb4:	7f c3 f3 78 	mr      r3,r30                                 
ffc05cb8:	4b ff ff 05 	bl      ffc05bbc <free_user_env_protected>     
          rtems_current_user_env = new_env;                           
ffc05cbc:	93 fc 27 08 	stw     r31,9992(r28)                          
ffc05cc0:	48 00 00 20 	b       ffc05ce0 <rtems_libio_set_private_env+0xf4>
  _Thread_Enable_dispatch();                                          
}                                                                     
                                                                      
rtems_status_code rtems_libio_set_private_env(void)                   
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc05cc4:	3b a0 00 00 	li      r29,0                                  
ffc05cc8:	48 00 00 18 	b       ffc05ce0 <rtems_libio_set_private_env+0xf4>
          rtems_current_user_env = new_env;                           
        } else {                                                      
          sc = RTEMS_TOO_MANY;                                        
        }                                                             
      } else {                                                        
        sc = RTEMS_UNSATISFIED;                                       
ffc05ccc:	3b a0 00 0d 	li      r29,13                                 
ffc05cd0:	48 00 00 08 	b       ffc05cd8 <rtems_libio_set_private_env+0xec>
        );                                                            
        if (sc == RTEMS_SUCCESSFUL) {                                 
          free_user_env_protected(old_env);                           
          rtems_current_user_env = new_env;                           
        } else {                                                      
          sc = RTEMS_TOO_MANY;                                        
ffc05cd4:	3b a0 00 05 	li      r29,5                                  
      } else {                                                        
        sc = RTEMS_UNSATISFIED;                                       
      }                                                               
                                                                      
      if (sc != RTEMS_SUCCESSFUL) {                                   
        free_user_env(new_env);                                       
ffc05cd8:	7f e3 fb 78 	mr      r3,r31                                 
ffc05cdc:	4b ff fe 75 	bl      ffc05b50 <free_user_env>               
      sc = RTEMS_NO_MEMORY;                                           
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc05ce0:	39 61 00 18 	addi    r11,r1,24                              
ffc05ce4:	7f a3 eb 78 	mr      r3,r29                                 
ffc05ce8:	48 00 aa d0 	b       ffc107b8 <_restgpr_28_x>               
                                                                      

ffc05cec <rtems_libio_share_private_env>: rtems_status_code rtems_libio_share_private_env(rtems_id task_id) {
ffc05cec:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc05cf0:	7c 08 02 a6 	mflr    r0                                     
ffc05cf4:	bf c1 00 18 	stmw    r30,24(r1)                             
ffc05cf8:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc05cfc:	3b e0 00 00 	li      r31,0                                  
                                                                      
  return sc;                                                          
}                                                                     
                                                                      
rtems_status_code rtems_libio_share_private_env(rtems_id task_id)     
{                                                                     
ffc05d00:	90 01 00 24 	stw     r0,36(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id self_task_id = rtems_task_self();                          
ffc05d04:	48 00 1a 31 	bl      ffc07734 <rtems_task_self>             
                                                                      
  if (task_id != RTEMS_SELF && self_task_id != task_id) {             
ffc05d08:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc05d0c:	41 9e 00 9c 	beq-    cr7,ffc05da8 <rtems_libio_share_private_env+0xbc>
ffc05d10:	7f 83 f0 00 	cmpw    cr7,r3,r30                             
ffc05d14:	41 9e 00 94 	beq-    cr7,ffc05da8 <rtems_libio_share_private_env+0xbc>
   *                                                                  
   * 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;                  
ffc05d18:	3d 20 00 00 	lis     r9,0                                   
ffc05d1c:	81 49 27 98 	lwz     r10,10136(r9)                          
                                                                      
    ++level;                                                          
ffc05d20:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc05d24:	91 49 27 98 	stw     r10,10136(r9)                          
    /*                                                                
     * We have to disable the thread dispatching to prevent deletion of the
     * environment in the meantime.                                   
     */                                                               
    _Thread_Disable_dispatch();                                       
    sc = rtems_task_variable_get(                                     
ffc05d28:	3c 80 00 00 	lis     r4,0                                   
ffc05d2c:	7f c3 f3 78 	mr      r3,r30                                 
ffc05d30:	38 84 27 08 	addi    r4,r4,9992                             
ffc05d34:	38 a1 00 08 	addi    r5,r1,8                                
ffc05d38:	48 00 1b cd 	bl      ffc07904 <rtems_task_variable_get>     
      task_id,                                                        
      (void *) &rtems_current_user_env,                               
      (void *) &env                                                   
    );                                                                
    if (sc == RTEMS_SUCCESSFUL) {                                     
ffc05d3c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc05d40:	40 82 00 18 	bne-    ffc05d58 <rtems_libio_share_private_env+0x6c>
      ++env->reference_count;                                         
ffc05d44:	81 21 00 08 	lwz     r9,8(r1)                               
ffc05d48:	81 49 00 28 	lwz     r10,40(r9)                             
ffc05d4c:	39 4a 00 01 	addi    r10,r10,1                              
ffc05d50:	91 49 00 28 	stw     r10,40(r9)                             
ffc05d54:	48 00 00 08 	b       ffc05d5c <rtems_libio_share_private_env+0x70>
    } else {                                                          
      sc = RTEMS_UNSATISFIED;                                         
ffc05d58:	3b e0 00 0d 	li      r31,13                                 
    }                                                                 
    _Thread_Enable_dispatch();                                        
ffc05d5c:	48 00 3b 49 	bl      ffc098a4 <_Thread_Enable_dispatch>     
                                                                      
    if (sc == RTEMS_SUCCESSFUL) {                                     
ffc05d60:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc05d64:	40 be 00 44 	bne+    cr7,ffc05da8 <rtems_libio_share_private_env+0xbc>
      sc = rtems_task_variable_add(                                   
ffc05d68:	3f c0 00 00 	lis     r30,0                                  
ffc05d6c:	3c a0 ff c0 	lis     r5,-64                                 
ffc05d70:	38 60 00 00 	li      r3,0                                   
ffc05d74:	38 9e 27 08 	addi    r4,r30,9992                            
ffc05d78:	38 a5 5b 50 	addi    r5,r5,23376                            
ffc05d7c:	48 00 1a 41 	bl      ffc077bc <rtems_task_variable_add>     
        RTEMS_SELF,                                                   
        (void **) &rtems_current_user_env,                            
        free_user_env                                                 
      );                                                              
      if (sc == RTEMS_SUCCESSFUL) {                                   
ffc05d80:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc05d84:	40 82 00 18 	bne-    ffc05d9c <rtems_libio_share_private_env+0xb0><== NEVER TAKEN
        free_user_env_protected(rtems_current_user_env);              
ffc05d88:	80 7e 27 08 	lwz     r3,9992(r30)                           
ffc05d8c:	4b ff fe 31 	bl      ffc05bbc <free_user_env_protected>     
        rtems_current_user_env = env;                                 
ffc05d90:	81 21 00 08 	lwz     r9,8(r1)                               
ffc05d94:	91 3e 27 08 	stw     r9,9992(r30)                           
ffc05d98:	48 00 00 10 	b       ffc05da8 <rtems_libio_share_private_env+0xbc>
      } else {                                                        
        free_user_env_protected(env);                                 
ffc05d9c:	80 61 00 08 	lwz     r3,8(r1)                               <== NOT EXECUTED
        sc = RTEMS_TOO_MANY;                                          
ffc05da0:	3b e0 00 05 	li      r31,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);                                 
ffc05da4:	4b ff fe 19 	bl      ffc05bbc <free_user_env_protected>     <== NOT EXECUTED
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc05da8:	39 61 00 20 	addi    r11,r1,32                              
ffc05dac:	7f e3 fb 78 	mr      r3,r31                                 
ffc05db0:	48 00 aa 10 	b       ffc107c0 <_restgpr_30_x>               
                                                                      

ffc0ce74 <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 ) {
ffc0ce74:	54 6a 07 7c 	rlwinm  r10,r3,0,29,30                         
ffc0ce78:	2f 8a 00 06 	cmpwi   cr7,r10,6                              
    fcntl_flags |= O_RDWR;                                            
ffc0ce7c:	39 20 00 02 	li      r9,2                                   
                                                                      
int rtems_libio_to_fcntl_flags( uint32_t flags )                      
{                                                                     
  int fcntl_flags = 0;                                                
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
ffc0ce80:	41 9e 00 14 	beq-    cr7,ffc0ce94 <rtems_libio_to_fcntl_flags+0x20><== NEVER TAKEN
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
ffc0ce84:	70 6a 00 02 	andi.   r10,r3,2                               
    fcntl_flags |= O_RDONLY;                                          
ffc0ce88:	39 20 00 00 	li      r9,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) {       
ffc0ce8c:	40 82 00 08 	bne-    ffc0ce94 <rtems_libio_to_fcntl_flags+0x20><== ALWAYS TAKEN
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;                                            
ffc0ce90:	54 69 f7 fe 	rlwinm  r9,r3,30,31,31                         <== 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 ) {     
ffc0ce94:	70 6a 00 01 	andi.   r10,r3,1                               
ffc0ce98:	41 82 00 08 	beq-    ffc0cea0 <rtems_libio_to_fcntl_flags+0x2c>
    fcntl_flags |= O_NONBLOCK;                                        
ffc0ce9c:	61 29 40 00 	ori     r9,r9,16384                            
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {         
ffc0cea0:	70 6a 02 00 	andi.   r10,r3,512                             
ffc0cea4:	41 82 00 08 	beq-    ffc0ceac <rtems_libio_to_fcntl_flags+0x38>
    fcntl_flags |= O_APPEND;                                          
ffc0cea8:	61 29 00 08 	ori     r9,r9,8                                
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {         
ffc0ceac:	70 6a 04 00 	andi.   r10,r3,1024                            
ffc0ceb0:	41 82 00 08 	beq-    ffc0ceb8 <rtems_libio_to_fcntl_flags+0x44>
    fcntl_flags |= O_CREAT;                                           
ffc0ceb4:	61 29 02 00 	ori     r9,r9,512                              
  }                                                                   
                                                                      
  return fcntl_flags;                                                 
}                                                                     
ffc0ceb8:	7d 23 4b 78 	mr      r3,r9                                  
ffc0cebc:	4e 80 00 20 	blr                                            
                                                                      

ffc05db4 <rtems_libio_use_global_env>: void rtems_libio_use_global_env(void) {
ffc05db4:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc05db8:	7c 08 02 a6 	mflr    r0                                     
ffc05dbc:	bf c1 00 08 	stmw    r30,8(r1)                              
  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) {                                             
ffc05dc0:	3f e0 00 00 	lis     r31,0                                  
ffc05dc4:	3f c0 00 00 	lis     r30,0                                  
ffc05dc8:	81 3f 27 08 	lwz     r9,9992(r31)                           
ffc05dcc:	3b de 21 38 	addi    r30,r30,8504                           
                                                                      
  return sc;                                                          
}                                                                     
                                                                      
void rtems_libio_use_global_env(void)                                 
{                                                                     
ffc05dd0:	90 01 00 14 	stw     r0,20(r1)                              
  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) {                                             
ffc05dd4:	38 9f 27 08 	addi    r4,r31,9992                            
ffc05dd8:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc05ddc:	41 9e 00 24 	beq-    cr7,ffc05e00 <rtems_libio_use_global_env+0x4c>
    sc = rtems_task_variable_delete(                                  
ffc05de0:	38 60 00 00 	li      r3,0                                   
ffc05de4:	48 00 1a 8d 	bl      ffc07870 <rtems_task_variable_delete>  
      RTEMS_SELF,                                                     
      (void **) &rtems_current_user_env                               
    );                                                                
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc05de8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05dec:	41 be 00 10 	beq+    cr7,ffc05dfc <rtems_libio_use_global_env+0x48><== ALWAYS TAKEN
      rtems_fatal_error_occurred(0xdeadbeef);                         
ffc05df0:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc05df4:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc05df8:	48 00 1d 5d 	bl      ffc07b54 <rtems_fatal_error_occurred>  <== NOT EXECUTED
    }                                                                 
                                                                      
    rtems_current_user_env = &rtems_global_user_env;                  
ffc05dfc:	93 df 27 08 	stw     r30,9992(r31)                          
  }                                                                   
}                                                                     
ffc05e00:	39 61 00 10 	addi    r11,r1,16                              
ffc05e04:	48 00 a9 bc 	b       ffc107c0 <_restgpr_30_x>               
                                                                      

ffc07ad8 <rtems_malloc_statistics_at_free>: * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) {
ffc07ad8:	94 21 ff e8 	stwu    r1,-24(r1)                             
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc07adc:	3d 20 00 00 	lis     r9,0                                   
 *  size and thus we skip updating the statistics.                    
 */                                                                   
static void rtems_malloc_statistics_at_free(                          
  void *pointer                                                       
)                                                                     
{                                                                     
ffc07ae0:	7c 08 02 a6 	mflr    r0                                     
ffc07ae4:	7c 64 1b 78 	mr      r4,r3                                  
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc07ae8:	80 69 27 94 	lwz     r3,10132(r9)                           
ffc07aec:	38 a1 00 08 	addi    r5,r1,8                                
 *  size and thus we skip updating the statistics.                    
 */                                                                   
static void rtems_malloc_statistics_at_free(                          
  void *pointer                                                       
)                                                                     
{                                                                     
ffc07af0:	90 01 00 1c 	stw     r0,28(r1)                              
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc07af4:	48 00 70 39 	bl      ffc0eb2c <_Protected_heap_Get_block_size>
ffc07af8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07afc:	41 9e 00 2c 	beq-    cr7,ffc07b28 <rtems_malloc_statistics_at_free+0x50><== NEVER TAKEN
    MSBUMP(lifetime_freed, size);                                     
ffc07b00:	3c e0 00 00 	lis     r7,0                                   
ffc07b04:	81 61 00 08 	lwz     r11,8(r1)                              
ffc07b08:	38 e7 34 08 	addi    r7,r7,13320                            
ffc07b0c:	81 07 00 28 	lwz     r8,40(r7)                              
ffc07b10:	39 40 00 00 	li      r10,0                                  
ffc07b14:	81 27 00 2c 	lwz     r9,44(r7)                              
ffc07b18:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc07b1c:	7d 4a 41 14 	adde    r10,r10,r8                             
ffc07b20:	91 47 00 28 	stw     r10,40(r7)                             
ffc07b24:	91 67 00 2c 	stw     r11,44(r7)                             
  }                                                                   
}                                                                     
ffc07b28:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc07b2c:	38 21 00 18 	addi    r1,r1,24                               
ffc07b30:	7c 08 03 a6 	mtlr    r0                                     
ffc07b34:	4e 80 00 20 	blr                                            
                                                                      

ffc07b38 <rtems_malloc_statistics_at_malloc>: { uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer )
ffc07b38:	7c 64 1b 79 	mr.     r4,r3                                  
}                                                                     
                                                                      
static void rtems_malloc_statistics_at_malloc(                        
  void *pointer                                                       
)                                                                     
{                                                                     
ffc07b3c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc07b40:	7c 08 02 a6 	mflr    r0                                     
  uintptr_t actual_size = 0;                                          
ffc07b44:	39 20 00 00 	li      r9,0                                   
ffc07b48:	91 21 00 08 	stw     r9,8(r1)                               
}                                                                     
                                                                      
static void rtems_malloc_statistics_at_malloc(                        
  void *pointer                                                       
)                                                                     
{                                                                     
ffc07b4c:	90 01 00 1c 	stw     r0,28(r1)                              
  uintptr_t actual_size = 0;                                          
  uint32_t current_depth;                                             
  rtems_malloc_statistics_t *s = &rtems_malloc_statistics;            
                                                                      
  if ( !pointer )                                                     
ffc07b50:	41 82 00 54 	beq-    ffc07ba4 <rtems_malloc_statistics_at_malloc+0x6c><== NEVER TAKEN
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
ffc07b54:	3d 20 00 00 	lis     r9,0                                   
ffc07b58:	80 69 27 94 	lwz     r3,10132(r9)                           
ffc07b5c:	38 a1 00 08 	addi    r5,r1,8                                
ffc07b60:	48 00 6f cd 	bl      ffc0eb2c <_Protected_heap_Get_block_size>
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
ffc07b64:	3c e0 00 00 	lis     r7,0                                   
ffc07b68:	38 e7 34 08 	addi    r7,r7,13320                            
ffc07b6c:	81 61 00 08 	lwz     r11,8(r1)                              
ffc07b70:	81 27 00 24 	lwz     r9,36(r7)                              
ffc07b74:	39 40 00 00 	li      r10,0                                  
ffc07b78:	81 07 00 20 	lwz     r8,32(r7)                              
ffc07b7c:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc07b80:	7d 4a 41 14 	adde    r10,r10,r8                             
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
ffc07b84:	81 27 00 2c 	lwz     r9,44(r7)                              
  if ( !pointer )                                                     
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
ffc07b88:	91 47 00 20 	stw     r10,32(r7)                             
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
ffc07b8c:	7d 29 58 50 	subf    r9,r9,r11                              
  if (current_depth > s->max_depth)                                   
ffc07b90:	81 47 00 18 	lwz     r10,24(r7)                             
  if ( !pointer )                                                     
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
ffc07b94:	91 67 00 24 	stw     r11,36(r7)                             
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
  if (current_depth > s->max_depth)                                   
ffc07b98:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc07b9c:	40 9d 00 08 	ble-    cr7,ffc07ba4 <rtems_malloc_statistics_at_malloc+0x6c>
      s->max_depth = current_depth;                                   
ffc07ba0:	91 27 00 18 	stw     r9,24(r7)                              
}                                                                     
ffc07ba4:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc07ba8:	38 21 00 18 	addi    r1,r1,24                               
ffc07bac:	7c 08 03 a6 	mtlr    r0                                     
ffc07bb0:	4e 80 00 20 	blr                                            
                                                                      

ffc111a4 <rtems_memalign>: int rtems_memalign( void **pointer, size_t alignment, size_t size ) {
ffc111a4:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc111a8:	7c 08 02 a6 	mflr    r0                                     
ffc111ac:	bf a1 00 0c 	stmw    r29,12(r1)                             
  void *return_this;                                                  
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
ffc111b0:	7c 7f 1b 79 	mr.     r31,r3                                 
int rtems_memalign(                                                   
  void   **pointer,                                                   
  size_t   alignment,                                                 
  size_t   size                                                       
)                                                                     
{                                                                     
ffc111b4:	90 01 00 1c 	stw     r0,28(r1)                              
  void *return_this;                                                  
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
ffc111b8:	40 a2 00 0c 	bne+    ffc111c4 <rtems_memalign+0x20>         
    return EINVAL;                                                    
ffc111bc:	39 20 00 16 	li      r9,22                                  
ffc111c0:	48 00 00 88 	b       ffc11248 <rtems_memalign+0xa4>         
                                                                      
  *pointer = NULL;                                                    
ffc111c4:	39 20 00 00 	li      r9,0                                   
ffc111c8:	91 3f 00 00 	stw     r9,0(r31)                              
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
ffc111cc:	3d 20 00 00 	lis     r9,0                                   
ffc111d0:	7c 9e 23 78 	mr      r30,r4                                 
ffc111d4:	81 29 27 e4 	lwz     r9,10212(r9)                           
ffc111d8:	7c bd 2b 78 	mr      r29,r5                                 
ffc111dc:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc111e0:	41 9e 00 30 	beq-    cr7,ffc11210 <rtems_memalign+0x6c>     
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
ffc111e4:	4b ff 46 25 	bl      ffc05808 <malloc_deferred_frees_process>
  Heap_Control *heap,                                                 
  uintptr_t size,                                                     
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return                                                              
ffc111e8:	3d 20 00 00 	lis     r9,0                                   
ffc111ec:	80 69 26 f0 	lwz     r3,9968(r9)                            
ffc111f0:	7f c5 f3 78 	mr      r5,r30                                 
ffc111f4:	7f a4 eb 78 	mr      r4,r29                                 
ffc111f8:	38 c0 00 00 	li      r6,0                                   
ffc111fc:	4b ff a4 b5 	bl      ffc0b6b0 <_Protected_heap_Allocate_aligned_with_boundary>
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
    return ENOMEM;                                                    
ffc11200:	39 20 00 0c 	li      r9,12                                  
  return_this = _Protected_heap_Allocate_aligned(                     
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
ffc11204:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc11208:	40 a2 00 18 	bne+    ffc11220 <rtems_memalign+0x7c>         
ffc1120c:	48 00 00 3c 	b       ffc11248 <rtems_memalign+0xa4>         
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
       !malloc_is_system_state_OK() )                                 
ffc11210:	4b ff 45 cd 	bl      ffc057dc <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()) &&                    
ffc11214:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11218:	41 9e ff a4 	beq+    cr7,ffc111bc <rtems_memalign+0x18>     <== NEVER TAKEN
ffc1121c:	4b ff ff c8 	b       ffc111e4 <rtems_memalign+0x40>         
    return ENOMEM;                                                    
                                                                      
  /*                                                                  
   *  If configured, update the more involved statistics              
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
ffc11220:	3d 20 00 00 	lis     r9,0                                   
ffc11224:	81 29 27 64 	lwz     r9,10084(r9)                           
ffc11228:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1122c:	41 9e 00 14 	beq-    cr7,ffc11240 <rtems_memalign+0x9c>     
    (*rtems_malloc_statistics_helpers->at_malloc)(pointer);           
ffc11230:	81 29 00 04 	lwz     r9,4(r9)                               
ffc11234:	7f e3 fb 78 	mr      r3,r31                                 
ffc11238:	7d 29 03 a6 	mtctr   r9                                     
ffc1123c:	4e 80 04 21 	bctrl                                          
                                                                      
  *pointer = return_this;                                             
ffc11240:	93 df 00 00 	stw     r30,0(r31)                             
  return 0;                                                           
ffc11244:	39 20 00 00 	li      r9,0                                   
}                                                                     
ffc11248:	39 61 00 18 	addi    r11,r1,24                              
ffc1124c:	7d 23 4b 78 	mr      r3,r9                                  
ffc11250:	48 00 77 84 	b       ffc189d4 <_restgpr_29_x>               
                                                                      

ffc0a024 <rtems_mkdir>: return (retval); } int rtems_mkdir(const char *path, mode_t mode) {
ffc0a024:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc0a028:	7c 08 02 a6 	mflr    r0                                     
ffc0a02c:	bf 21 00 5c 	stmw    r25,92(r1)                             
ffc0a030:	7c 9b 23 78 	mr      r27,r4                                 
ffc0a034:	90 01 00 7c 	stw     r0,124(r1)                             
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
ffc0a038:	48 01 98 bd 	bl      ffc238f4 <strdup>                      
                                                                      
  if (dup_path != NULL) {                                             
ffc0a03c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc0a040:	40 a2 00 0c 	bne+    ffc0a04c <rtems_mkdir+0x28>            
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
ffc0a044:	38 60 ff ff 	li      r3,-1                                  
ffc0a048:	48 00 01 74 	b       ffc0a1bc <rtems_mkdir+0x198>           
  char *p;                                                            
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
ffc0a04c:	89 3d 00 00 	lbz     r9,0(r29)                              
    (void)umask(oumask);                                              
  return (retval);                                                    
}                                                                     
                                                                      
int                                                                   
rtems_mkdir(const char *path, mode_t mode)                            
ffc0a050:	3b 80 00 00 	li      r28,0                                  
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
      last = 1;                                                       
    else if (p[0] != '/')                                             
      continue;                                                       
    *p = '\0';                                                        
ffc0a054:	3b 40 00 00 	li      r26,0                                  
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
ffc0a058:	69 3e 00 2f 	xori    r30,r9,47                              
ffc0a05c:	23 de 00 00 	subfic  r30,r30,0                              
ffc0a060:	7f dd 01 94 	addze   r30,r29                                
    (void)umask(oumask);                                              
  return (retval);                                                    
}                                                                     
                                                                      
int                                                                   
rtems_mkdir(const char *path, mode_t mode)                            
ffc0a064:	3b de ff ff 	addi    r30,r30,-1                             
ffc0a068:	39 20 00 01 	li      r9,1                                   
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
ffc0a06c:	3b 20 00 2f 	li      r25,47                                 
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
ffc0a070:	8d 1e 00 01 	lbzu    r8,1(r30)                              
      last = 1;                                                       
ffc0a074:	39 40 00 01 	li      r10,1                                  
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
ffc0a078:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0a07c:	41 9e 00 10 	beq-    cr7,ffc0a08c <rtems_mkdir+0x68>        
      last = 1;                                                       
    else if (p[0] != '/')                                             
ffc0a080:	2f 88 00 2f 	cmpwi   cr7,r8,47                              
ffc0a084:	40 9e ff ec 	bne+    cr7,ffc0a070 <rtems_mkdir+0x4c>        
ffc0a088:	39 40 00 00 	li      r10,0                                  
      continue;                                                       
    *p = '\0';                                                        
    if (!last && p[1] == '\0')                                        
ffc0a08c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
      last = 1;                                                       
    else if (p[0] != '/')                                             
      continue;                                                       
    *p = '\0';                                                        
ffc0a090:	9b 5e 00 00 	stb     r26,0(r30)                             
    if (!last && p[1] == '\0')                                        
ffc0a094:	3b e0 00 01 	li      r31,1                                  
ffc0a098:	40 9e 00 10 	bne-    cr7,ffc0a0a8 <rtems_mkdir+0x84>        
ffc0a09c:	8b fe 00 01 	lbz     r31,1(r30)                             
ffc0a0a0:	7f ff 00 34 	cntlzw  r31,r31                                
ffc0a0a4:	57 ff d9 7e 	rlwinm  r31,r31,27,5,31                        
      last = 1;                                                       
    if (first) {                                                      
ffc0a0a8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a0ac:	41 be 00 18 	beq+    cr7,ffc0a0c4 <rtems_mkdir+0xa0>        
       *    mkdir [-m mode] dir                                       
       *                                                              
       * We change the user's umask and then restore it,              
       * instead of doing chmod's.                                    
       */                                                             
      oumask = umask(0);                                              
ffc0a0b0:	38 60 00 00 	li      r3,0                                   
ffc0a0b4:	48 00 2a a9 	bl      ffc0cb5c <umask>                       
ffc0a0b8:	7c 7c 1b 78 	mr      r28,r3                                 
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
ffc0a0bc:	54 63 06 ae 	rlwinm  r3,r3,0,26,23                          
ffc0a0c0:	48 00 2a 9d 	bl      ffc0cb5c <umask>                       
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
ffc0a0c4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
ffc0a0c8:	38 80 01 ff 	li      r4,511                                 
      oumask = umask(0);                                              
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
ffc0a0cc:	41 be 00 10 	beq+    cr7,ffc0a0dc <rtems_mkdir+0xb8>        
      (void)umask(oumask);                                            
ffc0a0d0:	7f 83 e3 78 	mr      r3,r28                                 
ffc0a0d4:	48 00 2a 89 	bl      ffc0cb5c <umask>                       
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
ffc0a0d8:	7f 64 db 78 	mr      r4,r27                                 
ffc0a0dc:	7f a3 eb 78 	mr      r3,r29                                 
ffc0a0e0:	4b ff f1 f9 	bl      ffc092d8 <mkdir>                       
ffc0a0e4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0a0e8:	40 bc 00 90 	bge+    cr7,ffc0a178 <rtems_mkdir+0x154>       
      if (errno == EEXIST || errno == EISDIR) {                       
ffc0a0ec:	48 01 70 e1 	bl      ffc211cc <__errno>                     
ffc0a0f0:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0a0f4:	2f 89 00 11 	cmpwi   cr7,r9,17                              
ffc0a0f8:	40 be 00 1c 	bne+    cr7,ffc0a114 <rtems_mkdir+0xf0>        
        if (stat(path, &sb) < 0) {                                    
ffc0a0fc:	7f a3 eb 78 	mr      r3,r29                                 
ffc0a100:	38 81 00 08 	addi    r4,r1,8                                
ffc0a104:	48 00 00 c1 	bl      ffc0a1c4 <stat>                        
ffc0a108:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0a10c:	40 bc 00 1c 	bge+    cr7,ffc0a128 <rtems_mkdir+0x104>       <== ALWAYS TAKEN
ffc0a110:	48 00 00 78 	b       ffc0a188 <rtems_mkdir+0x164>           <== NOT EXECUTED
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
      if (errno == EEXIST || errno == EISDIR) {                       
ffc0a114:	48 01 70 b9 	bl      ffc211cc <__errno>                     
ffc0a118:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0a11c:	2f 89 00 15 	cmpwi   cr7,r9,21                              
ffc0a120:	41 9e ff dc 	beq+    cr7,ffc0a0fc <rtems_mkdir+0xd8>        <== NEVER TAKEN
ffc0a124:	48 00 00 64 	b       ffc0a188 <rtems_mkdir+0x164>           
        if (stat(path, &sb) < 0) {                                    
          retval = 0;                                                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
ffc0a128:	81 21 00 14 	lwz     r9,20(r1)                              
ffc0a12c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0a130:	55 29 04 26 	rlwinm  r9,r9,0,16,19                          
ffc0a134:	2f 09 40 00 	cmpwi   cr6,r9,16384                           
ffc0a138:	41 ba 00 30 	beq+    cr6,ffc0a168 <rtems_mkdir+0x144>       
          if (last)                                                   
ffc0a13c:	41 9e 00 18 	beq-    cr7,ffc0a154 <rtems_mkdir+0x130>       
            errno = EEXIST;                                           
ffc0a140:	48 01 70 8d 	bl      ffc211cc <__errno>                     
ffc0a144:	39 20 00 11 	li      r9,17                                  
ffc0a148:	91 23 00 00 	stw     r9,0(r3)                               
          else                                                        
            errno = ENOTDIR;                                          
          retval = 0;                                                 
ffc0a14c:	3b c0 00 00 	li      r30,0                                  
ffc0a150:	48 00 00 4c 	b       ffc0a19c <rtems_mkdir+0x178>           
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
          if (last)                                                   
            errno = EEXIST;                                           
          else                                                        
            errno = ENOTDIR;                                          
ffc0a154:	48 01 70 79 	bl      ffc211cc <__errno>                     
ffc0a158:	39 20 00 14 	li      r9,20                                  
ffc0a15c:	91 23 00 00 	stw     r9,0(r3)                               
          retval = 0;                                                 
ffc0a160:	3b c0 00 00 	li      r30,0                                  
ffc0a164:	48 00 00 30 	b       ffc0a194 <rtems_mkdir+0x170>           
          break;                                                      
        }                                                             
        if (last)                                                     
ffc0a168:	40 9e 00 4c 	bne-    cr7,ffc0a1b4 <rtems_mkdir+0x190>       
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
ffc0a16c:	9b 3e 00 00 	stb     r25,0(r30)                             
ffc0a170:	39 20 00 00 	li      r9,0                                   
ffc0a174:	4b ff fe fc 	b       ffc0a070 <rtems_mkdir+0x4c>            
      } else {                                                        
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
ffc0a178:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0a17c:	41 be ff f0 	beq-    cr7,ffc0a16c <rtems_mkdir+0x148>       
ffc0a180:	3b c0 00 01 	li      r30,1                                  
ffc0a184:	48 00 00 18 	b       ffc0a19c <rtems_mkdir+0x178>           
        *p = '/';                                                     
  }                                                                   
  if (!first && !last)                                                
ffc0a188:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
    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;                                                 
ffc0a18c:	3b c0 00 00 	li      r30,0                                  
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
  }                                                                   
  if (!first && !last)                                                
ffc0a190:	40 be 00 0c 	bne+    cr7,ffc0a19c <rtems_mkdir+0x178>       <== ALWAYS TAKEN
    (void)umask(oumask);                                              
ffc0a194:	7f 83 e3 78 	mr      r3,r28                                 
ffc0a198:	48 00 29 c5 	bl      ffc0cb5c <umask>                       
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
                                                                      
  if (dup_path != NULL) {                                             
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
ffc0a19c:	7f a3 eb 78 	mr      r3,r29                                 
ffc0a1a0:	4b ff e9 75 	bl      ffc08b14 <free>                        
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
ffc0a1a4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0a1a8:	41 be fe 9c 	beq-    cr7,ffc0a044 <rtems_mkdir+0x20>        
ffc0a1ac:	38 60 00 00 	li      r3,0                                   
ffc0a1b0:	48 00 00 0c 	b       ffc0a1bc <rtems_mkdir+0x198>           
            errno = ENOTDIR;                                          
          retval = 0;                                                 
          break;                                                      
        }                                                             
        if (last)                                                     
          retval = 2;                                                 
ffc0a1b4:	3b c0 00 02 	li      r30,2                                  
ffc0a1b8:	4b ff ff e4 	b       ffc0a19c <rtems_mkdir+0x178>           
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
}                                                                     
ffc0a1bc:	39 61 00 78 	addi    r11,r1,120                             
ffc0a1c0:	4b ff 73 94 	b       ffc01554 <_restgpr_25_x>               
                                                                      

ffc044c0 <rtems_panic>: void rtems_panic( const char *printf_format, ... ) {
ffc044c0:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc044c4:	7c 08 02 a6 	mflr    r0                                     
ffc044c8:	90 81 00 1c 	stw     r4,28(r1)                              
ffc044cc:	90 01 00 7c 	stw     r0,124(r1)                             
ffc044d0:	90 a1 00 20 	stw     r5,32(r1)                              
ffc044d4:	90 c1 00 24 	stw     r6,36(r1)                              
ffc044d8:	90 e1 00 28 	stw     r7,40(r1)                              
ffc044dc:	91 01 00 2c 	stw     r8,44(r1)                              
ffc044e0:	91 21 00 30 	stw     r9,48(r1)                              
ffc044e4:	91 41 00 34 	stw     r10,52(r1)                             
ffc044e8:	40 86 00 24 	bne-    cr1,ffc0450c <rtems_panic+0x4c>        <== ALWAYS TAKEN
ffc044ec:	d8 21 00 38 	stfd    f1,56(r1)                              <== NOT EXECUTED
ffc044f0:	d8 41 00 40 	stfd    f2,64(r1)                              <== NOT EXECUTED
ffc044f4:	d8 61 00 48 	stfd    f3,72(r1)                              <== NOT EXECUTED
ffc044f8:	d8 81 00 50 	stfd    f4,80(r1)                              <== NOT EXECUTED
ffc044fc:	d8 a1 00 58 	stfd    f5,88(r1)                              <== NOT EXECUTED
ffc04500:	d8 c1 00 60 	stfd    f6,96(r1)                              <== NOT EXECUTED
ffc04504:	d8 e1 00 68 	stfd    f7,104(r1)                             <== NOT EXECUTED
ffc04508:	d9 01 00 70 	stfd    f8,112(r1)                             <== NOT EXECUTED
  va_list arglist;                                                    
                                                                      
  va_start(arglist, printf_format);                                   
ffc0450c:	39 20 00 01 	li      r9,1                                   
ffc04510:	99 21 00 08 	stb     r9,8(r1)                               
ffc04514:	39 20 00 00 	li      r9,0                                   
                                                                      
void rtems_panic(                                                     
  const char *printf_format,                                          
  ...                                                                 
)                                                                     
{                                                                     
ffc04518:	7c 64 1b 78 	mr      r4,r3                                  
  va_list arglist;                                                    
                                                                      
  va_start(arglist, printf_format);                                   
ffc0451c:	99 21 00 09 	stb     r9,9(r1)                               
ffc04520:	39 21 00 80 	addi    r9,r1,128                              
  (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);     
ffc04524:	38 a1 00 08 	addi    r5,r1,8                                
  ...                                                                 
)                                                                     
{                                                                     
  va_list arglist;                                                    
                                                                      
  va_start(arglist, printf_format);                                   
ffc04528:	91 21 00 0c 	stw     r9,12(r1)                              
  (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);     
ffc0452c:	3c 60 20 00 	lis     r3,8192                                
  ...                                                                 
)                                                                     
{                                                                     
  va_list arglist;                                                    
                                                                      
  va_start(arglist, printf_format);                                   
ffc04530:	39 21 00 18 	addi    r9,r1,24                               
ffc04534:	91 21 00 10 	stw     r9,16(r1)                              
  (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);     
ffc04538:	4b ff fd 35 	bl      ffc0426c <rtems_verror>                
  va_end(arglist);                                                    
                                                                      
  rtems_error(0, "fatal error, exiting");                             
ffc0453c:	3c 80 ff c2 	lis     r4,-62                                 
ffc04540:	38 84 bb 73 	addi    r4,r4,-17549                           
ffc04544:	38 60 00 00 	li      r3,0                                   
ffc04548:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0454c:	4b ff fe a5 	bl      ffc043f0 <rtems_error>                 
  _exit(errno);                                                       
ffc04550:	48 00 b2 e9 	bl      ffc0f838 <__errno>                     
ffc04554:	80 63 00 00 	lwz     r3,0(r3)                               
ffc04558:	48 00 09 55 	bl      ffc04eac <_exit>                       
                                                                      

ffc1705c <rtems_partition_create>: uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) {
ffc1705c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc17060:	7c 08 02 a6 	mflr    r0                                     
ffc17064:	bf 21 00 14 	stmw    r25,20(r1)                             
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
ffc17068:	7c 7b 1b 79 	mr.     r27,r3                                 
  uint32_t         length,                                            
  uint32_t         buffer_size,                                       
  rtems_attribute  attribute_set,                                     
  rtems_id        *id                                                 
)                                                                     
{                                                                     
ffc1706c:	90 01 00 34 	stw     r0,52(r1)                              
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
ffc17070:	41 a2 00 dc 	beq+    ffc1714c <rtems_partition_create+0xf0> 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
ffc17074:	2f 84 00 00 	cmpwi   cr7,r4,0                               
    return RTEMS_INVALID_ADDRESS;                                     
ffc17078:	38 60 00 09 	li      r3,9                                   
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
ffc1707c:	41 9e 00 d4 	beq-    cr7,ffc17150 <rtems_partition_create+0xf4>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
ffc17080:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc17084:	7d 1c 43 78 	mr      r28,r8                                 
ffc17088:	41 9e 00 c8 	beq-    cr7,ffc17150 <rtems_partition_create+0xf4><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
ffc1708c:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc17090:	7c be 2b 78 	mr      r30,r5                                 
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
ffc17094:	38 60 00 08 	li      r3,8                                   
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
ffc17098:	41 be 00 b8 	beq+    cr7,ffc17150 <rtems_partition_create+0xf4>
ffc1709c:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc170a0:	41 be 00 b0 	beq+    cr7,ffc17150 <rtems_partition_create+0xf4>
ffc170a4:	7f 85 30 40 	cmplw   cr7,r5,r6                              
ffc170a8:	41 bc 00 a8 	blt+    cr7,ffc17150 <rtems_partition_create+0xf4>
ffc170ac:	70 c9 00 07 	andi.   r9,r6,7                                
ffc170b0:	40 a2 00 a0 	bne+    ffc17150 <rtems_partition_create+0xf4> 
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
ffc170b4:	70 99 00 07 	andi.   r25,r4,7                               
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
    return RTEMS_INVALID_ADDRESS;                                     
ffc170b8:	38 60 00 09 	li      r3,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 ) )                   
ffc170bc:	40 a2 00 94 	bne+    ffc17150 <rtems_partition_create+0xf4> 
   *                                                                  
   * 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;                  
ffc170c0:	3d 20 00 00 	lis     r9,0                                   
ffc170c4:	81 49 28 f8 	lwz     r10,10488(r9)                          
ffc170c8:	7c fa 3b 78 	mr      r26,r7                                 
                                                                      
    ++level;                                                          
ffc170cc:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc170d0:	91 49 28 f8 	stw     r10,10488(r9)                          
 *  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 );
ffc170d4:	3f a0 00 00 	lis     r29,0                                  
ffc170d8:	90 81 00 08 	stw     r4,8(r1)                               
ffc170dc:	3b bd 6e b0 	addi    r29,r29,28336                          
ffc170e0:	7f a3 eb 78 	mr      r3,r29                                 
ffc170e4:	90 c1 00 0c 	stw     r6,12(r1)                              
ffc170e8:	48 00 51 11 	bl      ffc1c1f8 <_Objects_Allocate>           
                                                                      
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
ffc170ec:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc170f0:	80 81 00 08 	lwz     r4,8(r1)                               
ffc170f4:	80 c1 00 0c 	lwz     r6,12(r1)                              
ffc170f8:	40 a2 00 10 	bne+    ffc17108 <rtems_partition_create+0xac> 
    _Thread_Enable_dispatch();                                        
ffc170fc:	48 00 64 e9 	bl      ffc1d5e4 <_Thread_Enable_dispatch>     
    return RTEMS_TOO_MANY;                                            
ffc17100:	38 60 00 05 	li      r3,5                                   
ffc17104:	48 00 00 4c 	b       ffc17150 <rtems_partition_create+0xf4> 
  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,        
ffc17108:	7c be 33 96 	divwu   r5,r30,r6                              
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
ffc1710c:	90 9f 00 10 	stw     r4,16(r31)                             
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
ffc17110:	90 df 00 18 	stw     r6,24(r31)                             
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
  the_partition->length                = length;                      
ffc17114:	93 df 00 14 	stw     r30,20(r31)                            
  the_partition->buffer_size           = buffer_size;                 
  the_partition->attribute_set         = attribute_set;               
ffc17118:	93 5f 00 1c 	stw     r26,28(r31)                            
  the_partition->number_of_used_blocks = 0;                           
ffc1711c:	93 3f 00 20 	stw     r25,32(r31)                            
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
ffc17120:	38 7f 00 24 	addi    r3,r31,36                              
ffc17124:	48 00 38 25 	bl      ffc1a948 <_Chain_Initialize>           
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
ffc17128:	81 3f 00 08 	lwz     r9,8(r31)                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc1712c:	81 1d 00 1c 	lwz     r8,28(r29)                             
ffc17130:	55 2a 13 ba 	rlwinm  r10,r9,2,14,29                         
ffc17134:	7f e8 51 2e 	stwx    r31,r8,r10                             
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
ffc17138:	93 7f 00 0c 	stw     r27,12(r31)                            
    &_Partition_Information,                                          
    &the_partition->Object,                                           
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_partition->Object.id;                                     
ffc1713c:	91 3c 00 00 	stw     r9,0(r28)                              
      name,                                                           
      0                  /* Not used */                               
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
ffc17140:	48 00 64 a5 	bl      ffc1d5e4 <_Thread_Enable_dispatch>     
  return RTEMS_SUCCESSFUL;                                            
ffc17144:	38 60 00 00 	li      r3,0                                   
ffc17148:	48 00 00 08 	b       ffc17150 <rtems_partition_create+0xf4> 
)                                                                     
{                                                                     
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
ffc1714c:	38 60 00 03 	li      r3,3                                   
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc17150:	39 61 00 30 	addi    r11,r1,48                              
ffc17154:	4b ff 72 50 	b       ffc0e3a4 <_restgpr_25_x>               
                                                                      

ffc08250 <rtems_printf_plugin>: #include <rtems/bspIo.h> #include <stdio.h> int rtems_printf_plugin(void *context, const char *format, ...) {
ffc08250:	94 21 ff 90 	stwu    r1,-112(r1)                            
ffc08254:	7c 08 02 a6 	mflr    r0                                     
ffc08258:	90 a1 00 18 	stw     r5,24(r1)                              
ffc0825c:	90 01 00 74 	stw     r0,116(r1)                             
ffc08260:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc08264:	90 e1 00 20 	stw     r7,32(r1)                              
ffc08268:	91 01 00 24 	stw     r8,36(r1)                              
ffc0826c:	91 21 00 28 	stw     r9,40(r1)                              
ffc08270:	91 41 00 2c 	stw     r10,44(r1)                             
ffc08274:	40 86 00 24 	bne-    cr1,ffc08298 <rtems_printf_plugin+0x48><== ALWAYS TAKEN
ffc08278:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc0827c:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc08280:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc08284:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc08288:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc0828c:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc08290:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc08294:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  int rv;                                                             
  va_list ap;                                                         
                                                                      
  va_start(ap, format);                                               
ffc08298:	39 20 00 02 	li      r9,2                                   
ffc0829c:	99 21 00 08 	stb     r9,8(r1)                               
ffc082a0:	39 20 00 00 	li      r9,0                                   
  rv = vprintf(format, ap);                                           
ffc082a4:	7c 83 23 78 	mr      r3,r4                                  
int rtems_printf_plugin(void *context, const char *format, ...)       
{                                                                     
  int rv;                                                             
  va_list ap;                                                         
                                                                      
  va_start(ap, format);                                               
ffc082a8:	99 21 00 09 	stb     r9,9(r1)                               
ffc082ac:	39 21 00 78 	addi    r9,r1,120                              
  rv = vprintf(format, ap);                                           
ffc082b0:	38 81 00 08 	addi    r4,r1,8                                
int rtems_printf_plugin(void *context, const char *format, ...)       
{                                                                     
  int rv;                                                             
  va_list ap;                                                         
                                                                      
  va_start(ap, format);                                               
ffc082b4:	91 21 00 0c 	stw     r9,12(r1)                              
ffc082b8:	39 21 00 10 	addi    r9,r1,16                               
ffc082bc:	91 21 00 10 	stw     r9,16(r1)                              
  rv = vprintf(format, ap);                                           
ffc082c0:	48 00 d4 95 	bl      ffc15754 <vprintf>                     
  va_end(ap);                                                         
                                                                      
  return rv;                                                          
}                                                                     
ffc082c4:	80 01 00 74 	lwz     r0,116(r1)                             
ffc082c8:	38 21 00 70 	addi    r1,r1,112                              
ffc082cc:	7c 08 03 a6 	mtlr    r0                                     
ffc082d0:	4e 80 00 20 	blr                                            
                                                                      

ffc33b80 <rtems_rate_monotonic_period>: rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) {
ffc33b80:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc33b84:	7c 08 02 a6 	mflr    r0                                     
ffc33b88:	bf 81 00 18 	stmw    r28,24(r1)                             
ffc33b8c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc33b90:	3c 60 00 00 	lis     r3,0                                   
ffc33b94:	7c 9d 23 78 	mr      r29,r4                                 
ffc33b98:	90 01 00 2c 	stw     r0,44(r1)                              
ffc33b9c:	38 63 67 e0 	addi    r3,r3,26592                            
ffc33ba0:	7f c4 f3 78 	mr      r4,r30                                 
ffc33ba4:	38 a1 00 08 	addi    r5,r1,8                                
ffc33ba8:	4b fd 5f fd 	bl      ffc09ba4 <_Objects_Get>                
  rtems_rate_monotonic_period_states   local_state;                   
  ISR_Level                            level;                         
                                                                      
  the_period = _Rate_monotonic_Get( id, &location );                  
                                                                      
  switch ( location ) {                                               
ffc33bac:	81 21 00 08 	lwz     r9,8(r1)                               
ffc33bb0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc33bb4:	40 9e 01 8c 	bne-    cr7,ffc33d40 <rtems_rate_monotonic_period+0x1c0>
    case OBJECTS_LOCAL:                                               
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
ffc33bb8:	3d 40 00 00 	lis     r10,0                                  
ffc33bbc:	81 23 00 40 	lwz     r9,64(r3)                              
ffc33bc0:	81 4a 65 70 	lwz     r10,25968(r10)                         
ffc33bc4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc33bc8:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc33bcc:	41 9e 00 10 	beq-    cr7,ffc33bdc <rtems_rate_monotonic_period+0x5c>
        _Thread_Enable_dispatch();                                    
ffc33bd0:	4b fd 6d ed 	bl      ffc0a9bc <_Thread_Enable_dispatch>     
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
ffc33bd4:	3b c0 00 17 	li      r30,23                                 
ffc33bd8:	48 00 01 6c 	b       ffc33d44 <rtems_rate_monotonic_period+0x1c4>
      }                                                               
                                                                      
      if ( length == RTEMS_PERIOD_STATUS ) {                          
ffc33bdc:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc33be0:	40 9e 00 28 	bne-    cr7,ffc33c08 <rtems_rate_monotonic_period+0x88>
        switch ( the_period->state ) {                                
ffc33be4:	81 23 00 38 	lwz     r9,56(r3)                              
ffc33be8:	3b c0 00 00 	li      r30,0                                  
ffc33bec:	2b 89 00 04 	cmplwi  cr7,r9,4                               
ffc33bf0:	41 9d 00 10 	bgt-    cr7,ffc33c00 <rtems_rate_monotonic_period+0x80><== NEVER TAKEN
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc33bf4:	3d 40 ff c6 	lis     r10,-58                                
ffc33bf8:	39 4a d0 20 	addi    r10,r10,-12256                         
ffc33bfc:	7f ca 48 ae 	lbzx    r30,r10,r9                             
          case RATE_MONOTONIC_ACTIVE:                                 
          default:              /* unreached -- only to remove warnings */
            return_value = RTEMS_SUCCESSFUL;                          
            break;                                                    
        }                                                             
        _Thread_Enable_dispatch();                                    
ffc33c00:	4b fd 6d bd 	bl      ffc0a9bc <_Thread_Enable_dispatch>     
ffc33c04:	48 00 01 40 	b       ffc33d44 <rtems_rate_monotonic_period+0x1c4>
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc33c08:	7f 80 00 a6 	mfmsr   r28                                    
ffc33c0c:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc33c10:	7f 89 48 78 	andc    r9,r28,r9                              
ffc33c14:	7d 20 01 24 	mtmsr   r9                                     
        return( return_value );                                       
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
ffc33c18:	81 23 00 38 	lwz     r9,56(r3)                              
ffc33c1c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc33c20:	40 be 00 4c 	bne+    cr7,ffc33c6c <rtems_rate_monotonic_period+0xec>
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc33c24:	7f 80 01 24 	mtmsr   r28                                    
        _ISR_Enable( level );                                         
                                                                      
        the_period->next_length = length;                             
ffc33c28:	93 a3 00 3c 	stw     r29,60(r3)                             
                                                                      
        /*                                                            
         *  Baseline statistics information for the beginning of a period.
         */                                                           
        _Rate_monotonic_Initiate_statistics( the_period );            
ffc33c2c:	4b ff fe b9 	bl      ffc33ae4 <_Rate_monotonic_Initiate_statistics>
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
ffc33c30:	39 20 00 02 	li      r9,2                                   
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
ffc33c34:	3d 40 ff c3 	lis     r10,-61                                
ffc33c38:	91 3f 00 38 	stw     r9,56(r31)                             
ffc33c3c:	39 4a 3d 50 	addi    r10,r10,15696                          
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc33c40:	39 20 00 00 	li      r9,0                                   
  the_watchdog->routine   = routine;                                  
ffc33c44:	91 5f 00 2c 	stw     r10,44(r31)                            
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc33c48:	3c 60 00 00 	lis     r3,0                                   
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc33c4c:	91 3f 00 18 	stw     r9,24(r31)                             
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc33c50:	38 63 64 88 	addi    r3,r3,25736                            
ffc33c54:	38 9f 00 10 	addi    r4,r31,16                              
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
ffc33c58:	93 df 00 30 	stw     r30,48(r31)                            
  the_watchdog->user_data = user_data;                                
ffc33c5c:	91 3f 00 34 	stw     r9,52(r31)                             
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc33c60:	93 bf 00 1c 	stw     r29,28(r31)                            
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc33c64:	4b fd 7a 81 	bl      ffc0b6e4 <_Watchdog_Insert>            
ffc33c68:	48 00 00 74 	b       ffc33cdc <rtems_rate_monotonic_period+0x15c>
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {             
ffc33c6c:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc33c70:	40 be 00 78 	bne+    cr7,ffc33ce8 <rtems_rate_monotonic_period+0x168>
        /*                                                            
         *  Update statistics from the concluding period.             
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
ffc33c74:	4b ff fd 45 	bl      ffc339b8 <_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;         
ffc33c78:	39 20 00 01 	li      r9,1                                   
ffc33c7c:	91 3f 00 38 	stw     r9,56(r31)                             
        the_period->next_length = length;                             
ffc33c80:	93 bf 00 3c 	stw     r29,60(r31)                            
ffc33c84:	7f 80 01 24 	mtmsr   r28                                    
                                                                      
        _ISR_Enable( level );                                         
                                                                      
        _Thread_Executing->Wait.id = the_period->Object.id;           
ffc33c88:	3d 20 00 00 	lis     r9,0                                   
ffc33c8c:	80 69 65 70 	lwz     r3,25968(r9)                           
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc33c90:	38 80 40 00 	li      r4,16384                               
        the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;         
        the_period->next_length = length;                             
                                                                      
        _ISR_Enable( level );                                         
                                                                      
        _Thread_Executing->Wait.id = the_period->Object.id;           
ffc33c94:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc33c98:	91 23 00 20 	stw     r9,32(r3)                              
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc33c9c:	4b fd 76 45 	bl      ffc0b2e0 <_Thread_Set_state>           
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc33ca0:	7d 40 00 a6 	mfmsr   r10                                    
ffc33ca4:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc33ca8:	7d 49 48 78 	andc    r9,r10,r9                              
ffc33cac:	7d 20 01 24 	mtmsr   r9                                     
         *  Did the watchdog timer expire while we were actually blocking
         *  on it?                                                    
         */                                                           
        _ISR_Disable( level );                                        
          local_state = the_period->state;                            
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
ffc33cb0:	39 00 00 02 	li      r8,2                                   
        /*                                                            
         *  Did the watchdog timer expire while we were actually blocking
         *  on it?                                                    
         */                                                           
        _ISR_Disable( level );                                        
          local_state = the_period->state;                            
ffc33cb4:	81 3f 00 38 	lwz     r9,56(r31)                             
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
ffc33cb8:	91 1f 00 38 	stw     r8,56(r31)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc33cbc:	7d 40 01 24 	mtmsr   r10                                    
                                                                      
        /*                                                            
         *  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 )   
ffc33cc0:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc33cc4:	40 be 00 18 	bne+    cr7,ffc33cdc <rtems_rate_monotonic_period+0x15c><== ALWAYS TAKEN
          _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc33cc8:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
ffc33ccc:	39 29 65 60 	addi    r9,r9,25952                            <== NOT EXECUTED
ffc33cd0:	80 69 00 10 	lwz     r3,16(r9)                              <== NOT EXECUTED
ffc33cd4:	38 80 40 00 	li      r4,16384                               <== NOT EXECUTED
ffc33cd8:	4b fd 68 c5 	bl      ffc0a59c <_Thread_Clear_state>         <== NOT EXECUTED
                                                                      
        _Thread_Enable_dispatch();                                    
ffc33cdc:	4b fd 6c e1 	bl      ffc0a9bc <_Thread_Enable_dispatch>     
        return RTEMS_SUCCESSFUL;                                      
ffc33ce0:	3b c0 00 00 	li      r30,0                                  
ffc33ce4:	48 00 00 60 	b       ffc33d44 <rtems_rate_monotonic_period+0x1c4>
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {            
ffc33ce8:	2f 89 00 04 	cmpwi   cr7,r9,4                               
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc33cec:	3b c0 00 04 	li      r30,4                                  
                                                                      
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {            
ffc33cf0:	40 be 00 54 	bne+    cr7,ffc33d44 <rtems_rate_monotonic_period+0x1c4><== NEVER TAKEN
        /*                                                            
         *  Update statistics from the concluding period              
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
ffc33cf4:	4b ff fc c5 	bl      ffc339b8 <_Rate_monotonic_Update_statistics>
ffc33cf8:	7f 80 01 24 	mtmsr   r28                                    
                                                                      
        _ISR_Enable( level );                                         
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
ffc33cfc:	39 20 00 02 	li      r9,2                                   
        the_period->next_length = length;                             
ffc33d00:	93 bf 00 3c 	stw     r29,60(r31)                            
ffc33d04:	3c 60 00 00 	lis     r3,0                                   
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
                                                                      
        _ISR_Enable( level );                                         
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
ffc33d08:	91 3f 00 38 	stw     r9,56(r31)                             
ffc33d0c:	38 63 64 88 	addi    r3,r3,25736                            
ffc33d10:	38 9f 00 10 	addi    r4,r31,16                              
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc33d14:	93 bf 00 1c 	stw     r29,28(r31)                            
        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();                                    
        return RTEMS_TIMEOUT;                                         
ffc33d18:	3b c0 00 06 	li      r30,6                                  
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc33d1c:	4b fd 79 c9 	bl      ffc0b6e4 <_Watchdog_Insert>            
ffc33d20:	3d 20 00 00 	lis     r9,0                                   
ffc33d24:	81 29 20 c0 	lwz     r9,8384(r9)                            
ffc33d28:	80 7f 00 40 	lwz     r3,64(r31)                             
ffc33d2c:	80 9f 00 3c 	lwz     r4,60(r31)                             
ffc33d30:	7d 29 03 a6 	mtctr   r9                                     
ffc33d34:	4e 80 04 21 	bctrl                                          
        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();                                    
ffc33d38:	4b fd 6c 85 	bl      ffc0a9bc <_Thread_Enable_dispatch>     
ffc33d3c:	48 00 00 08 	b       ffc33d44 <rtems_rate_monotonic_period+0x1c4>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc33d40:	3b c0 00 04 	li      r30,4                                  
}                                                                     
ffc33d44:	39 61 00 28 	addi    r11,r1,40                              
ffc33d48:	7f c3 f3 78 	mr      r3,r30                                 
ffc33d4c:	48 01 fa a4 	b       ffc537f0 <_restgpr_28_x>               
                                                                      

ffc26b58 <rtems_rate_monotonic_report_statistics_with_plugin>: void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) {
ffc26b58:	94 21 ff 70 	stwu    r1,-144(r1)                            
ffc26b5c:	7c 08 02 a6 	mflr    r0                                     
ffc26b60:	be e1 00 6c 	stmw    r23,108(r1)                            
  rtems_id                               id;                          
  rtems_rate_monotonic_period_statistics the_stats;                   
  rtems_rate_monotonic_period_status     the_status;                  
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
ffc26b64:	7c 9f 23 79 	mr.     r31,r4                                 
                                                                      
void rtems_rate_monotonic_report_statistics_with_plugin(              
  void                  *context,                                     
  rtems_printk_plugin_t  print                                        
)                                                                     
{                                                                     
ffc26b68:	90 01 00 94 	stw     r0,148(r1)                             
  rtems_id                               id;                          
  rtems_rate_monotonic_period_statistics the_stats;                   
  rtems_rate_monotonic_period_status     the_status;                  
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
ffc26b6c:	41 82 01 cc 	beq-    ffc26d38 <rtems_rate_monotonic_report_statistics_with_plugin+0x1e0><== NEVER TAKEN
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
ffc26b70:	3c 80 ff c6 	lis     r4,-58                                 
ffc26b74:	7f e9 03 a6 	mtctr   r31                                    
ffc26b78:	38 84 a4 60 	addi    r4,r4,-23456                           
ffc26b7c:	7c 7e 1b 78 	mr      r30,r3                                 
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
ffc26b80:	3f 40 ff c6 	lis     r26,-58                                
      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,                                              
ffc26b84:	3f 20 ff c6 	lis     r25,-58                                
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
ffc26b88:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc26b8c:	4e 80 04 21 	bctrl                                          
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
ffc26b90:	3c 80 ff c6 	lis     r4,-58                                 
ffc26b94:	38 84 a4 7e 	addi    r4,r4,-23426                           
ffc26b98:	7f e9 03 a6 	mtctr   r31                                    
ffc26b9c:	7f c3 f3 78 	mr      r3,r30                                 
      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,                                              
ffc26ba0:	3f 00 ff c6 	lis     r24,-58                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
ffc26ba4:	3e e0 ff c5 	lis     r23,-59                                
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
ffc26ba8:	3b 5a a5 5a 	addi    r26,r26,-23206                         
  if ( !print )                                                       
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
ffc26bac:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc26bb0:	4e 80 04 21 	bctrl                                          
    (*print)( context, "--- Wall times are in seconds ---\n" );       
ffc26bb4:	3c 80 ff c6 	lis     r4,-58                                 
ffc26bb8:	38 84 a4 a0 	addi    r4,r4,-23392                           
ffc26bbc:	7f e9 03 a6 	mtctr   r31                                    
ffc26bc0:	7f c3 f3 78 	mr      r3,r30                                 
      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,                                              
ffc26bc4:	3b 39 a5 71 	addi    r25,r25,-23183                         
      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,                                              
ffc26bc8:	3b 18 a5 90 	addi    r24,r24,-23152                         
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
ffc26bcc:	3a f7 4f ea 	addi    r23,r23,20458                          
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
    (*print)( context, "--- Wall times are in seconds ---\n" );       
ffc26bd0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc26bd4:	4e 80 04 21 	bctrl                                          
  Be sure to test the various cases.                                  
  (*print)( context,"\                                                
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");                                                                 
*/                                                                    
  (*print)( context, "   ID     OWNER COUNT MISSED     "              
ffc26bd8:	3c 80 ff c6 	lis     r4,-58                                 
ffc26bdc:	38 84 a4 c3 	addi    r4,r4,-23357                           
ffc26be0:	7f e9 03 a6 	mtctr   r31                                    
ffc26be4:	7f c3 f3 78 	mr      r3,r30                                 
ffc26be8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc26bec:	4e 80 04 21 	bctrl                                          
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
ffc26bf0:	3c 80 ff c6 	lis     r4,-58                                 
ffc26bf4:	7f c3 f3 78 	mr      r3,r30                                 
ffc26bf8:	7f e9 03 a6 	mtctr   r31                                    
ffc26bfc:	38 84 a5 0e 	addi    r4,r4,-23282                           
ffc26c00:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc26c04:	4e 80 04 21 	bctrl                                          
                                                                      
  /*                                                                  
   * 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 ;                   
ffc26c08:	3d 20 00 00 	lis     r9,0                                   
ffc26c0c:	39 49 67 e0 	addi    r10,r9,26592                           
ffc26c10:	83 aa 00 08 	lwz     r29,8(r10)                             
        id <= _Rate_monotonic_Information.maximum_id ;                
ffc26c14:	7d 3b 4b 78 	mr      r27,r9                                 
                                                                      
  /*                                                                  
   * 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 ;                   
ffc26c18:	48 00 01 10 	b       ffc26d28 <rtems_rate_monotonic_report_statistics_with_plugin+0x1d0>
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
ffc26c1c:	7f a3 eb 78 	mr      r3,r29                                 
ffc26c20:	38 81 00 08 	addi    r4,r1,8                                
ffc26c24:	48 00 c9 b5 	bl      ffc335d8 <rtems_rate_monotonic_get_statistics>
    if ( status != RTEMS_SUCCESSFUL )                                 
ffc26c28:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc26c2c:	40 be 00 f8 	bne+    cr7,ffc26d24 <rtems_rate_monotonic_report_statistics_with_plugin+0x1cc>
    #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 );      
ffc26c30:	38 81 00 40 	addi    r4,r1,64                               
ffc26c34:	7f a3 eb 78 	mr      r3,r29                                 
ffc26c38:	48 00 cb 91 	bl      ffc337c8 <rtems_rate_monotonic_get_status>
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
ffc26c3c:	80 61 00 40 	lwz     r3,64(r1)                              
ffc26c40:	38 80 00 05 	li      r4,5                                   
ffc26c44:	38 a1 00 60 	addi    r5,r1,96                               
ffc26c48:	4b fe 8a 69 	bl      ffc0f6b0 <rtems_object_get_name>       
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
ffc26c4c:	7f 44 d3 78 	mr      r4,r26                                 
ffc26c50:	7f c3 f3 78 	mr      r3,r30                                 
ffc26c54:	80 e1 00 08 	lwz     r7,8(r1)                               
ffc26c58:	7f a5 eb 78 	mr      r5,r29                                 
ffc26c5c:	81 01 00 0c 	lwz     r8,12(r1)                              
ffc26c60:	38 c1 00 60 	addi    r6,r1,96                               
ffc26c64:	7f e9 03 a6 	mtctr   r31                                    
ffc26c68:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc26c6c:	4e 80 04 21 	bctrl                                          
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
ffc26c70:	80 81 00 08 	lwz     r4,8(r1)                               
ffc26c74:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc26c78:	40 9e 00 1c 	bne-    cr7,ffc26c94 <rtems_rate_monotonic_report_statistics_with_plugin+0x13c>
      (*print)( context, "\n" );                                      
ffc26c7c:	7f c3 f3 78 	mr      r3,r30                                 
ffc26c80:	7f e9 03 a6 	mtctr   r31                                    
ffc26c84:	7e e4 bb 78 	mr      r4,r23                                 
ffc26c88:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc26c8c:	4e 80 04 21 	bctrl                                          
      continue;                                                       
ffc26c90:	48 00 00 94 	b       ffc26d24 <rtems_rate_monotonic_report_statistics_with_plugin+0x1cc>
      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 );
ffc26c94:	38 61 00 20 	addi    r3,r1,32                               
ffc26c98:	38 a1 00 58 	addi    r5,r1,88                               
ffc26c9c:	48 00 0c a9 	bl      ffc27944 <_Timespec_Divide_by_integer> 
      (*print)( context,                                              
ffc26ca0:	80 c1 00 14 	lwz     r6,20(r1)                              
ffc26ca4:	81 01 00 1c 	lwz     r8,28(r1)                              
ffc26ca8:	3b 80 03 e8 	li      r28,1000                               
ffc26cac:	81 41 00 5c 	lwz     r10,92(r1)                             
ffc26cb0:	7c c6 e3 d6 	divw    r6,r6,r28                              
ffc26cb4:	80 e1 00 18 	lwz     r7,24(r1)                              
ffc26cb8:	7f e9 03 a6 	mtctr   r31                                    
ffc26cbc:	81 21 00 58 	lwz     r9,88(r1)                              
ffc26cc0:	80 a1 00 10 	lwz     r5,16(r1)                              
ffc26cc4:	7d 08 e3 d6 	divw    r8,r8,r28                              
ffc26cc8:	7d 4a e3 d6 	divw    r10,r10,r28                            
ffc26ccc:	7f 24 cb 78 	mr      r4,r25                                 
ffc26cd0:	7f c3 f3 78 	mr      r3,r30                                 
ffc26cd4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc26cd8:	4e 80 04 21 	bctrl                                          
      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);
ffc26cdc:	80 81 00 08 	lwz     r4,8(r1)                               
ffc26ce0:	38 61 00 38 	addi    r3,r1,56                               
ffc26ce4:	38 a1 00 58 	addi    r5,r1,88                               
ffc26ce8:	48 00 0c 5d 	bl      ffc27944 <_Timespec_Divide_by_integer> 
      (*print)( context,                                              
ffc26cec:	80 c1 00 2c 	lwz     r6,44(r1)                              
ffc26cf0:	81 01 00 34 	lwz     r8,52(r1)                              
ffc26cf4:	7f c3 f3 78 	mr      r3,r30                                 
ffc26cf8:	81 41 00 5c 	lwz     r10,92(r1)                             
ffc26cfc:	7f 04 c3 78 	mr      r4,r24                                 
ffc26d00:	80 a1 00 28 	lwz     r5,40(r1)                              
ffc26d04:	7c c6 e3 d6 	divw    r6,r6,r28                              
ffc26d08:	80 e1 00 30 	lwz     r7,48(r1)                              
ffc26d0c:	7f e9 03 a6 	mtctr   r31                                    
ffc26d10:	81 21 00 58 	lwz     r9,88(r1)                              
ffc26d14:	7d 08 e3 d6 	divw    r8,r8,r28                              
ffc26d18:	7d 4a e3 d6 	divw    r10,r10,r28                            
ffc26d1c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc26d20:	4e 80 04 21 	bctrl                                          
   * 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++ ) {                                                      
ffc26d24:	3b bd 00 01 	addi    r29,r29,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 ;                   
        id <= _Rate_monotonic_Information.maximum_id ;                
ffc26d28:	39 3b 67 e0 	addi    r9,r27,26592                           
                                                                      
  /*                                                                  
   * 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 ;                   
ffc26d2c:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc26d30:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc26d34:	40 9d fe e8 	ble+    cr7,ffc26c1c <rtems_rate_monotonic_report_statistics_with_plugin+0xc4>
        the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
      );                                                              
    #endif                                                            
    }                                                                 
  }                                                                   
}                                                                     
ffc26d38:	39 61 00 90 	addi    r11,r1,144                             
ffc26d3c:	48 02 ca a0 	b       ffc537dc <_restgpr_23_x>               
                                                                      

ffc0970c <rtems_rbheap_allocate>: return big_enough; } void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size) {
ffc0970c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc09710:	7c 08 02 a6 	mflr    r0                                     
ffc09714:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc09718:	90 01 00 24 	stw     r0,36(r1)                              
  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;                           
ffc0971c:	81 23 00 30 	lwz     r9,48(r3)                              
                                                                      
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
ffc09720:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc09724:	7c 7c 1b 78 	mr      r28,r3                                 
                                                                      
#include <stdlib.h>                                                   
                                                                      
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
ffc09728:	7f a4 4b 96 	divwu   r29,r4,r9                              
ffc0972c:	7f bd 49 d6 	mullw   r29,r29,r9                             
                                                                      
  if (excess > 0) {                                                   
ffc09730:	7d 5d 20 51 	subf.   r10,r29,r4                             
ffc09734:	41 82 00 dc 	beq-    ffc09810 <rtems_rbheap_allocate+0x104> <== ALWAYS TAKEN
    value += alignment - excess;                                      
ffc09738:	7f a4 4a 14 	add     r29,r4,r9                              <== NOT EXECUTED
ffc0973c:	7f aa e8 50 	subf    r29,r10,r29                            <== 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) {                             
ffc09740:	40 be 00 0c 	bne+    cr7,ffc0974c <rtems_rbheap_allocate+0x40><== NOT EXECUTED
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
  void *ptr = NULL;                                                   
ffc09744:	38 60 00 00 	li      r3,0                                   
ffc09748:	48 00 00 d0 	b       ffc09818 <rtems_rbheap_allocate+0x10c> 
  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) {                             
ffc0974c:	7f 84 e8 40 	cmplw   cr7,r4,r29                             <== NOT EXECUTED
ffc09750:	40 bd 00 0c 	ble+    cr7,ffc0975c <rtems_rbheap_allocate+0x50><== NOT EXECUTED
ffc09754:	4b ff ff f0 	b       ffc09744 <rtems_rbheap_allocate+0x38>  <== NOT EXECUTED
ffc09758:	7c 9d 23 78 	mr      r29,r4                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc0975c:	81 3c 00 00 	lwz     r9,0(r28)                              
  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);        
ffc09760:	39 1c 00 04 	addi    r8,r28,4                               
  rtems_rbheap_chunk *big_enough = NULL;                              
ffc09764:	3b e0 00 00 	li      r31,0                                  
ffc09768:	48 00 00 18 	b       ffc09780 <rtems_rbheap_allocate+0x74>  
                                                                      
  while (current != tail && big_enough == NULL) {                     
    rtems_rbheap_chunk *free_chunk = (rtems_rbheap_chunk *) current;  
                                                                      
    if (free_chunk->size >= size) {                                   
ffc0976c:	81 49 00 1c 	lwz     r10,28(r9)                             
ffc09770:	7f 8a e8 40 	cmplw   cr7,r10,r29                            
ffc09774:	41 9c 00 08 	blt-    cr7,ffc0977c <rtems_rbheap_allocate+0x70>
ffc09778:	7d 3f 4b 78 	mr      r31,r9                                 
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
                                                                      
  if (chunk != NULL) {                                                
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
ffc0977c:	81 29 00 00 	lwz     r9,0(r9)                               
{                                                                     
  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) {                     
ffc09780:	7f 09 40 00 	cmpw    cr6,r9,r8                              
ffc09784:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc09788:	40 ba 00 0c 	bne+    cr6,ffc09794 <rtems_rbheap_allocate+0x88>
  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) {                                         
ffc0978c:	40 be 00 0c 	bne+    cr7,ffc09798 <rtems_rbheap_allocate+0x8c>
ffc09790:	4b ff ff b4 	b       ffc09744 <rtems_rbheap_allocate+0x38>  
{                                                                     
  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) {                     
ffc09794:	41 9e ff d8 	beq+    cr7,ffc0976c <rtems_rbheap_allocate+0x60><== ALWAYS TAKEN
                                                                      
  if (size > 0 && size <= aligned_size) {                             
    rtems_rbheap_chunk *free_chunk = search_free_chunk(free_chain, aligned_size);
                                                                      
    if (free_chunk != NULL) {                                         
      uintptr_t free_size = free_chunk->size;                         
ffc09798:	83 7f 00 1c 	lwz     r27,28(r31)                            
                                                                      
      if (free_size > aligned_size) {                                 
ffc0979c:	7f 9b e8 40 	cmplw   cr7,r27,r29                            
ffc097a0:	40 9d 00 4c 	ble-    cr7,ffc097ec <rtems_rbheap_allocate+0xe0>
        rtems_rbheap_chunk *new_chunk = get_chunk(control);           
ffc097a4:	7f 83 e3 78 	mr      r3,r28                                 
ffc097a8:	4b ff fd c5 	bl      ffc0956c <get_chunk>                   
                                                                      
        if (new_chunk != NULL) {                                      
ffc097ac:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc097b0:	41 a2 ff 94 	beq-    ffc09744 <rtems_rbheap_allocate+0x38>  <== 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;       
ffc097b4:	81 3f 00 18 	lwz     r9,24(r31)                             
                                                                      
      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;         
ffc097b8:	7f 7d d8 50 	subf    r27,r29,r27                            
                                                                      
          free_chunk->size = new_free_size;                           
ffc097bc:	93 7f 00 1c 	stw     r27,28(r31)                            
static void insert_into_tree(                                         
  rtems_rbtree_control *tree,                                         
  rtems_rbheap_chunk *chunk                                           
)                                                                     
{                                                                     
  _RBTree_Insert_unprotected(tree, &chunk->tree_node);                
ffc097c0:	38 7c 00 18 	addi    r3,r28,24                              
                                                                      
        if (new_chunk != NULL) {                                      
          uintptr_t new_free_size = free_size - aligned_size;         
                                                                      
          free_chunk->size = new_free_size;                           
          new_chunk->begin = free_chunk->begin + new_free_size;       
ffc097c4:	7f 7b 4a 14 	add     r27,r27,r9                             
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc097c8:	39 20 00 00 	li      r9,0                                   
ffc097cc:	93 7e 00 18 	stw     r27,24(r30)                            
static void insert_into_tree(                                         
  rtems_rbtree_control *tree,                                         
  rtems_rbheap_chunk *chunk                                           
)                                                                     
{                                                                     
  _RBTree_Insert_unprotected(tree, &chunk->tree_node);                
ffc097d0:	38 9e 00 08 	addi    r4,r30,8                               
        if (new_chunk != NULL) {                                      
          uintptr_t new_free_size = free_size - aligned_size;         
                                                                      
          free_chunk->size = new_free_size;                           
          new_chunk->begin = free_chunk->begin + new_free_size;       
          new_chunk->size = aligned_size;                             
ffc097d4:	93 be 00 1c 	stw     r29,28(r30)                            
ffc097d8:	91 3e 00 04 	stw     r9,4(r30)                              
ffc097dc:	91 3e 00 00 	stw     r9,0(r30)                              
static void insert_into_tree(                                         
  rtems_rbtree_control *tree,                                         
  rtems_rbheap_chunk *chunk                                           
)                                                                     
{                                                                     
  _RBTree_Insert_unprotected(tree, &chunk->tree_node);                
ffc097e0:	48 00 1a bd 	bl      ffc0b29c <_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;                            
ffc097e4:	80 7e 00 18 	lwz     r3,24(r30)                             
ffc097e8:	48 00 00 30 	b       ffc09818 <rtems_rbheap_allocate+0x10c> 
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc097ec:	81 3f 00 00 	lwz     r9,0(r31)                              
  previous       = the_node->previous;                                
ffc097f0:	81 5f 00 04 	lwz     r10,4(r31)                             
        }                                                             
      } else {                                                        
        rtems_chain_extract_unprotected(&free_chunk->chain_node);     
        rtems_chain_set_off_chain(&free_chunk->chain_node);           
        ptr = (void *) free_chunk->begin;                             
ffc097f4:	80 7f 00 18 	lwz     r3,24(r31)                             
  next->previous = previous;                                          
ffc097f8:	91 49 00 04 	stw     r10,4(r9)                              
  previous->next = next;                                              
ffc097fc:	91 2a 00 00 	stw     r9,0(r10)                              
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc09800:	39 20 00 00 	li      r9,0                                   
ffc09804:	91 3f 00 04 	stw     r9,4(r31)                              
ffc09808:	91 3f 00 00 	stw     r9,0(r31)                              
ffc0980c:	48 00 00 0c 	b       ffc09818 <rtems_rbheap_allocate+0x10c> 
  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) {                             
ffc09810:	40 9e ff 48 	bne+    cr7,ffc09758 <rtems_rbheap_allocate+0x4c>
ffc09814:	4b ff ff 30 	b       ffc09744 <rtems_rbheap_allocate+0x38>  
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return ptr;                                                         
}                                                                     
ffc09818:	39 61 00 20 	addi    r11,r1,32                              
ffc0981c:	4b ff 75 4c 	b       ffc00d68 <_restgpr_27_x>               
                                                                      

ffc09950 <rtems_rbheap_extend_descriptors_with_malloc>: /* Do nothing */ } void rtems_rbheap_extend_descriptors_with_malloc(rtems_rbheap_control *control) {
ffc09950:	7c 2b 0b 78 	mr      r11,r1                                 <== NOT EXECUTED
ffc09954:	94 21 ff f0 	stwu    r1,-16(r1)                             <== NOT EXECUTED
ffc09958:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc0995c:	4b ff 73 d1 	bl      ffc00d2c <_savegpr_31>                 <== NOT EXECUTED
ffc09960:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
ffc09964:	38 60 00 20 	li      r3,32                                  <== NOT EXECUTED
{                                                                     
  /* Do nothing */                                                    
}                                                                     
                                                                      
void rtems_rbheap_extend_descriptors_with_malloc(rtems_rbheap_control *control)
{                                                                     
ffc09968:	90 01 00 14 	stw     r0,20(r1)                              <== NOT EXECUTED
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
ffc0996c:	4b ff b4 41 	bl      ffc04dac <malloc>                      <== NOT EXECUTED
                                                                      
  if (chunk != NULL) {                                                
ffc09970:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc09974:	41 82 00 1c 	beq-    ffc09990 <rtems_rbheap_extend_descriptors_with_malloc+0x40><== 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);        
ffc09978:	39 5f 00 0c 	addi    r10,r31,12                             <== NOT EXECUTED
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0997c:	91 43 00 04 	stw     r10,4(r3)                              <== NOT EXECUTED
  before_node           = after_node->next;                           
ffc09980:	81 5f 00 0c 	lwz     r10,12(r31)                            <== NOT EXECUTED
  after_node->next      = the_node;                                   
ffc09984:	90 7f 00 0c 	stw     r3,12(r31)                             <== NOT EXECUTED
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
ffc09988:	90 6a 00 04 	stw     r3,4(r10)                              <== NOT EXECUTED
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
  the_node->next        = before_node;                                
ffc0998c:	91 43 00 00 	stw     r10,0(r3)                              <== NOT EXECUTED
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
ffc09990:	39 61 00 10 	addi    r11,r1,16                              <== NOT EXECUTED
ffc09994:	4b ff 73 e4 	b       ffc00d78 <_restgpr_31_x>               <== NOT EXECUTED
                                                                      

ffc09820 <rtems_rbheap_free>: _RBTree_Extract_unprotected(chunk_tree, &b->tree_node); } } rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr) {
ffc09820:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc09824:	7c 08 02 a6 	mflr    r0                                     
ffc09828:	bf 61 00 2c 	stmw    r27,44(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (ptr != NULL) {                                                  
ffc0982c:	7c 9f 23 79 	mr.     r31,r4                                 
    _RBTree_Extract_unprotected(chunk_tree, &b->tree_node);           
  }                                                                   
}                                                                     
                                                                      
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
{                                                                     
ffc09830:	90 01 00 44 	stw     r0,68(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (ptr != NULL) {                                                  
ffc09834:	41 82 01 0c 	beq-    ffc09940 <rtems_rbheap_free+0x120>     
ffc09838:	7c 7d 1b 78 	mr      r29,r3                                 
    rtems_chain_control *free_chain = &control->free_chunk_chain;     
    rtems_rbtree_control *chunk_tree = &control->chunk_tree;          
ffc0983c:	3b 83 00 18 	addi    r28,r3,24                              
                                                                      
#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 };                        
ffc09840:	38 80 00 00 	li      r4,0                                   
ffc09844:	38 61 00 08 	addi    r3,r1,8                                
ffc09848:	38 a0 00 20 	li      r5,32                                  
ffc0984c:	48 00 7b dd 	bl      ffc11428 <memset>                      
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  RBTree_Node* iter_node = the_rbtree->root;                          
  RBTree_Node* found = NULL;                                          
ffc09850:	3b c0 00 00 	li      r30,0                                  
ffc09854:	93 e1 00 20 	stw     r31,32(r1)                             
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Find_unprotected(           
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  RBTree_Node* iter_node = the_rbtree->root;                          
ffc09858:	83 fd 00 1c 	lwz     r31,28(r29)                            
ffc0985c:	48 00 00 44 	b       ffc098a0 <rtems_rbheap_free+0x80>      
  RBTree_Node* found = NULL;                                          
  int compare_result;                                                 
  while (iter_node) {                                                 
    compare_result = the_rbtree->compare_function(the_node, iter_node);
ffc09860:	81 3c 00 10 	lwz     r9,16(r28)                             
ffc09864:	38 61 00 10 	addi    r3,r1,16                               
ffc09868:	7f e4 fb 78 	mr      r4,r31                                 
ffc0986c:	7d 29 03 a6 	mtctr   r9                                     
ffc09870:	4e 80 04 21 	bctrl                                          
    if ( _RBTree_Is_equal( compare_result ) ) {                       
ffc09874:	2c 03 00 00 	cmpwi   r3,0                                   
ffc09878:	40 82 00 14 	bne-    ffc0988c <rtems_rbheap_free+0x6c>      
      found = iter_node;                                              
      if ( the_rbtree->is_unique )                                    
ffc0987c:	89 5c 00 14 	lbz     r10,20(r28)                            
ffc09880:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc09884:	40 9e 00 28 	bne-    cr7,ffc098ac <rtems_rbheap_free+0x8c>  <== ALWAYS TAKEN
ffc09888:	7f fe fb 78 	mr      r30,r31                                <== NOT EXECUTED
                                                                      
RTEMS_INLINE_ROUTINE bool _RBTree_Is_greater(                         
  int compare_result                                                  
)                                                                     
{                                                                     
  return compare_result > 0;                                          
ffc0988c:	7c 6a fe 70 	srawi   r10,r3,31                              
ffc09890:	7d 23 50 50 	subf    r9,r3,r10                              
        break;                                                        
    }                                                                 
                                                                      
    RBTree_Direction dir =                                            
      (RBTree_Direction) _RBTree_Is_greater( compare_result );        
    iter_node = iter_node->child[dir];                                
ffc09894:	55 29 1f 7a 	rlwinm  r9,r9,3,29,29                          
ffc09898:	7f ff 4a 14 	add     r31,r31,r9                             
ffc0989c:	83 ff 00 04 	lwz     r31,4(r31)                             
    )                                                                 
{                                                                     
  RBTree_Node* iter_node = the_rbtree->root;                          
  RBTree_Node* found = NULL;                                          
  int compare_result;                                                 
  while (iter_node) {                                                 
ffc098a0:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc098a4:	40 9e ff bc 	bne+    cr7,ffc09860 <rtems_rbheap_free+0x40>  
ffc098a8:	7f df f3 78 	mr      r31,r30                                
  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) {                                         
ffc098ac:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
        check_and_merge(free_chain, chunk_tree, chunk, pred);         
      } else {                                                        
        sc = RTEMS_INCORRECT_STATE;                                   
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ID;                                          
ffc098b0:	38 60 00 04 	li      r3,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) {                                         
ffc098b4:	3b df ff f8 	addi    r30,r31,-8                             
ffc098b8:	41 9e 00 8c 	beq-    cr7,ffc09944 <rtems_rbheap_free+0x124> 
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
ffc098bc:	81 5f ff f8 	lwz     r10,-8(r31)                            
ffc098c0:	39 20 00 00 	li      r9,0                                   
ffc098c4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc098c8:	40 be 00 10 	bne+    cr7,ffc098d8 <rtems_rbheap_free+0xb8>  
ffc098cc:	81 3e 00 04 	lwz     r9,4(r30)                              
ffc098d0:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc098d4:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
      if (!rtems_rbheap_is_chunk_free(chunk)) {                       
ffc098d8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
        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;                                   
ffc098dc:	38 60 00 0e 	li      r3,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)) {                       
ffc098e0:	41 be 00 64 	beq+    cr7,ffc09944 <rtems_rbheap_free+0x124> 
static rtems_rbheap_chunk *get_next(                                  
  const rtems_rbheap_chunk *chunk,                                    
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return rtems_rbheap_chunk_of_node(                                  
ffc098e4:	3b fe 00 08 	addi    r31,r30,8                              
ffc098e8:	38 80 00 00 	li      r4,0                                   
ffc098ec:	7f e3 fb 78 	mr      r3,r31                                 
ffc098f0:	48 00 1c 69 	bl      ffc0b558 <_RBTree_Next_unprotected>    
ffc098f4:	38 80 00 01 	li      r4,1                                   
ffc098f8:	7c 7b 1b 78 	mr      r27,r3                                 
ffc098fc:	7f e3 fb 78 	mr      r3,r31                                 
ffc09900:	48 00 1c 59 	bl      ffc0b558 <_RBTree_Next_unprotected>    
    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);         
ffc09904:	7f 84 e3 78 	mr      r4,r28                                 
static rtems_rbheap_chunk *get_next(                                  
  const rtems_rbheap_chunk *chunk,                                    
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return rtems_rbheap_chunk_of_node(                                  
ffc09908:	38 c3 ff f8 	addi    r6,r3,-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);         
ffc0990c:	7f c5 f3 78 	mr      r5,r30                                 
ffc09910:	7f a3 eb 78 	mr      r3,r29                                 
ffc09914:	4b ff fb d1 	bl      ffc094e4 <check_and_merge>             
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc09918:	81 3d 00 00 	lwz     r9,0(r29)                              
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0991c:	93 be 00 04 	stw     r29,4(r30)                             
        add_to_chain(free_chain, chunk);                              
        check_and_merge(free_chain, chunk_tree, chunk, pred);         
ffc09920:	7f a3 eb 78 	mr      r3,r29                                 
ffc09924:	7f 84 e3 78 	mr      r4,r28                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc09928:	93 dd 00 00 	stw     r30,0(r29)                             
ffc0992c:	7f c5 f3 78 	mr      r5,r30                                 
ffc09930:	38 db ff f8 	addi    r6,r27,-8                              
  the_node->next        = before_node;                                
ffc09934:	91 3e 00 00 	stw     r9,0(r30)                              
  before_node->previous = the_node;                                   
ffc09938:	93 c9 00 04 	stw     r30,4(r9)                              
ffc0993c:	4b ff fb a9 	bl      ffc094e4 <check_and_merge>             
  }                                                                   
}                                                                     
                                                                      
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc09940:	38 60 00 00 	li      r3,0                                   
      sc = RTEMS_INVALID_ID;                                          
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc09944:	39 61 00 40 	addi    r11,r1,64                              
ffc09948:	4b ff 74 20 	b       ffc00d68 <_restgpr_27_x>               
                                                                      

ffc095e0 <rtems_rbheap_initialize>: void *handler_arg ) { rtems_status_code sc = RTEMS_SUCCESSFUL; if (alignment > 0) {
ffc095e0:	7c ca 33 79 	mr.     r10,r6                                 
ffc095e4:	41 a2 01 04 	beq+    ffc096e8 <rtems_rbheap_initialize+0x108>
  uintptr_t area_size,                                                
  uintptr_t alignment,                                                
  rtems_rbheap_extend_descriptors extend_descriptors,                 
  void *handler_arg                                                   
)                                                                     
{                                                                     
ffc095e8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc095ec:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (alignment > 0) {                                                
    uintptr_t begin = (uintptr_t) area_begin;                         
    uintptr_t end = begin + area_size;                                
ffc095f0:	7c a5 22 14 	add     r5,r5,r4                               
  uintptr_t area_size,                                                
  uintptr_t alignment,                                                
  rtems_rbheap_extend_descriptors extend_descriptors,                 
  void *handler_arg                                                   
)                                                                     
{                                                                     
ffc095f4:	bf a1 00 0c 	stmw    r29,12(r1)                             
                                                                      
#include <stdlib.h>                                                   
                                                                      
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
ffc095f8:	7f c4 53 96 	divwu   r30,r4,r10                             
  uintptr_t area_size,                                                
  uintptr_t alignment,                                                
  rtems_rbheap_extend_descriptors extend_descriptors,                 
  void *handler_arg                                                   
)                                                                     
{                                                                     
ffc095fc:	90 01 00 1c 	stw     r0,28(r1)                              
                                                                      
#include <stdlib.h>                                                   
                                                                      
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
ffc09600:	7f de 51 d6 	mullw   r30,r30,r10                            
ffc09604:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  if (excess > 0) {                                                   
ffc09608:	7d 3e 20 51 	subf.   r9,r30,r4                              
ffc0960c:	41 82 00 e8 	beq-    ffc096f4 <rtems_rbheap_initialize+0x114>
    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) {
ffc09610:	7f 84 28 40 	cmplw   cr7,r4,r5                              
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
                                                                      
  if (excess > 0) {                                                   
    value += alignment - excess;                                      
ffc09614:	7f ca 22 14 	add     r30,r10,r4                             
ffc09618:	7f c9 f0 50 	subf    r30,r9,r30                             
        insert_into_tree(chunk_tree, first);                          
      } else {                                                        
        sc = RTEMS_NO_MEMORY;                                         
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ADDRESS;                                     
ffc0961c:	39 20 00 09 	li      r9,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) {
ffc09620:	40 bc 00 e0 	bge+    cr7,ffc09700 <rtems_rbheap_initialize+0x120>
ffc09624:	7f 84 f0 40 	cmplw   cr7,r4,r30                             
ffc09628:	41 bd 00 d8 	bgt+    cr7,ffc09700 <rtems_rbheap_initialize+0x120><== NEVER TAKEN
ffc0962c:	48 00 00 08 	b       ffc09634 <rtems_rbheap_initialize+0x54>
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (alignment > 0) {                                                
    uintptr_t begin = (uintptr_t) area_begin;                         
ffc09630:	7c 9e 23 78 	mr      r30,r4                                 
  return value;                                                       
}                                                                     
                                                                      
static uintptr_t align_down(uintptr_t alignment, uintptr_t value)     
{                                                                     
  uintptr_t excess = value % alignment;                               
ffc09634:	7c a5 53 96 	divwu   r5,r5,r10                              
                                                                      
  return value - excess;                                              
ffc09638:	7f a5 51 d6 	mullw   r29,r5,r10                             
        insert_into_tree(chunk_tree, first);                          
      } else {                                                        
        sc = RTEMS_NO_MEMORY;                                         
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ADDRESS;                                     
ffc0963c:	39 20 00 09 	li      r9,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) {
ffc09640:	7f 9e e8 40 	cmplw   cr7,r30,r29                            
ffc09644:	40 bc 00 bc 	bge+    cr7,ffc09700 <rtems_rbheap_initialize+0x120>
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 );                        
ffc09648:	39 3f 00 04 	addi    r9,r31,4                               
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc0964c:	93 ff 00 08 	stw     r31,8(r31)                             
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 );                        
ffc09650:	38 df 00 0c 	addi    r6,r31,12                              
                                                                      
  head->next = tail;                                                  
ffc09654:	91 3f 00 00 	stw     r9,0(r31)                              
  head->previous = NULL;                                              
ffc09658:	39 20 00 00 	li      r9,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 );                        
ffc0965c:	38 bf 00 10 	addi    r5,r31,16                              
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc09660:	91 3f 00 04 	stw     r9,4(r31)                              
      rtems_rbtree_initialize_empty(chunk_tree, chunk_compare, true); 
      control->alignment = alignment;                                 
      control->handler_arg = handler_arg;                             
      control->extend_descriptors = extend_descriptors;               
                                                                      
      first = get_chunk(control);                                     
ffc09664:	7f e3 fb 78 	mr      r3,r31                                 
ffc09668:	91 3f 00 10 	stw     r9,16(r31)                             
    RBTree_Control          *the_rbtree,                              
    RBTree_Compare_function  compare_function,                        
    bool                     is_unique                                
    )                                                                 
{                                                                     
  the_rbtree->permanent_null   = NULL;                                
ffc0966c:	91 3f 00 18 	stw     r9,24(r31)                             
  the_rbtree->root             = NULL;                                
ffc09670:	91 3f 00 1c 	stw     r9,28(r31)                             
  the_rbtree->first[0]         = NULL;                                
ffc09674:	91 3f 00 20 	stw     r9,32(r31)                             
  the_rbtree->first[1]         = NULL;                                
ffc09678:	91 3f 00 24 	stw     r9,36(r31)                             
  the_rbtree->compare_function = compare_function;                    
ffc0967c:	3d 20 ff c1 	lis     r9,-63                                 
ffc09680:	39 29 94 d4 	addi    r9,r9,-27436                           
ffc09684:	91 3f 00 28 	stw     r9,40(r31)                             
  the_rbtree->is_unique        = is_unique;                           
ffc09688:	39 20 00 01 	li      r9,1                                   
ffc0968c:	99 3f 00 2c 	stb     r9,44(r31)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc09690:	90 bf 00 0c 	stw     r5,12(r31)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc09694:	90 df 00 14 	stw     r6,20(r31)                             
      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;                                 
ffc09698:	91 5f 00 30 	stw     r10,48(r31)                            
      control->handler_arg = handler_arg;                             
ffc0969c:	91 1f 00 38 	stw     r8,56(r31)                             
      control->extend_descriptors = extend_descriptors;               
ffc096a0:	90 ff 00 34 	stw     r7,52(r31)                             
                                                                      
      first = get_chunk(control);                                     
ffc096a4:	4b ff fe c9 	bl      ffc0956c <get_chunk>                   
        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;                                         
ffc096a8:	39 20 00 1a 	li      r9,26                                  
      control->alignment = alignment;                                 
      control->handler_arg = handler_arg;                             
      control->extend_descriptors = extend_descriptors;               
                                                                      
      first = get_chunk(control);                                     
      if (first != NULL) {                                            
ffc096ac:	7c 64 1b 79 	mr.     r4,r3                                  
ffc096b0:	41 82 00 50 	beq-    ffc09700 <rtems_rbheap_initialize+0x120>
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc096b4:	81 3f 00 00 	lwz     r9,0(r31)                              
static void insert_into_tree(                                         
  rtems_rbtree_control *tree,                                         
  rtems_rbheap_chunk *chunk                                           
)                                                                     
{                                                                     
  _RBTree_Insert_unprotected(tree, &chunk->tree_node);                
ffc096b8:	38 7f 00 18 	addi    r3,r31,24                              
      control->handler_arg = handler_arg;                             
      control->extend_descriptors = extend_descriptors;               
                                                                      
      first = get_chunk(control);                                     
      if (first != NULL) {                                            
        first->begin = aligned_begin;                                 
ffc096bc:	93 c4 00 18 	stw     r30,24(r4)                             
        first->size = aligned_end - aligned_begin;                    
ffc096c0:	7f de e8 50 	subf    r30,r30,r29                            
ffc096c4:	93 c4 00 1c 	stw     r30,28(r4)                             
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc096c8:	93 e4 00 04 	stw     r31,4(r4)                              
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc096cc:	90 9f 00 00 	stw     r4,0(r31)                              
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
ffc096d0:	90 89 00 04 	stw     r4,4(r9)                               
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
  the_node->next        = before_node;                                
ffc096d4:	91 24 00 00 	stw     r9,0(r4)                               
static void insert_into_tree(                                         
  rtems_rbtree_control *tree,                                         
  rtems_rbheap_chunk *chunk                                           
)                                                                     
{                                                                     
  _RBTree_Insert_unprotected(tree, &chunk->tree_node);                
ffc096d8:	38 84 00 08 	addi    r4,r4,8                                
ffc096dc:	48 00 1b c1 	bl      ffc0b29c <_RBTree_Insert_unprotected>  
  uintptr_t alignment,                                                
  rtems_rbheap_extend_descriptors extend_descriptors,                 
  void *handler_arg                                                   
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc096e0:	39 20 00 00 	li      r9,0                                   
ffc096e4:	48 00 00 1c 	b       ffc09700 <rtems_rbheap_initialize+0x120>
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ADDRESS;                                     
    }                                                                 
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
ffc096e8:	39 20 00 0a 	li      r9,10                                  
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc096ec:	7d 23 4b 78 	mr      r3,r9                                  
ffc096f0:	4e 80 00 20 	blr                                            
    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) {
ffc096f4:	7f 84 28 40 	cmplw   cr7,r4,r5                              
ffc096f8:	41 bc ff 38 	blt-    cr7,ffc09630 <rtems_rbheap_initialize+0x50>
        insert_into_tree(chunk_tree, first);                          
      } else {                                                        
        sc = RTEMS_NO_MEMORY;                                         
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ADDRESS;                                     
ffc096fc:	39 20 00 09 	li      r9,9                                   
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc09700:	39 61 00 18 	addi    r11,r1,24                              
ffc09704:	7d 23 4b 78 	mr      r3,r9                                  
ffc09708:	4b ff 76 68 	b       ffc00d70 <_restgpr_29_x>               
                                                                      

ffc1a8f4 <rtems_rfs_bitmap_create_search>: int rtems_rfs_bitmap_create_search (rtems_rfs_bitmap_control* control) {
ffc1a8f4:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc1a8f8:	7c 08 02 a6 	mflr    r0                                     
  rtems_rfs_bitmap_map map;                                           
  size_t               size;                                          
  rtems_rfs_bitmap_bit bit;                                           
  int                  rc;                                            
                                                                      
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc1a8fc:	38 81 00 08 	addi    r4,r1,8                                
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_bitmap_create_search (rtems_rfs_bitmap_control* control)    
{                                                                     
ffc1a900:	bf 21 00 1c 	stmw    r25,28(r1)                             
ffc1a904:	7c 7e 1b 78 	mr      r30,r3                                 
ffc1a908:	90 01 00 3c 	stw     r0,60(r1)                              
  rtems_rfs_bitmap_map map;                                           
  size_t               size;                                          
  rtems_rfs_bitmap_bit bit;                                           
  int                  rc;                                            
                                                                      
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc1a90c:	4b ff f9 29 	bl      ffc1a234 <rtems_rfs_bitmap_load_map>   
  if (rc > 0)                                                         
ffc1a910:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1a914:	41 a1 00 d4 	bgt+    ffc1a9e8 <rtems_rfs_bitmap_create_search+0xf4>
    return rc;                                                        
                                                                      
  control->free = 0;                                                  
ffc1a918:	39 20 00 00 	li      r9,0                                   
  search_map = control->search_bits;                                  
ffc1a91c:	83 be 00 14 	lwz     r29,20(r30)                            
                                                                      
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  control->free = 0;                                                  
ffc1a920:	91 3e 00 10 	stw     r9,16(r30)                             
  search_map = control->search_bits;                                  
  size = control->size;                                               
  bit = 0;                                                            
                                                                      
  *search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                       
ffc1a924:	39 20 ff ff 	li      r9,-1                                  
    return rc;                                                        
                                                                      
  control->free = 0;                                                  
  search_map = control->search_bits;                                  
  size = control->size;                                               
  bit = 0;                                                            
ffc1a928:	3b 80 00 00 	li      r28,0                                  
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  control->free = 0;                                                  
  search_map = control->search_bits;                                  
  size = control->size;                                               
ffc1a92c:	83 fe 00 0c 	lwz     r31,12(r30)                            
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
ffc1a930:	3b 40 00 01 	li      r26,1                                  
  control->free = 0;                                                  
  search_map = control->search_bits;                                  
  size = control->size;                                               
  bit = 0;                                                            
                                                                      
  *search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                       
ffc1a934:	91 3d 00 00 	stw     r9,0(r29)                              
                                                                      
    if (bit == rtems_rfs_bitmap_element_bits ())                      
    {                                                                 
      bit = 0;                                                        
      search_map++;                                                   
      *search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                   
ffc1a938:	3b 20 ff ff 	li      r25,-1                                 
ffc1a93c:	83 61 00 08 	lwz     r27,8(r1)                              
  search_map = control->search_bits;                                  
  size = control->size;                                               
  bit = 0;                                                            
                                                                      
  *search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                       
  while (size)                                                        
ffc1a940:	48 00 00 9c 	b       ffc1a9dc <rtems_rfs_bitmap_create_search+0xe8>
  {                                                                   
    rtems_rfs_bitmap_element bits;                                    
    int                      available;                               
    if (size < rtems_rfs_bitmap_element_bits ())                      
ffc1a944:	2b 9f 00 1f 	cmplwi  cr7,r31,31                             
ffc1a948:	41 9d 00 20 	bgt-    cr7,ffc1a968 <rtems_rfs_bitmap_create_search+0x74>
    {                                                                 
      bits = rtems_rfs_bitmap_merge (*map,                            
ffc1a94c:	38 60 00 00 	li      r3,0                                   
ffc1a950:	7f e4 fb 78 	mr      r4,r31                                 
ffc1a954:	4b ff fb 61 	bl      ffc1a4b4 <rtems_rfs_bitmap_mask_section>
{                                                                     
  /*                                                                  
   * Use the normal bit operators because we do not change the bits just merge
   * the 2 separate parts.                                            
   */                                                                 
  bits1 &= mask;                                                      
ffc1a958:	81 3b 00 00 	lwz     r9,0(r27)                              
ffc1a95c:	7c 63 48 38 	and     r3,r3,r9                               
    if (size < rtems_rfs_bitmap_element_bits ())                      
    {                                                                 
      bits = rtems_rfs_bitmap_merge (*map,                            
                                     RTEMS_RFS_BITMAP_ELEMENT_SET,    
                                     rtems_rfs_bitmap_mask_section (0, size));
      available = size;                                               
ffc1a960:	7f e9 fb 78 	mr      r9,r31                                 
ffc1a964:	48 00 00 0c 	b       ffc1a970 <rtems_rfs_bitmap_create_search+0x7c>
    }                                                                 
    else                                                              
    {                                                                 
      bits      = *map;                                               
ffc1a968:	80 7b 00 00 	lwz     r3,0(r27)                              
      available = rtems_rfs_bitmap_element_bits ();                   
ffc1a96c:	39 20 00 20 	li      r9,32                                  
    }                                                                 
                                                                      
    if (rtems_rfs_bitmap_match (bits, RTEMS_RFS_BITMAP_ELEMENT_SET))  
ffc1a970:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1a974:	40 9e 00 14 	bne-    cr7,ffc1a988 <rtems_rfs_bitmap_create_search+0x94>
          control->free++;                                            
    }                                                                 
                                                                      
    size -= available;                                                
                                                                      
    if (bit == rtems_rfs_bitmap_element_bits ())                      
ffc1a978:	2f 9c 00 20 	cmpwi   cr7,r28,32                             
      for (b = 0; b < available; b++)                                 
        if (!rtems_rfs_bitmap_test (bits, b))                         
          control->free++;                                            
    }                                                                 
                                                                      
    size -= available;                                                
ffc1a97c:	7f e9 f8 50 	subf    r31,r9,r31                             
                                                                      
    if (bit == rtems_rfs_bitmap_element_bits ())                      
ffc1a980:	40 be 00 54 	bne+    cr7,ffc1a9d4 <rtems_rfs_bitmap_create_search+0xe0>
ffc1a984:	48 00 00 40 	b       ffc1a9c4 <rtems_rfs_bitmap_create_search+0xd0>
ffc1a988:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    {                                                                 
      bits      = *map;                                               
      available = rtems_rfs_bitmap_element_bits ();                   
    }                                                                 
                                                                      
    if (rtems_rfs_bitmap_match (bits, RTEMS_RFS_BITMAP_ELEMENT_SET))  
ffc1a98c:	39 00 00 00 	li      r8,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);                     
ffc1a990:	7d 2a 4b 78 	mr      r10,r9                                 
ffc1a994:	41 bd 00 08 	bgt+    cr7,ffc1a99c <rtems_rfs_bitmap_create_search+0xa8><== ALWAYS TAKEN
ffc1a998:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc1a99c:	7f 47 40 30 	slw     r7,r26,r8                              
      rtems_rfs_bitmap_set (*search_map, bit);                        
    else                                                              
    {                                                                 
      int b;                                                          
      for (b = 0; b < available; b++)                                 
        if (!rtems_rfs_bitmap_test (bits, b))                         
ffc1a9a0:	7c e6 18 39 	and.    r6,r7,r3                               
ffc1a9a4:	41 82 00 10 	beq-    ffc1a9b4 <rtems_rfs_bitmap_create_search+0xc0>
          control->free++;                                            
ffc1a9a8:	80 fe 00 10 	lwz     r7,16(r30)                             
ffc1a9ac:	38 e7 00 01 	addi    r7,r7,1                                
ffc1a9b0:	90 fe 00 10 	stw     r7,16(r30)                             
    if (rtems_rfs_bitmap_match (bits, RTEMS_RFS_BITMAP_ELEMENT_SET))  
      rtems_rfs_bitmap_set (*search_map, bit);                        
    else                                                              
    {                                                                 
      int b;                                                          
      for (b = 0; b < available; b++)                                 
ffc1a9b4:	35 4a ff ff 	addic.  r10,r10,-1                             
ffc1a9b8:	39 08 00 01 	addi    r8,r8,1                                
ffc1a9bc:	40 82 ff e0 	bne+    ffc1a99c <rtems_rfs_bitmap_create_search+0xa8>
ffc1a9c0:	4b ff ff b8 	b       ffc1a978 <rtems_rfs_bitmap_create_search+0x84>
                                                                      
    if (bit == rtems_rfs_bitmap_element_bits ())                      
    {                                                                 
      bit = 0;                                                        
      search_map++;                                                   
      *search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                   
ffc1a9c4:	93 3d 00 04 	stw     r25,4(r29)                             
                                                                      
    size -= available;                                                
                                                                      
    if (bit == rtems_rfs_bitmap_element_bits ())                      
    {                                                                 
      bit = 0;                                                        
ffc1a9c8:	3b 80 00 00 	li      r28,0                                  
      search_map++;                                                   
ffc1a9cc:	3b bd 00 04 	addi    r29,r29,4                              
ffc1a9d0:	48 00 00 08 	b       ffc1a9d8 <rtems_rfs_bitmap_create_search+0xe4>
      *search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                   
    }                                                                 
    else                                                              
      bit++;                                                          
ffc1a9d4:	3b 9c 00 01 	addi    r28,r28,1                              
ffc1a9d8:	3b 7b 00 04 	addi    r27,r27,4                              
  search_map = control->search_bits;                                  
  size = control->size;                                               
  bit = 0;                                                            
                                                                      
  *search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                       
  while (size)                                                        
ffc1a9dc:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc1a9e0:	40 9e ff 64 	bne+    cr7,ffc1a944 <rtems_rfs_bitmap_create_search+0x50>
    else                                                              
      bit++;                                                          
    map++;                                                            
  }                                                                   
                                                                      
  return 0;                                                           
ffc1a9e4:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1a9e8:	39 61 00 38 	addi    r11,r1,56                              
ffc1a9ec:	4b fe 6b 68 	b       ffc01554 <_restgpr_25_x>               
                                                                      

ffc1a234 <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) {
ffc1a234:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1a238:	7c 08 02 a6 	mflr    r0                                     
ffc1a23c:	90 01 00 14 	stw     r0,20(r1)                              
  int rc;                                                             
                                                                      
  if (!control->buffer)                                               
ffc1a240:	81 23 00 00 	lwz     r9,0(r3)                               
 * @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)             
{                                                                     
ffc1a244:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc1a248:	7c 7f 1b 78 	mr      r31,r3                                 
  int rc;                                                             
                                                                      
  if (!control->buffer)                                               
ffc1a24c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    return ENXIO;                                                     
ffc1a250:	38 60 00 06 	li      r3,6                                   
rtems_rfs_bitmap_load_map (rtems_rfs_bitmap_control* control,         
                           rtems_rfs_bitmap_map*     map)             
{                                                                     
  int rc;                                                             
                                                                      
  if (!control->buffer)                                               
ffc1a254:	41 9e 00 40 	beq-    cr7,ffc1a294 <rtems_rfs_bitmap_load_map+0x60>
    return ENXIO;                                                     
                                                                      
  *map = NULL;                                                        
ffc1a258:	39 20 00 00 	li      r9,0                                   
                                                                      
  rc = rtems_rfs_buffer_handle_request (control->fs,                  
ffc1a25c:	80 bf 00 08 	lwz     r5,8(r31)                              
  int rc;                                                             
                                                                      
  if (!control->buffer)                                               
    return ENXIO;                                                     
                                                                      
  *map = NULL;                                                        
ffc1a260:	91 24 00 00 	stw     r9,0(r4)                               
ffc1a264:	7c 9e 23 78 	mr      r30,r4                                 
                                                                      
  rc = rtems_rfs_buffer_handle_request (control->fs,                  
ffc1a268:	38 c0 00 01 	li      r6,1                                   
ffc1a26c:	80 7f 00 04 	lwz     r3,4(r31)                              
ffc1a270:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc1a274:	48 00 1c 5d 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
                                        control->buffer,              
                                        control->block,               
                                        true);                        
  if (rc)                                                             
ffc1a278:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1a27c:	40 82 00 18 	bne-    ffc1a294 <rtems_rfs_bitmap_load_map+0x60><== NEVER TAKEN
    return rc;                                                        
                                                                      
  *map = rtems_rfs_buffer_data (control->buffer);                     
ffc1a280:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc1a284:	81 29 00 08 	lwz     r9,8(r9)                               
ffc1a288:	81 29 00 1c 	lwz     r9,28(r9)                              
ffc1a28c:	91 3e 00 00 	stw     r9,0(r30)                              
ffc1a290:	48 00 00 04 	b       ffc1a294 <rtems_rfs_bitmap_load_map+0x60>
  return 0;                                                           
}                                                                     
ffc1a294:	39 61 00 10 	addi    r11,r1,16                              
ffc1a298:	4b fe 72 d0 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc1a7f8 <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) {
ffc1a7f8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1a7fc:	7c 08 02 a6 	mflr    r0                                     
  int                  rc = 0;                                        
                                                                      
  /*                                                                  
   * By default we assume the allocation failed.                      
   */                                                                 
  *allocated = false;                                                 
ffc1a800:	39 20 00 00 	li      r9,0                                   
int                                                                   
rtems_rfs_bitmap_map_alloc (rtems_rfs_bitmap_control* control,        
                            rtems_rfs_bitmap_bit      seed,           
                            bool*                     allocated,      
                            rtems_rfs_bitmap_bit*     bit)            
{                                                                     
ffc1a804:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc1a808:	7c 7d 1b 78 	mr      r29,r3                                 
ffc1a80c:	7c bc 2b 78 	mr      r28,r5                                 
ffc1a810:	90 01 00 24 	stw     r0,36(r1)                              
ffc1a814:	7c db 33 78 	mr      r27,r6                                 
   * 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;                                                  
ffc1a818:	7c 9f 23 78 	mr      r31,r4                                 
  int                  rc = 0;                                        
                                                                      
  /*                                                                  
   * By default we assume the allocation failed.                      
   */                                                                 
  *allocated = false;                                                 
ffc1a81c:	99 25 00 00 	stb     r9,0(r5)                               
   * 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;                                                  
ffc1a820:	7c 9e 23 78 	mr      r30,r4                                 
   * 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))          
ffc1a824:	48 00 00 9c 	b       ffc1a8c0 <rtems_rfs_bitmap_map_alloc+0xc8>
         || ((lower_seed >= 0) && (lower_seed < control->size)))      
  {                                                                   
    /*                                                                
     * Search up first so bits allocated in succession are grouped together.
     */                                                               
    if (upper_seed < control->size)                                   
ffc1a828:	81 3d 00 0c 	lwz     r9,12(r29)                             
ffc1a82c:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc1a830:	41 9c 00 10 	blt-    cr7,ffc1a840 <rtems_rfs_bitmap_map_alloc+0x48>
                                               window, 1);            
      if ((rc > 0) || *allocated)                                     
        break;                                                        
    }                                                                 
                                                                      
    if (lower_seed >= 0)                                              
ffc1a834:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc1a838:	40 9c 00 48 	bge-    cr7,ffc1a880 <rtems_rfs_bitmap_map_alloc+0x88>
ffc1a83c:	48 00 00 34 	b       ffc1a870 <rtems_rfs_bitmap_map_alloc+0x78>
    /*                                                                
     * Search up first so bits allocated in succession are grouped together.
     */                                                               
    if (upper_seed < control->size)                                   
    {                                                                 
      *bit = upper_seed;                                              
ffc1a840:	93 db 00 00 	stw     r30,0(r27)                             
      rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
ffc1a844:	7f a3 eb 78 	mr      r3,r29                                 
ffc1a848:	7f 64 db 78 	mr      r4,r27                                 
ffc1a84c:	7f 85 e3 78 	mr      r5,r28                                 
ffc1a850:	38 c0 00 01 	li      r6,1                                   
ffc1a854:	4b ff fa 49 	bl      ffc1a29c <rtems_rfs_search_map_for_clear_bit.constprop.1>
                                               window, 1);            
      if ((rc > 0) || *allocated)                                     
ffc1a858:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1a85c:	41 9d 00 8c 	bgt-    cr7,ffc1a8e8 <rtems_rfs_bitmap_map_alloc+0xf0><== NEVER TAKEN
ffc1a860:	89 3c 00 00 	lbz     r9,0(r28)                              
ffc1a864:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1a868:	41 9e ff cc 	beq+    cr7,ffc1a834 <rtems_rfs_bitmap_map_alloc+0x3c>
ffc1a86c:	48 00 00 7c 	b       ffc1a8e8 <rtems_rfs_bitmap_map_alloc+0xf0>
                                                                      
    /*                                                                
     * 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)                                   
ffc1a870:	81 3d 00 0c 	lwz     r9,12(r29)                             
ffc1a874:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc1a878:	41 9c 00 38 	blt-    cr7,ffc1a8b0 <rtems_rfs_bitmap_map_alloc+0xb8><== ALWAYS TAKEN
ffc1a87c:	48 00 00 38 	b       ffc1a8b4 <rtems_rfs_bitmap_map_alloc+0xbc><== NOT EXECUTED
        break;                                                        
    }                                                                 
                                                                      
    if (lower_seed >= 0)                                              
    {                                                                 
      *bit = lower_seed;                                              
ffc1a880:	93 fb 00 00 	stw     r31,0(r27)                             
      rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
ffc1a884:	7f a3 eb 78 	mr      r3,r29                                 
ffc1a888:	7f 64 db 78 	mr      r4,r27                                 
ffc1a88c:	7f 85 e3 78 	mr      r5,r28                                 
ffc1a890:	38 c0 ff ff 	li      r6,-1                                  
ffc1a894:	4b ff fa 09 	bl      ffc1a29c <rtems_rfs_search_map_for_clear_bit.constprop.1>
                                               window, -1);           
      if ((rc > 0) || *allocated)                                     
ffc1a898:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1a89c:	41 9d 00 4c 	bgt-    cr7,ffc1a8e8 <rtems_rfs_bitmap_map_alloc+0xf0><== NEVER TAKEN
ffc1a8a0:	89 3c 00 00 	lbz     r9,0(r28)                              
ffc1a8a4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1a8a8:	41 9e ff c8 	beq+    cr7,ffc1a870 <rtems_rfs_bitmap_map_alloc+0x78>
ffc1a8ac:	48 00 00 3c 	b       ffc1a8e8 <rtems_rfs_bitmap_map_alloc+0xf0>
    /*                                                                
     * 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)                                   
      upper_seed += window;                                           
ffc1a8b0:	3b de 08 00 	addi    r30,r30,2048                           
    if (lower_seed >= 0)                                              
ffc1a8b4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc1a8b8:	41 9c 00 08 	blt-    cr7,ffc1a8c0 <rtems_rfs_bitmap_map_alloc+0xc8>
      lower_seed -= window;                                           
ffc1a8bc:	3b ff f8 00 	addi    r31,r31,-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))          
ffc1a8c0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc1a8c4:	41 9c 00 10 	blt-    cr7,ffc1a8d4 <rtems_rfs_bitmap_map_alloc+0xdc><== NEVER TAKEN
ffc1a8c8:	81 3d 00 0c 	lwz     r9,12(r29)                             
ffc1a8cc:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc1a8d0:	41 bc ff 58 	blt-    cr7,ffc1a828 <rtems_rfs_bitmap_map_alloc+0x30>
         || ((lower_seed >= 0) && (lower_seed < control->size)))      
ffc1a8d4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc1a8d8:	41 9c 00 10 	blt-    cr7,ffc1a8e8 <rtems_rfs_bitmap_map_alloc+0xf0>
ffc1a8dc:	81 3d 00 0c 	lwz     r9,12(r29)                             
ffc1a8e0:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc1a8e4:	41 9c ff 44 	blt+    cr7,ffc1a828 <rtems_rfs_bitmap_map_alloc+0x30>
    if (lower_seed >= 0)                                              
      lower_seed -= window;                                           
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc1a8e8:	39 61 00 20 	addi    r11,r1,32                              
ffc1a8ec:	38 60 00 00 	li      r3,0                                   
ffc1a8f0:	4b fe 6c 6c 	b       ffc0155c <_restgpr_27_x>               
                                                                      

ffc1a580 <rtems_rfs_bitmap_map_clear>: int rtems_rfs_bitmap_map_clear (rtems_rfs_bitmap_control* control, rtems_rfs_bitmap_bit bit) {
ffc1a580:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1a584:	7c 08 02 a6 	mflr    r0                                     
ffc1a588:	bf c1 00 18 	stmw    r30,24(r1)                             
ffc1a58c:	7c 9e 23 78 	mr      r30,r4                                 
  rtems_rfs_bitmap_map map;                                           
  rtems_rfs_bitmap_map search_map;                                    
  int                  index;                                         
  int                  offset;                                        
  int                  rc;                                            
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc1a590:	38 81 00 08 	addi    r4,r1,8                                
}                                                                     
                                                                      
int                                                                   
rtems_rfs_bitmap_map_clear (rtems_rfs_bitmap_control* control,        
                            rtems_rfs_bitmap_bit      bit)            
{                                                                     
ffc1a594:	90 01 00 24 	stw     r0,36(r1)                              
ffc1a598:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_rfs_bitmap_map map;                                           
  rtems_rfs_bitmap_map search_map;                                    
  int                  index;                                         
  int                  offset;                                        
  int                  rc;                                            
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc1a59c:	4b ff fc 99 	bl      ffc1a234 <rtems_rfs_bitmap_load_map>   
  if (rc > 0)                                                         
ffc1a5a0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1a5a4:	41 a1 00 70 	bgt+    ffc1a614 <rtems_rfs_bitmap_map_clear+0x94>
    return rc;                                                        
  if (bit >= control->size)                                           
ffc1a5a8:	81 3f 00 0c 	lwz     r9,12(r31)                             
    return EINVAL;                                                    
ffc1a5ac:	38 60 00 16 	li      r3,22                                  
  int                  offset;                                        
  int                  rc;                                            
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
  if (bit >= control->size)                                           
ffc1a5b0:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc1a5b4:	40 bc 00 60 	bge+    cr7,ffc1a614 <rtems_rfs_bitmap_map_clear+0x94><== NEVER TAKEN
    return EINVAL;                                                    
  search_map        = control->search_bits;                           
  index             = rtems_rfs_bitmap_map_index (bit);               
  offset            = rtems_rfs_bitmap_map_offset (bit);              
  map[index]        = rtems_rfs_bitmap_clear (map[index], 1 << offset);
ffc1a5b8:	80 c1 00 08 	lwz     r6,8(r1)                               
  if (rc > 0)                                                         
    return rc;                                                        
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  search_map        = control->search_bits;                           
  index             = rtems_rfs_bitmap_map_index (bit);               
ffc1a5bc:	7f c8 2e 70 	srawi   r8,r30,5                               
  offset            = rtems_rfs_bitmap_map_offset (bit);              
  map[index]        = rtems_rfs_bitmap_clear (map[index], 1 << offset);
ffc1a5c0:	55 07 10 3a 	rlwinm  r7,r8,2,0,29                           
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  search_map        = control->search_bits;                           
ffc1a5c4:	81 5f 00 14 	lwz     r10,20(r31)                            
 */                                                                   
static rtems_rfs_bitmap_element                                       
rtems_rfs_bitmap_clear (rtems_rfs_bitmap_element target,              
                        rtems_rfs_bitmap_element bits)                
{                                                                     
  return RTEMS_RFS_BITMAP_CLEAR_BITS (target, bits);                  
ffc1a5c8:	7c a6 38 2e 	lwzx    r5,r6,r7                               
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  search_map        = control->search_bits;                           
  index             = rtems_rfs_bitmap_map_index (bit);               
  offset            = rtems_rfs_bitmap_map_offset (bit);              
  map[index]        = rtems_rfs_bitmap_clear (map[index], 1 << offset);
ffc1a5cc:	39 20 00 01 	li      r9,1                                   
    return rc;                                                        
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  search_map        = control->search_bits;                           
  index             = rtems_rfs_bitmap_map_index (bit);               
  offset            = rtems_rfs_bitmap_map_offset (bit);              
ffc1a5d0:	57 c4 06 fe 	clrlwi  r4,r30,27                              
  map[index]        = rtems_rfs_bitmap_clear (map[index], 1 << offset);
ffc1a5d4:	7d 24 20 30 	slw     r4,r9,r4                               
 */                                                                   
static rtems_rfs_bitmap_element                                       
rtems_rfs_bitmap_clear (rtems_rfs_bitmap_element target,              
                        rtems_rfs_bitmap_element bits)                
{                                                                     
  return RTEMS_RFS_BITMAP_CLEAR_BITS (target, bits);                  
ffc1a5d8:	7c a5 23 78 	or      r5,r5,r4                               
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  search_map        = control->search_bits;                           
  index             = rtems_rfs_bitmap_map_index (bit);               
  offset            = rtems_rfs_bitmap_map_offset (bit);              
  map[index]        = rtems_rfs_bitmap_clear (map[index], 1 << offset);
ffc1a5dc:	7c a6 39 2e 	stwx    r5,r6,r7                               
  bit               = index;                                          
  index             = rtems_rfs_bitmap_map_index (bit);               
ffc1a5e0:	7f de 56 70 	srawi   r30,r30,10                             
  offset            = rtems_rfs_bitmap_map_offset(bit);               
  search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
ffc1a5e4:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         
 */                                                                   
static rtems_rfs_bitmap_element                                       
rtems_rfs_bitmap_clear (rtems_rfs_bitmap_element target,              
                        rtems_rfs_bitmap_element bits)                
{                                                                     
  return RTEMS_RFS_BITMAP_CLEAR_BITS (target, bits);                  
ffc1a5e8:	7c ea f0 2e 	lwzx    r7,r10,r30                             
  index             = rtems_rfs_bitmap_map_index (bit);               
  offset            = rtems_rfs_bitmap_map_offset (bit);              
  map[index]        = rtems_rfs_bitmap_clear (map[index], 1 << offset);
  bit               = index;                                          
  index             = rtems_rfs_bitmap_map_index (bit);               
  offset            = rtems_rfs_bitmap_map_offset(bit);               
ffc1a5ec:	55 08 06 fe 	clrlwi  r8,r8,27                               
  search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
ffc1a5f0:	7d 28 40 30 	slw     r8,r9,r8                               
 */                                                                   
static rtems_rfs_bitmap_element                                       
rtems_rfs_bitmap_clear (rtems_rfs_bitmap_element target,              
                        rtems_rfs_bitmap_element bits)                
{                                                                     
  return RTEMS_RFS_BITMAP_CLEAR_BITS (target, bits);                  
ffc1a5f4:	7c e7 43 78 	or      r7,r7,r8                               
  offset            = rtems_rfs_bitmap_map_offset (bit);              
  map[index]        = rtems_rfs_bitmap_clear (map[index], 1 << offset);
  bit               = index;                                          
  index             = rtems_rfs_bitmap_map_index (bit);               
  offset            = rtems_rfs_bitmap_map_offset(bit);               
  search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
ffc1a5f8:	7c ea f1 2e 	stwx    r7,r10,r30                             
  rtems_rfs_buffer_mark_dirty (control->buffer);                      
  control->free++;                                                    
  return 0;                                                           
ffc1a5fc:	38 60 00 00 	li      r3,0                                   
  map[index]        = rtems_rfs_bitmap_clear (map[index], 1 << offset);
  bit               = index;                                          
  index             = rtems_rfs_bitmap_map_index (bit);               
  offset            = rtems_rfs_bitmap_map_offset(bit);               
  search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
  rtems_rfs_buffer_mark_dirty (control->buffer);                      
ffc1a600:	81 5f 00 00 	lwz     r10,0(r31)                             
ffc1a604:	99 2a 00 00 	stb     r9,0(r10)                              
  control->free++;                                                    
ffc1a608:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc1a60c:	39 29 00 01 	addi    r9,r9,1                                
ffc1a610:	91 3f 00 10 	stw     r9,16(r31)                             
  return 0;                                                           
}                                                                     
ffc1a614:	39 61 00 20 	addi    r11,r1,32                              
ffc1a618:	4b fe 6f 50 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc1a730 <rtems_rfs_bitmap_map_clear_all>: int rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control) {
ffc1a730:	7c 2b 0b 78 	mr      r11,r1                                 
ffc1a734:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1a738:	7c 08 02 a6 	mflr    r0                                     
  rtems_rfs_bitmap_bit last_search_bit;                               
  size_t               elements;                                      
  int                  e;                                             
  int                  rc;                                            
                                                                      
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc1a73c:	38 81 00 08 	addi    r4,r1,8                                
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)    
{                                                                     
ffc1a740:	4b fe 6d e1 	bl      ffc01520 <_savegpr_31>                 
ffc1a744:	90 01 00 24 	stw     r0,36(r1)                              
ffc1a748:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_rfs_bitmap_bit last_search_bit;                               
  size_t               elements;                                      
  int                  e;                                             
  int                  rc;                                            
                                                                      
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc1a74c:	4b ff fa e9 	bl      ffc1a234 <rtems_rfs_bitmap_load_map>   
  if (rc > 0)                                                         
ffc1a750:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1a754:	41 a1 00 9c 	bgt+    ffc1a7f0 <rtems_rfs_bitmap_map_clear_all+0xc0>
    return rc;                                                        
                                                                      
  elements = rtems_rfs_bitmap_elements (control->size);               
ffc1a758:	81 1f 00 0c 	lwz     r8,12(r31)                             
                                                                      
  control->free = elements;                                           
                                                                      
  for (e = 0; e < elements; e++)                                      
ffc1a75c:	39 40 00 00 	li      r10,0                                  
    map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                          
ffc1a760:	80 e1 00 08 	lwz     r7,8(r1)                               
ffc1a764:	38 c0 ff ff 	li      r6,-1                                  
                                                                      
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  elements = rtems_rfs_bitmap_elements (control->size);               
ffc1a768:	39 08 ff ff 	addi    r8,r8,-1                               
ffc1a76c:	55 08 d9 7e 	rlwinm  r8,r8,27,5,31                          
ffc1a770:	39 28 00 01 	addi    r9,r8,1                                
                                                                      
  control->free = elements;                                           
                                                                      
  for (e = 0; e < elements; e++)                                      
    map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                          
ffc1a774:	38 a9 00 01 	addi    r5,r9,1                                
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  elements = rtems_rfs_bitmap_elements (control->size);               
                                                                      
  control->free = elements;                                           
ffc1a778:	91 3f 00 10 	stw     r9,16(r31)                             
                                                                      
  for (e = 0; e < elements; e++)                                      
    map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                          
ffc1a77c:	7c a9 03 a6 	mtctr   r5                                     
ffc1a780:	48 00 00 10 	b       ffc1a790 <rtems_rfs_bitmap_map_clear_all+0x60>
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)    
ffc1a784:	55 45 10 3a 	rlwinm  r5,r10,2,0,29                          
  elements = rtems_rfs_bitmap_elements (control->size);               
                                                                      
  control->free = elements;                                           
                                                                      
  for (e = 0; e < elements; e++)                                      
    map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                          
ffc1a788:	7c c7 29 2e 	stwx    r6,r7,r5                               
                                                                      
  elements = rtems_rfs_bitmap_elements (control->size);               
                                                                      
  control->free = elements;                                           
                                                                      
  for (e = 0; e < elements; e++)                                      
ffc1a78c:	39 4a 00 01 	addi    r10,r10,1                              
ffc1a790:	42 00 ff f4 	bdnz+   ffc1a784 <rtems_rfs_bitmap_map_clear_all+0x54>
   * Set the un-mapped bits in the last search element so the available logic
   * works.                                                           
   */                                                                 
  last_search_bit = rtems_rfs_bitmap_map_offset (elements);           
                                                                      
  if (last_search_bit == 0)                                           
ffc1a794:	71 27 00 1f 	andi.   r7,r9,31                               
ffc1a798:	40 82 00 08 	bne-    ffc1a7a0 <rtems_rfs_bitmap_map_clear_all+0x70>
    last_search_bit = rtems_rfs_bitmap_element_bits ();               
ffc1a79c:	38 e0 00 20 	li      r7,32                                  
                                                                      
  elements = rtems_rfs_bitmap_elements (elements);                    
ffc1a7a0:	55 09 d9 7e 	rlwinm  r9,r8,27,5,31                          
                                                                      
  for (e = 0; e < (elements - 1); e++)                                
    control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;         
ffc1a7a4:	39 09 00 01 	addi    r8,r9,1                                
  if (last_search_bit == 0)                                           
    last_search_bit = rtems_rfs_bitmap_element_bits ();               
                                                                      
  elements = rtems_rfs_bitmap_elements (elements);                    
                                                                      
  for (e = 0; e < (elements - 1); e++)                                
ffc1a7a8:	39 40 00 00 	li      r10,0                                  
    control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;         
ffc1a7ac:	7d 09 03 a6 	mtctr   r8                                     
ffc1a7b0:	38 c0 ff ff 	li      r6,-1                                  
  if (last_search_bit == 0)                                           
    last_search_bit = rtems_rfs_bitmap_element_bits ();               
                                                                      
  elements = rtems_rfs_bitmap_elements (elements);                    
                                                                      
  for (e = 0; e < (elements - 1); e++)                                
ffc1a7b4:	48 00 00 10 	b       ffc1a7c4 <rtems_rfs_bitmap_map_clear_all+0x94>
    control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;         
ffc1a7b8:	55 45 10 3a 	rlwinm  r5,r10,2,0,29                          <== NOT EXECUTED
ffc1a7bc:	7c c8 29 2e 	stwx    r6,r8,r5                               <== NOT EXECUTED
  if (last_search_bit == 0)                                           
    last_search_bit = rtems_rfs_bitmap_element_bits ();               
                                                                      
  elements = rtems_rfs_bitmap_elements (elements);                    
                                                                      
  for (e = 0; e < (elements - 1); e++)                                
ffc1a7c0:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
ffc1a7c4:	81 1f 00 14 	lwz     r8,20(r31)                             
ffc1a7c8:	42 00 ff f0 	bdnz+   ffc1a7b8 <rtems_rfs_bitmap_map_clear_all+0x88>
                                                                      
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);                 
ffc1a7cc:	39 40 ff ff 	li      r10,-1                                 
ffc1a7d0:	20 e7 00 20 	subfic  r7,r7,32                               
  elements = rtems_rfs_bitmap_elements (elements);                    
                                                                      
  for (e = 0; e < (elements - 1); e++)                                
    control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;         
                                                                      
  control->search_bits[elements - 1] =                                
ffc1a7d4:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
                                                                      
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);                 
ffc1a7d8:	7d 47 3c 30 	srw     r7,r10,r7                              
  elements = rtems_rfs_bitmap_elements (elements);                    
                                                                      
  for (e = 0; e < (elements - 1); e++)                                
    control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;         
                                                                      
  control->search_bits[elements - 1] =                                
ffc1a7dc:	7c e8 49 2e 	stwx    r7,r8,r9                               
    rtems_rfs_bitmap_merge (RTEMS_RFS_BITMAP_ELEMENT_CLEAR,           
                            RTEMS_RFS_BITMAP_ELEMENT_SET,             
                            rtems_rfs_bitmap_mask (last_search_bit)); 
                                                                      
  rtems_rfs_buffer_mark_dirty (control->buffer);                      
ffc1a7e0:	39 40 00 01 	li      r10,1                                  
                                                                      
  return 0;                                                           
ffc1a7e4:	38 60 00 00 	li      r3,0                                   
  control->search_bits[elements - 1] =                                
    rtems_rfs_bitmap_merge (RTEMS_RFS_BITMAP_ELEMENT_CLEAR,           
                            RTEMS_RFS_BITMAP_ELEMENT_SET,             
                            rtems_rfs_bitmap_mask (last_search_bit)); 
                                                                      
  rtems_rfs_buffer_mark_dirty (control->buffer);                      
ffc1a7e8:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc1a7ec:	99 49 00 00 	stb     r10,0(r9)                              
                                                                      
  return 0;                                                           
}                                                                     
ffc1a7f0:	39 61 00 20 	addi    r11,r1,32                              
ffc1a7f4:	4b fe 6d 78 	b       ffc0156c <_restgpr_31_x>               
                                                                      

ffc1a4dc <rtems_rfs_bitmap_map_set>: int rtems_rfs_bitmap_map_set (rtems_rfs_bitmap_control* control, rtems_rfs_bitmap_bit bit) {
ffc1a4dc:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1a4e0:	7c 08 02 a6 	mflr    r0                                     
ffc1a4e4:	bf c1 00 18 	stmw    r30,24(r1)                             
ffc1a4e8:	7c 9e 23 78 	mr      r30,r4                                 
  rtems_rfs_bitmap_map map;                                           
  rtems_rfs_bitmap_map search_map;                                    
  int                  index;                                         
  int                  offset;                                        
  int                 rc;                                             
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc1a4ec:	38 81 00 08 	addi    r4,r1,8                                
}                                                                     
                                                                      
int                                                                   
rtems_rfs_bitmap_map_set (rtems_rfs_bitmap_control* control,          
                          rtems_rfs_bitmap_bit      bit)              
{                                                                     
ffc1a4f0:	90 01 00 24 	stw     r0,36(r1)                              
ffc1a4f4:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_rfs_bitmap_map map;                                           
  rtems_rfs_bitmap_map search_map;                                    
  int                  index;                                         
  int                  offset;                                        
  int                 rc;                                             
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc1a4f8:	4b ff fd 3d 	bl      ffc1a234 <rtems_rfs_bitmap_load_map>   
  if (rc > 0)                                                         
ffc1a4fc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1a500:	41 a1 00 78 	bgt+    ffc1a578 <rtems_rfs_bitmap_map_set+0x9c>
    return rc;                                                        
  if (bit >= control->size)                                           
ffc1a504:	81 3f 00 0c 	lwz     r9,12(r31)                             
    return EINVAL;                                                    
ffc1a508:	38 60 00 16 	li      r3,22                                  
  int                  offset;                                        
  int                 rc;                                             
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
  if (bit >= control->size)                                           
ffc1a50c:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc1a510:	40 bc 00 68 	bge+    cr7,ffc1a578 <rtems_rfs_bitmap_map_set+0x9c><== NEVER TAKEN
    return EINVAL;                                                    
  search_map = control->search_bits;                                  
  index      = rtems_rfs_bitmap_map_index (bit);                      
  offset     = rtems_rfs_bitmap_map_offset (bit);                     
  map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);        
ffc1a514:	80 a1 00 08 	lwz     r5,8(r1)                               
  if (rc > 0)                                                         
    return rc;                                                        
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  search_map = control->search_bits;                                  
  index      = rtems_rfs_bitmap_map_index (bit);                      
ffc1a518:	7f c8 2e 70 	srawi   r8,r30,5                               
  offset     = rtems_rfs_bitmap_map_offset (bit);                     
  map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);        
ffc1a51c:	55 06 10 3a 	rlwinm  r6,r8,2,0,29                           
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  search_map = control->search_bits;                                  
ffc1a520:	81 5f 00 14 	lwz     r10,20(r31)                            
 */                                                                   
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);                    
ffc1a524:	7c 85 30 2e 	lwzx    r4,r5,r6                               
    return rc;                                                        
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  search_map = control->search_bits;                                  
  index      = rtems_rfs_bitmap_map_index (bit);                      
  offset     = rtems_rfs_bitmap_map_offset (bit);                     
ffc1a528:	57 c7 06 fe 	clrlwi  r7,r30,27                              
  map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);        
ffc1a52c:	39 20 00 01 	li      r9,1                                   
ffc1a530:	7d 27 38 30 	slw     r7,r9,r7                               
 */                                                                   
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);                    
ffc1a534:	7c 87 38 78 	andc    r7,r4,r7                               
    return EINVAL;                                                    
  search_map = control->search_bits;                                  
  index      = rtems_rfs_bitmap_map_index (bit);                      
  offset     = rtems_rfs_bitmap_map_offset (bit);                     
  map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);        
  if (rtems_rfs_bitmap_match(map[index], RTEMS_RFS_BITMAP_ELEMENT_SET))
ffc1a538:	2f 87 00 00 	cmpwi   cr7,r7,0                               
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  search_map = control->search_bits;                                  
  index      = rtems_rfs_bitmap_map_index (bit);                      
  offset     = rtems_rfs_bitmap_map_offset (bit);                     
  map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);        
ffc1a53c:	7c e5 31 2e 	stwx    r7,r5,r6                               
    offset = rtems_rfs_bitmap_map_offset (bit);                       
    search_map[index] = rtems_rfs_bitmap_set (search_map[index], 1 << offset);
    control->free--;                                                  
    rtems_rfs_buffer_mark_dirty (control->buffer);                    
  }                                                                   
  return 0;                                                           
ffc1a540:	38 60 00 00 	li      r3,0                                   
    return EINVAL;                                                    
  search_map = control->search_bits;                                  
  index      = rtems_rfs_bitmap_map_index (bit);                      
  offset     = rtems_rfs_bitmap_map_offset (bit);                     
  map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);        
  if (rtems_rfs_bitmap_match(map[index], RTEMS_RFS_BITMAP_ELEMENT_SET))
ffc1a544:	40 9e 00 34 	bne-    cr7,ffc1a578 <rtems_rfs_bitmap_map_set+0x9c><== ALWAYS TAKEN
  {                                                                   
    bit = index;                                                      
    index  = rtems_rfs_bitmap_map_index (bit);                        
ffc1a548:	7f de 56 70 	srawi   r30,r30,10                             <== NOT EXECUTED
    offset = rtems_rfs_bitmap_map_offset (bit);                       
    search_map[index] = rtems_rfs_bitmap_set (search_map[index], 1 << offset);
ffc1a54c:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         <== NOT EXECUTED
 */                                                                   
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);                    
ffc1a550:	7c ea f0 2e 	lwzx    r7,r10,r30                             <== NOT EXECUTED
  map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);        
  if (rtems_rfs_bitmap_match(map[index], RTEMS_RFS_BITMAP_ELEMENT_SET))
  {                                                                   
    bit = index;                                                      
    index  = rtems_rfs_bitmap_map_index (bit);                        
    offset = rtems_rfs_bitmap_map_offset (bit);                       
ffc1a554:	55 08 06 fe 	clrlwi  r8,r8,27                               <== NOT EXECUTED
    search_map[index] = rtems_rfs_bitmap_set (search_map[index], 1 << offset);
ffc1a558:	7d 28 40 30 	slw     r8,r9,r8                               <== NOT EXECUTED
 */                                                                   
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);                    
ffc1a55c:	7c e7 40 78 	andc    r7,r7,r8                               <== NOT EXECUTED
  if (rtems_rfs_bitmap_match(map[index], RTEMS_RFS_BITMAP_ELEMENT_SET))
  {                                                                   
    bit = index;                                                      
    index  = rtems_rfs_bitmap_map_index (bit);                        
    offset = rtems_rfs_bitmap_map_offset (bit);                       
    search_map[index] = rtems_rfs_bitmap_set (search_map[index], 1 << offset);
ffc1a560:	7c ea f1 2e 	stwx    r7,r10,r30                             <== NOT EXECUTED
    control->free--;                                                  
ffc1a564:	81 5f 00 10 	lwz     r10,16(r31)                            <== NOT EXECUTED
ffc1a568:	39 4a ff ff 	addi    r10,r10,-1                             <== NOT EXECUTED
ffc1a56c:	91 5f 00 10 	stw     r10,16(r31)                            <== NOT EXECUTED
    rtems_rfs_buffer_mark_dirty (control->buffer);                    
ffc1a570:	81 5f 00 00 	lwz     r10,0(r31)                             <== NOT EXECUTED
ffc1a574:	99 2a 00 00 	stb     r9,0(r10)                              <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
}                                                                     
ffc1a578:	39 61 00 20 	addi    r11,r1,32                              
ffc1a57c:	4b fe 6f ec 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc1a61c <rtems_rfs_bitmap_map_test>: int rtems_rfs_bitmap_map_test (rtems_rfs_bitmap_control* control, rtems_rfs_bitmap_bit bit, bool* state) {
ffc1a61c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc1a620:	7c 08 02 a6 	mflr    r0                                     
ffc1a624:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc1a628:	7c 9f 23 78 	mr      r31,r4                                 
  rtems_rfs_bitmap_map map;                                           
  int                  index;                                         
  int                  rc;                                            
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc1a62c:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
int                                                                   
rtems_rfs_bitmap_map_test (rtems_rfs_bitmap_control* control,         
                           rtems_rfs_bitmap_bit      bit,             
                           bool*                     state)           
{                                                                     
ffc1a630:	90 01 00 2c 	stw     r0,44(r1)                              
ffc1a634:	7c 7e 1b 78 	mr      r30,r3                                 
ffc1a638:	7c bd 2b 78 	mr      r29,r5                                 
  rtems_rfs_bitmap_map map;                                           
  int                  index;                                         
  int                  rc;                                            
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc1a63c:	4b ff fb f9 	bl      ffc1a234 <rtems_rfs_bitmap_load_map>   
  if (rc > 0)                                                         
ffc1a640:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1a644:	41 a1 00 40 	bgt+    ffc1a684 <rtems_rfs_bitmap_map_test+0x68>
    return rc;                                                        
  if (bit >= control->size)                                           
ffc1a648:	81 3e 00 0c 	lwz     r9,12(r30)                             
    return EINVAL;                                                    
ffc1a64c:	38 60 00 16 	li      r3,22                                  
  int                  index;                                         
  int                  rc;                                            
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
  if (bit >= control->size)                                           
ffc1a650:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc1a654:	40 bc 00 30 	bge+    cr7,ffc1a684 <rtems_rfs_bitmap_map_test+0x68><== NEVER TAKEN
    return EINVAL;                                                    
  index = rtems_rfs_bitmap_map_index (bit);                           
ffc1a658:	7f e8 2e 70 	srawi   r8,r31,5                               
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
ffc1a65c:	81 21 00 08 	lwz     r9,8(r1)                               
  if (rc > 0)                                                         
    return rc;                                                        
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  index = rtems_rfs_bitmap_map_index (bit);                           
  *state = rtems_rfs_bitmap_test (map[index], bit);                   
ffc1a660:	55 08 10 3a 	rlwinm  r8,r8,2,0,29                           
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
ffc1a664:	39 40 00 01 	li      r10,1                                  
ffc1a668:	7d 4a f8 30 	slw     r10,r10,r31                            
ffc1a66c:	7f e9 40 2e 	lwzx    r31,r9,r8                              
    return rc;                                                        
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  index = rtems_rfs_bitmap_map_index (bit);                           
  *state = rtems_rfs_bitmap_test (map[index], bit);                   
  return 0;                                                           
ffc1a670:	38 60 00 00 	li      r3,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);                     
ffc1a674:	7d 49 f8 39 	and.    r9,r10,r31                             
ffc1a678:	7f e0 00 26 	mfcr    r31                                    
ffc1a67c:	57 ff 1f fe 	rlwinm  r31,r31,3,31,31                        
ffc1a680:	9b fd 00 00 	stb     r31,0(r29)                             
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  index = rtems_rfs_bitmap_map_index (bit);                           
  *state = rtems_rfs_bitmap_test (map[index], bit);                   
  return 0;                                                           
}                                                                     
ffc1a684:	39 61 00 28 	addi    r11,r1,40                              
ffc1a688:	4b fe 6e dc 	b       ffc01564 <_restgpr_29_x>               
                                                                      

ffc1a4a4 <rtems_rfs_bitmap_mask>: 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); return mask; }
ffc1a4a4:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
                                                                      
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);                 
ffc1a4a8:	20 63 00 20 	subfic  r3,r3,32                               <== NOT EXECUTED
  return mask;                                                        
}                                                                     
ffc1a4ac:	7d 23 1c 30 	srw     r3,r9,r3                               <== NOT EXECUTED
ffc1a4b0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc1a4b4 <rtems_rfs_bitmap_mask_section>: rtems_rfs_bitmap_element rtems_rfs_bitmap_mask_section (unsigned int start, unsigned int end) { rtems_rfs_bitmap_element mask = 0; if (end > start)
ffc1a4b4:	7f 84 18 40 	cmplw   cr7,r4,r3                              
ffc1a4b8:	40 9d 00 1c 	ble-    cr7,ffc1a4d4 <rtems_rfs_bitmap_mask_section+0x20><== NEVER TAKEN
    mask = rtems_rfs_bitmap_mask (end - start) << start;              
ffc1a4bc:	7c 83 20 50 	subf    r4,r3,r4                               
                                                                      
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);                 
ffc1a4c0:	39 20 ff ff 	li      r9,-1                                  
ffc1a4c4:	20 84 00 20 	subfic  r4,r4,32                               
ffc1a4c8:	7d 24 24 30 	srw     r4,r9,r4                               
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;              
ffc1a4cc:	7c 83 18 30 	slw     r3,r4,r3                               
ffc1a4d0:	4e 80 00 20 	blr                                            
}                                                                     
                                                                      
rtems_rfs_bitmap_element                                              
rtems_rfs_bitmap_mask_section (unsigned int start, unsigned int end)  
{                                                                     
  rtems_rfs_bitmap_element mask = 0;                                  
ffc1a4d4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
  if (end > start)                                                    
    mask = rtems_rfs_bitmap_mask (end - start) << start;              
  return mask;                                                        
}                                                                     
ffc1a4d8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc1abd8 <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) {
ffc1abd8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1abdc:	7c 08 02 a6 	mflr    r0                                     
ffc1abe0:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc1abe4:	7c de 33 78 	mr      r30,r6                                 
                                                                      
  /*                                                                  
   * 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);     
ffc1abe8:	38 c0 00 01 	li      r6,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)       
{                                                                     
ffc1abec:	90 01 00 24 	stw     r0,36(r1)                              
ffc1abf0:	7c 7c 1b 78 	mr      r28,r3                                 
ffc1abf4:	7c 9b 23 78 	mr      r27,r4                                 
ffc1abf8:	7c bd 2b 78 	mr      r29,r5                                 
ffc1abfc:	7c ff 3b 78 	mr      r31,r7                                 
                                                                      
  /*                                                                  
   * 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);     
ffc1ac00:	48 00 12 d1 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
  if (rc > 0)                                                         
ffc1ac04:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1ac08:	41 a1 00 98 	bgt+    ffc1aca0 <rtems_rfs_block_find_indirect+0xc8><== NEVER TAKEN
    return rc;                                                        
                                                                      
  *result = rtems_rfs_block_get_number (buffer, offset);              
ffc1ac0c:	81 3b 00 08 	lwz     r9,8(r27)                              
ffc1ac10:	57 c8 10 3a 	rlwinm  r8,r30,2,0,29                          
ffc1ac14:	80 e9 00 1c 	lwz     r7,28(r9)                              
ffc1ac18:	7d 47 42 14 	add     r10,r7,r8                              
ffc1ac1c:	7d 27 40 ae 	lbzx    r9,r7,r8                               
ffc1ac20:	88 ca 00 03 	lbz     r6,3(r10)                              
ffc1ac24:	89 0a 00 01 	lbz     r8,1(r10)                              
ffc1ac28:	55 29 c0 0e 	rlwinm  r9,r9,24,0,7                           
ffc1ac2c:	89 4a 00 02 	lbz     r10,2(r10)                             
ffc1ac30:	7c c9 4b 78 	or      r9,r6,r9                               
ffc1ac34:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc1ac38:	7d 29 43 78 	or      r9,r9,r8                               
ffc1ac3c:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc1ac40:	7d 29 53 78 	or      r9,r9,r10                              
  if ((*result + 1) == 0)                                             
ffc1ac44:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc1ac48:	40 be 00 08 	bne+    cr7,ffc1ac50 <rtems_rfs_block_find_indirect+0x78><== ALWAYS TAKEN
    *result = 0;                                                      
ffc1ac4c:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
                                                                      
  if (*result >= rtems_rfs_fs_blocks (fs))                            
ffc1ac50:	81 5c 00 04 	lwz     r10,4(r28)                             
ffc1ac54:	38 60 00 00 	li      r3,0                                   
ffc1ac58:	91 3f 00 00 	stw     r9,0(r31)                              
ffc1ac5c:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc1ac60:	41 bc 00 40 	blt+    cr7,ffc1aca0 <rtems_rfs_block_find_indirect+0xc8><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_FIND))                 
ffc1ac64:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1ac68:	38 80 10 00 	li      r4,4096                                <== NOT EXECUTED
ffc1ac6c:	4b ff 95 dd 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1ac70:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1ac74:	41 be 00 20 	beq+    cr7,ffc1ac94 <rtems_rfs_block_find_indirect+0xbc><== NOT EXECUTED
      printf ("rtems-rfs: block-find: invalid block in table:"        
ffc1ac78:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1ac7c:	80 9f 00 00 	lwz     r4,0(r31)                              <== NOT EXECUTED
ffc1ac80:	38 63 48 57 	addi    r3,r3,18519                            <== NOT EXECUTED
ffc1ac84:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc1ac88:	7f c6 f3 78 	mr      r6,r30                                 <== NOT EXECUTED
ffc1ac8c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1ac90:	48 00 7e e1 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
              " block=%" PRId32 ", indirect=%" PRId32 "/%d\n", *result, block, offset);
    *result = 0;                                                      
ffc1ac94:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc1ac98:	91 3f 00 00 	stw     r9,0(r31)                              <== NOT EXECUTED
ffc1ac9c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc1aca0:	39 61 00 20 	addi    r11,r1,32                              
ffc1aca4:	4b fe 68 b8 	b       ffc0155c <_restgpr_27_x>               
                                                                      

ffc1adf8 <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) {
ffc1adf8:	94 21 ff e8 	stwu    r1,-24(r1)                             <== NOT EXECUTED
ffc1adfc:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc1ae00:	bf 81 00 08 	stmw    r28,8(r1)                              <== NOT EXECUTED
ffc1ae04:	7c bd 2b 78 	mr      r29,r5                                 <== NOT EXECUTED
ffc1ae08:	7c de 33 78 	mr      r30,r6                                 <== NOT EXECUTED
  if (pos == 0)                                                       
ffc1ae0c:	7f a9 f3 79 	or.     r9,r29,r30                             <== NOT EXECUTED
                                                                      
void                                                                  
rtems_rfs_block_get_block_size (rtems_rfs_file_system* fs,            
                                rtems_rfs_pos          pos,           
                                rtems_rfs_block_size*  size)          
{                                                                     
ffc1ae10:	90 01 00 1c 	stw     r0,28(r1)                              <== NOT EXECUTED
ffc1ae14:	7c ff 3b 78 	mr      r31,r7                                 <== NOT EXECUTED
  if (pos == 0)                                                       
ffc1ae18:	40 a2 00 10 	bne+    ffc1ae28 <rtems_rfs_block_get_block_size+0x30><== 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;                                                    
ffc1ae1c:	91 27 00 00 	stw     r9,0(r7)                               <== NOT EXECUTED
  size->offset = 0;                                                   
ffc1ae20:	91 27 00 04 	stw     r9,4(r7)                               <== NOT EXECUTED
ffc1ae24:	48 00 00 3c 	b       ffc1ae60 <rtems_rfs_block_get_block_size+0x68><== NOT EXECUTED
    rtems_rfs_block_set_size_zero (size);                             
  else                                                                
  {                                                                   
    size->count  = pos / rtems_rfs_fs_block_size (fs) + 1;            
ffc1ae28:	83 83 00 08 	lwz     r28,8(r3)                              <== NOT EXECUTED
ffc1ae2c:	7c c4 33 78 	mr      r4,r6                                  <== NOT EXECUTED
ffc1ae30:	7c a3 2b 78 	mr      r3,r5                                  <== NOT EXECUTED
ffc1ae34:	7f 86 e3 78 	mr      r6,r28                                 <== NOT EXECUTED
ffc1ae38:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc1ae3c:	48 01 56 7d 	bl      ffc304b8 <__udivdi3>                   <== NOT EXECUTED
    size->offset = pos % rtems_rfs_fs_block_size (fs);                
ffc1ae40:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
{                                                                     
  if (pos == 0)                                                       
    rtems_rfs_block_set_size_zero (size);                             
  else                                                                
  {                                                                   
    size->count  = pos / rtems_rfs_fs_block_size (fs) + 1;            
ffc1ae44:	38 84 00 01 	addi    r4,r4,1                                <== NOT EXECUTED
ffc1ae48:	90 9f 00 00 	stw     r4,0(r31)                              <== NOT EXECUTED
    size->offset = pos % rtems_rfs_fs_block_size (fs);                
ffc1ae4c:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc1ae50:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc1ae54:	7f 86 e3 78 	mr      r6,r28                                 <== NOT EXECUTED
ffc1ae58:	48 01 5a 59 	bl      ffc308b0 <__umoddi3>                   <== NOT EXECUTED
ffc1ae5c:	90 9f 00 04 	stw     r4,4(r31)                              <== NOT EXECUTED
  }                                                                   
}                                                                     
ffc1ae60:	39 61 00 18 	addi    r11,r1,24                              <== NOT EXECUTED
ffc1ae64:	4b fe 66 fc 	b       ffc01560 <_restgpr_28_x>               <== NOT EXECUTED
                                                                      

ffc1b074 <rtems_rfs_block_map_close>: int rtems_rfs_block_map_close (rtems_rfs_file_system* fs, rtems_rfs_block_map* map) {
ffc1b074:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc1b078:	7c 08 02 a6 	mflr    r0                                     
ffc1b07c:	90 01 00 1c 	stw     r0,28(r1)                              
  int rc = 0;                                                         
  int brc;                                                            
                                                                      
  if (map->dirty && map->inode)                                       
ffc1b080:	89 24 00 00 	lbz     r9,0(r4)                               
}                                                                     
                                                                      
int                                                                   
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,                 
                           rtems_rfs_block_map*   map)                
{                                                                     
ffc1b084:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc1b088:	7c 7c 1b 78 	mr      r28,r3                                 
  int rc = 0;                                                         
  int brc;                                                            
                                                                      
  if (map->dirty && map->inode)                                       
ffc1b08c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
}                                                                     
                                                                      
int                                                                   
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,                 
                           rtems_rfs_block_map*   map)                
{                                                                     
ffc1b090:	7c 9f 23 78 	mr      r31,r4                                 
  int rc = 0;                                                         
ffc1b094:	3b c0 00 00 	li      r30,0                                  
  int brc;                                                            
                                                                      
  if (map->dirty && map->inode)                                       
ffc1b098:	41 9e 01 88 	beq-    cr7,ffc1b220 <rtems_rfs_block_map_close+0x1ac>
ffc1b09c:	80 84 00 04 	lwz     r4,4(r4)                               
                                                                      
int                                                                   
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,                 
                           rtems_rfs_block_map*   map)                
{                                                                     
  int rc = 0;                                                         
ffc1b0a0:	3b c0 00 00 	li      r30,0                                  
  int brc;                                                            
                                                                      
  if (map->dirty && map->inode)                                       
ffc1b0a4:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc1b0a8:	41 9e 01 78 	beq-    cr7,ffc1b220 <rtems_rfs_block_map_close+0x1ac><== NEVER TAKEN
  {                                                                   
    brc = rtems_rfs_inode_load (fs, map->inode);                      
ffc1b0ac:	4b ff 76 81 	bl      ffc1272c <rtems_rfs_inode_load>        
    if (brc > 0)                                                      
ffc1b0b0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1b0b4:	7c 7e 1b 78 	mr      r30,r3                                 
ffc1b0b8:	41 bd 01 68 	bgt+    cr7,ffc1b220 <rtems_rfs_block_map_close+0x1ac><== NEVER TAKEN
 */                                                                   
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);                      
ffc1b0bc:	39 20 00 05 	li      r9,5                                   
ffc1b0c0:	7d 29 03 a6 	mtctr   r9                                     
ffc1b0c4:	39 00 00 00 	li      r8,0                                   
ffc1b0c8:	38 a0 00 01 	li      r5,1                                   
    if (rc == 0)                                                      
    {                                                                 
      int b;                                                          
                                                                      
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
        rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);    
ffc1b0cc:	81 3f 00 04 	lwz     r9,4(r31)                              
                                                                      
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,                 
ffc1b0d0:	55 0a 10 3a 	rlwinm  r10,r8,2,0,29                          
ffc1b0d4:	7d 5f 52 14 	add     r10,r31,r10                            
    if (rc == 0)                                                      
    {                                                                 
      int b;                                                          
                                                                      
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
        rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);    
ffc1b0d8:	81 4a 00 24 	lwz     r10,36(r10)                            
 * @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);       
ffc1b0dc:	38 e8 00 04 	addi    r7,r8,4                                
ffc1b0e0:	80 c9 00 0c 	lwz     r6,12(r9)                              
ffc1b0e4:	54 e7 10 3a 	rlwinm  r7,r7,2,0,29                           
ffc1b0e8:	55 44 46 3e 	rlwinm  r4,r10,8,24,31                         
ffc1b0ec:	7c c6 3a 14 	add     r6,r6,r7                               
ffc1b0f0:	98 86 00 0c 	stb     r4,12(r6)                              
ffc1b0f4:	55 44 84 3e 	rlwinm  r4,r10,16,16,31                        
                                                                      
    if (rc == 0)                                                      
    {                                                                 
      int b;                                                          
                                                                      
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
ffc1b0f8:	39 08 00 01 	addi    r8,r8,1                                
ffc1b0fc:	80 c9 00 0c 	lwz     r6,12(r9)                              
ffc1b100:	7c c6 3a 14 	add     r6,r6,r7                               
ffc1b104:	98 86 00 0d 	stb     r4,13(r6)                              
ffc1b108:	55 44 c2 3e 	rlwinm  r4,r10,24,8,31                         
ffc1b10c:	80 c9 00 0c 	lwz     r6,12(r9)                              
ffc1b110:	7c c6 3a 14 	add     r6,r6,r7                               
ffc1b114:	98 86 00 0e 	stb     r4,14(r6)                              
ffc1b118:	80 c9 00 0c 	lwz     r6,12(r9)                              
ffc1b11c:	7c e6 3a 14 	add     r7,r6,r7                               
ffc1b120:	99 47 00 0f 	stb     r10,15(r7)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1b124:	39 40 00 01 	li      r10,1                                  
ffc1b128:	98 a9 00 10 	stb     r5,16(r9)                              
ffc1b12c:	42 00 ff a0 	bdnz+   ffc1b0cc <rtems_rfs_block_map_close+0x58>
        rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);    
      rtems_rfs_inode_set_block_count (map->inode, map->size.count);  
ffc1b130:	81 3f 00 04 	lwz     r9,4(r31)                              
      rtems_rfs_inode_set_block_offset (map->inode, map->size.offset);
      rtems_rfs_inode_set_last_map_block (map->inode, map->last_map_block);
      rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
                                                                      
      brc = rtems_rfs_inode_unload (fs, map->inode, true);            
ffc1b134:	7f 83 e3 78 	mr      r3,r28                                 
    {                                                                 
      int b;                                                          
                                                                      
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
        rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);    
      rtems_rfs_inode_set_block_count (map->inode, map->size.count);  
ffc1b138:	81 1f 00 08 	lwz     r8,8(r31)                              
      rtems_rfs_inode_set_block_offset (map->inode, map->size.offset);
      rtems_rfs_inode_set_last_map_block (map->inode, map->last_map_block);
      rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
                                                                      
      brc = rtems_rfs_inode_unload (fs, map->inode, true);            
ffc1b13c:	38 a0 00 01 	li      r5,1                                   
 * @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);      
ffc1b140:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc1b144:	55 06 46 3e 	rlwinm  r6,r8,8,24,31                          
ffc1b148:	98 c7 00 0c 	stb     r6,12(r7)                              
ffc1b14c:	55 06 84 3e 	rlwinm  r6,r8,16,16,31                         
ffc1b150:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc1b154:	98 c7 00 0d 	stb     r6,13(r7)                              
ffc1b158:	55 06 c2 3e 	rlwinm  r6,r8,24,8,31                          
ffc1b15c:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc1b160:	98 c7 00 0e 	stb     r6,14(r7)                              
ffc1b164:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc1b168:	99 07 00 0f 	stb     r8,15(r7)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1b16c:	99 49 00 10 	stb     r10,16(r9)                             
      int b;                                                          
                                                                      
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
        rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);    
      rtems_rfs_inode_set_block_count (map->inode, map->size.count);  
      rtems_rfs_inode_set_block_offset (map->inode, map->size.offset);
ffc1b170:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc1b174:	81 1f 00 0c 	lwz     r8,12(r31)                             
 */                                                                   
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);    
ffc1b178:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc1b17c:	55 06 c6 3e 	rlwinm  r6,r8,24,24,31                         
ffc1b180:	98 c7 00 0a 	stb     r6,10(r7)                              
ffc1b184:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc1b188:	99 07 00 0b 	stb     r8,11(r7)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1b18c:	99 49 00 10 	stb     r10,16(r9)                             
      rtems_rfs_inode_set_last_map_block (map->inode, map->last_map_block);
ffc1b190:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc1b194:	81 1f 00 1c 	lwz     r8,28(r31)                             
 * @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);
ffc1b198:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc1b19c:	55 06 46 3e 	rlwinm  r6,r8,8,24,31                          
ffc1b1a0:	98 c7 00 30 	stb     r6,48(r7)                              
ffc1b1a4:	55 06 84 3e 	rlwinm  r6,r8,16,16,31                         
ffc1b1a8:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc1b1ac:	98 c7 00 31 	stb     r6,49(r7)                              
ffc1b1b0:	55 06 c2 3e 	rlwinm  r6,r8,24,8,31                          
ffc1b1b4:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc1b1b8:	98 c7 00 32 	stb     r6,50(r7)                              
ffc1b1bc:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc1b1c0:	99 07 00 33 	stb     r8,51(r7)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1b1c4:	99 49 00 10 	stb     r10,16(r9)                             
      rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
ffc1b1c8:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc1b1cc:	81 1f 00 20 	lwz     r8,32(r31)                             
 * @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);
ffc1b1d0:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc1b1d4:	55 06 46 3e 	rlwinm  r6,r8,8,24,31                          
ffc1b1d8:	98 c7 00 34 	stb     r6,52(r7)                              
ffc1b1dc:	55 06 84 3e 	rlwinm  r6,r8,16,16,31                         
ffc1b1e0:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc1b1e4:	98 c7 00 35 	stb     r6,53(r7)                              
ffc1b1e8:	55 06 c2 3e 	rlwinm  r6,r8,24,8,31                          
ffc1b1ec:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc1b1f0:	98 c7 00 36 	stb     r6,54(r7)                              
ffc1b1f4:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc1b1f8:	99 07 00 37 	stb     r8,55(r7)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1b1fc:	99 49 00 10 	stb     r10,16(r9)                             
                                                                      
      brc = rtems_rfs_inode_unload (fs, map->inode, true);            
ffc1b200:	80 9f 00 04 	lwz     r4,4(r31)                              
ffc1b204:	4b ff 76 d1 	bl      ffc128d4 <rtems_rfs_inode_unload>      
ffc1b208:	7c 69 18 f8 	not     r9,r3                                  
ffc1b20c:	7d 29 fe 70 	srawi   r9,r9,31                               
ffc1b210:	7c 7e 48 38 	and     r30,r3,r9                              
      if (brc > 0)                                                    
        rc = brc;                                                     
                                                                      
      map->dirty = false;                                             
ffc1b214:	39 20 00 00 	li      r9,0                                   
ffc1b218:	99 3f 00 00 	stb     r9,0(r31)                              
ffc1b21c:	48 00 00 04 	b       ffc1b220 <rtems_rfs_block_map_close+0x1ac>
    }                                                                 
  }                                                                   
                                                                      
  map->inode = NULL;                                                  
ffc1b220:	3b a0 00 00 	li      r29,0                                  
ffc1b224:	93 bf 00 04 	stw     r29,4(r31)                             
 */                                                                   
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);                       
ffc1b228:	38 9f 00 38 	addi    r4,r31,56                              
ffc1b22c:	7f 83 e3 78 	mr      r3,r28                                 
ffc1b230:	48 00 0a bd 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
ffc1b234:	9b bf 00 38 	stb     r29,56(r31)                            
 */                                                                   
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);                       
ffc1b238:	7f 83 e3 78 	mr      r3,r28                                 
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc1b23c:	93 bf 00 3c 	stw     r29,60(r31)                            
 */                                                                   
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);                       
ffc1b240:	38 9f 00 44 	addi    r4,r31,68                              
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc1b244:	93 bf 00 40 	stw     r29,64(r31)                            
 */                                                                   
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);                       
ffc1b248:	48 00 0a a5 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
ffc1b24c:	9b bf 00 44 	stb     r29,68(r31)                            
    rc = brc;                                                         
  brc = rtems_rfs_buffer_handle_close (fs, &map->doubly_buffer);      
  if ((brc > 0) && (rc == 0))                                         
    rc = brc;                                                         
  return rc;                                                          
}                                                                     
ffc1b250:	39 61 00 18 	addi    r11,r1,24                              
  handle->bnum  = 0;                                                  
ffc1b254:	93 bf 00 48 	stw     r29,72(r31)                            
ffc1b258:	7f c3 f3 78 	mr      r3,r30                                 
  handle->buffer = NULL;                                              
ffc1b25c:	93 bf 00 4c 	stw     r29,76(r31)                            
ffc1b260:	4b fe 63 00 	b       ffc01560 <_restgpr_28_x>               
                                                                      

ffc1b264 <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) {
ffc1b264:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc1b268:	7c 08 02 a6 	mflr    r0                                     
  int rc = 0;                                                         
                                                                      
  *block = 0;                                                         
ffc1b26c:	39 20 00 00 	li      r9,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)               
{                                                                     
ffc1b270:	bf 61 00 1c 	stmw    r27,28(r1)                             
ffc1b274:	7c 7d 1b 78 	mr      r29,r3                                 
ffc1b278:	7c 9f 23 78 	mr      r31,r4                                 
ffc1b27c:	90 01 00 34 	stw     r0,52(r1)                              
ffc1b280:	7c bc 2b 78 	mr      r28,r5                                 
ffc1b284:	7c de 33 78 	mr      r30,r6                                 
  int rc = 0;                                                         
                                                                      
  *block = 0;                                                         
ffc1b288:	91 26 00 00 	stw     r9,0(r6)                               
                                                                      
  /*                                                                  
   * Range checking here makes the remaining logic simpler.           
   */                                                                 
  if (rtems_rfs_block_pos_block_past_end (bpos, &map->size))          
ffc1b28c:	81 45 00 00 	lwz     r10,0(r5)                              
ffc1b290:	81 04 00 08 	lwz     r8,8(r4)                               
ffc1b294:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1b298:	41 9e 00 10 	beq-    cr7,ffc1b2a8 <rtems_rfs_block_map_find+0x44>
ffc1b29c:	2f 88 00 00 	cmpwi   cr7,r8,0                               
    return ENXIO;                                                     
ffc1b2a0:	38 60 00 06 	li      r3,6                                   
  *block = 0;                                                         
                                                                      
  /*                                                                  
   * Range checking here makes the remaining logic simpler.           
   */                                                                 
  if (rtems_rfs_block_pos_block_past_end (bpos, &map->size))          
ffc1b2a4:	41 be 01 14 	beq+    cr7,ffc1b3b8 <rtems_rfs_block_map_find+0x154><== NEVER TAKEN
ffc1b2a8:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
    return ENXIO;                                                     
ffc1b2ac:	38 60 00 06 	li      r3,6                                   
  *block = 0;                                                         
                                                                      
  /*                                                                  
   * Range checking here makes the remaining logic simpler.           
   */                                                                 
  if (rtems_rfs_block_pos_block_past_end (bpos, &map->size))          
ffc1b2b0:	40 bc 01 08 	bge+    cr7,ffc1b3b8 <rtems_rfs_block_map_find+0x154>
    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))         
ffc1b2b4:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc1b2b8:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc1b2bc:	40 be 00 14 	bne+    cr7,ffc1b2d0 <rtems_rfs_block_map_find+0x6c>
ffc1b2c0:	81 3f 00 18 	lwz     r9,24(r31)                             
ffc1b2c4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1b2c8:	41 9e 00 08 	beq-    cr7,ffc1b2d0 <rtems_rfs_block_map_find+0x6c>
ffc1b2cc:	48 00 00 1c 	b       ffc1b2e8 <rtems_rfs_block_map_find+0x84>
    /*                                                                
     * 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)                    
ffc1b2d0:	2b 88 00 05 	cmplwi  cr7,r8,5                               
ffc1b2d4:	41 9d 00 1c 	bgt-    cr7,ffc1b2f0 <rtems_rfs_block_map_find+0x8c>
    {                                                                 
      *block = map->blocks[bpos->bno];                                
ffc1b2d8:	39 4a 00 08 	addi    r10,r10,8                              
ffc1b2dc:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
ffc1b2e0:	7d 5f 52 14 	add     r10,r31,r10                            
ffc1b2e4:	81 2a 00 04 	lwz     r9,4(r10)                              
ffc1b2e8:	91 3e 00 00 	stw     r9,0(r30)                              
ffc1b2ec:	48 00 00 a8 	b       ffc1b394 <rtems_rfs_block_map_find+0x130>
       * 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;                      
ffc1b2f0:	80 fd 00 34 	lwz     r7,52(r29)                             
ffc1b2f4:	7d 2a 3b 96 	divwu   r9,r10,r7                              
ffc1b2f8:	7f 69 39 d6 	mullw   r27,r9,r7                              
      singly = bpos->bno / fs->blocks_per_block;                      
ffc1b2fc:	91 21 00 08 	stw     r9,8(r1)                               
       * 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;                      
ffc1b300:	7f 7b 50 50 	subf    r27,r27,r10                            
      singly = bpos->bno / fs->blocks_per_block;                      
                                                                      
      if (map->size.count <= fs->block_map_singly_blocks)             
ffc1b304:	81 5d 00 38 	lwz     r10,56(r29)                            
ffc1b308:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc1b30c:	41 bd 00 20 	bgt+    cr7,ffc1b32c <rtems_rfs_block_map_find+0xc8><== NEVER TAKEN
      {                                                               
        /*                                                            
         * This is a single indirect table of blocks anchored off a slot in the
         * inode.                                                     
         */                                                           
        rc = rtems_rfs_block_find_indirect (fs,                       
ffc1b310:	39 29 00 08 	addi    r9,r9,8                                
ffc1b314:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc1b318:	7d 3f 4a 14 	add     r9,r31,r9                              
ffc1b31c:	7f a3 eb 78 	mr      r3,r29                                 
ffc1b320:	80 a9 00 04 	lwz     r5,4(r9)                               
ffc1b324:	38 9f 00 38 	addi    r4,r31,56                              
ffc1b328:	48 00 00 58 	b       ffc1b380 <rtems_rfs_block_map_find+0x11c>
         * The map is doubly indirect.                                
         */                                                           
        rtems_rfs_block_no doubly;                                    
                                                                      
        doubly  = singly / fs->blocks_per_block;                      
        singly %= fs->blocks_per_block;                               
ffc1b32c:	7d 49 3b 96 	divwu   r10,r9,r7                              <== NOT EXECUTED
ffc1b330:	7c ea 39 d6 	mullw   r7,r10,r7                              <== NOT EXECUTED
        {                                                             
          /*                                                          
           * This should never happen. Here so Joel can remove once his coverage
           * testing gets to the file systems.                        
           */                                                         
          rc = ENXIO;                                                 
ffc1b334:	38 60 00 06 	li      r3,6                                   <== NOT EXECUTED
         * The map is doubly indirect.                                
         */                                                           
        rtems_rfs_block_no doubly;                                    
                                                                      
        doubly  = singly / fs->blocks_per_block;                      
        singly %= fs->blocks_per_block;                               
ffc1b338:	7c c7 48 50 	subf    r6,r7,r9                               <== NOT EXECUTED
                                                                      
        if (map->size.count < fs->block_map_doubly_blocks)            
ffc1b33c:	80 fd 00 3c 	lwz     r7,60(r29)                             <== NOT EXECUTED
         * The map is doubly indirect.                                
         */                                                           
        rtems_rfs_block_no doubly;                                    
                                                                      
        doubly  = singly / fs->blocks_per_block;                      
        singly %= fs->blocks_per_block;                               
ffc1b340:	90 c1 00 08 	stw     r6,8(r1)                               <== NOT EXECUTED
                                                                      
        if (map->size.count < fs->block_map_doubly_blocks)            
ffc1b344:	7f 88 38 40 	cmplw   cr7,r8,r7                              <== NOT EXECUTED
ffc1b348:	40 bc 00 70 	bge+    cr7,ffc1b3b8 <rtems_rfs_block_map_find+0x154><== NOT EXECUTED
        {                                                             
          rc = rtems_rfs_block_find_indirect (fs,                     
ffc1b34c:	39 4a 00 08 	addi    r10,r10,8                              <== NOT EXECUTED
ffc1b350:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         <== NOT EXECUTED
ffc1b354:	7d 5f 52 14 	add     r10,r31,r10                            <== NOT EXECUTED
ffc1b358:	80 aa 00 04 	lwz     r5,4(r10)                              <== NOT EXECUTED
ffc1b35c:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc1b360:	38 9f 00 44 	addi    r4,r31,68                              <== NOT EXECUTED
ffc1b364:	38 e1 00 08 	addi    r7,r1,8                                <== NOT EXECUTED
ffc1b368:	4b ff f8 71 	bl      ffc1abd8 <rtems_rfs_block_find_indirect><== NOT EXECUTED
                                              &map->doubly_buffer,    
                                              map->blocks[doubly],    
                                              singly, &singly);       
          if (rc == 0)                                                
ffc1b36c:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc1b370:	40 a2 00 1c 	bne+    ffc1b38c <rtems_rfs_block_map_find+0x128><== NOT EXECUTED
          {                                                           
            rc = rtems_rfs_block_find_indirect (fs,                   
ffc1b374:	80 a1 00 08 	lwz     r5,8(r1)                               <== NOT EXECUTED
ffc1b378:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc1b37c:	38 9f 00 38 	addi    r4,r31,56                              <== NOT EXECUTED
ffc1b380:	7f 66 db 78 	mr      r6,r27                                 
ffc1b384:	7f c7 f3 78 	mr      r7,r30                                 
ffc1b388:	4b ff f8 51 	bl      ffc1abd8 <rtems_rfs_block_find_indirect>
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (rc == 0)                                                        
ffc1b38c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1b390:	40 be 00 28 	bne+    cr7,ffc1b3b8 <rtems_rfs_block_map_find+0x154><== NEVER TAKEN
  {                                                                   
    rtems_rfs_block_copy_bpos (&map->bpos, bpos);                     
ffc1b394:	81 3c 00 00 	lwz     r9,0(r28)                              
    map->bpos.block = *block;                                         
ffc1b398:	38 60 00 00 	li      r3,0                                   
    }                                                                 
  }                                                                   
                                                                      
  if (rc == 0)                                                        
  {                                                                   
    rtems_rfs_block_copy_bpos (&map->bpos, bpos);                     
ffc1b39c:	91 3f 00 10 	stw     r9,16(r31)                             
ffc1b3a0:	81 3c 00 04 	lwz     r9,4(r28)                              
ffc1b3a4:	91 3f 00 14 	stw     r9,20(r31)                             
ffc1b3a8:	81 3c 00 08 	lwz     r9,8(r28)                              
ffc1b3ac:	91 3f 00 18 	stw     r9,24(r31)                             
    map->bpos.block = *block;                                         
ffc1b3b0:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc1b3b4:	91 3f 00 18 	stw     r9,24(r31)                             
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc1b3b8:	39 61 00 30 	addi    r11,r1,48                              
ffc1b3bc:	4b fe 61 a0 	b       ffc0155c <_restgpr_27_x>               
                                                                      

ffc1b490 <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) {
ffc1b490:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc1b494:	7c 08 02 a6 	mflr    r0                                     
ffc1b498:	be 81 00 18 	stmw    r20,24(r1)                             
ffc1b49c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc1b4a0:	7c 9f 23 78 	mr      r31,r4                                 
  int b;                                                              
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))               
ffc1b4a4:	38 60 00 00 	li      r3,0                                   
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)           
{                                                                     
ffc1b4a8:	90 01 00 4c 	stw     r0,76(r1)                              
  int b;                                                              
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))               
ffc1b4ac:	38 80 20 00 	li      r4,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)           
{                                                                     
ffc1b4b0:	7c b8 2b 78 	mr      r24,r5                                 
ffc1b4b4:	7c d4 33 78 	mr      r20,r6                                 
  int b;                                                              
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))               
ffc1b4b8:	4b ff 8d 91 	bl      ffc14248 <rtems_rfs_trace>             
ffc1b4bc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1b4c0:	41 be 00 1c 	beq+    cr7,ffc1b4dc <rtems_rfs_block_map_grow+0x4c><== ALWAYS TAKEN
    printf ("rtems-rfs: block-map-grow: entry: blocks=%zd count=%" PRIu32 "\n",
ffc1b4c4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1b4c8:	80 bf 00 08 	lwz     r5,8(r31)                              <== NOT EXECUTED
ffc1b4cc:	38 63 48 a2 	addi    r3,r3,18594                            <== NOT EXECUTED
ffc1b4d0:	7f 04 c3 78 	mr      r4,r24                                 <== NOT EXECUTED
ffc1b4d4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1b4d8:	48 00 76 99 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            blocks, map->size.count);                                 
                                                                      
  if ((map->size.count + blocks) >= rtems_rfs_fs_max_block_map_blocks (fs))
ffc1b4dc:	81 3f 00 08 	lwz     r9,8(r31)                              
    return EFBIG;                                                     
ffc1b4e0:	3b a0 00 1b 	li      r29,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))
ffc1b4e4:	7d 58 4a 14 	add     r10,r24,r9                             
ffc1b4e8:	81 3e 00 3c 	lwz     r9,60(r30)                             
ffc1b4ec:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc1b4f0:	40 bc 03 30 	bge+    cr7,ffc1b820 <rtems_rfs_block_map_grow+0x390><== NEVER TAKEN
ffc1b4f4:	48 00 03 10 	b       ffc1b804 <rtems_rfs_block_map_grow+0x374>
    /*                                                                
     * 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,      
ffc1b4f8:	80 9f 00 20 	lwz     r4,32(r31)                             
ffc1b4fc:	7f c3 f3 78 	mr      r3,r30                                 
ffc1b500:	38 a0 00 00 	li      r5,0                                   
ffc1b504:	38 c1 00 0c 	addi    r6,r1,12                               
ffc1b508:	4b ff 6d 95 	bl      ffc1229c <rtems_rfs_group_bitmap_alloc>
                                       false, &block);                
    if (rc > 0)                                                       
ffc1b50c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc1b510:	41 81 03 10 	bgt-    ffc1b820 <rtems_rfs_block_map_grow+0x390>
      return rc;                                                      
                                                                      
    if (map->size.count < RTEMS_RFS_INODE_BLOCKS)                     
ffc1b514:	80 ff 00 08 	lwz     r7,8(r31)                              
ffc1b518:	2b 87 00 04 	cmplwi  cr7,r7,4                               
ffc1b51c:	41 9d 00 1c 	bgt-    cr7,ffc1b538 <rtems_rfs_block_map_grow+0xa8>
      map->blocks[map->size.count] = block;                           
ffc1b520:	38 e7 00 08 	addi    r7,r7,8                                
ffc1b524:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc1b528:	54 e7 10 3a 	rlwinm  r7,r7,2,0,29                           
ffc1b52c:	7c ff 3a 14 	add     r7,r31,r7                              
ffc1b530:	91 27 00 04 	stw     r9,4(r7)                               
ffc1b534:	48 00 02 9c 	b       ffc1b7d0 <rtems_rfs_block_map_grow+0x340>
       * 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;                
ffc1b538:	83 3e 00 34 	lwz     r25,52(r30)                            
      singly = map->size.count / fs->blocks_per_block;                
                                                                      
      if (map->size.count < fs->block_map_singly_blocks)              
ffc1b53c:	81 5e 00 38 	lwz     r10,56(r30)                            
       * 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;                
ffc1b540:	7d 27 cb 96 	divwu   r9,r7,r25                              
      singly = map->size.count / fs->blocks_per_block;                
                                                                      
      if (map->size.count < fs->block_map_singly_blocks)              
ffc1b544:	7f 87 50 40 	cmplw   cr7,r7,r10                             
       * 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;                
ffc1b548:	7e a9 c9 d6 	mullw   r21,r9,r25                             
ffc1b54c:	7e b5 38 51 	subf.   r21,r21,r7                             
      singly = map->size.count / fs->blocks_per_block;                
                                                                      
      if (map->size.count < fs->block_map_singly_blocks)              
ffc1b550:	40 9c 00 78 	bge-    cr7,ffc1b5c8 <rtems_rfs_block_map_grow+0x138><== 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) ||                                          
ffc1b554:	41 82 00 14 	beq-    ffc1b568 <rtems_rfs_block_map_grow+0xd8><== NEVER TAKEN
ffc1b558:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1b55c:	40 9e 00 3c 	bne-    cr7,ffc1b598 <rtems_rfs_block_map_grow+0x108><== NEVER TAKEN
            ((singly == 0) && (direct == RTEMS_RFS_INODE_BLOCKS)))    
ffc1b560:	2f 95 00 05 	cmpwi   cr7,r21,5                              
ffc1b564:	40 be 00 34 	bne+    cr7,ffc1b598 <rtems_rfs_block_map_grow+0x108>
           */                                                         
          bool upping;                                                
          upping = map->size.count == RTEMS_RFS_INODE_BLOCKS;         
          rc = rtems_rfs_block_map_indirect_alloc (fs, map,           
                                                   &map->singly_buffer,
                                                   &map->blocks[singly],
ffc1b568:	38 c9 00 08 	addi    r6,r9,8                                
ffc1b56c:	54 c6 10 3a 	rlwinm  r6,r6,2,0,29                           
          /*                                                          
           * 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,           
ffc1b570:	68 e7 00 05 	xori    r7,r7,5                                
                                                   &map->singly_buffer,
                                                   &map->blocks[singly],
ffc1b574:	7c df 32 14 	add     r6,r31,r6                              
          /*                                                          
           * 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,           
ffc1b578:	7c e7 00 34 	cntlzw  r7,r7                                  
ffc1b57c:	7f c3 f3 78 	mr      r3,r30                                 
ffc1b580:	7f e4 fb 78 	mr      r4,r31                                 
ffc1b584:	7f 45 d3 78 	mr      r5,r26                                 
ffc1b588:	38 c6 00 04 	addi    r6,r6,4                                
ffc1b58c:	54 e7 d9 7e 	rlwinm  r7,r7,27,5,31                          
ffc1b590:	4b ff f4 f1 	bl      ffc1aa80 <rtems_rfs_block_map_indirect_alloc>
ffc1b594:	48 00 00 24 	b       ffc1b5b8 <rtems_rfs_block_map_grow+0x128>
                                                   &map->blocks[singly],
                                                   upping);           
        }                                                             
        else                                                          
        {                                                             
          rc = rtems_rfs_buffer_handle_request (fs,  &map->singly_buffer,
ffc1b598:	39 29 00 08 	addi    r9,r9,8                                
ffc1b59c:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc1b5a0:	7d 3f 4a 14 	add     r9,r31,r9                              
ffc1b5a4:	80 a9 00 04 	lwz     r5,4(r9)                               
ffc1b5a8:	7f c3 f3 78 	mr      r3,r30                                 
ffc1b5ac:	7f 44 d3 78 	mr      r4,r26                                 
ffc1b5b0:	38 c0 00 01 	li      r6,1                                   
ffc1b5b4:	48 00 09 1d 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
                                                map->blocks[singly], true);
        }                                                             
                                                                      
        if (rc > 0)                                                   
ffc1b5b8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
                                                   &map->blocks[singly],
                                                   upping);           
        }                                                             
        else                                                          
        {                                                             
          rc = rtems_rfs_buffer_handle_request (fs,  &map->singly_buffer,
ffc1b5bc:	7c 7d 1b 78 	mr      r29,r3                                 
                                                map->blocks[singly], true);
        }                                                             
                                                                      
        if (rc > 0)                                                   
ffc1b5c0:	40 bd 01 b8 	ble+    cr7,ffc1b778 <rtems_rfs_block_map_grow+0x2e8><== ALWAYS TAKEN
ffc1b5c4:	48 00 01 a0 	b       ffc1b764 <rtems_rfs_block_map_grow+0x2d4><== 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;                      
ffc1b5c8:	7f 89 cb 96 	divwu   r28,r9,r25                             <== NOT EXECUTED
        singly %= fs->blocks_per_block;                               
ffc1b5cc:	7f 3c c9 d6 	mullw   r25,r28,r25                            <== NOT EXECUTED
ffc1b5d0:	7f 39 48 50 	subf    r25,r25,r9                             <== 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)                                              
ffc1b5d4:	40 82 01 10 	bne-    ffc1b6e4 <rtems_rfs_block_map_grow+0x254><== NOT EXECUTED
        {                                                             
          rc = rtems_rfs_block_map_indirect_alloc (fs, map,           
ffc1b5d8:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1b5dc:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1b5e0:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc1b5e4:	38 c1 00 08 	addi    r6,r1,8                                <== NOT EXECUTED
ffc1b5e8:	38 e0 00 00 	li      r7,0                                   <== NOT EXECUTED
ffc1b5ec:	4b ff f4 95 	bl      ffc1aa80 <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
                                                   &map->singly_buffer,
                                                   &singly_block,     
                                                   false);            
          if (rc > 0)                                                 
ffc1b5f0:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc1b5f4:	40 a1 00 08 	ble+    ffc1b5fc <rtems_rfs_block_map_grow+0x16c><== NOT EXECUTED
ffc1b5f8:	48 00 01 6c 	b       ffc1b764 <rtems_rfs_block_map_grow+0x2d4><== 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) ||                                        
ffc1b5fc:	2f 99 00 00 	cmpwi   cr7,r25,0                              <== NOT EXECUTED
ffc1b600:	41 9e 00 14 	beq-    cr7,ffc1b614 <rtems_rfs_block_map_grow+0x184><== NOT EXECUTED
ffc1b604:	2f 9c 00 00 	cmpwi   cr7,r28,0                              <== NOT EXECUTED
ffc1b608:	40 9e 00 44 	bne-    cr7,ffc1b64c <rtems_rfs_block_map_grow+0x1bc><== NOT EXECUTED
              ((doubly == 0) && (singly == RTEMS_RFS_INODE_BLOCKS)))  
ffc1b60c:	2f 99 00 05 	cmpwi   cr7,r25,5                              <== NOT EXECUTED
ffc1b610:	40 be 00 3c 	bne+    cr7,ffc1b64c <rtems_rfs_block_map_grow+0x1bc><== NOT EXECUTED
          {                                                           
            bool upping;                                              
            upping = map->size.count == fs->block_map_singly_blocks;  
ffc1b614:	80 ff 00 08 	lwz     r7,8(r31)                              <== NOT EXECUTED
            rc = rtems_rfs_block_map_indirect_alloc (fs, map,         
                                                     &map->doubly_buffer,
                                                     &map->blocks[doubly],
ffc1b618:	38 dc 00 08 	addi    r6,r28,8                               <== NOT EXECUTED
           */                                                         
          if ((singly == 0) ||                                        
              ((doubly == 0) && (singly == RTEMS_RFS_INODE_BLOCKS)))  
          {                                                           
            bool upping;                                              
            upping = map->size.count == fs->block_map_singly_blocks;  
ffc1b61c:	81 3e 00 38 	lwz     r9,56(r30)                             <== NOT EXECUTED
            rc = rtems_rfs_block_map_indirect_alloc (fs, map,         
                                                     &map->doubly_buffer,
                                                     &map->blocks[doubly],
ffc1b620:	54 c6 10 3a 	rlwinm  r6,r6,2,0,29                           <== NOT EXECUTED
ffc1b624:	7c df 32 14 	add     r6,r31,r6                              <== NOT EXECUTED
          if ((singly == 0) ||                                        
              ((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,         
ffc1b628:	7c e7 4a 78 	xor     r7,r7,r9                               <== NOT EXECUTED
ffc1b62c:	7c e7 00 34 	cntlzw  r7,r7                                  <== NOT EXECUTED
ffc1b630:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1b634:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1b638:	7e c5 b3 78 	mr      r5,r22                                 <== NOT EXECUTED
ffc1b63c:	38 c6 00 04 	addi    r6,r6,4                                <== NOT EXECUTED
ffc1b640:	54 e7 d9 7e 	rlwinm  r7,r7,27,5,31                          <== NOT EXECUTED
ffc1b644:	4b ff f4 3d 	bl      ffc1aa80 <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
ffc1b648:	48 00 00 24 	b       ffc1b66c <rtems_rfs_block_map_grow+0x1dc><== NOT EXECUTED
              return rc;                                              
            }                                                         
          }                                                           
          else                                                        
          {                                                           
            rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
ffc1b64c:	3b 9c 00 08 	addi    r28,r28,8                              <== NOT EXECUTED
ffc1b650:	57 9c 10 3a 	rlwinm  r28,r28,2,0,29                         <== NOT EXECUTED
ffc1b654:	7f 9f e2 14 	add     r28,r31,r28                            <== NOT EXECUTED
ffc1b658:	80 bc 00 04 	lwz     r5,4(r28)                              <== NOT EXECUTED
ffc1b65c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1b660:	7e c4 b3 78 	mr      r4,r22                                 <== NOT EXECUTED
ffc1b664:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc1b668:	48 00 08 69 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
                                                  map->blocks[doubly], true);
            if (rc > 0)                                               
ffc1b66c:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc1b670:	40 a1 00 18 	ble+    ffc1b688 <rtems_rfs_block_map_grow+0x1f8><== NOT EXECUTED
            {                                                         
              rtems_rfs_group_bitmap_free (fs, false, singly_block);  
ffc1b674:	80 a1 00 08 	lwz     r5,8(r1)                               <== NOT EXECUTED
ffc1b678:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1b67c:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1b680:	4b ff 6e 19 	bl      ffc12498 <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
ffc1b684:	48 00 00 e0 	b       ffc1b764 <rtems_rfs_block_map_grow+0x2d4><== NOT EXECUTED
              rtems_rfs_group_bitmap_free (fs, false, block);         
              return rc;                                              
            }                                                         
          }                                                           
                                                                      
          rtems_rfs_block_set_number (&map->doubly_buffer,            
ffc1b688:	81 3f 00 4c 	lwz     r9,76(r31)                             <== NOT EXECUTED
ffc1b68c:	57 39 10 3a 	rlwinm  r25,r25,2,0,29                         <== NOT EXECUTED
ffc1b690:	89 41 00 08 	lbz     r10,8(r1)                              <== NOT EXECUTED
ffc1b694:	81 29 00 1c 	lwz     r9,28(r9)                              <== NOT EXECUTED
ffc1b698:	7d 49 c9 ae 	stbx    r10,r9,r25                             <== NOT EXECUTED
ffc1b69c:	81 3f 00 4c 	lwz     r9,76(r31)                             <== NOT EXECUTED
ffc1b6a0:	a1 41 00 08 	lhz     r10,8(r1)                              <== NOT EXECUTED
ffc1b6a4:	81 29 00 1c 	lwz     r9,28(r9)                              <== NOT EXECUTED
ffc1b6a8:	7d 29 ca 14 	add     r9,r9,r25                              <== NOT EXECUTED
ffc1b6ac:	99 49 00 01 	stb     r10,1(r9)                              <== NOT EXECUTED
ffc1b6b0:	81 3f 00 4c 	lwz     r9,76(r31)                             <== NOT EXECUTED
ffc1b6b4:	81 49 00 1c 	lwz     r10,28(r9)                             <== NOT EXECUTED
ffc1b6b8:	81 21 00 08 	lwz     r9,8(r1)                               <== NOT EXECUTED
ffc1b6bc:	7d 4a ca 14 	add     r10,r10,r25                            <== NOT EXECUTED
ffc1b6c0:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          <== NOT EXECUTED
ffc1b6c4:	99 2a 00 02 	stb     r9,2(r10)                              <== NOT EXECUTED
ffc1b6c8:	81 3f 00 4c 	lwz     r9,76(r31)                             <== NOT EXECUTED
ffc1b6cc:	81 41 00 08 	lwz     r10,8(r1)                              <== NOT EXECUTED
ffc1b6d0:	81 29 00 1c 	lwz     r9,28(r9)                              <== NOT EXECUTED
ffc1b6d4:	7f 29 ca 14 	add     r25,r9,r25                             <== NOT EXECUTED
ffc1b6d8:	99 59 00 03 	stb     r10,3(r25)                             <== NOT EXECUTED
ffc1b6dc:	9a ff 00 44 	stb     r23,68(r31)                            <== NOT EXECUTED
ffc1b6e0:	48 00 00 98 	b       ffc1b778 <rtems_rfs_block_map_grow+0x2e8><== NOT EXECUTED
                                      singly,                         
                                      singly_block);                  
        }                                                             
        else                                                          
        {                                                             
          rc = rtems_rfs_buffer_handle_request (fs,                   
ffc1b6e4:	3b 9c 00 08 	addi    r28,r28,8                              <== NOT EXECUTED
ffc1b6e8:	57 9c 10 3a 	rlwinm  r28,r28,2,0,29                         <== NOT EXECUTED
ffc1b6ec:	7f 9f e2 14 	add     r28,r31,r28                            <== NOT EXECUTED
ffc1b6f0:	80 bc 00 04 	lwz     r5,4(r28)                              <== NOT EXECUTED
ffc1b6f4:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1b6f8:	7e c4 b3 78 	mr      r4,r22                                 <== NOT EXECUTED
ffc1b6fc:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc1b700:	48 00 07 d1 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
                                                &map->doubly_buffer,  
                                                map->blocks[doubly],  
                                                true);                
          if (rc > 0)                                                 
ffc1b704:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc1b708:	40 a1 00 08 	ble+    ffc1b710 <rtems_rfs_block_map_grow+0x280><== NOT EXECUTED
ffc1b70c:	48 00 00 58 	b       ffc1b764 <rtems_rfs_block_map_grow+0x2d4><== NOT EXECUTED
          {                                                           
            rtems_rfs_group_bitmap_free (fs, false, block);           
            return rc;                                                
          }                                                           
                                                                      
          singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
ffc1b710:	81 3f 00 4c 	lwz     r9,76(r31)                             <== NOT EXECUTED
ffc1b714:	57 39 10 3a 	rlwinm  r25,r25,2,0,29                         <== NOT EXECUTED
                                                     singly);         
                                                                      
          rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc1b718:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
          {                                                           
            rtems_rfs_group_bitmap_free (fs, false, block);           
            return rc;                                                
          }                                                           
                                                                      
          singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
ffc1b71c:	81 29 00 1c 	lwz     r9,28(r9)                              <== NOT EXECUTED
                                                     singly);         
                                                                      
          rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc1b720:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc1b724:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
          {                                                           
            rtems_rfs_group_bitmap_free (fs, false, block);           
            return rc;                                                
          }                                                           
                                                                      
          singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
ffc1b728:	7d 49 ca 14 	add     r10,r9,r25                             <== NOT EXECUTED
ffc1b72c:	7c a9 c8 ae 	lbzx    r5,r9,r25                              <== NOT EXECUTED
ffc1b730:	89 0a 00 03 	lbz     r8,3(r10)                              <== NOT EXECUTED
ffc1b734:	89 2a 00 01 	lbz     r9,1(r10)                              <== NOT EXECUTED
ffc1b738:	54 a5 c0 0e 	rlwinm  r5,r5,24,0,7                           <== NOT EXECUTED
ffc1b73c:	7d 05 2b 78 	or      r5,r8,r5                               <== NOT EXECUTED
ffc1b740:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          <== NOT EXECUTED
ffc1b744:	7c a5 4b 78 	or      r5,r5,r9                               <== NOT EXECUTED
ffc1b748:	89 2a 00 02 	lbz     r9,2(r10)                              <== NOT EXECUTED
ffc1b74c:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           <== NOT EXECUTED
ffc1b750:	7c a5 4b 78 	or      r5,r5,r9                               <== NOT EXECUTED
ffc1b754:	90 a1 00 08 	stw     r5,8(r1)                               <== NOT EXECUTED
                                                     singly);         
                                                                      
          rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc1b758:	48 00 07 79 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
                                                singly_block, true);  
          if (rc > 0)                                                 
ffc1b75c:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc1b760:	40 a1 00 18 	ble+    ffc1b778 <rtems_rfs_block_map_grow+0x2e8><== NOT EXECUTED
          {                                                           
            rtems_rfs_group_bitmap_free (fs, false, block);           
ffc1b764:	80 a1 00 0c 	lwz     r5,12(r1)                              <== NOT EXECUTED
ffc1b768:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1b76c:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1b770:	4b ff 6d 29 	bl      ffc12498 <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
ffc1b774:	48 00 00 ac 	b       ffc1b820 <rtems_rfs_block_map_grow+0x390><== NOT EXECUTED
            return rc;                                                
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
ffc1b778:	81 5f 00 40 	lwz     r10,64(r31)                            
ffc1b77c:	56 a9 10 3a 	rlwinm  r9,r21,2,0,29                          
ffc1b780:	89 01 00 0c 	lbz     r8,12(r1)                              
ffc1b784:	81 4a 00 1c 	lwz     r10,28(r10)                            
ffc1b788:	7d 0a 49 ae 	stbx    r8,r10,r9                              
ffc1b78c:	81 5f 00 40 	lwz     r10,64(r31)                            
ffc1b790:	a1 01 00 0c 	lhz     r8,12(r1)                              
ffc1b794:	81 4a 00 1c 	lwz     r10,28(r10)                            
ffc1b798:	7d 4a 4a 14 	add     r10,r10,r9                             
ffc1b79c:	99 0a 00 01 	stb     r8,1(r10)                              
ffc1b7a0:	81 5f 00 40 	lwz     r10,64(r31)                            
ffc1b7a4:	81 0a 00 1c 	lwz     r8,28(r10)                             
ffc1b7a8:	81 41 00 0c 	lwz     r10,12(r1)                             
ffc1b7ac:	7d 08 4a 14 	add     r8,r8,r9                               
ffc1b7b0:	55 4a c2 3e 	rlwinm  r10,r10,24,8,31                        
ffc1b7b4:	99 48 00 02 	stb     r10,2(r8)                              
ffc1b7b8:	81 5f 00 40 	lwz     r10,64(r31)                            
ffc1b7bc:	81 4a 00 1c 	lwz     r10,28(r10)                            
ffc1b7c0:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc1b7c4:	81 41 00 0c 	lwz     r10,12(r1)                             
ffc1b7c8:	99 49 00 03 	stb     r10,3(r9)                              
ffc1b7cc:	9a ff 00 38 	stb     r23,56(r31)                            
    }                                                                 
                                                                      
    map->size.count++;                                                
    map->size.offset = 0;                                             
                                                                      
    if (b == 0)                                                       
ffc1b7d0:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
      }                                                               
                                                                      
      rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
    }                                                                 
                                                                      
    map->size.count++;                                                
ffc1b7d4:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc1b7d8:	39 29 00 01 	addi    r9,r9,1                                
ffc1b7dc:	91 3f 00 08 	stw     r9,8(r31)                              
    map->size.offset = 0;                                             
ffc1b7e0:	39 20 00 00 	li      r9,0                                   
ffc1b7e4:	91 3f 00 0c 	stw     r9,12(r31)                             
ffc1b7e8:	81 21 00 0c 	lwz     r9,12(r1)                              
                                                                      
    if (b == 0)                                                       
ffc1b7ec:	40 9e 00 08 	bne-    cr7,ffc1b7f4 <rtems_rfs_block_map_grow+0x364><== NEVER TAKEN
      *new_block = block;                                             
ffc1b7f0:	91 34 00 00 	stw     r9,0(r20)                              
    map->last_data_block = block;                                     
ffc1b7f4:	91 3f 00 20 	stw     r9,32(r31)                             
                                                                      
  /*                                                                  
   * 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++)                                        
ffc1b7f8:	3b 7b 00 01 	addi    r27,r27,1                              
    map->size.offset = 0;                                             
                                                                      
    if (b == 0)                                                       
      *new_block = block;                                             
    map->last_data_block = block;                                     
    map->dirty = true;                                                
ffc1b7fc:	9a ff 00 00 	stb     r23,0(r31)                             
ffc1b800:	48 00 00 14 	b       ffc1b814 <rtems_rfs_block_map_grow+0x384>
  map->last_map_block = new_block;                                    
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_block_map_grow (rtems_rfs_file_system* fs,                  
ffc1b804:	3b 60 00 00 	li      r27,0                                  
            return rc;                                                
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
ffc1b808:	3a e0 00 01 	li      r23,1                                  
                                      singly,                         
                                      singly_block);                  
        }                                                             
        else                                                          
        {                                                             
          rc = rtems_rfs_buffer_handle_request (fs,                   
ffc1b80c:	3a df 00 44 	addi    r22,r31,68                             
          }                                                           
                                                                      
          singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
                                                     singly);         
                                                                      
          rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc1b810:	3b 5f 00 38 	addi    r26,r31,56                             
                                                                      
  /*                                                                  
   * 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++)                                        
ffc1b814:	7f 9b c0 00 	cmpw    cr7,r27,r24                            
ffc1b818:	40 9e fc e0 	bne+    cr7,ffc1b4f8 <rtems_rfs_block_map_grow+0x68>
      *new_block = block;                                             
    map->last_data_block = block;                                     
    map->dirty = true;                                                
  }                                                                   
                                                                      
  return 0;                                                           
ffc1b81c:	3b a0 00 00 	li      r29,0                                  
}                                                                     
ffc1b820:	39 61 00 48 	addi    r11,r1,72                              
ffc1b824:	7f a3 eb 78 	mr      r3,r29                                 
ffc1b828:	4b fe 5d 18 	b       ffc01540 <_restgpr_20_x>               
                                                                      

ffc1aa80 <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) {
ffc1aa80:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc1aa84:	7c 08 02 a6 	mflr    r0                                     
ffc1aa88:	90 01 00 34 	stw     r0,52(r1)                              
ffc1aa8c:	bf 41 00 18 	stmw    r26,24(r1)                             
ffc1aa90:	7c 9e 23 78 	mr      r30,r4                                 
ffc1aa94:	7c bf 2b 78 	mr      r31,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);
ffc1aa98:	80 84 00 1c 	lwz     r4,28(r4)                              
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)  
{                                                                     
ffc1aa9c:	7c db 33 78 	mr      r27,r6                                 
  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);
ffc1aaa0:	38 a0 00 00 	li      r5,0                                   
ffc1aaa4:	38 c1 00 08 	addi    r6,r1,8                                
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)  
{                                                                     
ffc1aaa8:	7c 7d 1b 78 	mr      r29,r3                                 
ffc1aaac:	7c fa 3b 78 	mr      r26,r7                                 
  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);
ffc1aab0:	4b ff 77 ed 	bl      ffc1229c <rtems_rfs_group_bitmap_alloc>
  if (rc > 0)                                                         
ffc1aab4:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc1aab8:	41 a1 01 14 	bgt+    ffc1abcc <rtems_rfs_block_map_indirect_alloc+0x14c><== NEVER TAKEN
    return rc;                                                        
  rc = rtems_rfs_buffer_handle_request (fs, buffer, new_block, false);
ffc1aabc:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc1aac0:	7f a3 eb 78 	mr      r3,r29                                 
ffc1aac4:	7f e4 fb 78 	mr      r4,r31                                 
ffc1aac8:	38 c0 00 00 	li      r6,0                                   
ffc1aacc:	48 00 14 05 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
  if (rc > 0)                                                         
ffc1aad0:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc1aad4:	40 81 00 18 	ble-    ffc1aaec <rtems_rfs_block_map_indirect_alloc+0x6c><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_group_bitmap_free (fs, false, new_block);               
ffc1aad8:	80 a1 00 08 	lwz     r5,8(r1)                               <== NOT EXECUTED
ffc1aadc:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc1aae0:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1aae4:	4b ff 79 b5 	bl      ffc12498 <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
ffc1aae8:	48 00 00 e4 	b       ffc1abcc <rtems_rfs_block_map_indirect_alloc+0x14c><== NOT EXECUTED
    return rc;                                                        
  }                                                                   
  memset (rtems_rfs_buffer_data (buffer), 0xff, rtems_rfs_fs_block_size (fs));
ffc1aaec:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc1aaf0:	38 80 00 ff 	li      r4,255                                 
ffc1aaf4:	80 bd 00 08 	lwz     r5,8(r29)                              
ffc1aaf8:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc1aafc:	48 00 7e 19 	bl      ffc22914 <memset>                      
  if (upping)                                                         
ffc1ab00:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc1ab04:	41 be 00 b0 	beq+    cr7,ffc1abb4 <rtems_rfs_block_map_indirect_alloc+0x134><== NEVER TAKEN
  {                                                                   
    int b;                                                            
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))             
ffc1ab08:	38 60 00 00 	li      r3,0                                   
ffc1ab0c:	38 80 20 00 	li      r4,8192                                
ffc1ab10:	4b ff 97 39 	bl      ffc14248 <rtems_rfs_trace>             
ffc1ab14:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1ab18:	41 be 00 18 	beq+    cr7,ffc1ab30 <rtems_rfs_block_map_indirect_alloc+0xb0><== ALWAYS TAKEN
      printf ("rtems-rfs: block-map-grow: upping: block-count=%" PRId32 "\n",
ffc1ab1c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1ab20:	80 9e 00 08 	lwz     r4,8(r30)                              <== NOT EXECUTED
ffc1ab24:	38 63 48 23 	addi    r3,r3,18467                            <== NOT EXECUTED
ffc1ab28:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1ab2c:	48 00 80 45 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
              map->size.count);                                       
    for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                      
      rtems_rfs_block_set_number (buffer, b, map->blocks[b]);         
ffc1ab30:	39 00 00 05 	li      r8,5                                   
ffc1ab34:	7d 09 03 a6 	mtctr   r8                                     
ffc1ab38:	7f c9 f3 78 	mr      r9,r30                                 
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)  
{                                                                     
ffc1ab3c:	39 40 00 00 	li      r10,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]);         
ffc1ab40:	38 e0 00 01 	li      r7,1                                   
ffc1ab44:	81 1f 00 08 	lwz     r8,8(r31)                              
ffc1ab48:	88 c9 00 24 	lbz     r6,36(r9)                              
ffc1ab4c:	81 08 00 1c 	lwz     r8,28(r8)                              
ffc1ab50:	7c c8 51 ae 	stbx    r6,r8,r10                              
ffc1ab54:	81 1f 00 08 	lwz     r8,8(r31)                              
ffc1ab58:	a0 c9 00 24 	lhz     r6,36(r9)                              
ffc1ab5c:	81 08 00 1c 	lwz     r8,28(r8)                              
ffc1ab60:	7d 08 52 14 	add     r8,r8,r10                              
ffc1ab64:	98 c8 00 01 	stb     r6,1(r8)                               
ffc1ab68:	81 1f 00 08 	lwz     r8,8(r31)                              
ffc1ab6c:	80 c8 00 1c 	lwz     r6,28(r8)                              
ffc1ab70:	81 09 00 24 	lwz     r8,36(r9)                              
ffc1ab74:	7c c6 52 14 	add     r6,r6,r10                              
ffc1ab78:	55 08 c2 3e 	rlwinm  r8,r8,24,8,31                          
ffc1ab7c:	99 06 00 02 	stb     r8,2(r6)                               
ffc1ab80:	81 1f 00 08 	lwz     r8,8(r31)                              
ffc1ab84:	80 c8 00 1c 	lwz     r6,28(r8)                              
ffc1ab88:	81 09 00 24 	lwz     r8,36(r9)                              
ffc1ab8c:	39 29 00 04 	addi    r9,r9,4                                
ffc1ab90:	7c c6 52 14 	add     r6,r6,r10                              
ffc1ab94:	99 06 00 03 	stb     r8,3(r6)                               
ffc1ab98:	39 4a 00 04 	addi    r10,r10,4                              
ffc1ab9c:	98 ff 00 00 	stb     r7,0(r31)                              
  {                                                                   
    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++)                      
ffc1aba0:	42 00 ff a4 	bdnz+   ffc1ab44 <rtems_rfs_block_map_indirect_alloc+0xc4>
      rtems_rfs_block_set_number (buffer, b, map->blocks[b]);         
    memset (map->blocks, 0, sizeof (map->blocks));                    
ffc1aba4:	38 7e 00 24 	addi    r3,r30,36                              
ffc1aba8:	38 80 00 00 	li      r4,0                                   
ffc1abac:	38 a0 00 14 	li      r5,20                                  
ffc1abb0:	48 00 7d 65 	bl      ffc22914 <memset>                      
  }                                                                   
  rtems_rfs_buffer_mark_dirty (buffer);                               
ffc1abb4:	39 20 00 01 	li      r9,1                                   
ffc1abb8:	99 3f 00 00 	stb     r9,0(r31)                              
  *block = new_block;                                                 
  map->last_map_block = new_block;                                    
  return 0;                                                           
ffc1abbc:	3b 80 00 00 	li      r28,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;                                                 
ffc1abc0:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1abc4:	91 3b 00 00 	stw     r9,0(r27)                              
  map->last_map_block = new_block;                                    
ffc1abc8:	91 3e 00 1c 	stw     r9,28(r30)                             
  return 0;                                                           
}                                                                     
ffc1abcc:	39 61 00 30 	addi    r11,r1,48                              
ffc1abd0:	7f 83 e3 78 	mr      r3,r28                                 
ffc1abd4:	4b fe 69 84 	b       ffc01558 <_restgpr_26_x>               
                                                                      

ffc1aca8 <rtems_rfs_block_map_indirect_shrink.isra.7>: * 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) ||
ffc1aca8:	2c 07 00 00 	cmpwi   r7,0                                   
 * @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,     
ffc1acac:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1acb0:	7c 08 02 a6 	mflr    r0                                     
ffc1acb4:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc1acb8:	7c 9f 23 78 	mr      r31,r4                                 
ffc1acbc:	90 01 00 14 	stw     r0,20(r1)                              
   * 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) ||                                                 
ffc1acc0:	41 82 00 1c 	beq-    ffc1acdc <rtems_rfs_block_map_indirect_shrink.isra.7+0x34><== NEVER TAKEN
ffc1acc4:	2f 86 00 00 	cmpwi   cr7,r6,0                               
                                     rtems_rfs_block_map*     map,    
                                     rtems_rfs_buffer_handle* buffer, 
                                     rtems_rfs_block_no       indirect,
                                     rtems_rfs_block_no       index)  
{                                                                     
  int rc = 0;                                                         
ffc1acc8:	39 20 00 00 	li      r9,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) ||                                                 
ffc1accc:	40 9e 00 ac 	bne-    cr7,ffc1ad78 <rtems_rfs_block_map_indirect_shrink.isra.7+0xd0><== NEVER TAKEN
      ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))         
ffc1acd0:	2f 87 00 05 	cmpwi   cr7,r7,5                               
                                     rtems_rfs_block_map*     map,    
                                     rtems_rfs_buffer_handle* buffer, 
                                     rtems_rfs_block_no       indirect,
                                     rtems_rfs_block_no       index)  
{                                                                     
  int rc = 0;                                                         
ffc1acd4:	7c c9 33 78 	mr      r9,r6                                  
   * 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) ||                                                 
      ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))         
ffc1acd8:	40 be 00 a0 	bne+    cr7,ffc1ad78 <rtems_rfs_block_map_indirect_shrink.isra.7+0xd0>
  {                                                                   
    rtems_rfs_block_no block_to_free = map->blocks[indirect];         
                                                                      
    if ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS))         
ffc1acdc:	2f 86 00 00 	cmpwi   cr7,r6,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];         
ffc1ace0:	39 26 00 08 	addi    r9,r6,8                                
ffc1ace4:	55 28 10 3a 	rlwinm  r8,r9,2,0,29                           
ffc1ace8:	7d 1f 42 14 	add     r8,r31,r8                              
ffc1acec:	83 c8 00 04 	lwz     r30,4(r8)                              
                                                                      
    if ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS))         
ffc1acf0:	40 9e 00 60 	bne-    cr7,ffc1ad50 <rtems_rfs_block_map_indirect_shrink.isra.7+0xa8><== NEVER TAKEN
ffc1acf4:	2f 87 00 05 	cmpwi   cr7,r7,5                               
ffc1acf8:	40 be 00 58 	bne+    cr7,ffc1ad50 <rtems_rfs_block_map_indirect_shrink.isra.7+0xa8><== 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);      
ffc1acfc:	39 00 00 05 	li      r8,5                                   
ffc1ad00:	81 25 00 00 	lwz     r9,0(r5)                               
ffc1ad04:	7d 09 03 a6 	mtctr   r8                                     
ffc1ad08:	39 40 00 00 	li      r10,0                                  
ffc1ad0c:	81 29 00 1c 	lwz     r9,28(r9)                              
ffc1ad10:	88 c9 00 00 	lbz     r6,0(r9)                               
 * @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,     
ffc1ad14:	7d 1f 52 14 	add     r8,r31,r10                             
      /*                                                              
       * 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);      
ffc1ad18:	88 e9 00 01 	lbz     r7,1(r9)                               
ffc1ad1c:	39 4a 00 04 	addi    r10,r10,4                              
ffc1ad20:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc1ad24:	54 e7 80 1e 	rlwinm  r7,r7,16,0,15                          
ffc1ad28:	7c c7 3b 78 	or      r7,r6,r7                               
ffc1ad2c:	88 c9 00 03 	lbz     r6,3(r9)                               
ffc1ad30:	7c e7 33 78 	or      r7,r7,r6                               
ffc1ad34:	88 c9 00 02 	lbz     r6,2(r9)                               
ffc1ad38:	39 29 00 04 	addi    r9,r9,4                                
ffc1ad3c:	54 c6 40 2e 	rlwinm  r6,r6,8,0,23                           
ffc1ad40:	7c e7 33 78 	or      r7,r7,r6                               
ffc1ad44:	90 e8 00 24 	stw     r7,36(r8)                              
    {                                                                 
      /*                                                              
       * Move to direct inode access.                                 
       */                                                             
      int b;                                                          
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
ffc1ad48:	42 00 ff c8 	bdnz+   ffc1ad10 <rtems_rfs_block_map_indirect_shrink.isra.7+0x68>
ffc1ad4c:	48 00 00 14 	b       ffc1ad60 <rtems_rfs_block_map_indirect_shrink.isra.7+0xb8>
    else                                                              
    {                                                                 
      /*                                                              
       * One less singly indirect block in the inode.                 
       */                                                             
      map->blocks[indirect] = 0;                                      
ffc1ad50:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           <== NOT EXECUTED
ffc1ad54:	7d 3f 4a 14 	add     r9,r31,r9                              <== NOT EXECUTED
ffc1ad58:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc1ad5c:	91 49 00 04 	stw     r10,4(r9)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);      
ffc1ad60:	38 80 00 00 	li      r4,0                                   
ffc1ad64:	7f c5 f3 78 	mr      r5,r30                                 
ffc1ad68:	4b ff 77 31 	bl      ffc12498 <rtems_rfs_group_bitmap_free> 
    if (rc > 0)                                                       
ffc1ad6c:	7c 69 1b 79 	mr.     r9,r3                                  
ffc1ad70:	41 a1 00 08 	bgt+    ffc1ad78 <rtems_rfs_block_map_indirect_shrink.isra.7+0xd0><== NEVER TAKEN
      return rc;                                                      
                                                                      
    map->last_map_block = block_to_free;                              
ffc1ad74:	93 df 00 1c 	stw     r30,28(r31)                            
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc1ad78:	39 61 00 10 	addi    r11,r1,16                              
ffc1ad7c:	7d 23 4b 78 	mr      r3,r9                                  
ffc1ad80:	4b fe 67 e8 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc1aebc <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) {
ffc1aebc:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1aec0:	7c 08 02 a6 	mflr    r0                                     
   * 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;                                                 
ffc1aec4:	39 20 00 00 	li      r9,0                                   
                                                                      
int                                                                   
rtems_rfs_block_map_open (rtems_rfs_file_system*  fs,                 
                          rtems_rfs_inode_handle* inode,              
                          rtems_rfs_block_map*    map)                
{                                                                     
ffc1aec8:	bf 61 00 0c 	stmw    r27,12(r1)                             
   * 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;                                                 
  map->inode = NULL;                                                  
ffc1aecc:	3b c0 00 00 	li      r30,0                                  
                                                                      
int                                                                   
rtems_rfs_block_map_open (rtems_rfs_file_system*  fs,                 
                          rtems_rfs_inode_handle* inode,              
                          rtems_rfs_block_map*    map)                
{                                                                     
ffc1aed0:	7c 7c 1b 78 	mr      r28,r3                                 
ffc1aed4:	90 01 00 24 	stw     r0,36(r1)                              
ffc1aed8:	7c 9d 23 78 	mr      r29,r4                                 
ffc1aedc:	7c bf 2b 78 	mr      r31,r5                                 
   * 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;                                                 
ffc1aee0:	99 25 00 00 	stb     r9,0(r5)                               
  map->inode = NULL;                                                  
ffc1aee4:	93 c5 00 04 	stw     r30,4(r5)                              
 * @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;                                                    
ffc1aee8:	93 c5 00 08 	stw     r30,8(r5)                              
  size->offset = 0;                                                   
ffc1aeec:	93 c5 00 0c 	stw     r30,12(r5)                             
 * @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;                                                      
ffc1aef0:	93 c5 00 10 	stw     r30,16(r5)                             
  bpos->boff = 0;                                                     
ffc1aef4:	93 c5 00 14 	stw     r30,20(r5)                             
  bpos->block = 0;                                                    
ffc1aef8:	93 c5 00 18 	stw     r30,24(r5)                             
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc1aefc:	9b c5 00 38 	stb     r30,56(r5)                             
  handle->bnum  = 0;                                                  
ffc1af00:	93 c5 00 3c 	stw     r30,60(r5)                             
  handle->buffer = NULL;                                              
ffc1af04:	93 c5 00 40 	stw     r30,64(r5)                             
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc1af08:	9b c5 00 44 	stb     r30,68(r5)                             
  handle->bnum  = 0;                                                  
ffc1af0c:	93 c5 00 48 	stw     r30,72(r5)                             
  handle->buffer = NULL;                                              
ffc1af10:	93 c5 00 4c 	stw     r30,76(r5)                             
    return rc;                                                        
  rc = rtems_rfs_buffer_handle_open (fs, &map->doubly_buffer);        
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  rc = rtems_rfs_inode_load (fs, inode);                              
ffc1af14:	4b ff 78 19 	bl      ffc1272c <rtems_rfs_inode_load>        
  if (rc > 0)                                                         
ffc1af18:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc1af1c:	41 81 01 1c 	bgt-    ffc1b038 <rtems_rfs_block_map_open+0x17c><== NEVER TAKEN
  /*                                                                  
   * 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++)                        
ffc1af20:	39 00 00 05 	li      r8,5                                   
                                                                      
  /*                                                                  
   * Extract the block and block count data from the inode into the targets
   * byte order.                                                      
   */                                                                 
  map->inode = inode;                                                 
ffc1af24:	93 bf 00 04 	stw     r29,4(r31)                             
  for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                        
ffc1af28:	7d 09 03 a6 	mtctr   r8                                     
ffc1af2c:	39 40 00 00 	li      r10,0                                  
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);       
}                                                                     
ffc1af30:	81 3d 00 0c 	lwz     r9,12(r29)                             
 * @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]);      
ffc1af34:	38 ea 00 04 	addi    r7,r10,4                               
ffc1af38:	54 e7 10 3a 	rlwinm  r7,r7,2,0,29                           
ffc1af3c:	7c e9 3a 14 	add     r7,r9,r7                               
ffc1af40:	39 07 00 0c 	addi    r8,r7,12                               
ffc1af44:	88 a7 00 0c 	lbz     r5,12(r7)                              
ffc1af48:	88 e7 00 0d 	lbz     r7,13(r7)                              
  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,                 
ffc1af4c:	55 46 10 3a 	rlwinm  r6,r10,2,0,29                          
ffc1af50:	54 a5 c0 0e 	rlwinm  r5,r5,24,0,7                           
ffc1af54:	54 e7 80 1e 	rlwinm  r7,r7,16,0,15                          
ffc1af58:	7c a5 3b 78 	or      r5,r5,r7                               
ffc1af5c:	88 e8 00 03 	lbz     r7,3(r8)                               
ffc1af60:	7c df 32 14 	add     r6,r31,r6                              
ffc1af64:	7c a5 3b 78 	or      r5,r5,r7                               
ffc1af68:	88 e8 00 02 	lbz     r7,2(r8)                               
  /*                                                                  
   * 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++)                        
ffc1af6c:	39 4a 00 01 	addi    r10,r10,1                              
ffc1af70:	54 e7 40 2e 	rlwinm  r7,r7,8,0,23                           
ffc1af74:	7c a8 3b 78 	or      r8,r5,r7                               
    map->blocks[b] = rtems_rfs_inode_get_block (inode, b);            
ffc1af78:	91 06 00 24 	stw     r8,36(r6)                              
  /*                                                                  
   * 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++)                        
ffc1af7c:	42 00 ff b8 	bdnz+   ffc1af34 <rtems_rfs_block_map_open+0x78>
 * @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);             
ffc1af80:	89 09 00 0c 	lbz     r8,12(r9)                              
  map->size.count = rtems_rfs_inode_get_block_count (inode);          
  map->size.offset = rtems_rfs_inode_get_block_offset (inode);        
  map->last_map_block = rtems_rfs_inode_get_last_map_block (inode);   
  map->last_data_block = rtems_rfs_inode_get_last_data_block (inode); 
                                                                      
  rc = rtems_rfs_inode_unload (fs, inode, false);                     
ffc1af84:	7f 83 e3 78 	mr      r3,r28                                 
ffc1af88:	89 49 00 0d 	lbz     r10,13(r9)                             
ffc1af8c:	7f a4 eb 78 	mr      r4,r29                                 
ffc1af90:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           
                                                                      
  return rc;                                                          
}                                                                     
ffc1af94:	80 01 00 24 	lwz     r0,36(r1)                              
ffc1af98:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc1af9c:	7d 0a 53 78 	or      r10,r8,r10                             
ffc1afa0:	89 09 00 0f 	lbz     r8,15(r9)                              
ffc1afa4:	7c 08 03 a6 	mtlr    r0                                     
  map->size.count = rtems_rfs_inode_get_block_count (inode);          
  map->size.offset = rtems_rfs_inode_get_block_offset (inode);        
  map->last_map_block = rtems_rfs_inode_get_last_map_block (inode);   
  map->last_data_block = rtems_rfs_inode_get_last_data_block (inode); 
                                                                      
  rc = rtems_rfs_inode_unload (fs, inode, false);                     
ffc1afa8:	38 a0 00 00 	li      r5,0                                   
ffc1afac:	7d 4a 43 78 	or      r10,r10,r8                             
ffc1afb0:	89 09 00 0e 	lbz     r8,14(r9)                              
ffc1afb4:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc1afb8:	7d 4a 43 78 	or      r10,r10,r8                             
   * byte order.                                                      
   */                                                                 
  map->inode = inode;                                                 
  for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                        
    map->blocks[b] = rtems_rfs_inode_get_block (inode, b);            
  map->size.count = rtems_rfs_inode_get_block_count (inode);          
ffc1afbc:	91 5f 00 08 	stw     r10,8(r31)                             
 * @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);            
ffc1afc0:	89 49 00 0a 	lbz     r10,10(r9)                             
ffc1afc4:	89 09 00 0b 	lbz     r8,11(r9)                              
ffc1afc8:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
  map->size.offset = rtems_rfs_inode_get_block_offset (inode);        
ffc1afcc:	7d 4a 43 78 	or      r10,r10,r8                             
ffc1afd0:	91 5f 00 0c 	stw     r10,12(r31)                            
 * @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);          
ffc1afd4:	89 09 00 30 	lbz     r8,48(r9)                              
ffc1afd8:	89 49 00 31 	lbz     r10,49(r9)                             
ffc1afdc:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           
ffc1afe0:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc1afe4:	7d 0a 53 78 	or      r10,r8,r10                             
ffc1afe8:	89 09 00 33 	lbz     r8,51(r9)                              
ffc1afec:	7d 4a 43 78 	or      r10,r10,r8                             
ffc1aff0:	89 09 00 32 	lbz     r8,50(r9)                              
ffc1aff4:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc1aff8:	7d 4a 43 78 	or      r10,r10,r8                             
  map->last_map_block = rtems_rfs_inode_get_last_map_block (inode);   
ffc1affc:	91 5f 00 1c 	stw     r10,28(r31)                            
 * @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);         
ffc1b000:	89 09 00 34 	lbz     r8,52(r9)                              
ffc1b004:	89 49 00 35 	lbz     r10,53(r9)                             
ffc1b008:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           
ffc1b00c:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc1b010:	7d 08 53 78 	or      r8,r8,r10                              
ffc1b014:	89 49 00 37 	lbz     r10,55(r9)                             
ffc1b018:	7d 08 53 78 	or      r8,r8,r10                              
ffc1b01c:	89 49 00 36 	lbz     r10,54(r9)                             
ffc1b020:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc1b024:	7d 09 53 78 	or      r9,r8,r10                              
  map->last_data_block = rtems_rfs_inode_get_last_data_block (inode); 
ffc1b028:	91 3f 00 20 	stw     r9,32(r31)                             
                                                                      
  rc = rtems_rfs_inode_unload (fs, inode, false);                     
                                                                      
  return rc;                                                          
}                                                                     
ffc1b02c:	bb 61 00 0c 	lmw     r27,12(r1)                             
ffc1b030:	38 21 00 20 	addi    r1,r1,32                               
  map->size.count = rtems_rfs_inode_get_block_count (inode);          
  map->size.offset = rtems_rfs_inode_get_block_offset (inode);        
  map->last_map_block = rtems_rfs_inode_get_last_map_block (inode);   
  map->last_data_block = rtems_rfs_inode_get_last_data_block (inode); 
                                                                      
  rc = rtems_rfs_inode_unload (fs, inode, false);                     
ffc1b034:	4b ff 78 a0 	b       ffc128d4 <rtems_rfs_inode_unload>      
 */                                                                   
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);                       
ffc1b038:	38 9f 00 38 	addi    r4,r31,56                              <== NOT EXECUTED
ffc1b03c:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc1b040:	48 00 0c ad 	bl      ffc1bcec <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
ffc1b044:	9b df 00 38 	stb     r30,56(r31)                            <== 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);                       
ffc1b048:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc1b04c:	93 df 00 3c 	stw     r30,60(r31)                            <== 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);                       
ffc1b050:	38 9f 00 44 	addi    r4,r31,68                              <== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc1b054:	93 df 00 40 	stw     r30,64(r31)                            <== 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);                       
ffc1b058:	48 00 0c 95 	bl      ffc1bcec <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
ffc1b05c:	9b df 00 44 	stb     r30,68(r31)                            <== NOT EXECUTED
                                                                      
  return rc;                                                          
}                                                                     
ffc1b060:	39 61 00 20 	addi    r11,r1,32                              <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc1b064:	93 df 00 48 	stw     r30,72(r31)                            <== NOT EXECUTED
ffc1b068:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc1b06c:	93 df 00 4c 	stw     r30,76(r31)                            <== NOT EXECUTED
ffc1b070:	4b fe 64 ec 	b       ffc0155c <_restgpr_27_x>               <== NOT EXECUTED
                                                                      

ffc1b82c <rtems_rfs_block_map_shrink>: int rtems_rfs_block_map_shrink (rtems_rfs_file_system* fs, rtems_rfs_block_map* map, size_t blocks) {
ffc1b82c:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc1b830:	7c 08 02 a6 	mflr    r0                                     
ffc1b834:	be 61 00 0c 	stmw    r19,12(r1)                             
ffc1b838:	7c 7e 1b 78 	mr      r30,r3                                 
ffc1b83c:	7c 9f 23 78 	mr      r31,r4                                 
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_SHRINK))             
ffc1b840:	38 60 00 00 	li      r3,0                                   
                                                                      
int                                                                   
rtems_rfs_block_map_shrink (rtems_rfs_file_system* fs,                
                            rtems_rfs_block_map*   map,               
                            size_t                 blocks)            
{                                                                     
ffc1b844:	90 01 00 44 	stw     r0,68(r1)                              
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_SHRINK))             
ffc1b848:	38 80 40 00 	li      r4,16384                               
                                                                      
int                                                                   
rtems_rfs_block_map_shrink (rtems_rfs_file_system* fs,                
                            rtems_rfs_block_map*   map,               
                            size_t                 blocks)            
{                                                                     
ffc1b84c:	7c bd 2b 78 	mr      r29,r5                                 
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_SHRINK))             
ffc1b850:	4b ff 89 f9 	bl      ffc14248 <rtems_rfs_trace>             
ffc1b854:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1b858:	41 be 00 1c 	beq+    cr7,ffc1b874 <rtems_rfs_block_map_shrink+0x48><== ALWAYS TAKEN
    printf ("rtems-rfs: block-map-shrink: entry: blocks=%zd count=%" PRIu32 "\n",
ffc1b85c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1b860:	80 bf 00 08 	lwz     r5,8(r31)                              <== NOT EXECUTED
ffc1b864:	38 63 48 da 	addi    r3,r3,18650                            <== NOT EXECUTED
ffc1b868:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc1b86c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1b870:	48 00 73 01 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            blocks, map->size.count);                                 
                                                                      
  if (map->size.count == 0)                                           
ffc1b874:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc1b878:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1b87c:	40 be 00 08 	bne+    cr7,ffc1b884 <rtems_rfs_block_map_shrink+0x58>
ffc1b880:	48 00 02 ac 	b       ffc1bb2c <rtems_rfs_block_map_shrink+0x300>
ffc1b884:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc1b888:	40 9d 02 18 	ble-    cr7,ffc1baa0 <rtems_rfs_block_map_shrink+0x274><== ALWAYS TAKEN
ffc1b88c:	7d 3d 4b 78 	mr      r29,r9                                 <== NOT EXECUTED
ffc1b890:	48 00 02 10 	b       ffc1baa0 <rtems_rfs_block_map_shrink+0x274><== NOT EXECUTED
  {                                                                   
    rtems_rfs_block_no block;                                         
    rtems_rfs_block_no block_to_free;                                 
    int                rc;                                            
                                                                      
    block = map->size.count - 1;                                      
ffc1b894:	81 5f 00 08 	lwz     r10,8(r31)                             
ffc1b898:	39 2a ff ff 	addi    r9,r10,-1                              
                                                                      
    if (block < RTEMS_RFS_INODE_BLOCKS)                               
ffc1b89c:	2b 89 00 04 	cmplwi  cr7,r9,4                               
ffc1b8a0:	41 9d 00 20 	bgt-    cr7,ffc1b8c0 <rtems_rfs_block_map_shrink+0x94>
    {                                                                 
      /*                                                              
       * We have less than RTEMS_RFS_INODE_BLOCKS so they are held in the
       * inode.                                                       
       */                                                             
      block_to_free = map->blocks[block];                             
ffc1b8a4:	39 2a 00 07 	addi    r9,r10,7                               
ffc1b8a8:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc1b8ac:	7d 3f 4a 14 	add     r9,r31,r9                              
      map->blocks[block] = 0;                                         
ffc1b8b0:	39 40 00 00 	li      r10,0                                  
    {                                                                 
      /*                                                              
       * We have less than RTEMS_RFS_INODE_BLOCKS so they are held in the
       * inode.                                                       
       */                                                             
      block_to_free = map->blocks[block];                             
ffc1b8b4:	83 69 00 04 	lwz     r27,4(r9)                              
      map->blocks[block] = 0;                                         
ffc1b8b8:	91 49 00 04 	stw     r10,4(r9)                              
ffc1b8bc:	48 00 01 a8 	b       ffc1ba64 <rtems_rfs_block_map_shrink+0x238>
       * table of block numbers.                                      
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = block % fs->blocks_per_block;                          
ffc1b8c0:	80 fe 00 34 	lwz     r7,52(r30)                             
      singly = block / fs->blocks_per_block;                          
                                                                      
      if (block < fs->block_map_singly_blocks)                        
ffc1b8c4:	81 5e 00 38 	lwz     r10,56(r30)                            
       * table of block numbers.                                      
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = block % fs->blocks_per_block;                          
ffc1b8c8:	7f 89 3b 96 	divwu   r28,r9,r7                              
      singly = block / fs->blocks_per_block;                          
                                                                      
      if (block < fs->block_map_singly_blocks)                        
ffc1b8cc:	7f 89 50 40 	cmplw   cr7,r9,r10                             
       * table of block numbers.                                      
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = block % fs->blocks_per_block;                          
ffc1b8d0:	7f 5c 39 d6 	mullw   r26,r28,r7                             
ffc1b8d4:	7f 5a 48 50 	subf    r26,r26,r9                             
      singly = block / fs->blocks_per_block;                          
                                                                      
      if (block < fs->block_map_singly_blocks)                        
ffc1b8d8:	40 bc 00 7c 	bge+    cr7,ffc1b954 <rtems_rfs_block_map_shrink+0x128><== 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,
ffc1b8dc:	39 3c 00 08 	addi    r9,r28,8                               
ffc1b8e0:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc1b8e4:	7d 3f 4a 14 	add     r9,r31,r9                              
ffc1b8e8:	80 a9 00 04 	lwz     r5,4(r9)                               
ffc1b8ec:	7f c3 f3 78 	mr      r3,r30                                 
ffc1b8f0:	7e e4 bb 78 	mr      r4,r23                                 
ffc1b8f4:	38 c0 00 01 	li      r6,1                                   
ffc1b8f8:	48 00 05 d9 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
                                              map->blocks[singly], true);
        if (rc > 0)                                                   
ffc1b8fc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1b900:	41 81 02 30 	bgt-    ffc1bb30 <rtems_rfs_block_map_shrink+0x304><== NEVER TAKEN
          return rc;                                                  
                                                                      
        block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
ffc1b904:	81 3f 00 40 	lwz     r9,64(r31)                             
ffc1b908:	57 4a 10 3a 	rlwinm  r10,r26,2,0,29                         
                                                    direct);          
                                                                      
        rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
ffc1b90c:	7f c3 f3 78 	mr      r3,r30                                 
        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,
ffc1b910:	81 09 00 1c 	lwz     r8,28(r9)                              
                                                    direct);          
                                                                      
        rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
ffc1b914:	7f e4 fb 78 	mr      r4,r31                                 
ffc1b918:	7e 85 a3 78 	mr      r5,r20                                 
        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,
ffc1b91c:	7d 28 52 14 	add     r9,r8,r10                              
ffc1b920:	7f 68 50 ae 	lbzx    r27,r8,r10                             
ffc1b924:	88 e9 00 03 	lbz     r7,3(r9)                               
                                                    direct);          
                                                                      
        rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
ffc1b928:	7f 86 e3 78 	mr      r6,r28                                 
        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,
ffc1b92c:	89 49 00 01 	lbz     r10,1(r9)                              
ffc1b930:	57 7b c0 0e 	rlwinm  r27,r27,24,0,7                         
ffc1b934:	89 29 00 02 	lbz     r9,2(r9)                               
ffc1b938:	7c fb db 78 	or      r27,r7,r27                             
ffc1b93c:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc1b940:	7f 7b 53 78 	or      r27,r27,r10                            
ffc1b944:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc1b948:	7f 7b 4b 78 	or      r27,r27,r9                             
                                                    direct);          
                                                                      
        rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
ffc1b94c:	7f 47 d3 78 	mr      r7,r26                                 
ffc1b950:	48 00 01 08 	b       ffc1ba58 <rtems_rfs_block_map_shrink+0x22c>
                                                  singly, direct);    
        if (rc)                                                       
          return rc;                                                  
      }                                                               
      else if (block < fs->block_map_doubly_blocks)                   
ffc1b954:	81 5e 00 3c 	lwz     r10,60(r30)                            <== NOT EXECUTED
ffc1b958:	7f 89 50 40 	cmplw   cr7,r9,r10                             <== NOT EXECUTED
ffc1b95c:	40 9c 01 60 	bge-    cr7,ffc1babc <rtems_rfs_block_map_shrink+0x290><== 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;                
ffc1b960:	7f 3c 3b 96 	divwu   r25,r28,r7                             <== NOT EXECUTED
        doubly_singly = singly % fs->blocks_per_block;                
                                                                      
        rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
ffc1b964:	39 39 00 08 	addi    r9,r25,8                               <== NOT EXECUTED
ffc1b968:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           <== 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;                
ffc1b96c:	7c f9 39 d6 	mullw   r7,r25,r7                              <== NOT EXECUTED
                                                                      
        rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
ffc1b970:	7d 3f 4a 14 	add     r9,r31,r9                              <== NOT EXECUTED
ffc1b974:	80 a9 00 04 	lwz     r5,4(r9)                               <== NOT EXECUTED
ffc1b978:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1b97c:	7e c4 b3 78 	mr      r4,r22                                 <== NOT EXECUTED
ffc1b980:	38 c0 00 01 	li      r6,1                                   <== 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;                
ffc1b984:	7f 87 e0 50 	subf    r28,r7,r28                             <== NOT EXECUTED
                                                                      
        rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
ffc1b988:	48 00 05 49 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
                                              map->blocks[doubly], true);
        if (rc > 0)                                                   
ffc1b98c:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc1b990:	41 81 01 a0 	bgt-    ffc1bb30 <rtems_rfs_block_map_shrink+0x304><== NOT EXECUTED
          return rc;                                                  
                                                                      
        singly = rtems_rfs_block_get_number (&map->doubly_buffer,     
ffc1b994:	81 3f 00 4c 	lwz     r9,76(r31)                             <== NOT EXECUTED
ffc1b998:	57 8a 10 3a 	rlwinm  r10,r28,2,0,29                         <== NOT EXECUTED
                                             doubly_singly);          
                                                                      
        /*                                                            
         * Read the singly indirect table and get the block number.   
         */                                                           
        rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc1b99c:	7f c3 f3 78 	mr      r3,r30                                 <== 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,     
ffc1b9a0:	81 09 00 1c 	lwz     r8,28(r9)                              <== NOT EXECUTED
                                             doubly_singly);          
                                                                      
        /*                                                            
         * Read the singly indirect table and get the block number.   
         */                                                           
        rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc1b9a4:	7e e4 bb 78 	mr      r4,r23                                 <== NOT EXECUTED
ffc1b9a8:	38 c0 00 01 	li      r6,1                                   <== 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,     
ffc1b9ac:	7d 28 52 14 	add     r9,r8,r10                              <== NOT EXECUTED
ffc1b9b0:	7f 08 50 ae 	lbzx    r24,r8,r10                             <== NOT EXECUTED
ffc1b9b4:	88 e9 00 03 	lbz     r7,3(r9)                               <== NOT EXECUTED
ffc1b9b8:	89 49 00 01 	lbz     r10,1(r9)                              <== NOT EXECUTED
ffc1b9bc:	57 18 c0 0e 	rlwinm  r24,r24,24,0,7                         <== NOT EXECUTED
ffc1b9c0:	89 29 00 02 	lbz     r9,2(r9)                               <== NOT EXECUTED
ffc1b9c4:	7c f8 c3 78 	or      r24,r7,r24                             <== NOT EXECUTED
ffc1b9c8:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        <== NOT EXECUTED
ffc1b9cc:	7f 18 53 78 	or      r24,r24,r10                            <== NOT EXECUTED
ffc1b9d0:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           <== NOT EXECUTED
ffc1b9d4:	7f 18 4b 78 	or      r24,r24,r9                             <== NOT EXECUTED
                                             doubly_singly);          
                                                                      
        /*                                                            
         * Read the singly indirect table and get the block number.   
         */                                                           
        rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc1b9d8:	7f 05 c3 78 	mr      r5,r24                                 <== NOT EXECUTED
ffc1b9dc:	48 00 04 f5 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
                                              singly, true);          
        if (rc > 0)                                                   
ffc1b9e0:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc1b9e4:	41 81 01 4c 	bgt-    ffc1bb30 <rtems_rfs_block_map_shrink+0x304><== NOT EXECUTED
          return rc;                                                  
                                                                      
        block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
ffc1b9e8:	81 3f 00 40 	lwz     r9,64(r31)                             <== NOT EXECUTED
ffc1b9ec:	57 4a 10 3a 	rlwinm  r10,r26,2,0,29                         <== NOT EXECUTED
                                                    direct);          
                                                                      
        if (direct == 0)                                              
ffc1b9f0:	2f 9a 00 00 	cmpwi   cr7,r26,0                              <== NOT EXECUTED
        rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
                                              singly, true);          
        if (rc > 0)                                                   
          return rc;                                                  
                                                                      
        block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
ffc1b9f4:	81 09 00 1c 	lwz     r8,28(r9)                              <== NOT EXECUTED
ffc1b9f8:	7d 28 52 14 	add     r9,r8,r10                              <== NOT EXECUTED
ffc1b9fc:	7f 68 50 ae 	lbzx    r27,r8,r10                             <== NOT EXECUTED
ffc1ba00:	88 e9 00 03 	lbz     r7,3(r9)                               <== NOT EXECUTED
ffc1ba04:	89 49 00 01 	lbz     r10,1(r9)                              <== NOT EXECUTED
ffc1ba08:	57 7b c0 0e 	rlwinm  r27,r27,24,0,7                         <== NOT EXECUTED
ffc1ba0c:	89 29 00 02 	lbz     r9,2(r9)                               <== NOT EXECUTED
ffc1ba10:	7c fb db 78 	or      r27,r7,r27                             <== NOT EXECUTED
ffc1ba14:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        <== NOT EXECUTED
ffc1ba18:	7f 7b 53 78 	or      r27,r27,r10                            <== NOT EXECUTED
ffc1ba1c:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           <== NOT EXECUTED
ffc1ba20:	7f 7b 4b 78 	or      r27,r27,r9                             <== NOT EXECUTED
                                                    direct);          
                                                                      
        if (direct == 0)                                              
ffc1ba24:	40 be 00 40 	bne+    cr7,ffc1ba64 <rtems_rfs_block_map_shrink+0x238><== NOT EXECUTED
        {                                                             
          rc = rtems_rfs_group_bitmap_free (fs, false, singly);       
ffc1ba28:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1ba2c:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1ba30:	7f 05 c3 78 	mr      r5,r24                                 <== NOT EXECUTED
ffc1ba34:	4b ff 6a 65 	bl      ffc12498 <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
          if (rc > 0)                                                 
ffc1ba38:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc1ba3c:	41 81 00 f4 	bgt-    ffc1bb30 <rtems_rfs_block_map_shrink+0x304><== NOT EXECUTED
            return rc;                                                
                                                                      
          map->last_map_block = singly;                               
ffc1ba40:	93 1f 00 1c 	stw     r24,28(r31)                            <== NOT EXECUTED
                                                                      
          rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->doubly_buffer,
ffc1ba44:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1ba48:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1ba4c:	7e a5 ab 78 	mr      r5,r21                                 <== NOT EXECUTED
ffc1ba50:	7f 26 cb 78 	mr      r6,r25                                 <== NOT EXECUTED
ffc1ba54:	7f 87 e3 78 	mr      r7,r28                                 <== NOT EXECUTED
ffc1ba58:	4b ff f2 51 	bl      ffc1aca8 <rtems_rfs_block_map_indirect_shrink.isra.7>
                                                    doubly, doubly_singly);
          if (rc)                                                     
ffc1ba5c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1ba60:	40 82 00 d0 	bne-    ffc1bb30 <rtems_rfs_block_map_shrink+0x304><== NEVER TAKEN
      {                                                               
        rc = EIO;                                                     
        break;                                                        
      }                                                               
    }                                                                 
    rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);      
ffc1ba64:	7f c3 f3 78 	mr      r3,r30                                 
ffc1ba68:	38 80 00 00 	li      r4,0                                   
ffc1ba6c:	7f 65 db 78 	mr      r5,r27                                 
ffc1ba70:	4b ff 6a 29 	bl      ffc12498 <rtems_rfs_group_bitmap_free> 
    if (rc > 0)                                                       
ffc1ba74:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1ba78:	41 81 00 b8 	bgt-    ffc1bb30 <rtems_rfs_block_map_shrink+0x304><== NEVER TAKEN
      return rc;                                                      
    map->size.count--;                                                
ffc1ba7c:	81 3f 00 08 	lwz     r9,8(r31)                              
    map->size.offset = 0;                                             
    map->last_data_block = block_to_free;                             
    map->dirty = true;                                                
    blocks--;                                                         
ffc1ba80:	3b bd ff ff 	addi    r29,r29,-1                             
    rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);      
    if (rc > 0)                                                       
      return rc;                                                      
    map->size.count--;                                                
    map->size.offset = 0;                                             
    map->last_data_block = block_to_free;                             
ffc1ba84:	93 7f 00 20 	stw     r27,32(r31)                            
      }                                                               
    }                                                                 
    rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);      
    if (rc > 0)                                                       
      return rc;                                                      
    map->size.count--;                                                
ffc1ba88:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1ba8c:	91 3f 00 08 	stw     r9,8(r31)                              
    map->size.offset = 0;                                             
ffc1ba90:	39 20 00 00 	li      r9,0                                   
ffc1ba94:	91 3f 00 0c 	stw     r9,12(r31)                             
    map->last_data_block = block_to_free;                             
    map->dirty = true;                                                
ffc1ba98:	9a 7f 00 00 	stb     r19,0(r31)                             
ffc1ba9c:	48 00 00 18 	b       ffc1bab4 <rtems_rfs_block_map_shrink+0x288>
        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,
ffc1baa0:	3a df 00 44 	addi    r22,r31,68                             
                                             doubly_singly);          
                                                                      
        /*                                                            
         * Read the singly indirect table and get the block number.   
         */                                                           
        rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc1baa4:	3a ff 00 38 	addi    r23,r31,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);       
}                                                                     
ffc1baa8:	3a bf 00 4c 	addi    r21,r31,76                             
ffc1baac:	3a 9f 00 40 	addi    r20,r31,64                             
    if (rc > 0)                                                       
      return rc;                                                      
    map->size.count--;                                                
    map->size.offset = 0;                                             
    map->last_data_block = block_to_free;                             
    map->dirty = true;                                                
ffc1bab0:	3a 60 00 01 	li      r19,1                                  
    return 0;                                                         
                                                                      
  if (blocks > map->size.count)                                       
    blocks = map->size.count;                                         
                                                                      
  while (blocks)                                                      
ffc1bab4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc1bab8:	40 9e fd dc 	bne+    cr7,ffc1b894 <rtems_rfs_block_map_shrink+0x68>
    map->last_data_block = block_to_free;                             
    map->dirty = true;                                                
    blocks--;                                                         
  }                                                                   
                                                                      
  if (map->size.count == 0)                                           
ffc1babc:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc1bac0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1bac4:	40 9e 00 0c 	bne-    cr7,ffc1bad0 <rtems_rfs_block_map_shrink+0x2a4>
  {                                                                   
    map->last_map_block = 0;                                          
ffc1bac8:	91 3f 00 1c 	stw     r9,28(r31)                             
    map->last_data_block = 0;                                         
ffc1bacc:	91 3f 00 20 	stw     r9,32(r31)                             
  }                                                                   
                                                                      
  /*                                                                  
   * Keep the position inside the map.                                
   */                                                                 
  if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))          
ffc1bad0:	81 5f 00 10 	lwz     r10,16(r31)                            
ffc1bad4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1bad8:	41 9e 00 0c 	beq-    cr7,ffc1bae4 <rtems_rfs_block_map_shrink+0x2b8>
ffc1badc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1bae0:	41 9e 00 28 	beq-    cr7,ffc1bb08 <rtems_rfs_block_map_shrink+0x2dc><== ALWAYS TAKEN
ffc1bae4:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc1bae8:	40 9c 00 20 	bge-    cr7,ffc1bb08 <rtems_rfs_block_map_shrink+0x2dc>
ffc1baec:	39 09 ff ff 	addi    r8,r9,-1                               
ffc1baf0:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc1baf4:	40 be 00 38 	bne+    cr7,ffc1bb2c <rtems_rfs_block_map_shrink+0x300><== NEVER TAKEN
ffc1baf8:	81 1f 00 14 	lwz     r8,20(r31)                             
ffc1bafc:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc1bb00:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc1bb04:	40 9d 00 28 	ble-    cr7,ffc1bb2c <rtems_rfs_block_map_shrink+0x300><== NEVER TAKEN
    rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);           
ffc1bb08:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc1bb0c:	39 00 00 00 	li      r8,0                                   
ffc1bb10:	91 3f 00 10 	stw     r9,16(r31)                             
ffc1bb14:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1bb18:	91 5f 00 14 	stw     r10,20(r31)                            
ffc1bb1c:	91 1f 00 18 	stw     r8,24(r31)                             
ffc1bb20:	41 9e 00 0c 	beq-    cr7,ffc1bb2c <rtems_rfs_block_map_shrink+0x300><== ALWAYS TAKEN
ffc1bb24:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc1bb28:	91 3f 00 10 	stw     r9,16(r31)                             <== NOT EXECUTED
                                                                      
  return 0;                                                           
ffc1bb2c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1bb30:	39 61 00 40 	addi    r11,r1,64                              
ffc1bb34:	4b fe 5a 08 	b       ffc0153c <_restgpr_19_x>               
                                                                      

ffc20df8 <rtems_rfs_buffer_bdbuf_release>: int rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer, bool modified) {
ffc20df8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc20dfc:	7c 08 02 a6 	mflr    r0                                     
ffc20e00:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc20e04:	7c 7f 1b 78 	mr      r31,r3                                 
ffc20e08:	7c 9e 23 78 	mr      r30,r4                                 
  rtems_status_code sc;                                               
  int               rc = 0;                                           
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
ffc20e0c:	38 60 00 00 	li      r3,0                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer,             
                                bool              modified)           
{                                                                     
ffc20e10:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_status_code sc;                                               
  int               rc = 0;                                           
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
ffc20e14:	38 80 00 40 	li      r4,64                                  
ffc20e18:	4b ff 34 31 	bl      ffc14248 <rtems_rfs_trace>             
ffc20e1c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc20e20:	41 9e 00 38 	beq-    cr7,ffc20e58 <rtems_rfs_buffer_bdbuf_release+0x60><== ALWAYS TAKEN
    printf ("rtems-rfs: bdbuf-release: block=%" PRIuPTR " bdbuf=%" PRIu32 " %s\n",
ffc20e24:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc20e28:	80 9f 00 34 	lwz     r4,52(r31)                             <== NOT EXECUTED
ffc20e2c:	80 bf 00 18 	lwz     r5,24(r31)                             <== NOT EXECUTED
ffc20e30:	41 9e 00 10 	beq-    cr7,ffc20e40 <rtems_rfs_buffer_bdbuf_release+0x48><== NOT EXECUTED
ffc20e34:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc20e38:	38 c6 5d c4 	addi    r6,r6,24004                            <== NOT EXECUTED
ffc20e3c:	48 00 00 0c 	b       ffc20e48 <rtems_rfs_buffer_bdbuf_release+0x50><== NOT EXECUTED
ffc20e40:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc20e44:	38 c6 30 db 	addi    r6,r6,12507                            <== NOT EXECUTED
ffc20e48:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc20e4c:	38 63 5d cf 	addi    r3,r3,24015                            <== NOT EXECUTED
ffc20e50:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc20e54:	48 00 1d 1d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            ((intptr_t) buffer->user),                                
            buffer->block, modified ? "(modified)" : "");             
                                                                      
  if (modified)                                                       
ffc20e58:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    sc = rtems_bdbuf_release_modified (buffer);                       
ffc20e5c:	7f e3 fb 78 	mr      r3,r31                                 
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
    printf ("rtems-rfs: bdbuf-release: block=%" PRIuPTR " bdbuf=%" PRIu32 " %s\n",
            ((intptr_t) buffer->user),                                
            buffer->block, modified ? "(modified)" : "");             
                                                                      
  if (modified)                                                       
ffc20e60:	41 9e 00 0c 	beq-    cr7,ffc20e6c <rtems_rfs_buffer_bdbuf_release+0x74>
    sc = rtems_bdbuf_release_modified (buffer);                       
ffc20e64:	4b ff 58 b5 	bl      ffc16718 <rtems_bdbuf_release_modified>
ffc20e68:	48 00 00 08 	b       ffc20e70 <rtems_rfs_buffer_bdbuf_release+0x78>
  else                                                                
    sc = rtems_bdbuf_release (buffer);                                
ffc20e6c:	4b ff 57 d1 	bl      ffc1663c <rtems_bdbuf_release>         
                                                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc20e70:	2f 83 00 00 	cmpwi   cr7,r3,0                               
#if RTEMS_RFS_BUFFER_ERRORS                                           
    printf ("rtems-rfs: buffer-release: bdbuf-%s: %s(%d)\n",          
            modified ? "modified" : "not-modified",                   
            rtems_status_text (sc), sc);                              
#endif                                                                
    rc = EIO;                                                         
ffc20e74:	39 20 00 05 	li      r9,5                                   
  if (modified)                                                       
    sc = rtems_bdbuf_release_modified (buffer);                       
  else                                                                
    sc = rtems_bdbuf_release (buffer);                                
                                                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc20e78:	40 be 00 08 	bne+    cr7,ffc20e80 <rtems_rfs_buffer_bdbuf_release+0x88><== NEVER TAKEN
int                                                                   
rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer,             
                                bool              modified)           
{                                                                     
  rtems_status_code sc;                                               
  int               rc = 0;                                           
ffc20e7c:	39 20 00 00 	li      r9,0                                   
#endif                                                                
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc20e80:	39 61 00 10 	addi    r11,r1,16                              
ffc20e84:	7d 23 4b 78 	mr      r3,r9                                  
ffc20e88:	4b fe 06 e0 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc20dac <rtems_rfs_buffer_bdbuf_request>: rtems_rfs_buffer** buffer) { rtems_status_code sc; int rc = 0; if (read)
ffc20dac:	2f 85 00 00 	cmpwi   cr7,r5,0                               
int                                                                   
rtems_rfs_buffer_bdbuf_request (rtems_rfs_file_system*   fs,          
                                rtems_rfs_buffer_block   block,       
                                bool                     read,        
                                rtems_rfs_buffer**       buffer)      
{                                                                     
ffc20db0:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc20db4:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc;                                               
  int               rc = 0;                                           
                                                                      
  if (read)                                                           
    sc = rtems_bdbuf_read (rtems_rfs_fs_device (fs), block, buffer);  
ffc20db8:	7c c5 33 78 	mr      r5,r6                                  
int                                                                   
rtems_rfs_buffer_bdbuf_request (rtems_rfs_file_system*   fs,          
                                rtems_rfs_buffer_block   block,       
                                bool                     read,        
                                rtems_rfs_buffer**       buffer)      
{                                                                     
ffc20dbc:	90 01 00 0c 	stw     r0,12(r1)                              
ffc20dc0:	80 63 00 10 	lwz     r3,16(r3)                              
  rtems_status_code sc;                                               
  int               rc = 0;                                           
                                                                      
  if (read)                                                           
ffc20dc4:	41 9e 00 0c 	beq-    cr7,ffc20dd0 <rtems_rfs_buffer_bdbuf_request+0x24>
    sc = rtems_bdbuf_read (rtems_rfs_fs_device (fs), block, buffer);  
ffc20dc8:	4b ff 56 7d 	bl      ffc16444 <rtems_bdbuf_read>            
ffc20dcc:	48 00 00 08 	b       ffc20dd4 <rtems_rfs_buffer_bdbuf_request+0x28>
  else                                                                
    sc = rtems_bdbuf_get (rtems_rfs_fs_device (fs), block, buffer);   
ffc20dd0:	4b ff 55 9d 	bl      ffc1636c <rtems_bdbuf_get>             
                                                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc20dd4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  {                                                                   
#if RTEMS_RFS_BUFFER_ERRORS                                           
    printf ("rtems-rfs: buffer-bdbuf-request: block=%lu: bdbuf-%s: %d: %s\n",
            block, read ? "read" : "get", sc, rtems_status_text (sc));
#endif                                                                
    rc = EIO;                                                         
ffc20dd8:	39 20 00 05 	li      r9,5                                   
  if (read)                                                           
    sc = rtems_bdbuf_read (rtems_rfs_fs_device (fs), block, buffer);  
  else                                                                
    sc = rtems_bdbuf_get (rtems_rfs_fs_device (fs), block, buffer);   
                                                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc20ddc:	40 be 00 08 	bne+    cr7,ffc20de4 <rtems_rfs_buffer_bdbuf_request+0x38><== NEVER TAKEN
                                rtems_rfs_buffer_block   block,       
                                bool                     read,        
                                rtems_rfs_buffer**       buffer)      
{                                                                     
  rtems_status_code sc;                                               
  int               rc = 0;                                           
ffc20de0:	39 20 00 00 	li      r9,0                                   
#endif                                                                
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc20de4:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc20de8:	7d 23 4b 78 	mr      r3,r9                                  
ffc20dec:	7c 08 03 a6 	mtlr    r0                                     
ffc20df0:	38 21 00 08 	addi    r1,r1,8                                
ffc20df4:	4e 80 00 20 	blr                                            
                                                                      

ffc1c51c <rtems_rfs_buffer_close>: return 0; } int rtems_rfs_buffer_close (rtems_rfs_file_system* fs) {
ffc1c51c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1c520:	7c 08 02 a6 	mflr    r0                                     
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))                 
ffc1c524:	38 80 00 10 	li      r4,16                                  
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_close (rtems_rfs_file_system* fs)                    
{                                                                     
ffc1c528:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc1c52c:	7c 7e 1b 78 	mr      r30,r3                                 
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))                 
ffc1c530:	38 60 00 00 	li      r3,0                                   
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_close (rtems_rfs_file_system* fs)                    
{                                                                     
ffc1c534:	90 01 00 14 	stw     r0,20(r1)                              
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))                 
ffc1c538:	4b ff 7d 11 	bl      ffc14248 <rtems_rfs_trace>             
ffc1c53c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c540:	41 be 00 10 	beq+    cr7,ffc1c550 <rtems_rfs_buffer_close+0x34><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-close: closing\n");                    
ffc1c544:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c548:	38 63 4d 5c 	addi    r3,r3,19804                            <== NOT EXECUTED
ffc1c54c:	48 00 69 8d 	bl      ffc22ed8 <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));
ffc1c550:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc1c554:	7f c3 f3 78 	mr      r3,r30                                 
ffc1c558:	80 89 00 20 	lwz     r4,32(r9)                              
ffc1c55c:	4b ff fe c5 	bl      ffc1c420 <rtems_rfs_buffer_setblksize> 
                                                                      
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))     
ffc1c560:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1c564:	40 81 00 38 	ble-    ffc1c59c <rtems_rfs_buffer_close+0x80> <== ALWAYS TAKEN
ffc1c568:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1c56c:	38 80 00 10 	li      r4,16                                  <== NOT EXECUTED
ffc1c570:	4b ff 7c d9 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1c574:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1c578:	41 be 00 24 	beq+    cr7,ffc1c59c <rtems_rfs_buffer_close+0x80><== NOT EXECUTED
    printf ("rtems-rfs: buffer-close: set media block size failed: %d: %s\n",
ffc1c57c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1c580:	48 00 77 dd 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1c584:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1c588:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1c58c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c590:	38 63 4d 7d 	addi    r3,r3,19837                            <== NOT EXECUTED
ffc1c594:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c598:	48 00 65 d9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  if (close (fs->device) < 0)                                         
ffc1c59c:	80 7e 00 0c 	lwz     r3,12(r30)                             
ffc1c5a0:	4b fe c4 ed 	bl      ffc08a8c <close>                       
ffc1c5a4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c5a8:	40 bc 00 40 	bge+    cr7,ffc1c5e8 <rtems_rfs_buffer_close+0xcc><== ALWAYS TAKEN
  {                                                                   
    rc = errno;                                                       
ffc1c5ac:	48 00 4c 21 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))               
ffc1c5b0:	38 80 00 10 	li      r4,16                                  <== NOT EXECUTED
    printf ("rtems-rfs: buffer-close: set media block size failed: %d: %s\n",
            rc, strerror (rc));                                       
                                                                      
  if (close (fs->device) < 0)                                         
  {                                                                   
    rc = errno;                                                       
ffc1c5b4:	83 e3 00 00 	lwz     r31,0(r3)                              <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))               
ffc1c5b8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1c5bc:	4b ff 7c 8d 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1c5c0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1c5c4:	41 be 00 24 	beq+    cr7,ffc1c5e8 <rtems_rfs_buffer_close+0xcc><== NOT EXECUTED
      printf ("rtems-rfs: buffer-close: file close failed: %d: %s\n", 
ffc1c5c8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1c5cc:	48 00 77 91 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1c5d0:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1c5d4:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1c5d8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c5dc:	38 63 4d bb 	addi    r3,r3,19899                            <== NOT EXECUTED
ffc1c5e0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c5e4:	48 00 65 8d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
              rc, strerror (rc));                                     
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc1c5e8:	39 61 00 10 	addi    r11,r1,16                              
ffc1c5ec:	7f e3 fb 78 	mr      r3,r31                                 
ffc1c5f0:	4b fe 4f 78 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc1bcec <rtems_rfs_buffer_handle_release>: } int rtems_rfs_buffer_handle_release (rtems_rfs_file_system* fs, rtems_rfs_buffer_handle* handle) {
ffc1bcec:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc1bcf0:	7c 08 02 a6 	mflr    r0                                     
ffc1bcf4:	90 01 00 1c 	stw     r0,28(r1)                              
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_buffer_handle_has_block (handle))                     
ffc1bcf8:	81 24 00 08 	lwz     r9,8(r4)                               
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_handle_release (rtems_rfs_file_system*   fs,         
                                 rtems_rfs_buffer_handle* handle)     
{                                                                     
ffc1bcfc:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc1bd00:	7c 9e 23 78 	mr      r30,r4                                 
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_buffer_handle_has_block (handle))                     
ffc1bd04:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
int                                                                   
rtems_rfs_buffer_handle_release (rtems_rfs_file_system*   fs,         
                                 rtems_rfs_buffer_handle* handle)     
{                                                                     
  int rc = 0;                                                         
ffc1bd08:	3b a0 00 00 	li      r29,0                                  
                                                                      
  if (rtems_rfs_buffer_handle_has_block (handle))                     
ffc1bd0c:	41 9e 01 b8 	beq-    cr7,ffc1bec4 <rtems_rfs_buffer_handle_release+0x1d8>
ffc1bd10:	7c 7f 1b 78 	mr      r31,r3                                 
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_RELEASE))      
ffc1bd14:	38 80 02 00 	li      r4,512                                 
ffc1bd18:	38 60 00 00 	li      r3,0                                   
ffc1bd1c:	4b ff 85 2d 	bl      ffc14248 <rtems_rfs_trace>             
ffc1bd20:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1bd24:	41 9e 00 5c 	beq-    cr7,ffc1bd80 <rtems_rfs_buffer_handle_release+0x94><== ALWAYS TAKEN
      printf ("rtems-rfs: buffer-release: block=%" PRIu32 " %s refs=%d %s\n",
ffc1bd28:	89 3e 00 00 	lbz     r9,0(r30)                              <== NOT EXECUTED
ffc1bd2c:	80 9e 00 04 	lwz     r4,4(r30)                              <== NOT EXECUTED
ffc1bd30:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc1bd34:	41 9e 00 10 	beq-    cr7,ffc1bd44 <rtems_rfs_buffer_handle_release+0x58><== NOT EXECUTED
ffc1bd38:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc1bd3c:	38 a5 49 8a 	addi    r5,r5,18826                            <== NOT EXECUTED
ffc1bd40:	48 00 00 0c 	b       ffc1bd4c <rtems_rfs_buffer_handle_release+0x60><== NOT EXECUTED
ffc1bd44:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc1bd48:	38 a5 30 db 	addi    r5,r5,12507                            <== 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" : "");
ffc1bd4c:	81 3e 00 08 	lwz     r9,8(r30)                              <== NOT EXECUTED
ffc1bd50:	80 c9 00 30 	lwz     r6,48(r9)                              <== 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",
ffc1bd54:	2f 86 00 00 	cmpwi   cr7,r6,0                               <== NOT EXECUTED
ffc1bd58:	40 9e 00 10 	bne-    cr7,ffc1bd68 <rtems_rfs_buffer_handle_release+0x7c><== NOT EXECUTED
ffc1bd5c:	3c e0 ff c3 	lis     r7,-61                                 <== NOT EXECUTED
ffc1bd60:	38 e7 49 92 	addi    r7,r7,18834                            <== NOT EXECUTED
ffc1bd64:	48 00 00 0c 	b       ffc1bd70 <rtems_rfs_buffer_handle_release+0x84><== NOT EXECUTED
ffc1bd68:	3c e0 ff c3 	lis     r7,-61                                 <== NOT EXECUTED
ffc1bd6c:	38 e7 30 db 	addi    r7,r7,12507                            <== NOT EXECUTED
ffc1bd70:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1bd74:	38 63 49 a0 	addi    r3,r3,18848                            <== NOT EXECUTED
ffc1bd78:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1bd7c:	48 00 6d f5 	bl      ffc22b70 <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)                           
ffc1bd80:	80 7e 00 08 	lwz     r3,8(r30)                              
ffc1bd84:	81 23 00 30 	lwz     r9,48(r3)                              
ffc1bd88:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1bd8c:	40 9d 00 0c 	ble-    cr7,ffc1bd98 <rtems_rfs_buffer_handle_release+0xac><== NEVER TAKEN
      rtems_rfs_buffer_refs_down (handle);                            
ffc1bd90:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1bd94:	91 23 00 30 	stw     r9,48(r3)                              
                                                                      
    if (rtems_rfs_buffer_refs (handle) == 0)                          
ffc1bd98:	81 23 00 30 	lwz     r9,48(r3)                              
                                                                      
int                                                                   
rtems_rfs_buffer_handle_release (rtems_rfs_file_system*   fs,         
                                 rtems_rfs_buffer_handle* handle)     
{                                                                     
  int rc = 0;                                                         
ffc1bd9c:	3b a0 00 00 	li      r29,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)                          
ffc1bda0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1bda4:	40 be 01 14 	bne+    cr7,ffc1beb8 <rtems_rfs_buffer_handle_release+0x1cc>
ffc1bda8:	4b ff ce 3d 	bl      ffc18be4 <_Chain_Extract>              
    {                                                                 
      rtems_chain_extract (rtems_rfs_buffer_link (handle));           
      fs->buffers_count--;                                            
ffc1bdac:	81 3f 00 50 	lwz     r9,80(r31)                             
ffc1bdb0:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1bdb4:	91 3f 00 50 	stw     r9,80(r31)                             
                                                                      
      if (rtems_rfs_fs_no_local_cache (fs))                           
ffc1bdb8:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc1bdbc:	71 27 00 02 	andi.   r7,r9,2                                
ffc1bdc0:	41 a2 00 1c 	beq+    ffc1bddc <rtems_rfs_buffer_handle_release+0xf0>
      {                                                               
        handle->buffer->user = (void*) 0;                             
ffc1bdc4:	80 7e 00 08 	lwz     r3,8(r30)                              
        rc = rtems_rfs_buffer_io_release (handle->buffer,             
ffc1bdc8:	88 9e 00 00 	lbz     r4,0(r30)                              
      rtems_chain_extract (rtems_rfs_buffer_link (handle));           
      fs->buffers_count--;                                            
                                                                      
      if (rtems_rfs_fs_no_local_cache (fs))                           
      {                                                               
        handle->buffer->user = (void*) 0;                             
ffc1bdcc:	93 a3 00 34 	stw     r29,52(r3)                             
        rc = rtems_rfs_buffer_io_release (handle->buffer,             
ffc1bdd0:	48 00 50 29 	bl      ffc20df8 <rtems_rfs_buffer_bdbuf_release>
ffc1bdd4:	7c 7d 1b 78 	mr      r29,r3                                 
ffc1bdd8:	48 00 00 e0 	b       ffc1beb8 <rtems_rfs_buffer_handle_release+0x1cc>
         * 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 +                                      
ffc1bddc:	81 5f 00 60 	lwz     r10,96(r31)                            
                                                                      
int                                                                   
rtems_rfs_buffer_handle_release (rtems_rfs_file_system*   fs,         
                                 rtems_rfs_buffer_handle* handle)     
{                                                                     
  int rc = 0;                                                         
ffc1bde0:	7c fd 3b 78 	mr      r29,r7                                 
         * 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 +                                      
ffc1bde4:	81 1f 00 70 	lwz     r8,112(r31)                            
ffc1bde8:	7d 08 52 14 	add     r8,r8,r10                              
ffc1bdec:	81 5f 00 40 	lwz     r10,64(r31)                            
ffc1bdf0:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc1bdf4:	41 bc 00 88 	blt+    cr7,ffc1be7c <rtems_rfs_buffer_handle_release+0x190>
             fs->release_modified_count) >= fs->max_held_buffers)     
        {                                                             
          rtems_rfs_buffer* buffer;                                   
          bool              modified;                                 
                                                                      
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_RELEASE))
ffc1bdf8:	38 60 00 00 	li      r3,0                                   
ffc1bdfc:	38 80 02 00 	li      r4,512                                 
ffc1be00:	4b ff 84 49 	bl      ffc14248 <rtems_rfs_trace>             
ffc1be04:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1be08:	41 be 00 20 	beq+    cr7,ffc1be28 <rtems_rfs_buffer_handle_release+0x13c><== ALWAYS TAKEN
            printf ("rtems-rfs: buffer-release: local cache overflow:"
ffc1be0c:	80 9f 00 70 	lwz     r4,112(r31)                            <== NOT EXECUTED
ffc1be10:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1be14:	81 3f 00 60 	lwz     r9,96(r31)                             <== NOT EXECUTED
ffc1be18:	38 63 49 d4 	addi    r3,r3,18900                            <== NOT EXECUTED
ffc1be1c:	7c 84 4a 14 	add     r4,r4,r9                               <== NOT EXECUTED
ffc1be20:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1be24:	48 00 6d 4d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                    " %" PRIu32 "\n", fs->release_count + fs->release_modified_count);
                                                                      
          if (fs->release_count > fs->release_modified_count)         
ffc1be28:	81 5f 00 60 	lwz     r10,96(r31)                            
ffc1be2c:	81 3f 00 70 	lwz     r9,112(r31)                            
ffc1be30:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc1be34:	40 9d 00 20 	ble-    cr7,ffc1be54 <rtems_rfs_buffer_handle_release+0x168>
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
ffc1be38:	38 7f 00 54 	addi    r3,r31,84                              
ffc1be3c:	4b ff 25 9d 	bl      ffc0e3d8 <_Chain_Get>                  
          {                                                           
            buffer = (rtems_rfs_buffer*) rtems_chain_get (&fs->release);
            fs->release_count--;                                      
ffc1be40:	81 3f 00 60 	lwz     r9,96(r31)                             
            modified = false;                                         
ffc1be44:	38 80 00 00 	li      r4,0                                   
                    " %" PRIu32 "\n", fs->release_count + fs->release_modified_count);
                                                                      
          if (fs->release_count > fs->release_modified_count)         
          {                                                           
            buffer = (rtems_rfs_buffer*) rtems_chain_get (&fs->release);
            fs->release_count--;                                      
ffc1be48:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1be4c:	91 3f 00 60 	stw     r9,96(r31)                             
ffc1be50:	48 00 00 1c 	b       ffc1be6c <rtems_rfs_buffer_handle_release+0x180>
ffc1be54:	38 7f 00 64 	addi    r3,r31,100                             
ffc1be58:	4b ff 25 81 	bl      ffc0e3d8 <_Chain_Get>                  
          }                                                           
          else                                                        
          {                                                           
            buffer =                                                  
              (rtems_rfs_buffer*) rtems_chain_get (&fs->release_modified);
            fs->release_modified_count--;                             
ffc1be5c:	81 3f 00 70 	lwz     r9,112(r31)                            
            modified = true;                                          
ffc1be60:	38 80 00 01 	li      r4,1                                   
          }                                                           
          else                                                        
          {                                                           
            buffer =                                                  
              (rtems_rfs_buffer*) rtems_chain_get (&fs->release_modified);
            fs->release_modified_count--;                             
ffc1be64:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1be68:	91 3f 00 70 	stw     r9,112(r31)                            
            modified = true;                                          
          }                                                           
          buffer->user = (void*) 0;                                   
ffc1be6c:	39 20 00 00 	li      r9,0                                   
ffc1be70:	91 23 00 34 	stw     r9,52(r3)                              
          rc = rtems_rfs_buffer_io_release (buffer, modified);        
ffc1be74:	48 00 4f 85 	bl      ffc20df8 <rtems_rfs_buffer_bdbuf_release>
ffc1be78:	7c 7d 1b 78 	mr      r29,r3                                 
        }                                                             
                                                                      
        if (rtems_rfs_buffer_dirty (handle))                          
ffc1be7c:	89 3e 00 00 	lbz     r9,0(r30)                              
ffc1be80:	80 9e 00 08 	lwz     r4,8(r30)                              
ffc1be84:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1be88:	41 9e 00 1c 	beq-    cr7,ffc1bea4 <rtems_rfs_buffer_handle_release+0x1b8>
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
ffc1be8c:	38 7f 00 64 	addi    r3,r31,100                             
ffc1be90:	4b ff 25 19 	bl      ffc0e3a8 <_Chain_Append>               
        {                                                             
          rtems_chain_append (&fs->release_modified,                  
                              rtems_rfs_buffer_link (handle));        
          fs->release_modified_count++;                               
ffc1be94:	81 3f 00 70 	lwz     r9,112(r31)                            
ffc1be98:	39 29 00 01 	addi    r9,r9,1                                
ffc1be9c:	91 3f 00 70 	stw     r9,112(r31)                            
ffc1bea0:	48 00 00 18 	b       ffc1beb8 <rtems_rfs_buffer_handle_release+0x1cc>
ffc1bea4:	38 7f 00 54 	addi    r3,r31,84                              
ffc1bea8:	4b ff 25 01 	bl      ffc0e3a8 <_Chain_Append>               
        }                                                             
        else                                                          
        {                                                             
          rtems_chain_append (&fs->release, rtems_rfs_buffer_link (handle));
          fs->release_count++;                                        
ffc1beac:	81 3f 00 60 	lwz     r9,96(r31)                             
ffc1beb0:	39 29 00 01 	addi    r9,r9,1                                
ffc1beb4:	91 3f 00 60 	stw     r9,96(r31)                             
        }                                                             
      }                                                               
    }                                                                 
    handle->buffer = NULL;                                            
ffc1beb8:	39 20 00 00 	li      r9,0                                   
ffc1bebc:	91 3e 00 08 	stw     r9,8(r30)                              
ffc1bec0:	48 00 00 04 	b       ffc1bec4 <rtems_rfs_buffer_handle_release+0x1d8>
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc1bec4:	39 61 00 18 	addi    r11,r1,24                              
ffc1bec8:	7f a3 eb 78 	mr      r3,r29                                 
ffc1becc:	4b fe 56 98 	b       ffc01564 <_restgpr_29_x>               
                                                                      

ffc1bed0 <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) {
ffc1bed0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1bed4:	7c 08 02 a6 	mflr    r0                                     
ffc1bed8:	90 01 00 24 	stw     r0,36(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))                     
ffc1bedc:	81 24 00 08 	lwz     r9,8(r4)                               
int                                                                   
rtems_rfs_buffer_handle_request (rtems_rfs_file_system*   fs,         
                                 rtems_rfs_buffer_handle* handle,     
                                 rtems_rfs_buffer_block   block,      
                                 bool                     read)       
{                                                                     
ffc1bee0:	bf 41 00 08 	stmw    r26,8(r1)                              
ffc1bee4:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  /*                                                                  
   * 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))                     
ffc1bee8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
int                                                                   
rtems_rfs_buffer_handle_request (rtems_rfs_file_system*   fs,         
                                 rtems_rfs_buffer_handle* handle,     
                                 rtems_rfs_buffer_block   block,      
                                 bool                     read)       
{                                                                     
ffc1beec:	7c 9f 23 78 	mr      r31,r4                                 
ffc1bef0:	7c bd 2b 78 	mr      r29,r5                                 
ffc1bef4:	7c db 33 78 	mr      r27,r6                                 
                                                                      
  /*                                                                  
   * 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))                     
ffc1bef8:	41 9e 00 68 	beq-    cr7,ffc1bf60 <rtems_rfs_buffer_handle_request+0x90>
  {                                                                   
    /*                                                                
     * Treat block 0 as special to handle the loading of the super block.
     */                                                               
    if (block && (rtems_rfs_buffer_bnum (handle) == block))           
ffc1befc:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc1bf00:	41 9e 00 14 	beq-    cr7,ffc1bf14 <rtems_rfs_buffer_handle_request+0x44><== NEVER TAKEN
ffc1bf04:	81 24 00 04 	lwz     r9,4(r4)                               
ffc1bf08:	7f 89 28 00 	cmpw    cr7,r9,r5                              
ffc1bf0c:	40 be 00 08 	bne+    cr7,ffc1bf14 <rtems_rfs_buffer_handle_request+0x44>
ffc1bf10:	48 00 02 54 	b       ffc1c164 <rtems_rfs_buffer_handle_request+0x294>
      return 0;                                                       
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))      
ffc1bf14:	38 60 00 00 	li      r3,0                                   
ffc1bf18:	38 80 01 00 	li      r4,256                                 
ffc1bf1c:	4b ff 83 2d 	bl      ffc14248 <rtems_rfs_trace>             
ffc1bf20:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1bf24:	41 be 00 18 	beq+    cr7,ffc1bf3c <rtems_rfs_buffer_handle_request+0x6c><== ALWAYS TAKEN
      printf ("rtems-rfs: buffer-request: handle has buffer: %" PRIu32 "\n",
ffc1bf28:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1bf2c:	80 9f 00 04 	lwz     r4,4(r31)                              <== NOT EXECUTED
ffc1bf30:	38 63 4a 0e 	addi    r3,r3,18958                            <== NOT EXECUTED
ffc1bf34:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1bf38:	48 00 6c 39 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
              rtems_rfs_buffer_bnum (handle));                        
                                                                      
    rc = rtems_rfs_buffer_handle_release (fs, handle);                
ffc1bf3c:	7f c3 f3 78 	mr      r3,r30                                 
ffc1bf40:	7f e4 fb 78 	mr      r4,r31                                 
ffc1bf44:	4b ff fd a9 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
    if (rc > 0)                                                       
ffc1bf48:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc1bf4c:	41 a1 02 1c 	bgt+    ffc1c168 <rtems_rfs_buffer_handle_request+0x298><== NEVER TAKEN
      return rc;                                                      
    handle->dirty = false;                                            
ffc1bf50:	39 20 00 00 	li      r9,0                                   
ffc1bf54:	99 3f 00 00 	stb     r9,0(r31)                              
    handle->bnum = 0;                                                 
ffc1bf58:	39 20 00 00 	li      r9,0                                   
ffc1bf5c:	91 3f 00 04 	stw     r9,4(r31)                              
  }                                                                   
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
ffc1bf60:	38 60 00 00 	li      r3,0                                   
ffc1bf64:	38 80 01 00 	li      r4,256                                 
ffc1bf68:	4b ff 82 e1 	bl      ffc14248 <rtems_rfs_trace>             
ffc1bf6c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1bf70:	41 be 00 18 	beq+    cr7,ffc1bf88 <rtems_rfs_buffer_handle_request+0xb8><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-request: block=%" PRIu32 "\n", block); 
ffc1bf74:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1bf78:	38 63 4a 41 	addi    r3,r3,19009                            <== NOT EXECUTED
ffc1bf7c:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc1bf80:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1bf84:	48 00 6b ed 	bl      ffc22b70 <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)                                              
ffc1bf88:	81 3e 00 50 	lwz     r9,80(r30)                             
ffc1bf8c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1bf90:	41 be 00 50 	beq+    cr7,ffc1bfe0 <rtems_rfs_buffer_handle_request+0x110>
  {                                                                   
    /*                                                                
     * Check the active buffer list for shared buffers.               
     */                                                               
    handle->buffer = rtems_rfs_scan_chain (&fs->buffers,              
ffc1bf94:	38 7e 00 44 	addi    r3,r30,68                              
ffc1bf98:	38 9e 00 50 	addi    r4,r30,80                              
ffc1bf9c:	7f a5 eb 78 	mr      r5,r29                                 
ffc1bfa0:	4b ff fc 41 	bl      ffc1bbe0 <rtems_rfs_scan_chain>        
                                           &fs->buffers_count,        
                                           block);                    
    if (rtems_rfs_buffer_handle_has_block (handle) &&                 
ffc1bfa4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  if (fs->buffers_count)                                              
  {                                                                   
    /*                                                                
     * Check the active buffer list for shared buffers.               
     */                                                               
    handle->buffer = rtems_rfs_scan_chain (&fs->buffers,              
ffc1bfa8:	90 7f 00 08 	stw     r3,8(r31)                              
                                           &fs->buffers_count,        
                                           block);                    
    if (rtems_rfs_buffer_handle_has_block (handle) &&                 
ffc1bfac:	41 9e 00 34 	beq-    cr7,ffc1bfe0 <rtems_rfs_buffer_handle_request+0x110>
        rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))      
ffc1bfb0:	38 60 00 00 	li      r3,0                                   
ffc1bfb4:	38 80 01 00 	li      r4,256                                 
ffc1bfb8:	4b ff 82 91 	bl      ffc14248 <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) &&                 
ffc1bfbc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1bfc0:	41 be 00 20 	beq+    cr7,ffc1bfe0 <rtems_rfs_buffer_handle_request+0x110><== 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);                    
ffc1bfc4:	81 3f 00 08 	lwz     r9,8(r31)                              <== 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", 
ffc1bfc8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1bfcc:	38 63 4a 67 	addi    r3,r3,19047                            <== NOT EXECUTED
ffc1bfd0:	80 89 00 30 	lwz     r4,48(r9)                              <== NOT EXECUTED
ffc1bfd4:	38 84 00 01 	addi    r4,r4,1                                <== NOT EXECUTED
ffc1bfd8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1bfdc:	48 00 6b 95 	bl      ffc22b70 <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) &&                            
ffc1bfe0:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc1bfe4:	71 2a 00 02 	andi.   r10,r9,2                               
ffc1bfe8:	40 82 00 6c 	bne-    ffc1c054 <rtems_rfs_buffer_handle_request+0x184>
ffc1bfec:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc1bff0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1bff4:	40 be 00 60 	bne+    cr7,ffc1c054 <rtems_rfs_buffer_handle_request+0x184>
      !rtems_rfs_buffer_handle_has_block (handle))                    
  {                                                                   
    /*                                                                
     * Check the local cache of released buffers.                     
     */                                                               
    if (fs->release_count)                                            
ffc1bff8:	81 3e 00 60 	lwz     r9,96(r30)                             
ffc1bffc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1c000:	41 be 00 18 	beq+    cr7,ffc1c018 <rtems_rfs_buffer_handle_request+0x148>
      handle->buffer = rtems_rfs_scan_chain (&fs->release,            
ffc1c004:	38 7e 00 54 	addi    r3,r30,84                              
ffc1c008:	38 9e 00 60 	addi    r4,r30,96                              
ffc1c00c:	7f a5 eb 78 	mr      r5,r29                                 
ffc1c010:	4b ff fb d1 	bl      ffc1bbe0 <rtems_rfs_scan_chain>        
ffc1c014:	90 7f 00 08 	stw     r3,8(r31)                              
                                             &fs->release_count,      
                                             block);                  
                                                                      
    if (!rtems_rfs_buffer_handle_has_block (handle) &&                
ffc1c018:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc1c01c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1c020:	40 be 00 34 	bne+    cr7,ffc1c054 <rtems_rfs_buffer_handle_request+0x184>
ffc1c024:	81 3e 00 70 	lwz     r9,112(r30)                            
ffc1c028:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1c02c:	41 be 00 28 	beq+    cr7,ffc1c054 <rtems_rfs_buffer_handle_request+0x184>
        fs->release_modified_count)                                   
    {                                                                 
      handle->buffer = rtems_rfs_scan_chain (&fs->release_modified,   
ffc1c030:	38 7e 00 64 	addi    r3,r30,100                             
ffc1c034:	38 9e 00 70 	addi    r4,r30,112                             
ffc1c038:	7f a5 eb 78 	mr      r5,r29                                 
ffc1c03c:	4b ff fb a5 	bl      ffc1bbe0 <rtems_rfs_scan_chain>        
                                             &fs->release_modified_count,
                                             block);                  
      /*                                                              
       * If we found a buffer retain the dirty buffer state.          
       */                                                             
      if (rtems_rfs_buffer_handle_has_block (handle))                 
ffc1c040:	2f 83 00 00 	cmpwi   cr7,r3,0                               
                                             block);                  
                                                                      
    if (!rtems_rfs_buffer_handle_has_block (handle) &&                
        fs->release_modified_count)                                   
    {                                                                 
      handle->buffer = rtems_rfs_scan_chain (&fs->release_modified,   
ffc1c044:	90 7f 00 08 	stw     r3,8(r31)                              
                                             &fs->release_modified_count,
                                             block);                  
      /*                                                              
       * If we found a buffer retain the dirty buffer state.          
       */                                                             
      if (rtems_rfs_buffer_handle_has_block (handle))                 
ffc1c048:	41 9e 00 0c 	beq-    cr7,ffc1c054 <rtems_rfs_buffer_handle_request+0x184>
        rtems_rfs_buffer_mark_dirty (handle);                         
ffc1c04c:	39 20 00 01 	li      r9,1                                   
ffc1c050:	99 3f 00 00 	stb     r9,0(r31)                              
  }                                                                   
                                                                      
  /*                                                                  
   * If not located we request the buffer from the I/O layer.         
   */                                                                 
  if (!rtems_rfs_buffer_handle_has_block (handle))                    
ffc1c054:	83 5f 00 08 	lwz     r26,8(r31)                             
ffc1c058:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc1c05c:	40 be 00 88 	bne+    cr7,ffc1c0e4 <rtems_rfs_buffer_handle_request+0x214>
  {                                                                   
    rc = rtems_rfs_buffer_io_request (fs, block, read, &handle->buffer);
ffc1c060:	7f c3 f3 78 	mr      r3,r30                                 
ffc1c064:	7f a4 eb 78 	mr      r4,r29                                 
ffc1c068:	7f 65 db 78 	mr      r5,r27                                 
ffc1c06c:	38 df 00 08 	addi    r6,r31,8                               
ffc1c070:	48 00 4d 3d 	bl      ffc20dac <rtems_rfs_buffer_bdbuf_request>
                                                                      
    if (rc > 0)                                                       
ffc1c074:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc1c078:	40 81 00 60 	ble-    ffc1c0d8 <rtems_rfs_buffer_handle_request+0x208><== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))    
ffc1c07c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1c080:	38 80 01 00 	li      r4,256                                 <== NOT EXECUTED
ffc1c084:	4b ff 81 c5 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1c088:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1c08c:	41 9e 00 dc 	beq-    cr7,ffc1c168 <rtems_rfs_buffer_handle_request+0x298><== NOT EXECUTED
        printf ("rtems-rfs: buffer-request: block=%" PRIu32 ": bdbuf-%s: %d: %s\n",
ffc1c090:	2f 9b 00 00 	cmpwi   cr7,r27,0                              <== NOT EXECUTED
ffc1c094:	41 9e 00 10 	beq-    cr7,ffc1c0a4 <rtems_rfs_buffer_handle_request+0x1d4><== NOT EXECUTED
ffc1c098:	3f e0 ff c3 	lis     r31,-61                                <== NOT EXECUTED
ffc1c09c:	3b ff 41 67 	addi    r31,r31,16743                          <== NOT EXECUTED
ffc1c0a0:	48 00 00 0c 	b       ffc1c0ac <rtems_rfs_buffer_handle_request+0x1dc><== NOT EXECUTED
ffc1c0a4:	3f e0 ff c3 	lis     r31,-61                                <== NOT EXECUTED
ffc1c0a8:	3b ff 4a 0a 	addi    r31,r31,18954                          <== NOT EXECUTED
ffc1c0ac:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc1c0b0:	48 00 7c ad 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1c0b4:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc1c0b8:	7c 67 1b 78 	mr      r7,r3                                  <== NOT EXECUTED
ffc1c0bc:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c0c0:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc1c0c4:	7f 86 e3 78 	mr      r6,r28                                 <== NOT EXECUTED
ffc1c0c8:	38 63 4a 9b 	addi    r3,r3,19099                            <== NOT EXECUTED
ffc1c0cc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c0d0:	48 00 6a a1 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1c0d4:	48 00 00 94 	b       ffc1c168 <rtems_rfs_buffer_handle_request+0x298><== NOT EXECUTED
                block, read ? "read" : "get", rc, strerror (rc));     
      return rc;                                                      
    }                                                                 
                                                                      
    rtems_chain_set_off_chain (rtems_rfs_buffer_link(handle));        
ffc1c0d8:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc1c0dc:	93 49 00 04 	stw     r26,4(r9)                              
ffc1c0e0:	93 49 00 00 	stw     r26,0(r9)                              
  }                                                                   
                                                                      
  /*                                                                  
   * Increase the reference count of the buffer.                      
   */                                                                 
  rtems_rfs_buffer_refs_up (handle);                                  
ffc1c0e4:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc1c0e8:	38 7e 00 44 	addi    r3,r30,68                              
ffc1c0ec:	81 24 00 30 	lwz     r9,48(r4)                              
ffc1c0f0:	39 29 00 01 	addi    r9,r9,1                                
ffc1c0f4:	91 24 00 30 	stw     r9,48(r4)                              
ffc1c0f8:	4b ff 22 b1 	bl      ffc0e3a8 <_Chain_Append>               
  rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle));  
  fs->buffers_count++;                                                
ffc1c0fc:	81 3e 00 50 	lwz     r9,80(r30)                             
                                                                      
  handle->buffer->user = (void*) ((intptr_t) block);                  
  handle->bnum = block;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
ffc1c100:	38 60 00 00 	li      r3,0                                   
  /*                                                                  
   * 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++;                                                
ffc1c104:	39 29 00 01 	addi    r9,r9,1                                
ffc1c108:	91 3e 00 50 	stw     r9,80(r30)                             
                                                                      
  handle->buffer->user = (void*) ((intptr_t) block);                  
  handle->bnum = block;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
ffc1c10c:	38 80 01 00 	li      r4,256                                 
   */                                                                 
  rtems_rfs_buffer_refs_up (handle);                                  
  rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle));  
  fs->buffers_count++;                                                
                                                                      
  handle->buffer->user = (void*) ((intptr_t) block);                  
ffc1c110:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc1c114:	93 a9 00 34 	stw     r29,52(r9)                             
  handle->bnum = block;                                               
ffc1c118:	93 bf 00 04 	stw     r29,4(r31)                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
ffc1c11c:	4b ff 81 2d 	bl      ffc14248 <rtems_rfs_trace>             
ffc1c120:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c124:	41 9e 00 40 	beq-    cr7,ffc1c164 <rtems_rfs_buffer_handle_request+0x294><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-request: block=%" PRIu32 " bdbuf-%s=%" PRIu32 " refs=%d\n",
ffc1c128:	2f 9b 00 00 	cmpwi   cr7,r27,0                              <== NOT EXECUTED
ffc1c12c:	41 9e 00 10 	beq-    cr7,ffc1c13c <rtems_rfs_buffer_handle_request+0x26c><== NOT EXECUTED
ffc1c130:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc1c134:	38 a5 41 67 	addi    r5,r5,16743                            <== NOT EXECUTED
ffc1c138:	48 00 00 0c 	b       ffc1c144 <rtems_rfs_buffer_handle_request+0x274><== NOT EXECUTED
ffc1c13c:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc1c140:	38 a5 4a 0a 	addi    r5,r5,18954                            <== NOT EXECUTED
            block, read ? "read" : "get", handle->buffer->block,      
ffc1c144:	81 3f 00 08 	lwz     r9,8(r31)                              <== 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",
ffc1c148:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c14c:	38 63 4a d3 	addi    r3,r3,19155                            <== NOT EXECUTED
ffc1c150:	80 c9 00 18 	lwz     r6,24(r9)                              <== NOT EXECUTED
ffc1c154:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc1c158:	80 e9 00 30 	lwz     r7,48(r9)                              <== NOT EXECUTED
ffc1c15c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c160:	48 00 6a 11 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            block, read ? "read" : "get", handle->buffer->block,      
            handle->buffer->references);                              
                                                                      
  return 0;                                                           
ffc1c164:	3b 80 00 00 	li      r28,0                                  
}                                                                     
ffc1c168:	39 61 00 20 	addi    r11,r1,32                              
ffc1c16c:	7f 83 e3 78 	mr      r3,r28                                 
ffc1c170:	4b fe 53 e8 	b       ffc01558 <_restgpr_26_x>               
                                                                      

ffc1c174 <rtems_rfs_buffer_open>: return rc; } int rtems_rfs_buffer_open (const char* name, rtems_rfs_file_system* fs) {
ffc1c174:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc1c178:	7c 08 02 a6 	mflr    r0                                     
ffc1c17c:	bf c1 00 58 	stmw    r30,88(r1)                             
ffc1c180:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1c184:	7c 9e 23 78 	mr      r30,r4                                 
  struct stat st;                                                     
#if RTEMS_RFS_USE_LIBBLOCK                                            
  int rv;                                                             
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
ffc1c188:	38 60 00 00 	li      r3,0                                   
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_open (const char* name, rtems_rfs_file_system* fs)   
{                                                                     
ffc1c18c:	90 01 00 64 	stw     r0,100(r1)                             
  struct stat st;                                                     
#if RTEMS_RFS_USE_LIBBLOCK                                            
  int rv;                                                             
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
ffc1c190:	38 80 00 20 	li      r4,32                                  
ffc1c194:	4b ff 80 b5 	bl      ffc14248 <rtems_rfs_trace>             
ffc1c198:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c19c:	41 be 00 18 	beq+    cr7,ffc1c1b4 <rtems_rfs_buffer_open+0x40><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-open: opening: %s\n", name);           
ffc1c1a0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c1a4:	38 63 4b 0e 	addi    r3,r3,19214                            <== NOT EXECUTED
ffc1c1a8:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1c1ac:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c1b0:	48 00 69 c1 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
  fs->device = open (name, O_RDWR);                                   
ffc1c1b4:	7f e3 fb 78 	mr      r3,r31                                 
ffc1c1b8:	38 80 00 02 	li      r4,2                                   
ffc1c1bc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc1c1c0:	4b fe d9 01 	bl      ffc09ac0 <open>                        
  if (fs->device < 0)                                                 
ffc1c1c4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
    printf ("rtems-rfs: buffer-open: opening: %s\n", name);           
                                                                      
  fs->device = open (name, O_RDWR);                                   
ffc1c1c8:	90 7e 00 0c 	stw     r3,12(r30)                             
  if (fs->device < 0)                                                 
ffc1c1cc:	40 bc 00 30 	bge+    cr7,ffc1c1fc <rtems_rfs_buffer_open+0x88><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
ffc1c1d0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1c1d4:	38 80 00 08 	li      r4,8                                   <== NOT EXECUTED
ffc1c1d8:	4b ff 80 71 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1c1dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1c1e0:	40 9e 00 08 	bne-    cr7,ffc1c1e8 <rtems_rfs_buffer_open+0x74><== NOT EXECUTED
ffc1c1e4:	48 00 00 10 	b       ffc1c1f4 <rtems_rfs_buffer_open+0x80>  <== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: cannot open file\n");          
ffc1c1e8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c1ec:	38 63 4b 33 	addi    r3,r3,19251                            <== NOT EXECUTED
ffc1c1f0:	48 00 6c e9 	bl      ffc22ed8 <puts>                        <== NOT EXECUTED
    return ENXIO;                                                     
ffc1c1f4:	3b e0 00 06 	li      r31,6                                  <== NOT EXECUTED
ffc1c1f8:	48 00 00 fc 	b       ffc1c2f4 <rtems_rfs_buffer_open+0x180> <== NOT EXECUTED
  }                                                                   
                                                                      
  if (fstat (fs->device, &st) < 0)                                    
ffc1c1fc:	38 81 00 08 	addi    r4,r1,8                                
ffc1c200:	4b fe c9 e5 	bl      ffc08be4 <fstat>                       
ffc1c204:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c208:	40 bc 00 40 	bge+    cr7,ffc1c248 <rtems_rfs_buffer_open+0xd4><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
ffc1c20c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1c210:	38 80 00 08 	li      r4,8                                   <== NOT EXECUTED
ffc1c214:	4b ff 80 35 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1c218:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1c21c:	41 9e ff d8 	beq+    cr7,ffc1c1f4 <rtems_rfs_buffer_open+0x80><== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: stat '%s' failed: %s\n",       
              name, strerror (errno));                                
ffc1c220:	48 00 4f ad 	bl      ffc211cc <__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",       
ffc1c224:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc1c228:	48 00 7b 35 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1c22c:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1c230:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1c234:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c238:	38 63 4b 5c 	addi    r3,r3,19292                            <== NOT EXECUTED
ffc1c23c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c240:	48 00 69 31 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1c244:	4b ff ff b0 	b       ffc1c1f4 <rtems_rfs_buffer_open+0x80>  <== NOT EXECUTED
                                                                      
#if RTEMS_RFS_USE_LIBBLOCK                                            
  /*                                                                  
   * Is the device a block device ?                                   
   */                                                                 
  if (!S_ISBLK (st.st_mode))                                          
ffc1c248:	81 21 00 14 	lwz     r9,20(r1)                              
ffc1c24c:	55 29 04 26 	rlwinm  r9,r9,0,16,19                          
ffc1c250:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc1c254:	41 9e 00 30 	beq-    cr7,ffc1c284 <rtems_rfs_buffer_open+0x110><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
ffc1c258:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1c25c:	38 80 00 08 	li      r4,8                                   <== NOT EXECUTED
ffc1c260:	4b ff 7f e9 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1c264:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1c268:	41 9e ff 8c 	beq+    cr7,ffc1c1f4 <rtems_rfs_buffer_open+0x80><== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: '%s' is not a block device\n", name);
ffc1c26c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c270:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1c274:	38 63 4b 8a 	addi    r3,r3,19338                            <== NOT EXECUTED
ffc1c278:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c27c:	48 00 68 f5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1c280:	4b ff ff 74 	b       ffc1c1f4 <rtems_rfs_buffer_open+0x80>  <== 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);                   
ffc1c284:	80 7e 00 0c 	lwz     r3,12(r30)                             
ffc1c288:	3c 80 40 04 	lis     r4,16388                               
ffc1c28c:	60 84 42 09 	ori     r4,r4,16905                            
ffc1c290:	38 be 00 10 	addi    r5,r30,16                              
ffc1c294:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc1c298:	4b fe ca a1 	bl      ffc08d38 <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)                                                        
ffc1c29c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
ffc1c2a0:	38 60 00 00 	li      r3,0                                   
                                                                      
  /*                                                                  
   * 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)                                                        
ffc1c2a4:	41 9e 00 20 	beq-    cr7,ffc1c2c4 <rtems_rfs_buffer_open+0x150><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
ffc1c2a8:	38 80 00 08 	li      r4,8                                   <== NOT EXECUTED
ffc1c2ac:	4b ff 7f 9d 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1c2b0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1c2b4:	41 9e ff 40 	beq+    cr7,ffc1c1f4 <rtems_rfs_buffer_open+0x80><== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: cannot obtain the disk\n");    
ffc1c2b8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c2bc:	38 63 4b be 	addi    r3,r3,19390                            <== NOT EXECUTED
ffc1c2c0:	4b ff ff 30 	b       ffc1c1f0 <rtems_rfs_buffer_open+0x7c>  <== NOT EXECUTED
#else                                                                 
  fs->media_size = st.st_size;                                        
  strcat (fs->name, name);                                            
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
ffc1c2c4:	38 80 00 20 	li      r4,32                                  
ffc1c2c8:	4b ff 7f 81 	bl      ffc14248 <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;                                                           
ffc1c2cc:	3b e0 00 00 	li      r31,0                                  
#else                                                                 
  fs->media_size = st.st_size;                                        
  strcat (fs->name, name);                                            
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
ffc1c2d0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c2d4:	41 be 00 20 	beq+    cr7,ffc1c2f4 <rtems_rfs_buffer_open+0x180><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-open: blks=%" PRId32 ", blk-size=%" PRId32 "\n",
            rtems_rfs_fs_media_blocks (fs),                           
ffc1c2d8:	81 3e 00 10 	lwz     r9,16(r30)                             <== 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",
ffc1c2dc:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c2e0:	38 63 4b ed 	addi    r3,r3,19437                            <== NOT EXECUTED
ffc1c2e4:	80 89 00 1c 	lwz     r4,28(r9)                              <== NOT EXECUTED
ffc1c2e8:	80 a9 00 20 	lwz     r5,32(r9)                              <== NOT EXECUTED
ffc1c2ec:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c2f0:	48 00 68 81 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rtems_rfs_fs_media_blocks (fs),                           
            rtems_rfs_fs_media_block_size (fs));                      
                                                                      
  return 0;                                                           
}                                                                     
ffc1c2f4:	39 61 00 60 	addi    r11,r1,96                              
ffc1c2f8:	7f e3 fb 78 	mr      r3,r31                                 
ffc1c2fc:	4b fe 52 6c 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc1c420 <rtems_rfs_buffer_setblksize>: return result; } int rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size) {
ffc1c420:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc1c424:	7c 08 02 a6 	mflr    r0                                     
ffc1c428:	bf c1 00 10 	stmw    r30,16(r1)                             
ffc1c42c:	7c 7f 1b 78 	mr      r31,r3                                 
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))            
ffc1c430:	38 60 00 00 	li      r3,0                                   
  return result;                                                      
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size)  
{                                                                     
ffc1c434:	90 81 00 08 	stw     r4,8(r1)                               
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))            
ffc1c438:	38 80 04 00 	li      r4,1024                                
  return result;                                                      
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size)  
{                                                                     
ffc1c43c:	90 01 00 1c 	stw     r0,28(r1)                              
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))            
ffc1c440:	4b ff 7e 09 	bl      ffc14248 <rtems_rfs_trace>             
ffc1c444:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c448:	41 be 00 18 	beq+    cr7,ffc1c460 <rtems_rfs_buffer_setblksize+0x40><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-setblksize: block size: %zu\n", size); 
ffc1c44c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c450:	80 81 00 08 	lwz     r4,8(r1)                               <== NOT EXECUTED
ffc1c454:	38 63 4c b6 	addi    r3,r3,19638                            <== NOT EXECUTED
ffc1c458:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c45c:	48 00 67 15 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_buffers_release (fs);                                
ffc1c460:	7f e3 fb 78 	mr      r3,r31                                 
ffc1c464:	4b ff ff 2d 	bl      ffc1c390 <rtems_rfs_buffers_release>   
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))
ffc1c468:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1c46c:	40 81 00 38 	ble-    ffc1c4a4 <rtems_rfs_buffer_setblksize+0x84><== ALWAYS TAKEN
ffc1c470:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1c474:	38 80 04 00 	li      r4,1024                                <== NOT EXECUTED
ffc1c478:	4b ff 7d d1 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1c47c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1c480:	41 be 00 24 	beq+    cr7,ffc1c4a4 <rtems_rfs_buffer_setblksize+0x84><== NOT EXECUTED
    printf ("rtems-rfs: buffer-setblksize: buffer release failed: %d: %s\n",
ffc1c484:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1c488:	48 00 78 d5 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1c48c:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc1c490:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1c494:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c498:	38 63 4c e5 	addi    r3,r3,19685                            <== NOT EXECUTED
ffc1c49c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c4a0:	48 00 66 d1 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_buffer_sync (fs);                                    
ffc1c4a4:	7f e3 fb 78 	mr      r3,r31                                 
ffc1c4a8:	4b ff fe 59 	bl      ffc1c300 <rtems_rfs_buffer_sync>       
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))
ffc1c4ac:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1c4b0:	40 81 00 38 	ble-    ffc1c4e8 <rtems_rfs_buffer_setblksize+0xc8><== ALWAYS TAKEN
ffc1c4b4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1c4b8:	38 80 04 00 	li      r4,1024                                <== NOT EXECUTED
ffc1c4bc:	4b ff 7d 8d 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1c4c0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1c4c4:	41 be 00 24 	beq+    cr7,ffc1c4e8 <rtems_rfs_buffer_setblksize+0xc8><== NOT EXECUTED
    printf ("rtems-rfs: buffer-setblksize: device sync failed: %d: %s\n",
ffc1c4c8:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1c4cc:	48 00 78 91 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1c4d0:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc1c4d4:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1c4d8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c4dc:	38 63 4d 22 	addi    r3,r3,19746                            <== NOT EXECUTED
ffc1c4e0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c4e4:	48 00 66 8d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
#if RTEMS_RFS_USE_LIBBLOCK                                            
  rc = fs->disk->ioctl (fs->disk, RTEMS_BLKIO_SETBLKSIZE, &size);     
ffc1c4e8:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc1c4ec:	3c 80 80 04 	lis     r4,-32764                              
ffc1c4f0:	60 84 42 04 	ori     r4,r4,16900                            
ffc1c4f4:	81 23 00 38 	lwz     r9,56(r3)                              
ffc1c4f8:	38 a1 00 08 	addi    r5,r1,8                                
ffc1c4fc:	7d 29 03 a6 	mtctr   r9                                     
ffc1c500:	4e 80 04 21 	bctrl                                          
  if (rc < 0)                                                         
ffc1c504:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1c508:	40 a0 00 0c 	bge+    ffc1c514 <rtems_rfs_buffer_setblksize+0xf4><== ALWAYS TAKEN
    rc = errno;                                                       
ffc1c50c:	48 00 4c c1 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1c510:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
#endif                                                                
  return rc;                                                          
}                                                                     
ffc1c514:	39 61 00 18 	addi    r11,r1,24                              
ffc1c518:	4b fe 50 50 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc1c300 <rtems_rfs_buffer_sync>: return rc; } int rtems_rfs_buffer_sync (rtems_rfs_file_system* fs) {
ffc1c300:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc1c304:	7c 08 02 a6 	mflr    r0                                     
  int result = 0;                                                     
#if RTEMS_RFS_USE_LIBBLOCK                                            
  rtems_status_code sc;                                               
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
ffc1c308:	38 80 00 20 	li      r4,32                                  
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)                     
{                                                                     
ffc1c30c:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc1c310:	7c 7e 1b 78 	mr      r30,r3                                 
  int result = 0;                                                     
#if RTEMS_RFS_USE_LIBBLOCK                                            
  rtems_status_code sc;                                               
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
ffc1c314:	38 60 00 00 	li      r3,0                                   
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)                     
{                                                                     
ffc1c318:	90 01 00 1c 	stw     r0,28(r1)                              
  int result = 0;                                                     
#if RTEMS_RFS_USE_LIBBLOCK                                            
  rtems_status_code sc;                                               
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
ffc1c31c:	4b ff 7f 2d 	bl      ffc14248 <rtems_rfs_trace>             
ffc1c320:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c324:	41 be 00 10 	beq+    cr7,ffc1c334 <rtems_rfs_buffer_sync+0x34><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-sync: syncing\n");                     
ffc1c328:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c32c:	38 63 4c 1d 	addi    r3,r3,19485                            <== NOT EXECUTED
ffc1c330:	48 00 6b a9 	bl      ffc22ed8 <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));                
ffc1c334:	80 7e 00 10 	lwz     r3,16(r30)                             
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)                     
{                                                                     
  int result = 0;                                                     
ffc1c338:	3b e0 00 00 	li      r31,0                                  
                                                                      
  /*                                                                  
   * @todo Split in the separate files for each type.                 
   */                                                                 
#if RTEMS_RFS_USE_LIBBLOCK                                            
  sc = rtems_bdbuf_syncdev (rtems_rfs_fs_device (fs));                
ffc1c33c:	4b ff a5 81 	bl      ffc168bc <rtems_bdbuf_syncdev>         
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc1c340:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc1c344:	41 a2 00 38 	beq+    ffc1c37c <rtems_rfs_buffer_sync+0x7c>  <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                
ffc1c348:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1c34c:	38 80 00 20 	li      r4,32                                  <== NOT EXECUTED
ffc1c350:	4b ff 7e f9 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: buffer-sync: device sync failed: %s\n",     
              rtems_status_text (sc));                                
    result = EIO;                                                     
ffc1c354:	3b e0 00 05 	li      r31,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))                
ffc1c358:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1c35c:	41 be 00 20 	beq+    cr7,ffc1c37c <rtems_rfs_buffer_sync+0x7c><== NOT EXECUTED
      printf ("rtems-rfs: buffer-sync: device sync failed: %s\n",     
ffc1c360:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc1c364:	4b ff b5 d9 	bl      ffc1793c <rtems_status_text>           <== NOT EXECUTED
ffc1c368:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc1c36c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c370:	38 63 4c 3d 	addi    r3,r3,19517                            <== NOT EXECUTED
ffc1c374:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c378:	48 00 67 f9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
              rtems_status_text (sc));                                
    result = EIO;                                                     
  }                                                                   
  rtems_disk_release (fs->disk);                                      
ffc1c37c:	80 7e 00 10 	lwz     r3,16(r30)                             
ffc1c380:	4b fe 90 1d 	bl      ffc0539c <rtems_disk_release>          
      printf ("rtems-rfs: buffer-sync: file sync failed: %d: %s\n",   
              result, strerror (result));                             
  }                                                                   
#endif                                                                
  return result;                                                      
}                                                                     
ffc1c384:	39 61 00 18 	addi    r11,r1,24                              
ffc1c388:	7f e3 fb 78 	mr      r3,r31                                 
ffc1c38c:	4b fe 51 d8 	b       ffc01564 <_restgpr_29_x>               
                                                                      

ffc1c390 <rtems_rfs_buffers_release>: return rrc; } int rtems_rfs_buffers_release (rtems_rfs_file_system* fs) {
ffc1c390:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1c394:	7c 08 02 a6 	mflr    r0                                     
  int rrc = 0;                                                        
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
ffc1c398:	38 80 00 40 	li      r4,64                                  
  return rrc;                                                         
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffers_release (rtems_rfs_file_system* fs)                 
{                                                                     
ffc1c39c:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc1c3a0:	7c 7f 1b 78 	mr      r31,r3                                 
  int rrc = 0;                                                        
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
ffc1c3a4:	38 60 00 00 	li      r3,0                                   
  return rrc;                                                         
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffers_release (rtems_rfs_file_system* fs)                 
{                                                                     
ffc1c3a8:	90 01 00 14 	stw     r0,20(r1)                              
  int rrc = 0;                                                        
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
ffc1c3ac:	4b ff 7e 9d 	bl      ffc14248 <rtems_rfs_trace>             
ffc1c3b0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c3b4:	41 be 00 20 	beq+    cr7,ffc1c3d4 <rtems_rfs_buffers_release+0x44><== ALWAYS TAKEN
    printf ("rtems-rfs: buffers-release: active:%" PRIu32 " "         
ffc1c3b8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c3bc:	80 9f 00 50 	lwz     r4,80(r31)                             <== NOT EXECUTED
ffc1c3c0:	80 bf 00 60 	lwz     r5,96(r31)                             <== NOT EXECUTED
ffc1c3c4:	38 63 4c 6d 	addi    r3,r3,19565                            <== NOT EXECUTED
ffc1c3c8:	80 df 00 70 	lwz     r6,112(r31)                            <== NOT EXECUTED
ffc1c3cc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c3d0:	48 00 67 a1 	bl      ffc22b70 <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,                         
ffc1c3d4:	38 9f 00 60 	addi    r4,r31,96                              
ffc1c3d8:	38 a0 00 00 	li      r5,0                                   
ffc1c3dc:	38 7f 00 54 	addi    r3,r31,84                              
ffc1c3e0:	4b ff f7 61 	bl      ffc1bb40 <rtems_rfs_release_chain>     
                                &fs->release_count,                   
                                false);                               
  if ((rc > 0) && (rrc == 0))                                         
    rrc = rc;                                                         
  rc = rtems_rfs_release_chain (&fs->release_modified,                
ffc1c3e4:	38 9f 00 70 	addi    r4,r31,112                             
ffc1c3e8:	7c 69 18 f8 	not     r9,r3                                  
ffc1c3ec:	7d 29 fe 70 	srawi   r9,r9,31                               
ffc1c3f0:	7c 7e 48 38 	and     r30,r3,r9                              
ffc1c3f4:	38 a0 00 01 	li      r5,1                                   
ffc1c3f8:	38 7f 00 64 	addi    r3,r31,100                             
ffc1c3fc:	4b ff f7 45 	bl      ffc1bb40 <rtems_rfs_release_chain>     
                                &fs->release_modified_count,          
                                true);                                
  if ((rc > 0) && (rrc == 0))                                         
ffc1c400:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1c404:	40 81 00 10 	ble-    ffc1c414 <rtems_rfs_buffers_release+0x84><== ALWAYS TAKEN
ffc1c408:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc1c40c:	40 9e 00 08 	bne-    cr7,ffc1c414 <rtems_rfs_buffers_release+0x84><== NOT EXECUTED
ffc1c410:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
    rrc = rc;                                                         
                                                                      
  return rrc;                                                         
}                                                                     
ffc1c414:	39 61 00 10 	addi    r11,r1,16                              
ffc1c418:	7f c3 f3 78 	mr      r3,r30                                 
ffc1c41c:	4b fe 51 4c 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc1cb2c <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) {
ffc1cb2c:	94 21 ff 58 	stwu    r1,-168(r1)                            
ffc1cb30:	7c 08 02 a6 	mflr    r0                                     
ffc1cb34:	be 81 00 78 	stmw    r20,120(r1)                            
ffc1cb38:	7c 7e 1b 78 	mr      r30,r3                                 
ffc1cb3c:	7c 9d 23 78 	mr      r29,r4                                 
  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))                
ffc1cb40:	38 60 00 00 	li      r3,0                                   
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)                 
{                                                                     
ffc1cb44:	90 01 00 ac 	stw     r0,172(r1)                             
  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))                
ffc1cb48:	3c 80 20 00 	lis     r4,8192                                
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)                 
{                                                                     
ffc1cb4c:	7c b9 2b 78 	mr      r25,r5                                 
ffc1cb50:	7c dc 33 78 	mr      r28,r6                                 
ffc1cb54:	7c f8 3b 78 	mr      r24,r7                                 
  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))                
ffc1cb58:	4b ff 76 f1 	bl      ffc14248 <rtems_rfs_trace>             
ffc1cb5c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1cb60:	41 be 00 4c 	beq+    cr7,ffc1cbac <rtems_rfs_dir_add_entry+0x80><== ALWAYS TAKEN
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: dir-add-entry: dir=%" PRId32 ", name=",       
ffc1cb64:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1cb68:	80 9d 00 08 	lwz     r4,8(r29)                              <== NOT EXECUTED
ffc1cb6c:	38 63 50 97 	addi    r3,r3,20631                            <== NOT EXECUTED
ffc1cb70:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1cb74:	48 00 5f fd 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1cb78:	7f 3f cb 78 	mr      r31,r25                                <== NOT EXECUTED
  rtems_rfs_block_map_close (fs, &map);                               
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_dir_add_entry (rtems_rfs_file_system*  fs,                  
ffc1cb7c:	7f 79 e2 14 	add     r27,r25,r28                            <== 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++)                                      
ffc1cb80:	48 00 00 10 	b       ffc1cb90 <rtems_rfs_dir_add_entry+0x64><== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc1cb84:	88 7f 00 00 	lbz     r3,0(r31)                              <== NOT EXECUTED
ffc1cb88:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
ffc1cb8c:	48 00 62 71 	bl      ffc22dfc <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++)                                      
ffc1cb90:	7f 9f d8 00 	cmpw    cr7,r31,r27                            <== NOT EXECUTED
ffc1cb94:	40 9e ff f0 	bne+    cr7,ffc1cb84 <rtems_rfs_dir_add_entry+0x58><== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf (", len=%zd\n", length);                                   
ffc1cb98:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1cb9c:	38 63 50 c0 	addi    r3,r3,20672                            <== NOT EXECUTED
ffc1cba0:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc1cba4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1cba8:	48 00 5f c9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
ffc1cbac:	3a c1 00 08 	addi    r22,r1,8                               
ffc1cbb0:	7f c3 f3 78 	mr      r3,r30                                 
ffc1cbb4:	7f a4 eb 78 	mr      r4,r29                                 
ffc1cbb8:	7e c5 b3 78 	mr      r5,r22                                 
ffc1cbbc:	4b ff e3 01 	bl      ffc1aebc <rtems_rfs_block_map_open>    
  if (rc > 0)                                                         
ffc1cbc0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1cbc4:	41 a1 02 f4 	bgt+    ffc1ceb8 <rtems_rfs_dir_add_entry+0x38c><== NEVER TAKEN
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc1cbc8:	39 20 00 00 	li      r9,0                                   
ffc1cbcc:	99 21 00 58 	stb     r9,88(r1)                              
  handle->bnum  = 0;                                                  
ffc1cbd0:	39 20 00 00 	li      r9,0                                   
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc1cbd4:	3a a0 00 00 	li      r21,0                                  
ffc1cbd8:	91 21 00 5c 	stw     r9,92(r1)                              
ffc1cbdc:	62 b5 ff ff 	ori     r21,r21,65535                          
      {                                                               
        if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <                     
ffc1cbe0:	3a 9c 00 0a 	addi    r20,r28,10                             
  handle->buffer = NULL;                                              
ffc1cbe4:	91 21 00 60 	stw     r9,96(r1)                              
 * @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;                                                      
ffc1cbe8:	91 21 00 64 	stw     r9,100(r1)                             
  bpos->boff = 0;                                                     
ffc1cbec:	91 21 00 68 	stw     r9,104(r1)                             
  bpos->block = 0;                                                    
ffc1cbf0:	91 21 00 6c 	stw     r9,108(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);          
ffc1cbf4:	7f c3 f3 78 	mr      r3,r30                                 
ffc1cbf8:	7e c4 b3 78 	mr      r4,r22                                 
ffc1cbfc:	38 a1 00 64 	addi    r5,r1,100                              
ffc1cc00:	38 c1 00 70 	addi    r6,r1,112                              
ffc1cc04:	4b ff e6 61 	bl      ffc1b264 <rtems_rfs_block_map_find>    
    if (rc > 0)                                                       
ffc1cc08:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1cc0c:	40 81 00 98 	ble-    ffc1cca4 <rtems_rfs_dir_add_entry+0x178>
    {                                                                 
      if (rc != ENXIO)                                                
ffc1cc10:	2f 9f 00 06 	cmpwi   cr7,r31,6                              
ffc1cc14:	41 be 00 34 	beq+    cr7,ffc1cc48 <rtems_rfs_dir_add_entry+0x11c><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))          
ffc1cc18:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1cc1c:	3c 80 20 00 	lis     r4,8192                                <== NOT EXECUTED
ffc1cc20:	4b ff 76 29 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1cc24:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1cc28:	41 be 02 78 	beq+    cr7,ffc1cea0 <rtems_rfs_dir_add_entry+0x374><== NOT EXECUTED
          printf ("rtems-rfs: dir-add-entry: "                        
ffc1cc2c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1cc30:	83 bd 00 08 	lwz     r29,8(r29)                             <== NOT EXECUTED
ffc1cc34:	48 00 71 29 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1cc38:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc1cc3c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1cc40:	38 63 50 cb 	addi    r3,r3,20683                            <== NOT EXECUTED
ffc1cc44:	48 00 00 4c 	b       ffc1cc90 <rtems_rfs_dir_add_entry+0x164><== NOT EXECUTED
      }                                                               
                                                                      
      /*                                                              
       * We have reached the end of the directory so add a block.     
       */                                                             
      rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);            
ffc1cc48:	7f c3 f3 78 	mr      r3,r30                                 
ffc1cc4c:	7e c4 b3 78 	mr      r4,r22                                 
ffc1cc50:	38 a0 00 01 	li      r5,1                                   
ffc1cc54:	38 c1 00 70 	addi    r6,r1,112                              
ffc1cc58:	4b ff e8 39 	bl      ffc1b490 <rtems_rfs_block_map_grow>    
      if (rc > 0)                                                     
ffc1cc5c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1cc60:	40 a1 00 4c 	ble+    ffc1ccac <rtems_rfs_dir_add_entry+0x180><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))          
ffc1cc64:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1cc68:	3c 80 20 00 	lis     r4,8192                                <== NOT EXECUTED
ffc1cc6c:	4b ff 75 dd 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1cc70:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1cc74:	41 be 02 2c 	beq+    cr7,ffc1cea0 <rtems_rfs_dir_add_entry+0x374><== NOT EXECUTED
          printf ("rtems-rfs: dir-add-entry: "                        
ffc1cc78:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1cc7c:	83 bd 00 08 	lwz     r29,8(r29)                             <== NOT EXECUTED
ffc1cc80:	48 00 70 dd 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1cc84:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc1cc88:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1cc8c:	38 63 51 10 	addi    r3,r3,20752                            <== NOT EXECUTED
ffc1cc90:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc1cc94:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc1cc98:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1cc9c:	48 00 5e d5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1cca0:	48 00 02 00 	b       ffc1cea0 <rtems_rfs_dir_add_entry+0x374><== NOT EXECUTED
  while (true)                                                        
  {                                                                   
    rtems_rfs_block_no block;                                         
    uint8_t*           entry;                                         
    int                offset;                                        
    bool               read = true;                                   
ffc1cca4:	3b 60 00 01 	li      r27,1                                  
ffc1cca8:	48 00 00 08 	b       ffc1ccb0 <rtems_rfs_dir_add_entry+0x184>
                  "block map grow failed for ino %" PRIu32 ": %d: %s\n",
                  rtems_rfs_inode_ino (dir), rc, strerror (rc));      
        break;                                                        
      }                                                               
                                                                      
      read = false;                                                   
ffc1ccac:	3b 60 00 00 	li      r27,0                                  
    }                                                                 
                                                                      
    bpos.bno++;                                                       
ffc1ccb0:	81 21 00 64 	lwz     r9,100(r1)                             
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);  
ffc1ccb4:	7f c3 f3 78 	mr      r3,r30                                 
ffc1ccb8:	80 a1 00 70 	lwz     r5,112(r1)                             
ffc1ccbc:	38 81 00 58 	addi    r4,r1,88                               
      }                                                               
                                                                      
      read = false;                                                   
    }                                                                 
                                                                      
    bpos.bno++;                                                       
ffc1ccc0:	39 29 00 01 	addi    r9,r9,1                                
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);  
ffc1ccc4:	7f 66 db 78 	mr      r6,r27                                 
      }                                                               
                                                                      
      read = false;                                                   
    }                                                                 
                                                                      
    bpos.bno++;                                                       
ffc1ccc8:	91 21 00 64 	stw     r9,100(r1)                             
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);  
ffc1cccc:	4b ff f2 05 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
    if (rc > 0)                                                       
ffc1ccd0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1ccd4:	40 a1 00 34 	ble+    ffc1cd08 <rtems_rfs_dir_add_entry+0x1dc><== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))            
ffc1ccd8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1ccdc:	3c 80 20 00 	lis     r4,8192                                <== NOT EXECUTED
ffc1cce0:	4b ff 75 69 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1cce4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1cce8:	41 be 01 b8 	beq+    cr7,ffc1cea0 <rtems_rfs_dir_add_entry+0x374><== NOT EXECUTED
        printf ("rtems-rfs: dir-add-entry: "                          
ffc1ccec:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1ccf0:	83 bd 00 08 	lwz     r29,8(r29)                             <== NOT EXECUTED
ffc1ccf4:	48 00 70 69 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1ccf8:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc1ccfc:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1cd00:	38 63 51 55 	addi    r3,r3,20821                            <== NOT EXECUTED
ffc1cd04:	4b ff ff 8c 	b       ffc1cc90 <rtems_rfs_dir_add_entry+0x164><== NOT EXECUTED
      break;                                                          
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
                                                                      
    if (!read)                                                        
ffc1cd08:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
                "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);                         
ffc1cd0c:	81 21 00 60 	lwz     r9,96(r1)                              
ffc1cd10:	83 e9 00 1c 	lwz     r31,28(r9)                             
                                                                      
    if (!read)                                                        
ffc1cd14:	40 be 00 14 	bne+    cr7,ffc1cd28 <rtems_rfs_dir_add_entry+0x1fc>
      memset (entry, 0xff, rtems_rfs_fs_block_size (fs));             
ffc1cd18:	80 be 00 08 	lwz     r5,8(r30)                              
ffc1cd1c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1cd20:	38 80 00 ff 	li      r4,255                                 
ffc1cd24:	48 00 5b f1 	bl      ffc22914 <memset>                      
                                                                      
    offset = 0;                                                       
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc1cd28:	81 3e 00 08 	lwz     r9,8(r30)                              
    entry  = rtems_rfs_buffer_data (&buffer);                         
                                                                      
    if (!read)                                                        
      memset (entry, 0xff, rtems_rfs_fs_block_size (fs));             
                                                                      
    offset = 0;                                                       
ffc1cd2c:	3b 40 00 00 	li      r26,0                                  
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc1cd30:	39 09 ff f6 	addi    r8,r9,-10                              
ffc1cd34:	48 00 01 60 	b       ffc1ce94 <rtems_rfs_dir_add_entry+0x368>
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
ffc1cd38:	8b 7f 00 08 	lbz     r27,8(r31)                             
ffc1cd3c:	89 5f 00 09 	lbz     r10,9(r31)                             
ffc1cd40:	57 7b 40 2e 	rlwinm  r27,r27,8,0,23                         
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc1cd44:	8a ff 00 00 	lbz     r23,0(r31)                             
    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);                   
ffc1cd48:	7f 7b 53 78 	or      r27,r27,r10                            
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc1cd4c:	89 5f 00 01 	lbz     r10,1(r31)                             
ffc1cd50:	56 f7 c0 0e 	rlwinm  r23,r23,24,0,7                         
ffc1cd54:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc1cd58:	7e f7 53 78 	or      r23,r23,r10                            
ffc1cd5c:	89 5f 00 03 	lbz     r10,3(r31)                             
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc1cd60:	7f 9b a8 00 	cmpw    cr7,r27,r21                            
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc1cd64:	7e f7 53 78 	or      r23,r23,r10                            
ffc1cd68:	89 5f 00 02 	lbz     r10,2(r31)                             
ffc1cd6c:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc1cd70:	7e f7 53 78 	or      r23,r23,r10                            
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc1cd74:	40 be 00 9c 	bne+    cr7,ffc1ce10 <rtems_rfs_dir_add_entry+0x2e4>
      {                                                               
        if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <                     
            (rtems_rfs_fs_block_size (fs) - offset))                  
ffc1cd78:	7f 5a 48 50 	subf    r26,r26,r9                             
      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) <                     
ffc1cd7c:	7f 94 d0 40 	cmplw   cr7,r20,r26                            
ffc1cd80:	40 9c fe 74 	bge+    cr7,ffc1cbf4 <rtems_rfs_dir_add_entry+0xc8><== NEVER TAKEN
            (rtems_rfs_fs_block_size (fs) - offset))                  
        {                                                             
          uint32_t hash;                                              
          hash = rtems_rfs_dir_hash (name, length);                   
ffc1cd84:	7f 84 e3 78 	mr      r4,r28                                 
ffc1cd88:	7f 23 cb 78 	mr      r3,r25                                 
ffc1cd8c:	48 00 41 01 	bl      ffc20e8c <rtems_rfs_dir_hash>          
          rtems_rfs_dir_set_entry_hash (entry, hash);                 
          rtems_rfs_dir_set_entry_ino (entry, ino);                   
ffc1cd90:	9b 1f 00 03 	stb     r24,3(r31)                             
        if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <                     
            (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);                 
ffc1cd94:	54 69 46 3e 	rlwinm  r9,r3,8,24,31                          
ffc1cd98:	99 3f 00 04 	stb     r9,4(r31)                              
ffc1cd9c:	54 69 84 3e 	rlwinm  r9,r3,16,16,31                         
          rtems_rfs_dir_set_entry_ino (entry, ino);                   
          rtems_rfs_dir_set_entry_length (entry,                      
                                          RTEMS_RFS_DIR_ENTRY_SIZE + length);
          memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);    
ffc1cda0:	7f 85 e3 78 	mr      r5,r28                                 
        if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <                     
            (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);                 
ffc1cda4:	99 3f 00 05 	stb     r9,5(r31)                              
ffc1cda8:	54 69 c2 3e 	rlwinm  r9,r3,24,8,31                          
          rtems_rfs_dir_set_entry_ino (entry, ino);                   
          rtems_rfs_dir_set_entry_length (entry,                      
                                          RTEMS_RFS_DIR_ENTRY_SIZE + length);
          memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);    
ffc1cdac:	7f 24 cb 78 	mr      r4,r25                                 
        if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <                     
            (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);                 
ffc1cdb0:	99 3f 00 06 	stb     r9,6(r31)                              
          rtems_rfs_dir_set_entry_ino (entry, ino);                   
ffc1cdb4:	57 09 46 3e 	rlwinm  r9,r24,8,24,31                         
ffc1cdb8:	99 3f 00 00 	stb     r9,0(r31)                              
ffc1cdbc:	57 09 84 3e 	rlwinm  r9,r24,16,16,31                        
ffc1cdc0:	99 3f 00 01 	stb     r9,1(r31)                              
ffc1cdc4:	57 09 c2 3e 	rlwinm  r9,r24,24,8,31                         
ffc1cdc8:	99 3f 00 02 	stb     r9,2(r31)                              
          rtems_rfs_dir_set_entry_length (entry,                      
ffc1cdcc:	39 3c 00 0a 	addi    r9,r28,10                              
ffc1cdd0:	55 2a c6 3e 	rlwinm  r10,r9,24,24,31                        
ffc1cdd4:	99 5f 00 08 	stb     r10,8(r31)                             
        if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <                     
            (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);                 
ffc1cdd8:	98 7f 00 07 	stb     r3,7(r31)                              
          rtems_rfs_dir_set_entry_ino (entry, ino);                   
          rtems_rfs_dir_set_entry_length (entry,                      
                                          RTEMS_RFS_DIR_ENTRY_SIZE + length);
          memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);    
ffc1cddc:	38 7f 00 0a 	addi    r3,r31,10                              
        {                                                             
          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,                      
ffc1cde0:	99 3f 00 09 	stb     r9,9(r31)                              
                                          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);                       
          return 0;                                                   
ffc1cde4:	3b e0 00 00 	li      r31,0                                  
          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,                      
                                          RTEMS_RFS_DIR_ENTRY_SIZE + length);
          memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);    
ffc1cde8:	48 00 58 fd 	bl      ffc226e4 <memcpy>                      
          rtems_rfs_buffer_mark_dirty (&buffer);                      
ffc1cdec:	7c 24 0b 78 	mr      r4,r1                                  
ffc1cdf0:	39 20 00 01 	li      r9,1                                   
ffc1cdf4:	9d 24 00 58 	stbu    r9,88(r4)                              
          rtems_rfs_buffer_handle_close (fs, &buffer);                
ffc1cdf8:	7f c3 f3 78 	mr      r3,r30                                 
ffc1cdfc:	4b ff f7 f9 	bl      ffc1c5f4 <rtems_rfs_buffer_handle_close>
          rtems_rfs_block_map_close (fs, &map);                       
ffc1ce00:	7f c3 f3 78 	mr      r3,r30                                 
ffc1ce04:	38 81 00 08 	addi    r4,r1,8                                
ffc1ce08:	4b ff e2 6d 	bl      ffc1b074 <rtems_rfs_block_map_close>   
ffc1ce0c:	48 00 00 ac 	b       ffc1ceb8 <rtems_rfs_dir_add_entry+0x38c>
        }                                                             
                                                                      
        break;                                                        
      }                                                               
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
ffc1ce10:	2f 9b 00 0a 	cmpwi   cr7,r27,10                             
ffc1ce14:	40 9d 00 24 	ble-    cr7,ffc1ce38 <rtems_rfs_dir_add_entry+0x30c><== NEVER TAKEN
ffc1ce18:	81 5e 00 1c 	lwz     r10,28(r30)                            
ffc1ce1c:	7f 9b 50 40 	cmplw   cr7,r27,r10                            
ffc1ce20:	40 9c 00 18 	bge-    cr7,ffc1ce38 <rtems_rfs_dir_add_entry+0x30c><== NEVER TAKEN
ffc1ce24:	2f 97 00 00 	cmpwi   cr7,r23,0                              
ffc1ce28:	41 9e 00 10 	beq-    cr7,ffc1ce38 <rtems_rfs_dir_add_entry+0x30c><== NEVER TAKEN
ffc1ce2c:	81 5e 00 14 	lwz     r10,20(r30)                            
ffc1ce30:	7f 97 50 40 	cmplw   cr7,r23,r10                            
ffc1ce34:	40 bd 00 58 	ble+    cr7,ffc1ce8c <rtems_rfs_dir_add_entry+0x360><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))          
ffc1ce38:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1ce3c:	3c 80 20 00 	lis     r4,8192                                <== NOT EXECUTED
ffc1ce40:	4b ff 74 09 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1ce44:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1ce48:	41 be 00 24 	beq+    cr7,ffc1ce6c <rtems_rfs_dir_add_entry+0x340><== NOT EXECUTED
          printf ("rtems-rfs: dir-add-entry: "                        
ffc1ce4c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1ce50:	80 9d 00 08 	lwz     r4,8(r29)                              <== NOT EXECUTED
ffc1ce54:	38 63 51 9c 	addi    r3,r3,20892                            <== NOT EXECUTED
ffc1ce58:	7f 65 db 78 	mr      r5,r27                                 <== NOT EXECUTED
ffc1ce5c:	7e e6 bb 78 	mr      r6,r23                                 <== NOT EXECUTED
ffc1ce60:	7f 47 d3 78 	mr      r7,r26                                 <== NOT EXECUTED
ffc1ce64:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1ce68:	48 00 5d 09 	bl      ffc22b70 <printf>                      <== 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);                  
ffc1ce6c:	38 81 00 58 	addi    r4,r1,88                               <== NOT EXECUTED
ffc1ce70:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1ce74:	4b ff f7 81 	bl      ffc1c5f4 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
        rtems_rfs_block_map_close (fs, &map);                         
ffc1ce78:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1ce7c:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc1ce80:	4b ff e1 f5 	bl      ffc1b074 <rtems_rfs_block_map_close>   <== NOT EXECUTED
        return EIO;                                                   
ffc1ce84:	3b e0 00 05 	li      r31,5                                  <== NOT EXECUTED
ffc1ce88:	48 00 00 30 	b       ffc1ceb8 <rtems_rfs_dir_add_entry+0x38c><== NOT EXECUTED
      }                                                               
                                                                      
      entry  += elength;                                              
ffc1ce8c:	7f ff da 14 	add     r31,r31,r27                            
      offset += elength;                                              
ffc1ce90:	7f 5a da 14 	add     r26,r26,r27                            
    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))
ffc1ce94:	7f 9a 40 40 	cmplw   cr7,r26,r8                             
ffc1ce98:	41 9c fe a0 	blt+    cr7,ffc1cd38 <rtems_rfs_dir_add_entry+0x20c><== ALWAYS TAKEN
ffc1ce9c:	4b ff fd 58 	b       ffc1cbf4 <rtems_rfs_dir_add_entry+0xc8><== NOT EXECUTED
      entry  += elength;                                              
      offset += elength;                                              
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
ffc1cea0:	38 81 00 58 	addi    r4,r1,88                               <== NOT EXECUTED
ffc1cea4:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1cea8:	4b ff f7 4d 	bl      ffc1c5f4 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
  rtems_rfs_block_map_close (fs, &map);                               
ffc1ceac:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1ceb0:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc1ceb4:	4b ff e1 c1 	bl      ffc1b074 <rtems_rfs_block_map_close>   <== NOT EXECUTED
  return rc;                                                          
}                                                                     
ffc1ceb8:	39 61 00 a8 	addi    r11,r1,168                             
ffc1cebc:	7f e3 fb 78 	mr      r3,r31                                 
ffc1cec0:	4b fe 46 80 	b       ffc01540 <_restgpr_20_x>               
                                                                      

ffc1cec4 <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) {
ffc1cec4:	94 21 ff 58 	stwu    r1,-168(r1)                            
ffc1cec8:	7d 80 00 26 	mfcr    r12                                    
ffc1cecc:	7c 08 02 a6 	mflr    r0                                     
ffc1ced0:	be 41 00 70 	stmw    r18,112(r1)                            
ffc1ced4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1ced8:	7c 99 23 78 	mr      r25,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))                
ffc1cedc:	38 60 00 00 	li      r3,0                                   
int                                                                   
rtems_rfs_dir_del_entry (rtems_rfs_file_system*  fs,                  
                         rtems_rfs_inode_handle* dir,                 
                         rtems_rfs_ino           ino,                 
                         uint32_t                offset)              
{                                                                     
ffc1cee0:	90 01 00 ac 	stw     r0,172(r1)                             
  rtems_rfs_block_no      block;                                      
  rtems_rfs_buffer_handle buffer;                                     
  bool                    search;                                     
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))                
ffc1cee4:	3c 80 40 00 	lis     r4,16384                               
int                                                                   
rtems_rfs_dir_del_entry (rtems_rfs_file_system*  fs,                  
                         rtems_rfs_inode_handle* dir,                 
                         rtems_rfs_ino           ino,                 
                         uint32_t                offset)              
{                                                                     
ffc1cee8:	91 81 00 6c 	stw     r12,108(r1)                            
ffc1ceec:	7c b6 2b 78 	mr      r22,r5                                 
ffc1cef0:	7c d8 33 78 	mr      r24,r6                                 
  rtems_rfs_block_no      block;                                      
  rtems_rfs_buffer_handle buffer;                                     
  bool                    search;                                     
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))                
ffc1cef4:	4b ff 73 55 	bl      ffc14248 <rtems_rfs_trace>             
ffc1cef8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1cefc:	41 be 00 20 	beq+    cr7,ffc1cf1c <rtems_rfs_dir_del_entry+0x58><== ALWAYS TAKEN
    printf ("rtems-rfs: dir-del-entry: dir=%" PRId32 ", entry=%" PRId32 " offset=%" PRIu32 "\n",
ffc1cf00:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1cf04:	80 99 00 08 	lwz     r4,8(r25)                              <== NOT EXECUTED
ffc1cf08:	38 63 51 e4 	addi    r3,r3,20964                            <== NOT EXECUTED
ffc1cf0c:	7e c5 b3 78 	mr      r5,r22                                 <== NOT EXECUTED
ffc1cf10:	7f 06 c3 78 	mr      r6,r24                                 <== NOT EXECUTED
ffc1cf14:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1cf18:	48 00 5c 59 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rtems_rfs_inode_ino (dir), ino, offset);                  
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
ffc1cf1c:	3b c1 00 08 	addi    r30,r1,8                               
ffc1cf20:	7f e3 fb 78 	mr      r3,r31                                 
ffc1cf24:	7f 24 cb 78 	mr      r4,r25                                 
ffc1cf28:	7f c5 f3 78 	mr      r5,r30                                 
ffc1cf2c:	4b ff df 91 	bl      ffc1aebc <rtems_rfs_block_map_open>    
  if (rc > 0)                                                         
ffc1cf30:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc1cf34:	41 a1 03 74 	bgt+    ffc1d2a8 <rtems_rfs_dir_del_entry+0x3e4><== NEVER TAKEN
    return rc;                                                        
                                                                      
  rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);           
ffc1cf38:	3b 61 00 64 	addi    r27,r1,100                             
ffc1cf3c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1cf40:	7f c4 f3 78 	mr      r4,r30                                 
ffc1cf44:	38 a0 00 00 	li      r5,0                                   
ffc1cf48:	7f 06 c3 78 	mr      r6,r24                                 
ffc1cf4c:	7f 67 db 78 	mr      r7,r27                                 
ffc1cf50:	4b ff e4 71 	bl      ffc1b3c0 <rtems_rfs_block_map_seek>    
ffc1cf54:	3b 80 00 00 	li      r28,0                                  
  if (rc > 0)                                                         
ffc1cf58:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc1cf5c:	40 81 00 14 	ble-    ffc1cf70 <rtems_rfs_dir_del_entry+0xac><== ALWAYS TAKEN
  {                                                                   
    if (rc == ENXIO)                                                  
ffc1cf60:	2f 9d 00 06 	cmpwi   cr7,r29,6                              <== NOT EXECUTED
ffc1cf64:	40 be 02 bc 	bne+    cr7,ffc1d220 <rtems_rfs_dir_del_entry+0x35c><== NOT EXECUTED
      rc = ENOENT;                                                    
ffc1cf68:	3b a0 00 02 	li      r29,2                                  <== NOT EXECUTED
ffc1cf6c:	48 00 02 b4 	b       ffc1d220 <rtems_rfs_dir_del_entry+0x35c><== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Only search if the offset is 0 else we are at that position.     
   */                                                                 
  search = offset ? false : true;                                     
ffc1cf70:	7f 09 00 34 	cntlzw  r9,r24                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc1cf74:	9b 81 00 58 	stb     r28,88(r1)                             
ffc1cf78:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc1cf7c:	3a a0 00 00 	li      r21,0                                  
  handle->bnum  = 0;                                                  
ffc1cf80:	93 81 00 5c 	stw     r28,92(r1)                             
        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: "                        
ffc1cf84:	3e 40 ff c3 	lis     r18,-61                                
  handle->buffer = NULL;                                              
ffc1cf88:	93 81 00 60 	stw     r28,96(r1)                             
      rc = ENOENT;                                                    
    rtems_rfs_block_map_close (fs, &map);                             
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_handle_open (fs, &buffer);                    
ffc1cf8c:	3b a0 00 00 	li      r29,0                                  
                                                                      
    /*                                                                
     * If we are searching start at the beginning of the block. If not searching
     * skip to the offset in the block.                               
     */                                                               
    if (search)                                                       
ffc1cf90:	2e 09 00 00 	cmpwi   cr4,r9,0                               
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc1cf94:	62 b5 ff ff 	ori     r21,r21,65535                          
      eoffset += elength;                                             
    }                                                                 
                                                                      
    if (rc == 0)                                                      
    {                                                                 
      rc = rtems_rfs_block_map_next_block (fs, &map, &block);         
ffc1cf98:	7f 74 db 78 	mr      r20,r27                                
ffc1cf9c:	7f d3 f3 78 	mr      r19,r30                                
        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: "                        
ffc1cfa0:	3a 52 52 64 	addi    r18,r18,21092                          
  /*                                                                  
   * Only search if the offset is 0 else we are at that position.     
   */                                                                 
  search = offset ? false : true;                                     
                                                                      
  while (rc == 0)                                                     
ffc1cfa4:	48 00 02 d0 	b       ffc1d274 <rtems_rfs_dir_del_entry+0x3b0>
  {                                                                   
    uint8_t* entry;                                                   
    int      eoffset;                                                 
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
ffc1cfa8:	80 a1 00 64 	lwz     r5,100(r1)                             
ffc1cfac:	7f e3 fb 78 	mr      r3,r31                                 
ffc1cfb0:	38 81 00 58 	addi    r4,r1,88                               
ffc1cfb4:	38 c0 00 01 	li      r6,1                                   
ffc1cfb8:	4b ff ef 19 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
    if (rc > 0)                                                       
ffc1cfbc:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc1cfc0:	40 a1 00 44 	ble+    ffc1d004 <rtems_rfs_dir_del_entry+0x140><== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))            
ffc1cfc4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1cfc8:	3c 80 40 00 	lis     r4,16384                               <== NOT EXECUTED
ffc1cfcc:	4b ff 72 7d 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1cfd0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1cfd4:	41 be 02 ac 	beq+    cr7,ffc1d280 <rtems_rfs_dir_del_entry+0x3bc><== NOT EXECUTED
        printf ("rtems-rfs: dir-del-entry: "                          
ffc1cfd8:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc1cfdc:	83 d9 00 08 	lwz     r30,8(r25)                             <== NOT EXECUTED
ffc1cfe0:	48 00 6d 7d 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1cfe4:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc1cfe8:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc1cfec:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1cff0:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc1cff4:	38 63 52 1d 	addi    r3,r3,21021                            <== NOT EXECUTED
ffc1cff8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1cffc:	48 00 5b 75 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1d000:	48 00 02 80 	b       ffc1d280 <rtems_rfs_dir_del_entry+0x3bc><== 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;                                                    
ffc1d004:	3b 80 00 00 	li      r28,0                                  
                                                                      
    /*                                                                
     * If we are searching start at the beginning of the block. If not searching
     * skip to the offset in the block.                               
     */                                                               
    if (search)                                                       
ffc1d008:	40 92 00 14 	bne-    cr4,ffc1d01c <rtems_rfs_dir_del_entry+0x158><== NEVER TAKEN
      eoffset = 0;                                                    
    else                                                              
      eoffset = offset % rtems_rfs_fs_block_size (fs);                
ffc1d00c:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc1d010:	7f 98 4b 96 	divwu   r28,r24,r9                             
ffc1d014:	7f 9c 49 d6 	mullw   r28,r28,r9                             
ffc1d018:	7f 9c c0 50 	subf    r28,r28,r24                            
                                                                      
    entry = rtems_rfs_buffer_data (&buffer) + eoffset;                
ffc1d01c:	81 21 00 60 	lwz     r9,96(r1)                              
ffc1d020:	83 c9 00 1c 	lwz     r30,28(r9)                             
                                                                      
    while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc1d024:	81 3f 00 08 	lwz     r9,8(r31)                              
    if (search)                                                       
      eoffset = 0;                                                    
    else                                                              
      eoffset = offset % rtems_rfs_fs_block_size (fs);                
                                                                      
    entry = rtems_rfs_buffer_data (&buffer) + eoffset;                
ffc1d028:	7f de e2 14 	add     r30,r30,r28                            
                                                                      
    while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc1d02c:	39 09 ff f6 	addi    r8,r9,-10                              
ffc1d030:	48 00 02 0c 	b       ffc1d23c <rtems_rfs_dir_del_entry+0x378>
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
ffc1d034:	8b 7e 00 08 	lbz     r27,8(r30)                             
ffc1d038:	89 5e 00 09 	lbz     r10,9(r30)                             
ffc1d03c:	57 7b 40 2e 	rlwinm  r27,r27,8,0,23                         
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc1d040:	8a fe 00 00 	lbz     r23,0(r30)                             
    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);                   
ffc1d044:	7f 7b 53 78 	or      r27,r27,r10                            
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc1d048:	89 5e 00 01 	lbz     r10,1(r30)                             
ffc1d04c:	56 f7 c0 0e 	rlwinm  r23,r23,24,0,7                         
ffc1d050:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc1d054:	7e f7 53 78 	or      r23,r23,r10                            
ffc1d058:	89 5e 00 03 	lbz     r10,3(r30)                             
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc1d05c:	7f 9b a8 00 	cmpw    cr7,r27,r21                            
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc1d060:	7e f7 53 78 	or      r23,r23,r10                            
ffc1d064:	89 5e 00 02 	lbz     r10,2(r30)                             
ffc1d068:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc1d06c:	7e f7 53 78 	or      r23,r23,r10                            
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc1d070:	41 9e 01 d4 	beq-    cr7,ffc1d244 <rtems_rfs_dir_del_entry+0x380><== NEVER TAKEN
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
ffc1d074:	2f 9b 00 0a 	cmpwi   cr7,r27,10                             
ffc1d078:	40 9d 00 24 	ble-    cr7,ffc1d09c <rtems_rfs_dir_del_entry+0x1d8><== NEVER TAKEN
ffc1d07c:	81 5f 00 1c 	lwz     r10,28(r31)                            
ffc1d080:	7f 9b 50 40 	cmplw   cr7,r27,r10                            
ffc1d084:	40 9c 00 18 	bge-    cr7,ffc1d09c <rtems_rfs_dir_del_entry+0x1d8><== NEVER TAKEN
ffc1d088:	2f 97 00 00 	cmpwi   cr7,r23,0                              
ffc1d08c:	41 9e 00 10 	beq-    cr7,ffc1d09c <rtems_rfs_dir_del_entry+0x1d8><== NEVER TAKEN
ffc1d090:	81 5f 00 14 	lwz     r10,20(r31)                            
ffc1d094:	7f 97 50 40 	cmplw   cr7,r23,r10                            
ffc1d098:	40 bd 00 3c 	ble+    cr7,ffc1d0d4 <rtems_rfs_dir_del_entry+0x210><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
ffc1d09c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1d0a0:	3c 80 40 00 	lis     r4,16384                               <== NOT EXECUTED
ffc1d0a4:	4b ff 71 a5 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1d0a8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1d0ac:	41 be 01 f4 	beq+    cr7,ffc1d2a0 <rtems_rfs_dir_del_entry+0x3dc><== NOT EXECUTED
          printf ("rtems-rfs: dir-del-entry: "                        
ffc1d0b0:	80 99 00 08 	lwz     r4,8(r25)                              <== NOT EXECUTED
ffc1d0b4:	7e 43 93 78 	mr      r3,r18                                 <== NOT EXECUTED
ffc1d0b8:	80 e1 00 64 	lwz     r7,100(r1)                             <== NOT EXECUTED
ffc1d0bc:	7f 65 db 78 	mr      r5,r27                                 <== NOT EXECUTED
ffc1d0c0:	7e e6 bb 78 	mr      r6,r23                                 <== NOT EXECUTED
ffc1d0c4:	7f 88 e3 78 	mr      r8,r28                                 <== NOT EXECUTED
ffc1d0c8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1d0cc:	48 00 5a a5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1d0d0:	48 00 01 d0 	b       ffc1d2a0 <rtems_rfs_dir_del_entry+0x3dc><== NOT EXECUTED
                  rtems_rfs_inode_ino (dir), elength, eino, block, eoffset);
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      if (ino == rtems_rfs_dir_entry_ino (entry))                     
ffc1d0d4:	7f 96 b8 00 	cmpw    cr7,r22,r23                            
ffc1d0d8:	40 be 01 58 	bne+    cr7,ffc1d230 <rtems_rfs_dir_del_entry+0x36c><== NEVER TAKEN
      {                                                               
        uint32_t remaining;                                           
        remaining = rtems_rfs_fs_block_size (fs) - (eoffset + elength);
ffc1d0dc:	7f 5c da 14 	add     r26,r28,r27                            
ffc1d0e0:	7f 5a 48 50 	subf    r26,r26,r9                             
        memmove (entry, entry + elength, remaining);                  
ffc1d0e4:	7c 9e da 14 	add     r4,r30,r27                             
ffc1d0e8:	7f c3 f3 78 	mr      r3,r30                                 
ffc1d0ec:	7f 45 d3 78 	mr      r5,r26                                 
ffc1d0f0:	48 00 56 e9 	bl      ffc227d8 <memmove>                     
        memset (entry + remaining, 0xff, elength);                    
ffc1d0f4:	7c 7e d2 14 	add     r3,r30,r26                             
ffc1d0f8:	38 80 00 ff 	li      r4,255                                 
ffc1d0fc:	7f 65 db 78 	mr      r5,r27                                 
ffc1d100:	48 00 58 15 	bl      ffc22914 <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);                 
ffc1d104:	89 5e 00 08 	lbz     r10,8(r30)                             
ffc1d108:	89 3e 00 09 	lbz     r9,9(r30)                              
                                                                      
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
ffc1d10c:	38 60 00 00 	li      r3,0                                   
         * 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);                 
ffc1d110:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
                                                                      
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
ffc1d114:	3c 80 40 00 	lis     r4,16384                               
         * 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);                 
ffc1d118:	7d 5e 4b 78 	or      r30,r10,r9                             
                                                                      
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
ffc1d11c:	4b ff 71 2d 	bl      ffc14248 <rtems_rfs_trace>             
ffc1d120:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1d124:	41 9e 00 5c 	beq-    cr7,ffc1d180 <rtems_rfs_dir_del_entry+0x2bc><== 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");    
ffc1d128:	81 21 00 18 	lwz     r9,24(r1)                              <== 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: "                        
ffc1d12c:	80 c1 00 64 	lwz     r6,100(r1)                             <== NOT EXECUTED
ffc1d130:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc1d134:	81 41 00 10 	lwz     r10,16(r1)                             <== NOT EXECUTED
ffc1d138:	40 9e 00 18 	bne-    cr7,ffc1d150 <rtems_rfs_dir_del_entry+0x28c><== 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");    
ffc1d13c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc1d140:	40 9e 00 10 	bne-    cr7,ffc1d150 <rtems_rfs_dir_del_entry+0x28c><== 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: "                        
ffc1d144:	3d 00 ff c3 	lis     r8,-61                                 <== NOT EXECUTED
ffc1d148:	39 08 3c 1a 	addi    r8,r8,15386                            <== NOT EXECUTED
ffc1d14c:	48 00 00 18 	b       ffc1d164 <rtems_rfs_dir_del_entry+0x2a0><== 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");    
ffc1d150:	39 4a ff ff 	addi    r10,r10,-1                             <== NOT EXECUTED
ffc1d154:	7f 89 50 00 	cmpw    cr7,r9,r10                             <== NOT EXECUTED
ffc1d158:	41 be ff ec 	beq-    cr7,ffc1d144 <rtems_rfs_dir_del_entry+0x280><== 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: "                        
ffc1d15c:	3d 00 ff c3 	lis     r8,-61                                 <== NOT EXECUTED
ffc1d160:	39 08 40 fb 	addi    r8,r8,16635                            <== NOT EXECUTED
ffc1d164:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1d168:	38 63 52 b0 	addi    r3,r3,21168                            <== NOT EXECUTED
ffc1d16c:	7e c4 b3 78 	mr      r4,r22                                 <== NOT EXECUTED
ffc1d170:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc1d174:	7f 87 e3 78 	mr      r7,r28                                 <== NOT EXECUTED
ffc1d178:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1d17c:	48 00 59 f5 	bl      ffc22b70 <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) &&                 
ffc1d180:	6f c9 ff ff 	xoris   r9,r30,65535                           
ffc1d184:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc1d188:	40 9e 00 84 	bne-    cr7,ffc1d20c <rtems_rfs_dir_del_entry+0x348>
ffc1d18c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc1d190:	40 9e 00 7c 	bne-    cr7,ffc1d20c <rtems_rfs_dir_del_entry+0x348><== ALWAYS TAKEN
            (eoffset == 0) && rtems_rfs_block_map_last (&map))        
ffc1d194:	81 21 00 18 	lwz     r9,24(r1)                              <== NOT EXECUTED
ffc1d198:	81 41 00 10 	lwz     r10,16(r1)                             <== NOT EXECUTED
ffc1d19c:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc1d1a0:	40 9e 00 0c 	bne-    cr7,ffc1d1ac <rtems_rfs_dir_del_entry+0x2e8><== NOT EXECUTED
ffc1d1a4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc1d1a8:	41 9e 00 10 	beq-    cr7,ffc1d1b8 <rtems_rfs_dir_del_entry+0x2f4><== NOT EXECUTED
ffc1d1ac:	39 4a ff ff 	addi    r10,r10,-1                             <== NOT EXECUTED
ffc1d1b0:	7f 89 50 00 	cmpw    cr7,r9,r10                             <== NOT EXECUTED
ffc1d1b4:	40 be 00 58 	bne+    cr7,ffc1d20c <rtems_rfs_dir_del_entry+0x348><== NOT EXECUTED
        {                                                             
          rc = rtems_rfs_block_map_shrink (fs, &map, 1);              
ffc1d1b8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1d1bc:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc1d1c0:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc1d1c4:	4b ff e6 69 	bl      ffc1b82c <rtems_rfs_block_map_shrink>  <== NOT EXECUTED
          if (rc > 0)                                                 
ffc1d1c8:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc1d1cc:	40 81 00 40 	ble-    ffc1d20c <rtems_rfs_dir_del_entry+0x348><== NOT EXECUTED
          {                                                           
            if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))      
ffc1d1d0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1d1d4:	3c 80 40 00 	lis     r4,16384                               <== NOT EXECUTED
ffc1d1d8:	4b ff 70 71 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1d1dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1d1e0:	41 be 00 2c 	beq+    cr7,ffc1d20c <rtems_rfs_dir_del_entry+0x348><== NOT EXECUTED
              printf ("rtems-rfs: dir-del-entry: "                    
ffc1d1e4:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1d1e8:	83 99 00 08 	lwz     r28,8(r25)                             <== NOT EXECUTED
ffc1d1ec:	48 00 6b 71 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1d1f0:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc1d1f4:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc1d1f8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1d1fc:	38 63 53 0f 	addi    r3,r3,21263                            <== NOT EXECUTED
ffc1d200:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc1d204:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1d208:	48 00 59 69 	bl      ffc22b70 <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);                        
ffc1d20c:	7c 24 0b 78 	mr      r4,r1                                  
ffc1d210:	39 20 00 01 	li      r9,1                                   
ffc1d214:	9d 24 00 58 	stbu    r9,88(r4)                              
        rtems_rfs_buffer_handle_close (fs, &buffer);                  
ffc1d218:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d21c:	4b ff f3 d9 	bl      ffc1c5f4 <rtems_rfs_buffer_handle_close>
        rtems_rfs_block_map_close (fs, &map);                         
ffc1d220:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d224:	38 81 00 08 	addi    r4,r1,8                                
ffc1d228:	4b ff de 4d 	bl      ffc1b074 <rtems_rfs_block_map_close>   
ffc1d22c:	48 00 00 7c 	b       ffc1d2a8 <rtems_rfs_dir_del_entry+0x3e4>
        return 0;                                                     
      }                                                               
                                                                      
      if (!search)                                                    
ffc1d230:	41 92 00 70 	beq-    cr4,ffc1d2a0 <rtems_rfs_dir_del_entry+0x3dc><== NOT EXECUTED
      {                                                               
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      entry   += elength;                                             
ffc1d234:	7f de da 14 	add     r30,r30,r27                            <== NOT EXECUTED
      eoffset += elength;                                             
ffc1d238:	7f 9c da 14 	add     r28,r28,r27                            <== 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))
ffc1d23c:	7f 9c 40 40 	cmplw   cr7,r28,r8                             
ffc1d240:	41 9c fd f4 	blt+    cr7,ffc1d034 <rtems_rfs_dir_del_entry+0x170><== ALWAYS TAKEN
                                                                      
      entry   += elength;                                             
      eoffset += elength;                                             
    }                                                                 
                                                                      
    if (rc == 0)                                                      
ffc1d244:	2f 9a 00 00 	cmpwi   cr7,r26,0                              <== NOT EXECUTED
ffc1d248:	40 9e 00 28 	bne-    cr7,ffc1d270 <rtems_rfs_dir_del_entry+0x3ac><== NOT EXECUTED
    {                                                                 
      rc = rtems_rfs_block_map_next_block (fs, &map, &block);         
ffc1d24c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1d250:	7e 64 9b 78 	mr      r4,r19                                 <== NOT EXECUTED
ffc1d254:	7e 85 a3 78 	mr      r5,r20                                 <== NOT EXECUTED
ffc1d258:	4b ff e1 f9 	bl      ffc1b450 <rtems_rfs_block_map_next_block><== NOT EXECUTED
      if (rc == ENXIO)                                                
ffc1d25c:	2f 83 00 06 	cmpwi   cr7,r3,6                               <== NOT EXECUTED
      eoffset += elength;                                             
    }                                                                 
                                                                      
    if (rc == 0)                                                      
    {                                                                 
      rc = rtems_rfs_block_map_next_block (fs, &map, &block);         
ffc1d260:	7c 7d 1b 78 	mr      r29,r3                                 <== NOT EXECUTED
      if (rc == ENXIO)                                                
ffc1d264:	40 be 00 10 	bne+    cr7,ffc1d274 <rtems_rfs_dir_del_entry+0x3b0><== NOT EXECUTED
        rc = ENOENT;                                                  
ffc1d268:	3b a0 00 02 	li      r29,2                                  <== NOT EXECUTED
ffc1d26c:	48 00 00 10 	b       ffc1d27c <rtems_rfs_dir_del_entry+0x3b8><== NOT EXECUTED
      rc = ENOENT;                                                    
    rtems_rfs_block_map_close (fs, &map);                             
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_handle_open (fs, &buffer);                    
ffc1d270:	7f 5d d3 78 	mr      r29,r26                                <== NOT EXECUTED
  /*                                                                  
   * Only search if the offset is 0 else we are at that position.     
   */                                                                 
  search = offset ? false : true;                                     
                                                                      
  while (rc == 0)                                                     
ffc1d274:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc1d278:	41 9e fd 30 	beq+    cr7,ffc1cfa8 <rtems_rfs_dir_del_entry+0xe4><== ALWAYS TAKEN
ffc1d27c:	7f ba eb 78 	mr      r26,r29                                <== NOT EXECUTED
      if (rc == ENXIO)                                                
        rc = ENOENT;                                                  
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
ffc1d280:	38 81 00 58 	addi    r4,r1,88                               <== NOT EXECUTED
ffc1d284:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1d288:	4b ff f3 6d 	bl      ffc1c5f4 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
  rtems_rfs_block_map_close (fs, &map);                               
ffc1d28c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1d290:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc1d294:	4b ff dd e1 	bl      ffc1b074 <rtems_rfs_block_map_close>   <== NOT EXECUTED
  return rc;                                                          
ffc1d298:	7f 5d d3 78 	mr      r29,r26                                <== NOT EXECUTED
ffc1d29c:	48 00 00 0c 	b       ffc1d2a8 <rtems_rfs_dir_del_entry+0x3e4><== NOT EXECUTED
      rc = ENOENT;                                                    
    rtems_rfs_block_map_close (fs, &map);                             
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_handle_open (fs, &buffer);                    
ffc1d2a0:	3b 40 00 05 	li      r26,5                                  <== NOT EXECUTED
ffc1d2a4:	4b ff ff cc 	b       ffc1d270 <rtems_rfs_dir_del_entry+0x3ac><== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
  return rc;                                                          
}                                                                     
ffc1d2a8:	81 81 00 6c 	lwz     r12,108(r1)                            
ffc1d2ac:	39 61 00 a8 	addi    r11,r1,168                             
ffc1d2b0:	7f a3 eb 78 	mr      r3,r29                                 
ffc1d2b4:	7d 80 81 20 	mtcrf   8,r12                                  
ffc1d2b8:	4b fe 42 80 	b       ffc01538 <_restgpr_18_x>               
                                                                      

ffc1d63c <rtems_rfs_dir_empty>: int rtems_rfs_dir_empty (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* dir) {
ffc1d63c:	94 21 ff 70 	stwu    r1,-144(r1)                            
ffc1d640:	7c 08 02 a6 	mflr    r0                                     
ffc1d644:	be c1 00 68 	stmw    r22,104(r1)                            
ffc1d648:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1d64c:	7c 9b 23 78 	mr      r27,r4                                 
  rtems_rfs_buffer_handle buffer;                                     
  rtems_rfs_block_no      block;                                      
  bool                    empty;                                      
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                     
ffc1d650:	38 60 00 00 	li      r3,0                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_dir_empty (rtems_rfs_file_system*  fs,                      
                     rtems_rfs_inode_handle* dir)                     
{                                                                     
ffc1d654:	90 01 00 94 	stw     r0,148(r1)                             
  rtems_rfs_buffer_handle buffer;                                     
  rtems_rfs_block_no      block;                                      
  bool                    empty;                                      
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                     
ffc1d658:	3c 80 80 00 	lis     r4,-32768                              
ffc1d65c:	4b ff 6b ed 	bl      ffc14248 <rtems_rfs_trace>             
ffc1d660:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1d664:	41 be 00 18 	beq+    cr7,ffc1d67c <rtems_rfs_dir_empty+0x40><== ALWAYS TAKEN
    printf ("rtems-rfs: dir-empty: dir=%" PRId32 "\n", rtems_rfs_inode_ino (dir));
ffc1d668:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1d66c:	80 9b 00 08 	lwz     r4,8(r27)                              <== NOT EXECUTED
ffc1d670:	38 63 54 2f 	addi    r3,r3,21551                            <== NOT EXECUTED
ffc1d674:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1d678:	48 00 54 f9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
  empty = true;                                                       
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
ffc1d67c:	3b a1 00 08 	addi    r29,r1,8                               
ffc1d680:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d684:	7f 64 db 78 	mr      r4,r27                                 
ffc1d688:	7f a5 eb 78 	mr      r5,r29                                 
ffc1d68c:	4b ff d8 31 	bl      ffc1aebc <rtems_rfs_block_map_open>    
  if (rc > 0)                                                         
ffc1d690:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1d694:	41 a1 01 cc 	bgt+    ffc1d860 <rtems_rfs_dir_empty+0x224>   <== NEVER TAKEN
    return rc;                                                        
                                                                      
  rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);                
ffc1d698:	3b 81 00 64 	addi    r28,r1,100                             
ffc1d69c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d6a0:	7f a4 eb 78 	mr      r4,r29                                 
ffc1d6a4:	38 a0 00 00 	li      r5,0                                   
ffc1d6a8:	38 c0 00 00 	li      r6,0                                   
ffc1d6ac:	7f 87 e3 78 	mr      r7,r28                                 
ffc1d6b0:	4b ff dd 11 	bl      ffc1b3c0 <rtems_rfs_block_map_seek>    
  if (rc > 0)                                                         
ffc1d6b4:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1d6b8:	40 a1 00 10 	ble+    ffc1d6c8 <rtems_rfs_dir_empty+0x8c>    <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_block_map_close (fs, &map);                             
ffc1d6bc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1d6c0:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc1d6c4:	48 00 01 78 	b       ffc1d83c <rtems_rfs_dir_empty+0x200>   <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc1d6c8:	39 20 00 00 	li      r9,0                                   
ffc1d6cc:	99 21 00 58 	stb     r9,88(r1)                              
  handle->bnum  = 0;                                                  
ffc1d6d0:	39 20 00 00 	li      r9,0                                   
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc1d6d4:	3a e0 00 00 	li      r23,0                                  
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_EMPTY))              
          printf ("rtems-rfs: dir-empty: "                            
ffc1d6d8:	3e c0 ff c3 	lis     r22,-61                                
ffc1d6dc:	91 21 00 5c 	stw     r9,92(r1)                              
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc1d6e0:	62 f7 ff ff 	ori     r23,r23,65535                          
  handle->buffer = NULL;                                              
ffc1d6e4:	91 21 00 60 	stw     r9,96(r1)                              
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_EMPTY))              
          printf ("rtems-rfs: dir-empty: "                            
ffc1d6e8:	3a d6 54 4e 	addi    r22,r22,21582                          
      offset += elength;                                              
    }                                                                 
                                                                      
    if (empty)                                                        
    {                                                                 
      rc = rtems_rfs_block_map_next_block (fs, &map, &block);         
ffc1d6ec:	7f 99 e3 78 	mr      r25,r28                                
ffc1d6f0:	7f b8 eb 78 	mr      r24,r29                                
  while (empty)                                                       
  {                                                                   
    uint8_t* entry;                                                   
    int      offset;                                                  
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
ffc1d6f4:	80 a1 00 64 	lwz     r5,100(r1)                             
ffc1d6f8:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d6fc:	38 81 00 58 	addi    r4,r1,88                               
ffc1d700:	38 c0 00 01 	li      r6,1                                   
ffc1d704:	4b ff e7 cd 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
    if (rc > 0)                                                       
ffc1d708:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1d70c:	41 81 01 1c 	bgt-    ffc1d828 <rtems_rfs_dir_empty+0x1ec>   <== NEVER TAKEN
      break;                                                          
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
ffc1d710:	81 21 00 60 	lwz     r9,96(r1)                              
    offset = 0;                                                       
ffc1d714:	3b 80 00 00 	li      r28,0                                  
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc1d718:	81 5f 00 08 	lwz     r10,8(r31)                             
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
    if (rc > 0)                                                       
      break;                                                          
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
ffc1d71c:	81 29 00 1c 	lwz     r9,28(r9)                              
    offset = 0;                                                       
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc1d720:	39 4a ff f6 	addi    r10,r10,-10                            
ffc1d724:	48 00 00 d8 	b       ffc1d7fc <rtems_rfs_dir_empty+0x1c0>   
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
ffc1d728:	8b a9 00 08 	lbz     r29,8(r9)                              
ffc1d72c:	89 09 00 09 	lbz     r8,9(r9)                               
ffc1d730:	57 bd 40 2e 	rlwinm  r29,r29,8,0,23                         
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc1d734:	8b 49 00 00 	lbz     r26,0(r9)                              
    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);                   
ffc1d738:	7f bd 43 78 	or      r29,r29,r8                             
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc1d73c:	89 09 00 01 	lbz     r8,1(r9)                               
ffc1d740:	57 5a c0 0e 	rlwinm  r26,r26,24,0,7                         
ffc1d744:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc1d748:	7f 5a 43 78 	or      r26,r26,r8                             
ffc1d74c:	89 09 00 03 	lbz     r8,3(r9)                               
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc1d750:	7f 9d b8 00 	cmpw    cr7,r29,r23                            
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc1d754:	7f 5a 43 78 	or      r26,r26,r8                             
ffc1d758:	89 09 00 02 	lbz     r8,2(r9)                               
ffc1d75c:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc1d760:	7f 5a 43 78 	or      r26,r26,r8                             
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc1d764:	41 9e 00 e0 	beq-    cr7,ffc1d844 <rtems_rfs_dir_empty+0x208>
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
ffc1d768:	2f 9d 00 0a 	cmpwi   cr7,r29,10                             
ffc1d76c:	40 9d 00 24 	ble-    cr7,ffc1d790 <rtems_rfs_dir_empty+0x154><== NEVER TAKEN
ffc1d770:	81 1f 00 1c 	lwz     r8,28(r31)                             
ffc1d774:	7f 9d 40 40 	cmplw   cr7,r29,r8                             
ffc1d778:	40 9c 00 18 	bge-    cr7,ffc1d790 <rtems_rfs_dir_empty+0x154><== NEVER TAKEN
ffc1d77c:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc1d780:	41 9e 00 10 	beq-    cr7,ffc1d790 <rtems_rfs_dir_empty+0x154><== NEVER TAKEN
ffc1d784:	81 1f 00 14 	lwz     r8,20(r31)                             
ffc1d788:	7f 9a 40 40 	cmplw   cr7,r26,r8                             
ffc1d78c:	40 bd 00 38 	ble+    cr7,ffc1d7c4 <rtems_rfs_dir_empty+0x188><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_EMPTY))              
ffc1d790:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc1d794:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1d798:	4b ff 6a b1 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1d79c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1d7a0:	41 be 00 a4 	beq+    cr7,ffc1d844 <rtems_rfs_dir_empty+0x208><== NOT EXECUTED
          printf ("rtems-rfs: dir-empty: "                            
ffc1d7a4:	80 9b 00 08 	lwz     r4,8(r27)                              <== NOT EXECUTED
ffc1d7a8:	7e c3 b3 78 	mr      r3,r22                                 <== NOT EXECUTED
ffc1d7ac:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc1d7b0:	7f 46 d3 78 	mr      r6,r26                                 <== NOT EXECUTED
ffc1d7b4:	7f 87 e3 78 	mr      r7,r28                                 <== NOT EXECUTED
ffc1d7b8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1d7bc:	48 00 53 b5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1d7c0:	48 00 00 84 	b       ffc1d844 <rtems_rfs_dir_empty+0x208>   <== NOT EXECUTED
                                                                      
      /*                                                              
       * Ignore the current (.) and parent (..) entries. Anything else means
       * the directory is not empty.                                  
       */                                                             
      if (((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 1)) ||             
ffc1d7c4:	2f 9d 00 0b 	cmpwi   cr7,r29,11                             
ffc1d7c8:	40 be 00 0c 	bne+    cr7,ffc1d7d4 <rtems_rfs_dir_empty+0x198>
ffc1d7cc:	89 09 00 0a 	lbz     r8,10(r9)                              
ffc1d7d0:	48 00 00 1c 	b       ffc1d7ec <rtems_rfs_dir_empty+0x1b0>   
           (entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.')) &&               
ffc1d7d4:	2f 9d 00 0c 	cmpwi   cr7,r29,12                             
ffc1d7d8:	40 9e 00 3c 	bne-    cr7,ffc1d814 <rtems_rfs_dir_empty+0x1d8>
          ((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 2)) ||             
ffc1d7dc:	89 09 00 0a 	lbz     r8,10(r9)                              
ffc1d7e0:	2f 88 00 2e 	cmpwi   cr7,r8,46                              
ffc1d7e4:	40 9e 00 30 	bne-    cr7,ffc1d814 <rtems_rfs_dir_empty+0x1d8><== NEVER TAKEN
           (entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.') ||                
ffc1d7e8:	89 09 00 0b 	lbz     r8,11(r9)                              
ffc1d7ec:	2f 88 00 2e 	cmpwi   cr7,r8,46                              
ffc1d7f0:	40 9e 00 24 	bne-    cr7,ffc1d814 <rtems_rfs_dir_empty+0x1d8><== NEVER TAKEN
      {                                                               
        empty = false;                                                
        break;                                                        
      }                                                               
                                                                      
      entry  += elength;                                              
ffc1d7f4:	7d 29 ea 14 	add     r9,r9,r29                              
      offset += elength;                                              
ffc1d7f8:	7f 9c ea 14 	add     r28,r28,r29                            
      break;                                                          
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
    offset = 0;                                                       
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc1d7fc:	7f 9c 50 40 	cmplw   cr7,r28,r10                            
ffc1d800:	41 9c ff 28 	blt+    cr7,ffc1d728 <rtems_rfs_dir_empty+0xec><== ALWAYS TAKEN
ffc1d804:	48 00 00 40 	b       ffc1d844 <rtems_rfs_dir_empty+0x208>   <== NOT EXECUTED
    if (empty)                                                        
    {                                                                 
      rc = rtems_rfs_block_map_next_block (fs, &map, &block);         
      if (rc > 0)                                                     
      {                                                               
        if (rc == ENXIO)                                              
ffc1d808:	2f 9e 00 06 	cmpwi   cr7,r30,6                              
ffc1d80c:	40 be 00 1c 	bne+    cr7,ffc1d828 <rtems_rfs_dir_empty+0x1ec><== NEVER TAKEN
ffc1d810:	48 00 00 14 	b       ffc1d824 <rtems_rfs_dir_empty+0x1e8>   
        break;                                                        
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ((rc == 0) && !empty)                                            
ffc1d814:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc1d818:	40 9e 00 10 	bne-    cr7,ffc1d828 <rtems_rfs_dir_empty+0x1ec><== NEVER TAKEN
    rc = ENOTEMPTY;                                                   
ffc1d81c:	3b c0 00 5a 	li      r30,90                                 
ffc1d820:	48 00 00 08 	b       ffc1d828 <rtems_rfs_dir_empty+0x1ec>   
    if (empty)                                                        
    {                                                                 
      rc = rtems_rfs_block_map_next_block (fs, &map, &block);         
      if (rc > 0)                                                     
      {                                                               
        if (rc == ENXIO)                                              
ffc1d824:	3b c0 00 00 	li      r30,0                                  
  }                                                                   
                                                                      
  if ((rc == 0) && !empty)                                            
    rc = ENOTEMPTY;                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
ffc1d828:	38 81 00 58 	addi    r4,r1,88                               
ffc1d82c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d830:	4b ff ed c5 	bl      ffc1c5f4 <rtems_rfs_buffer_handle_close>
  rtems_rfs_block_map_close (fs, &map);                               
ffc1d834:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d838:	38 81 00 08 	addi    r4,r1,8                                
ffc1d83c:	4b ff d8 39 	bl      ffc1b074 <rtems_rfs_block_map_close>   
ffc1d840:	48 00 00 20 	b       ffc1d860 <rtems_rfs_dir_empty+0x224>   
      offset += elength;                                              
    }                                                                 
                                                                      
    if (empty)                                                        
    {                                                                 
      rc = rtems_rfs_block_map_next_block (fs, &map, &block);         
ffc1d844:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d848:	7f 04 c3 78 	mr      r4,r24                                 
ffc1d84c:	7f 25 cb 78 	mr      r5,r25                                 
ffc1d850:	4b ff dc 01 	bl      ffc1b450 <rtems_rfs_block_map_next_block>
      if (rc > 0)                                                     
ffc1d854:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1d858:	40 81 fe 9c 	ble+    ffc1d6f4 <rtems_rfs_dir_empty+0xb8>    <== NEVER TAKEN
ffc1d85c:	4b ff ff ac 	b       ffc1d808 <rtems_rfs_dir_empty+0x1cc>   
    rc = ENOTEMPTY;                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
  return rc;                                                          
}                                                                     
ffc1d860:	39 61 00 90 	addi    r11,r1,144                             
ffc1d864:	7f c3 f3 78 	mr      r3,r30                                 
ffc1d868:	4b fe 3c e0 	b       ffc01548 <_restgpr_22_x>               
                                                                      

ffc20e8c <rtems_rfs_dir_hash>: { 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;
ffc20e8c:	38 a4 ff ff 	addi    r5,r4,-1                               
ffc20e90:	38 c0 00 0c 	li      r6,12                                  
ffc20e94:	7c c5 33 96 	divwu   r6,r5,r6                               
ffc20e98:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc20e9c:	3d 44 df df 	addis   r10,r4,-8225                           
ffc20ea0:	39 4a 16 9f 	addi    r10,r10,5791                           
ffc20ea4:	7d 48 53 78 	mr      r8,r10                                 
ffc20ea8:	7d 47 53 78 	mr      r7,r10                                 
ffc20eac:	38 c6 00 01 	addi    r6,r6,1                                
ffc20eb0:	40 be 00 f8 	bne+    cr7,ffc20fa8 <rtems_rfs_dir_hash+0x11c><== ALWAYS TAKEN
ffc20eb4:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc20eb8:	48 00 00 f0 	b       ffc20fa8 <rtems_rfs_dir_hash+0x11c>    <== NOT EXECUTED
    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];                                                      
ffc20ebc:	88 a3 00 00 	lbz     r5,0(r3)                               
      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;                                                   
ffc20ec0:	38 84 ff f4 	addi    r4,r4,-12                              
    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];                                                      
ffc20ec4:	7c e5 3a 14 	add     r7,r5,r7                               
      a += ((uint32_t)k[1])<<8;                                       
ffc20ec8:	88 a3 00 01 	lbz     r5,1(r3)                               
ffc20ecc:	54 a5 40 2e 	rlwinm  r5,r5,8,0,23                           
ffc20ed0:	7c e7 2a 14 	add     r7,r7,r5                               
      a += ((uint32_t)k[2])<<16;                                      
ffc20ed4:	88 a3 00 02 	lbz     r5,2(r3)                               
ffc20ed8:	54 a5 80 1e 	rlwinm  r5,r5,16,0,15                          
ffc20edc:	7c e7 2a 14 	add     r7,r7,r5                               
      a += ((uint32_t)k[3])<<24;                                      
ffc20ee0:	88 a3 00 03 	lbz     r5,3(r3)                               
ffc20ee4:	54 a5 c0 0e 	rlwinm  r5,r5,24,0,7                           
ffc20ee8:	7c e7 2a 14 	add     r7,r7,r5                               
      b += k[4];                                                      
ffc20eec:	88 a3 00 04 	lbz     r5,4(r3)                               
ffc20ef0:	7d 05 42 14 	add     r8,r5,r8                               
      b += ((uint32_t)k[5])<<8;                                       
ffc20ef4:	88 a3 00 05 	lbz     r5,5(r3)                               
ffc20ef8:	54 a5 40 2e 	rlwinm  r5,r5,8,0,23                           
ffc20efc:	7d 08 2a 14 	add     r8,r8,r5                               
      b += ((uint32_t)k[6])<<16;                                      
ffc20f00:	88 a3 00 06 	lbz     r5,6(r3)                               
ffc20f04:	54 a5 80 1e 	rlwinm  r5,r5,16,0,15                          
ffc20f08:	7d 08 2a 14 	add     r8,r8,r5                               
      b += ((uint32_t)k[7])<<24;                                      
ffc20f0c:	88 a3 00 07 	lbz     r5,7(r3)                               
ffc20f10:	54 a5 c0 0e 	rlwinm  r5,r5,24,0,7                           
ffc20f14:	7d 08 2a 14 	add     r8,r8,r5                               
      c += k[8];                                                      
ffc20f18:	88 a3 00 08 	lbz     r5,8(r3)                               
ffc20f1c:	7d 45 52 14 	add     r10,r5,r10                             
      c += ((uint32_t)k[9])<<8;                                       
ffc20f20:	88 a3 00 09 	lbz     r5,9(r3)                               
ffc20f24:	54 a5 40 2e 	rlwinm  r5,r5,8,0,23                           
ffc20f28:	7d 4a 2a 14 	add     r10,r10,r5                             
      c += ((uint32_t)k[10])<<16;                                     
ffc20f2c:	88 a3 00 0a 	lbz     r5,10(r3)                              
ffc20f30:	54 a5 80 1e 	rlwinm  r5,r5,16,0,15                          
ffc20f34:	7d 4a 2a 14 	add     r10,r10,r5                             
      c += ((uint32_t)k[11])<<24;                                     
ffc20f38:	88 a3 00 0b 	lbz     r5,11(r3)                              
      mix(a,b,c);                                                     
      length -= 12;                                                   
      k += 12;                                                        
ffc20f3c:	38 63 00 0c 	addi    r3,r3,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;                                     
ffc20f40:	54 a5 c0 0e 	rlwinm  r5,r5,24,0,7                           
ffc20f44:	7d 4a 2a 14 	add     r10,r10,r5                             
      mix(a,b,c);                                                     
ffc20f48:	55 45 20 3e 	rotlwi  r5,r10,4                               
ffc20f4c:	7c ea 38 50 	subf    r7,r10,r7                              
ffc20f50:	7c e7 2a 78 	xor     r7,r7,r5                               
ffc20f54:	7d 4a 42 14 	add     r10,r10,r8                             
ffc20f58:	54 e5 30 3e 	rotlwi  r5,r7,6                                
ffc20f5c:	7d 07 40 50 	subf    r8,r7,r8                               
ffc20f60:	7c a8 42 78 	xor     r8,r5,r8                               
ffc20f64:	7c e7 52 14 	add     r7,r7,r10                              
ffc20f68:	55 05 40 3e 	rotlwi  r5,r8,8                                
ffc20f6c:	7d 48 50 50 	subf    r10,r8,r10                             
ffc20f70:	7c aa 52 78 	xor     r10,r5,r10                             
ffc20f74:	7d 08 3a 14 	add     r8,r8,r7                               
ffc20f78:	55 45 80 3e 	rotlwi  r5,r10,16                              
ffc20f7c:	7c ea 38 50 	subf    r7,r10,r7                              
ffc20f80:	7c a7 3a 78 	xor     r7,r5,r7                               
ffc20f84:	7d 4a 42 14 	add     r10,r10,r8                             
ffc20f88:	54 e5 98 3e 	rotlwi  r5,r7,19                               
ffc20f8c:	7d 07 40 50 	subf    r8,r7,r8                               
ffc20f90:	7c a8 42 78 	xor     r8,r5,r8                               
ffc20f94:	7c e7 52 14 	add     r7,r7,r10                              
ffc20f98:	55 05 20 3e 	rotlwi  r5,r8,4                                
ffc20f9c:	7d 48 50 50 	subf    r10,r8,r10                             
ffc20fa0:	7c aa 52 78 	xor     r10,r5,r10                             
ffc20fa4:	7d 08 3a 14 	add     r8,r8,r7                               
                                                                      
  } 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)                                               
ffc20fa8:	34 c6 ff ff 	addic.  r6,r6,-1                               
ffc20fac:	40 82 ff 10 	bne+    ffc20ebc <rtems_rfs_dir_hash+0x30>     
      length -= 12;                                                   
      k += 12;                                                        
    }                                                                 
                                                                      
    /*-------------------------------- last block: affect all 32 bits of (c) */
    switch(length)                   /* all the case statements fall through */
ffc20fb0:	38 84 ff ff 	addi    r4,r4,-1                               
ffc20fb4:	2b 84 00 0b 	cmplwi  cr7,r4,11                              
ffc20fb8:	41 9d 00 f8 	bgt-    cr7,ffc210b0 <rtems_rfs_dir_hash+0x224><== NEVER TAKEN
ffc20fbc:	3c c0 ff c3 	lis     r6,-61                                 
ffc20fc0:	38 c6 5e 00 	addi    r6,r6,24064                            
ffc20fc4:	54 84 10 3a 	rlwinm  r4,r4,2,0,29                           
ffc20fc8:	7c a6 20 2e 	lwzx    r5,r6,r4                               
ffc20fcc:	7c c5 32 14 	add     r6,r5,r6                               
ffc20fd0:	7c c9 03 a6 	mtctr   r6                                     
ffc20fd4:	4e 80 04 20 	bctr                                           
    {                                                                 
      case 12: c+=((uint32_t)k[11])<<24;                              
ffc20fd8:	88 c3 00 0b 	lbz     r6,11(r3)                              
ffc20fdc:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc20fe0:	7d 46 52 14 	add     r10,r6,r10                             
      case 11: c+=((uint32_t)k[10])<<16;                              
ffc20fe4:	88 c3 00 0a 	lbz     r6,10(r3)                              
ffc20fe8:	54 c6 80 1e 	rlwinm  r6,r6,16,0,15                          
ffc20fec:	7d 4a 32 14 	add     r10,r10,r6                             
      case 10: c+=((uint32_t)k[9])<<8;                                
ffc20ff0:	88 c3 00 09 	lbz     r6,9(r3)                               
ffc20ff4:	54 c6 40 2e 	rlwinm  r6,r6,8,0,23                           
ffc20ff8:	7d 4a 32 14 	add     r10,r10,r6                             
      case 9 : c+=k[8];                                               
ffc20ffc:	88 c3 00 08 	lbz     r6,8(r3)                               
ffc21000:	7d 4a 32 14 	add     r10,r10,r6                             
      case 8 : b+=((uint32_t)k[7])<<24;                               
ffc21004:	88 c3 00 07 	lbz     r6,7(r3)                               
ffc21008:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc2100c:	7d 06 42 14 	add     r8,r6,r8                               
      case 7 : b+=((uint32_t)k[6])<<16;                               
ffc21010:	88 c3 00 06 	lbz     r6,6(r3)                               
ffc21014:	54 c6 80 1e 	rlwinm  r6,r6,16,0,15                          
ffc21018:	7d 08 32 14 	add     r8,r8,r6                               
      case 6 : b+=((uint32_t)k[5])<<8;                                
ffc2101c:	88 c3 00 05 	lbz     r6,5(r3)                               
ffc21020:	54 c6 40 2e 	rlwinm  r6,r6,8,0,23                           
ffc21024:	7d 08 32 14 	add     r8,r8,r6                               
      case 5 : b+=k[4];                                               
ffc21028:	88 c3 00 04 	lbz     r6,4(r3)                               
ffc2102c:	7d 08 32 14 	add     r8,r8,r6                               
      case 4 : a+=((uint32_t)k[3])<<24;                               
ffc21030:	88 c3 00 03 	lbz     r6,3(r3)                               
ffc21034:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc21038:	7c e6 3a 14 	add     r7,r6,r7                               
      case 3 : a+=((uint32_t)k[2])<<16;                               
ffc2103c:	88 c3 00 02 	lbz     r6,2(r3)                               
ffc21040:	54 c6 80 1e 	rlwinm  r6,r6,16,0,15                          
ffc21044:	7c e7 32 14 	add     r7,r7,r6                               
      case 2 : a+=((uint32_t)k[1])<<8;                                
ffc21048:	88 c3 00 01 	lbz     r6,1(r3)                               
ffc2104c:	54 c6 40 2e 	rlwinm  r6,r6,8,0,23                           
ffc21050:	7c e7 32 14 	add     r7,r7,r6                               
      case 1 : a+=k[0];                                               
ffc21054:	89 23 00 00 	lbz     r9,0(r3)                               
        break;                                                        
      case 0 : return c;                                              
    }                                                                 
  }                                                                   
                                                                      
  final(a,b,c);                                                       
ffc21058:	7d 4a 42 78 	xor     r10,r10,r8                             
      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];                                               
ffc2105c:	7c e7 4a 14 	add     r7,r7,r9                               
        break;                                                        
      case 0 : return c;                                              
    }                                                                 
  }                                                                   
                                                                      
  final(a,b,c);                                                       
ffc21060:	55 09 70 3e 	rotlwi  r9,r8,14                               
ffc21064:	7d 29 50 50 	subf    r9,r9,r10                              
ffc21068:	55 2a 58 3e 	rotlwi  r10,r9,11                              
ffc2106c:	7d 27 3a 78 	xor     r7,r9,r7                               
ffc21070:	7c ea 38 50 	subf    r7,r10,r7                              
ffc21074:	54 ea c8 3e 	rotlwi  r10,r7,25                              
ffc21078:	7c e8 42 78 	xor     r8,r7,r8                               
ffc2107c:	7d 0a 40 50 	subf    r8,r10,r8                              
ffc21080:	7d 09 4a 78 	xor     r9,r8,r9                               
ffc21084:	55 06 80 3e 	rotlwi  r6,r8,16                               
ffc21088:	7d 26 48 50 	subf    r9,r6,r9                               
ffc2108c:	55 2a 20 3e 	rotlwi  r10,r9,4                               
ffc21090:	7d 27 3a 78 	xor     r7,r9,r7                               
ffc21094:	7c ea 38 50 	subf    r7,r10,r7                              
ffc21098:	7c e8 42 78 	xor     r8,r7,r8                               
ffc2109c:	54 e7 70 3e 	rotlwi  r7,r7,14                               
ffc210a0:	7d 07 40 50 	subf    r8,r7,r8                               
ffc210a4:	7d 0a 4a 78 	xor     r10,r8,r9                              
ffc210a8:	55 08 c0 3e 	rotlwi  r8,r8,24                               
ffc210ac:	7d 48 50 50 	subf    r10,r8,r10                             
  return c;                                                           
}                                                                     
ffc210b0:	7d 43 53 78 	mr      r3,r10                                 
ffc210b4:	4e 80 00 20 	blr                                            
                                                                      

ffc1c630 <rtems_rfs_dir_lookup_ino>: rtems_rfs_inode_handle* inode, const char* name, int length, rtems_rfs_ino* ino, uint32_t* offset) {
ffc1c630:	94 21 ff 48 	stwu    r1,-184(r1)                            
ffc1c634:	7c 08 02 a6 	mflr    r0                                     
ffc1c638:	bd c1 00 70 	stmw    r14,112(r1)                            
ffc1c63c:	7c 7d 1b 78 	mr      r29,r3                                 
ffc1c640:	7c 9c 23 78 	mr      r28,r4                                 
  rtems_rfs_block_map     map;                                        
  rtems_rfs_buffer_handle entries;                                    
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))               
ffc1c644:	38 60 00 00 	li      r3,0                                   
                          rtems_rfs_inode_handle* inode,              
                          const char*             name,               
                          int                     length,             
                          rtems_rfs_ino*          ino,                
                          uint32_t*               offset)             
{                                                                     
ffc1c648:	90 01 00 bc 	stw     r0,188(r1)                             
  rtems_rfs_block_map     map;                                        
  rtems_rfs_buffer_handle entries;                                    
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))               
ffc1c64c:	3c 80 04 00 	lis     r4,1024                                
                          rtems_rfs_inode_handle* inode,              
                          const char*             name,               
                          int                     length,             
                          rtems_rfs_ino*          ino,                
                          uint32_t*               offset)             
{                                                                     
ffc1c650:	7c b8 2b 78 	mr      r24,r5                                 
ffc1c654:	7c da 33 78 	mr      r26,r6                                 
ffc1c658:	7c f9 3b 78 	mr      r25,r7                                 
ffc1c65c:	7d 17 43 78 	mr      r23,r8                                 
  rtems_rfs_block_map     map;                                        
  rtems_rfs_buffer_handle entries;                                    
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))               
ffc1c660:	4b ff 7b e9 	bl      ffc14248 <rtems_rfs_trace>             
ffc1c664:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c668:	41 be 00 48 	beq+    cr7,ffc1c6b0 <rtems_rfs_dir_lookup_ino+0x80><== ALWAYS TAKEN
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: dir-lookup-ino: lookup ino: root=%" PRId32 ", path=",
ffc1c66c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c670:	80 9c 00 08 	lwz     r4,8(r28)                              <== NOT EXECUTED
ffc1c674:	38 63 4d ef 	addi    r3,r3,19951                            <== NOT EXECUTED
ffc1c678:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c67c:	48 00 64 f5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            inode->ino);                                              
    for (c = 0; c < length; c++)                                      
ffc1c680:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
ffc1c684:	48 00 00 10 	b       ffc1c694 <rtems_rfs_dir_lookup_ino+0x64><== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc1c688:	7c 78 f8 ae 	lbzx    r3,r24,r31                             <== 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++)                                      
ffc1c68c:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc1c690:	48 00 67 6d 	bl      ffc22dfc <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++)                                      
ffc1c694:	7f 9f d0 00 	cmpw    cr7,r31,r26                            <== NOT EXECUTED
ffc1c698:	41 9c ff f0 	blt+    cr7,ffc1c688 <rtems_rfs_dir_lookup_ino+0x58><== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf (", len=%d\n", length);                                    
ffc1c69c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c6a0:	38 63 4e 26 	addi    r3,r3,20006                            <== NOT EXECUTED
ffc1c6a4:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc1c6a8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c6ac:	48 00 64 c5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
  }                                                                   
                                                                      
  *ino = RTEMS_RFS_EMPTY_INO;                                         
ffc1c6b0:	3b c0 00 00 	li      r30,0                                  
ffc1c6b4:	93 d9 00 00 	stw     r30,0(r25)                             
  *offset = 0;                                                        
                                                                      
  rc = rtems_rfs_block_map_open (fs, inode, &map);                    
ffc1c6b8:	3a 01 00 08 	addi    r16,r1,8                               
ffc1c6bc:	7f a3 eb 78 	mr      r3,r29                                 
      printf ("%c", name[c]);                                         
    printf (", len=%d\n", length);                                    
  }                                                                   
                                                                      
  *ino = RTEMS_RFS_EMPTY_INO;                                         
  *offset = 0;                                                        
ffc1c6c0:	93 d7 00 00 	stw     r30,0(r23)                             
                                                                      
  rc = rtems_rfs_block_map_open (fs, inode, &map);                    
ffc1c6c4:	7f 84 e3 78 	mr      r4,r28                                 
ffc1c6c8:	7e 05 83 78 	mr      r5,r16                                 
ffc1c6cc:	4b ff e7 f1 	bl      ffc1aebc <rtems_rfs_block_map_open>    
  if (rc > 0)                                                         
ffc1c6d0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1c6d4:	40 81 00 44 	ble-    ffc1c718 <rtems_rfs_dir_lookup_ino+0xe8><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))             
ffc1c6d8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1c6dc:	3c 80 04 00 	lis     r4,1024                                <== NOT EXECUTED
ffc1c6e0:	4b ff 7b 69 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1c6e4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1c6e8:	41 be 04 38 	beq+    cr7,ffc1cb20 <rtems_rfs_dir_lookup_ino+0x4f0><== NOT EXECUTED
      printf ("rtems-rfs: dir-lookup-ino: map open failed for ino %" PRIu32 ": %d: %s",
ffc1c6ec:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1c6f0:	83 dc 00 08 	lwz     r30,8(r28)                             <== NOT EXECUTED
ffc1c6f4:	48 00 76 69 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1c6f8:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc1c6fc:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc1c700:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c704:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc1c708:	38 63 4e 30 	addi    r3,r3,20016                            <== NOT EXECUTED
ffc1c70c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c710:	48 00 64 61 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1c714:	48 00 04 0c 	b       ffc1cb20 <rtems_rfs_dir_lookup_ino+0x4f0><== NOT EXECUTED
    uint32_t           hash;                                          
                                                                      
    /*                                                                
     * Calculate the hash of the look up string.                      
     */                                                               
    hash = rtems_rfs_dir_hash (name, length);                         
ffc1c718:	7f 44 d3 78 	mr      r4,r26                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc1c71c:	9b c1 00 58 	stb     r30,88(r1)                             
ffc1c720:	7f 03 c3 78 	mr      r3,r24                                 
  handle->bnum  = 0;                                                  
ffc1c724:	93 c1 00 5c 	stw     r30,92(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);              
ffc1c728:	3a 21 00 64 	addi    r17,r1,100                             
  handle->buffer = NULL;                                              
ffc1c72c:	93 c1 00 60 	stw     r30,96(r1)                             
    uint32_t           hash;                                          
                                                                      
    /*                                                                
     * Calculate the hash of the look up string.                      
     */                                                               
    hash = rtems_rfs_dir_hash (name, length);                         
ffc1c730:	48 00 47 5d 	bl      ffc20e8c <rtems_rfs_dir_hash>          
                                                                      
    /*                                                                
     * 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);              
ffc1c734:	7e 04 83 78 	mr      r4,r16                                 
    uint32_t           hash;                                          
                                                                      
    /*                                                                
     * Calculate the hash of the look up string.                      
     */                                                               
    hash = rtems_rfs_dir_hash (name, length);                         
ffc1c738:	90 61 00 68 	stw     r3,104(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);              
ffc1c73c:	38 a0 00 00 	li      r5,0                                   
ffc1c740:	7f a3 eb 78 	mr      r3,r29                                 
ffc1c744:	38 c0 00 00 	li      r6,0                                   
ffc1c748:	7e 27 8b 78 	mr      r7,r17                                 
ffc1c74c:	4b ff ec 75 	bl      ffc1b3c0 <rtems_rfs_block_map_seek>    
    if (rc > 0)                                                       
ffc1c750:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1c754:	40 81 03 14 	ble-    ffc1ca68 <rtems_rfs_dir_lookup_ino+0x438><== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))           
ffc1c758:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1c75c:	3c 80 04 00 	lis     r4,1024                                <== NOT EXECUTED
ffc1c760:	4b ff 7a e9 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1c764:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1c768:	41 be 00 24 	beq+    cr7,ffc1c78c <rtems_rfs_dir_lookup_ino+0x15c><== NOT EXECUTED
        printf ("rtems-rfs: dir-lookup-ino: block map find failed: %d: %s\n",
ffc1c76c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1c770:	48 00 75 ed 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1c774:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1c778:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1c77c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c780:	38 63 4e 6f 	addi    r3,r3,20079                            <== NOT EXECUTED
ffc1c784:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c788:	48 00 63 e9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                rc, strerror (rc));                                   
      if (rc == ENXIO)                                                
ffc1c78c:	2f 9f 00 06 	cmpwi   cr7,r31,6                              <== NOT EXECUTED
ffc1c790:	40 be 03 48 	bne+    cr7,ffc1cad8 <rtems_rfs_dir_lookup_ino+0x4a8><== NOT EXECUTED
        rc = ENOENT;                                                  
ffc1c794:	3b e0 00 02 	li      r31,2                                  <== NOT EXECUTED
ffc1c798:	48 00 03 40 	b       ffc1cad8 <rtems_rfs_dir_lookup_ino+0x4a8><== NOT EXECUTED
                                                                      
    while ((rc == 0) && block)                                        
    {                                                                 
      uint8_t* entry;                                                 
                                                                      
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))           
ffc1c79c:	38 60 00 00 	li      r3,0                                   
ffc1c7a0:	3c 80 04 00 	lis     r4,1024                                
ffc1c7a4:	4b ff 7a a5 	bl      ffc14248 <rtems_rfs_trace>             
ffc1c7a8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c7ac:	41 be 00 18 	beq+    cr7,ffc1c7c4 <rtems_rfs_dir_lookup_ino+0x194><== ALWAYS TAKEN
        printf ("rtems-rfs: dir-lookup-ino: block read, ino=%" PRIu32 " bno=%" PRId32 "\n",
ffc1c7b0:	80 9c 00 08 	lwz     r4,8(r28)                              <== NOT EXECUTED
ffc1c7b4:	7e a3 ab 78 	mr      r3,r21                                 <== NOT EXECUTED
ffc1c7b8:	80 a1 00 18 	lwz     r5,24(r1)                              <== NOT EXECUTED
ffc1c7bc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c7c0:	48 00 63 b1 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                rtems_rfs_inode_ino (inode), map.bpos.bno);           
                                                                      
      rc = rtems_rfs_buffer_handle_request (fs, &entries, block, true);
ffc1c7c4:	80 a1 00 64 	lwz     r5,100(r1)                             
ffc1c7c8:	7f a3 eb 78 	mr      r3,r29                                 
ffc1c7cc:	38 81 00 58 	addi    r4,r1,88                               
ffc1c7d0:	38 c0 00 01 	li      r6,1                                   
ffc1c7d4:	4b ff f6 fd 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
      if (rc > 0)                                                     
ffc1c7d8:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc1c7dc:	40 a1 00 4c 	ble+    ffc1c828 <rtems_rfs_dir_lookup_ino+0x1f8><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))         
ffc1c7e0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1c7e4:	3c 80 04 00 	lis     r4,1024                                <== NOT EXECUTED
ffc1c7e8:	4b ff 7a 61 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1c7ec:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1c7f0:	41 be 03 28 	beq+    cr7,ffc1cb18 <rtems_rfs_dir_lookup_ino+0x4e8><== NOT EXECUTED
          printf ("rtems-rfs: dir-lookup-ino: block read, ino=%" PRIu32 " block=%" PRId32 ": %d: %s\n",
ffc1c7f4:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc1c7f8:	83 dc 00 08 	lwz     r30,8(r28)                             <== NOT EXECUTED
ffc1c7fc:	83 e1 00 64 	lwz     r31,100(r1)                            <== NOT EXECUTED
ffc1c800:	48 00 75 5d 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1c804:	7c 67 1b 78 	mr      r7,r3                                  <== NOT EXECUTED
ffc1c808:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c80c:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc1c810:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc1c814:	7f 66 db 78 	mr      r6,r27                                 <== NOT EXECUTED
ffc1c818:	38 63 4e e1 	addi    r3,r3,20193                            <== NOT EXECUTED
ffc1c81c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c820:	48 00 63 51 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1c824:	48 00 02 f4 	b       ffc1cb18 <rtems_rfs_dir_lookup_ino+0x4e8><== 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);                       
ffc1c828:	81 21 00 60 	lwz     r9,96(r1)                              
                                                                      
      map.bpos.boff = 0;                                              
ffc1c82c:	92 81 00 1c 	stw     r20,28(r1)                             
      /*                                                              
       * 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);                       
ffc1c830:	83 c9 00 1c 	lwz     r30,28(r9)                             
                                                                      
      map.bpos.boff = 0;                                              
                                                                      
      while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc1c834:	48 00 01 b0 	b       ffc1c9e4 <rtems_rfs_dir_lookup_ino+0x3b4>
      {                                                               
        uint32_t ehash;                                               
        int      elength;                                             
                                                                      
        ehash  = rtems_rfs_dir_entry_hash (entry);                    
ffc1c838:	88 fe 00 04 	lbz     r7,4(r30)                              
ffc1c83c:	89 3e 00 05 	lbz     r9,5(r30)                              
ffc1c840:	54 e7 c0 0e 	rlwinm  r7,r7,24,0,7                           
        elength = rtems_rfs_dir_entry_length (entry);                 
ffc1c844:	89 5e 00 09 	lbz     r10,9(r30)                             
      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);                    
ffc1c848:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
        elength = rtems_rfs_dir_entry_length (entry);                 
        *ino = rtems_rfs_dir_entry_ino (entry);                       
ffc1c84c:	89 1e 00 00 	lbz     r8,0(r30)                              
      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);                    
ffc1c850:	7c e7 4b 78 	or      r7,r7,r9                               
ffc1c854:	89 3e 00 07 	lbz     r9,7(r30)                              
        elength = rtems_rfs_dir_entry_length (entry);                 
        *ino = rtems_rfs_dir_entry_ino (entry);                       
ffc1c858:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           
      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);                    
ffc1c85c:	7c e7 4b 78 	or      r7,r7,r9                               
ffc1c860:	89 3e 00 06 	lbz     r9,6(r30)                              
ffc1c864:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc1c868:	7c e7 4b 78 	or      r7,r7,r9                               
        elength = rtems_rfs_dir_entry_length (entry);                 
ffc1c86c:	89 3e 00 08 	lbz     r9,8(r30)                              
ffc1c870:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc1c874:	7d 36 53 78 	or      r22,r9,r10                             
        *ino = rtems_rfs_dir_entry_ino (entry);                       
ffc1c878:	89 5e 00 01 	lbz     r10,1(r30)                             
                                                                      
        if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                     
ffc1c87c:	7f 96 98 00 	cmpw    cr7,r22,r19                            
        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);                       
ffc1c880:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc1c884:	7d 0a 53 78 	or      r10,r8,r10                             
ffc1c888:	89 1e 00 03 	lbz     r8,3(r30)                              
ffc1c88c:	7d 4a 43 78 	or      r10,r10,r8                             
ffc1c890:	89 1e 00 02 	lbz     r8,2(r30)                              
ffc1c894:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc1c898:	7d 4a 43 78 	or      r10,r10,r8                             
ffc1c89c:	91 59 00 00 	stw     r10,0(r25)                             
                                                                      
        if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                     
ffc1c8a0:	40 be 00 10 	bne+    cr7,ffc1c8b0 <rtems_rfs_dir_lookup_ino+0x280>
                                                                      
        map.bpos.boff += elength;                                     
        entry += elength;                                             
      }                                                               
                                                                      
      if (rc == 0)                                                    
ffc1c8a4:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc1c8a8:	40 be 01 b8 	bne+    cr7,ffc1ca60 <rtems_rfs_dir_lookup_ino+0x430><== NEVER TAKEN
ffc1c8ac:	48 00 01 50 	b       ffc1c9fc <rtems_rfs_dir_lookup_ino+0x3cc>
        *ino = rtems_rfs_dir_entry_ino (entry);                       
                                                                      
        if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                     
          break;                                                      
                                                                      
        if (rtems_rfs_dir_entry_valid (fs, elength, *ino))            
ffc1c8b0:	2f 96 00 0a 	cmpwi   cr7,r22,10                             
ffc1c8b4:	41 bd 00 1c 	bgt+    cr7,ffc1c8d0 <rtems_rfs_dir_lookup_ino+0x2a0><== ALWAYS TAKEN
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))       
ffc1c8b8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1c8bc:	3c 80 04 00 	lis     r4,1024                                <== NOT EXECUTED
ffc1c8c0:	4b ff 79 89 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1c8c4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1c8c8:	41 be 02 2c 	beq+    cr7,ffc1caf4 <rtems_rfs_dir_lookup_ino+0x4c4><== NOT EXECUTED
ffc1c8cc:	48 00 00 28 	b       ffc1c8f4 <rtems_rfs_dir_lookup_ino+0x2c4><== NOT EXECUTED
        *ino = rtems_rfs_dir_entry_ino (entry);                       
                                                                      
        if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                     
          break;                                                      
                                                                      
        if (rtems_rfs_dir_entry_valid (fs, elength, *ino))            
ffc1c8d0:	81 1d 00 1c 	lwz     r8,28(r29)                             
ffc1c8d4:	7f 96 40 40 	cmplw   cr7,r22,r8                             
ffc1c8d8:	40 bc ff e0 	bge-    cr7,ffc1c8b8 <rtems_rfs_dir_lookup_ino+0x288><== NEVER TAKEN
ffc1c8dc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1c8e0:	41 be ff d8 	beq-    cr7,ffc1c8b8 <rtems_rfs_dir_lookup_ino+0x288><== NEVER TAKEN
ffc1c8e4:	81 1d 00 14 	lwz     r8,20(r29)                             
ffc1c8e8:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
ffc1c8ec:	40 bd 00 28 	ble+    cr7,ffc1c914 <rtems_rfs_dir_lookup_ino+0x2e4><== ALWAYS TAKEN
ffc1c8f0:	4b ff ff c8 	b       ffc1c8b8 <rtems_rfs_dir_lookup_ino+0x288><== NOT EXECUTED
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))       
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc1c8f4:	80 9c 00 08 	lwz     r4,8(r28)                              <== NOT EXECUTED
ffc1c8f8:	7d c3 73 78 	mr      r3,r14                                 <== NOT EXECUTED
ffc1c8fc:	80 d9 00 00 	lwz     r6,0(r25)                              <== NOT EXECUTED
ffc1c900:	7e c5 b3 78 	mr      r5,r22                                 <== NOT EXECUTED
ffc1c904:	80 e1 00 1c 	lwz     r7,28(r1)                              <== NOT EXECUTED
ffc1c908:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c90c:	48 00 62 65 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1c910:	48 00 01 e4 	b       ffc1caf4 <rtems_rfs_dir_lookup_ino+0x4c4><== NOT EXECUTED
                    rtems_rfs_inode_ino (inode), elength, *ino, map.bpos.boff);
          rc = EIO;                                                   
          break;                                                      
        }                                                             
                                                                      
        if (ehash == hash)                                            
ffc1c914:	81 21 00 68 	lwz     r9,104(r1)                             
ffc1c918:	7f 87 48 00 	cmpw    cr7,r7,r9                              
ffc1c91c:	40 be 00 b8 	bne+    cr7,ffc1c9d4 <rtems_rfs_dir_lookup_ino+0x3a4>
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
ffc1c920:	38 60 00 00 	li      r3,0                                   
ffc1c924:	3c 80 08 00 	lis     r4,2048                                
ffc1c928:	4b ff 79 21 	bl      ffc14248 <rtems_rfs_trace>             
ffc1c92c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c930:	41 be 00 48 	beq+    cr7,ffc1c978 <rtems_rfs_dir_lookup_ino+0x348><== 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));        
ffc1c934:	89 1e 00 00 	lbz     r8,0(r30)                              <== NOT EXECUTED
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc1c938:	7e 43 93 78 	mr      r3,r18                                 <== 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));        
ffc1c93c:	89 5e 00 01 	lbz     r10,1(r30)                             <== NOT EXECUTED
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc1c940:	7e c7 b3 78 	mr      r7,r22                                 <== 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));        
ffc1c944:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           <== NOT EXECUTED
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc1c948:	80 9c 00 08 	lwz     r4,8(r28)                              <== 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));        
ffc1c94c:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        <== NOT EXECUTED
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc1c950:	80 a1 00 18 	lwz     r5,24(r1)                              <== 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));        
ffc1c954:	7d 08 53 78 	or      r8,r8,r10                              <== NOT EXECUTED
ffc1c958:	89 5e 00 03 	lbz     r10,3(r30)                             <== NOT EXECUTED
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc1c95c:	80 c1 00 1c 	lwz     r6,28(r1)                              <== 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));        
ffc1c960:	7d 08 53 78 	or      r8,r8,r10                              <== NOT EXECUTED
ffc1c964:	89 5e 00 02 	lbz     r10,2(r30)                             <== NOT EXECUTED
ffc1c968:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         <== NOT EXECUTED
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc1c96c:	7d 08 53 78 	or      r8,r8,r10                              <== NOT EXECUTED
ffc1c970:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c974:	48 00 61 fd 	bl      ffc22b70 <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)
ffc1c978:	38 7e 00 0a 	addi    r3,r30,10                              
ffc1c97c:	7f 04 c3 78 	mr      r4,r24                                 
ffc1c980:	7f 45 d3 78 	mr      r5,r26                                 
ffc1c984:	48 00 5c dd 	bl      ffc22660 <memcmp>                      
ffc1c988:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c98c:	40 be 00 48 	bne+    cr7,ffc1c9d4 <rtems_rfs_dir_lookup_ino+0x3a4><== NEVER TAKEN
          {                                                           
            *offset = rtems_rfs_block_map_pos (fs, &map);             
ffc1c990:	7f a3 eb 78 	mr      r3,r29                                 
ffc1c994:	38 81 00 18 	addi    r4,r1,24                               
ffc1c998:	4b ff e4 45 	bl      ffc1addc <rtems_rfs_block_get_pos>     
                                                                      
            if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_FOUND))
ffc1c99c:	38 60 00 00 	li      r3,0                                   
                    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)
          {                                                           
            *offset = rtems_rfs_block_map_pos (fs, &map);             
ffc1c9a0:	90 97 00 00 	stw     r4,0(r23)                              
                                                                      
            if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_FOUND))
ffc1c9a4:	3c 80 10 00 	lis     r4,4096                                
ffc1c9a8:	4b ff 78 a1 	bl      ffc14248 <rtems_rfs_trace>             
ffc1c9ac:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1c9b0:	41 be 01 28 	beq+    cr7,ffc1cad8 <rtems_rfs_dir_lookup_ino+0x4a8><== ALWAYS TAKEN
              printf ("rtems-rfs: dir-lookup-ino: "                   
ffc1c9b4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1c9b8:	80 9c 00 08 	lwz     r4,8(r28)                              <== NOT EXECUTED
ffc1c9bc:	80 b9 00 00 	lwz     r5,0(r25)                              <== NOT EXECUTED
ffc1c9c0:	38 63 4f cb 	addi    r3,r3,20427                            <== NOT EXECUTED
ffc1c9c4:	80 d7 00 00 	lwz     r6,0(r23)                              <== NOT EXECUTED
ffc1c9c8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1c9cc:	48 00 61 a5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1c9d0:	48 00 01 08 	b       ffc1cad8 <rtems_rfs_dir_lookup_ino+0x4a8><== NOT EXECUTED
            rtems_rfs_block_map_close (fs, &map);                     
            return 0;                                                 
          }                                                           
        }                                                             
                                                                      
        map.bpos.boff += elength;                                     
ffc1c9d4:	81 41 00 1c 	lwz     r10,28(r1)                             
        entry += elength;                                             
ffc1c9d8:	7f de b2 14 	add     r30,r30,r22                            
            rtems_rfs_block_map_close (fs, &map);                     
            return 0;                                                 
          }                                                           
        }                                                             
                                                                      
        map.bpos.boff += elength;                                     
ffc1c9dc:	7d 4a b2 14 	add     r10,r10,r22                            
ffc1c9e0:	91 41 00 1c 	stw     r10,28(r1)                             
                                                                      
      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))
ffc1c9e4:	81 3d 00 08 	lwz     r9,8(r29)                              
ffc1c9e8:	39 49 ff f6 	addi    r10,r9,-10                             
ffc1c9ec:	81 21 00 1c 	lwz     r9,28(r1)                              
ffc1c9f0:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc1c9f4:	41 9c fe 44 	blt+    cr7,ffc1c838 <rtems_rfs_dir_lookup_ino+0x208><== ALWAYS TAKEN
ffc1c9f8:	4b ff fe ac 	b       ffc1c8a4 <rtems_rfs_dir_lookup_ino+0x274><== NOT EXECUTED
        entry += elength;                                             
      }                                                               
                                                                      
      if (rc == 0)                                                    
      {                                                               
        rc = rtems_rfs_block_map_next_block (fs, &map, &block);       
ffc1c9fc:	7f a3 eb 78 	mr      r3,r29                                 
ffc1ca00:	7e 04 83 78 	mr      r4,r16                                 
ffc1ca04:	7e 25 8b 78 	mr      r5,r17                                 
ffc1ca08:	4b ff ea 49 	bl      ffc1b450 <rtems_rfs_block_map_next_block>
        if ((rc > 0) && (rc != ENXIO))                                
ffc1ca0c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1ca10:	40 81 00 84 	ble-    ffc1ca94 <rtems_rfs_dir_lookup_ino+0x464><== NEVER TAKEN
ffc1ca14:	2f 9f 00 06 	cmpwi   cr7,r31,6                              
ffc1ca18:	41 9e 00 40 	beq-    cr7,ffc1ca58 <rtems_rfs_dir_lookup_ino+0x428><== ALWAYS TAKEN
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))       
ffc1ca1c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1ca20:	3c 80 04 00 	lis     r4,1024                                <== NOT EXECUTED
ffc1ca24:	4b ff 78 25 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1ca28:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1ca2c:	41 be 00 68 	beq+    cr7,ffc1ca94 <rtems_rfs_dir_lookup_ino+0x464><== NOT EXECUTED
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc1ca30:	83 dc 00 08 	lwz     r30,8(r28)                             <== NOT EXECUTED
ffc1ca34:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1ca38:	48 00 73 25 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1ca3c:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc1ca40:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc1ca44:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc1ca48:	7d e3 7b 78 	mr      r3,r15                                 <== NOT EXECUTED
ffc1ca4c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1ca50:	48 00 61 21 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1ca54:	48 00 00 40 	b       ffc1ca94 <rtems_rfs_dir_lookup_ino+0x464><== NOT EXECUTED
                    "block map next block failed in ino %" PRIu32 ": %d: %s\n",
                    rtems_rfs_inode_ino (inode), rc, strerror (rc));  
        }                                                             
        if (rc == ENXIO)                                              
          rc = ENOENT;                                                
ffc1ca58:	3b e0 00 02 	li      r31,2                                  
ffc1ca5c:	48 00 00 b8 	b       ffc1cb14 <rtems_rfs_dir_lookup_ino+0x4e4>
ffc1ca60:	7f 7f db 78 	mr      r31,r27                                <== NOT EXECUTED
ffc1ca64:	48 00 00 30 	b       ffc1ca94 <rtems_rfs_dir_lookup_ino+0x464><== 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",
ffc1ca68:	3e a0 ff c3 	lis     r21,-61                                
                                                                      
        ehash  = rtems_rfs_dir_entry_hash (entry);                    
        elength = rtems_rfs_dir_entry_length (entry);                 
        *ino = rtems_rfs_dir_entry_ino (entry);                       
                                                                      
        if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                     
ffc1ca6c:	3a 60 00 00 	li      r19,0                                  
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc1ca70:	3e 40 ff c3 	lis     r18,-61                                
      {                                                               
        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: "                     
ffc1ca74:	3d e0 ff c3 	lis     r15,-61                                
          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: "                     
ffc1ca78:	3d c0 ff c3 	lis     r14,-61                                
    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",
ffc1ca7c:	3a b5 4e a9 	addi    r21,r21,20137                          
       * means the entry is empty.                                    
       */                                                             
                                                                      
      entry = rtems_rfs_buffer_data (&entries);                       
                                                                      
      map.bpos.boff = 0;                                              
ffc1ca80:	3a 80 00 00 	li      r20,0                                  
                                                                      
        ehash  = rtems_rfs_dir_entry_hash (entry);                    
        elength = rtems_rfs_dir_entry_length (entry);                 
        *ino = rtems_rfs_dir_entry_ino (entry);                       
                                                                      
        if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                     
ffc1ca84:	62 73 ff ff 	ori     r19,r19,65535                          
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc1ca88:	3a 52 4f 6d 	addi    r18,r18,20333                          
      {                                                               
        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: "                     
ffc1ca8c:	39 ef 50 12 	addi    r15,r15,20498                          
          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: "                     
ffc1ca90:	39 ce 4f 23 	addi    r14,r14,20259                          
      rtems_rfs_buffer_handle_close (fs, &entries);                   
      rtems_rfs_block_map_close (fs, &map);                           
      return rc;                                                      
    }                                                                 
                                                                      
    while ((rc == 0) && block)                                        
ffc1ca94:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc1ca98:	40 9e 00 7c 	bne-    cr7,ffc1cb14 <rtems_rfs_dir_lookup_ino+0x4e4><== NEVER TAKEN
ffc1ca9c:	81 21 00 64 	lwz     r9,100(r1)                             
ffc1caa0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1caa4:	40 9e fc f8 	bne+    cr7,ffc1c79c <rtems_rfs_dir_lookup_ino+0x16c><== ALWAYS TAKEN
ffc1caa8:	48 00 00 54 	b       ffc1cafc <rtems_rfs_dir_lookup_ino+0x4cc><== NOT EXECUTED
                                                                      
    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",
ffc1caac:	38 60 00 05 	li      r3,5                                   <== NOT EXECUTED
ffc1cab0:	83 fc 00 08 	lwz     r31,8(r28)                             <== NOT EXECUTED
ffc1cab4:	48 00 72 a9 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1cab8:	38 a0 00 05 	li      r5,5                                   <== NOT EXECUTED
ffc1cabc:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc1cac0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1cac4:	38 63 50 5d 	addi    r3,r3,20573                            <== NOT EXECUTED
ffc1cac8:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1cacc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1cad0:	48 00 60 a1 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
      }                                                               
    }                                                                 
                                                                      
    if ((rc == 0) && (block == 0))                                    
    {                                                                 
      rc = EIO;                                                       
ffc1cad4:	3b e0 00 05 	li      r31,5                                  <== NOT EXECUTED
        printf ("rtems-rfs: dir-lookup-ino: block is 0 in ino %" PRIu32 ": %d: %s\n",
                rtems_rfs_inode_ino (inode), rc, strerror (rc));      
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &entries);                       
ffc1cad8:	38 81 00 58 	addi    r4,r1,88                               
ffc1cadc:	7f a3 eb 78 	mr      r3,r29                                 
ffc1cae0:	4b ff fb 15 	bl      ffc1c5f4 <rtems_rfs_buffer_handle_close>
  rtems_rfs_block_map_close (fs, &map);                               
ffc1cae4:	7f a3 eb 78 	mr      r3,r29                                 
ffc1cae8:	38 81 00 08 	addi    r4,r1,8                                
ffc1caec:	4b ff e5 89 	bl      ffc1b074 <rtems_rfs_block_map_close>   
ffc1caf0:	48 00 00 30 	b       ffc1cb20 <rtems_rfs_dir_lookup_ino+0x4f0>
            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;                                                
ffc1caf4:	3b 60 00 05 	li      r27,5                                  <== NOT EXECUTED
ffc1caf8:	4b ff ff 68 	b       ffc1ca60 <rtems_rfs_dir_lookup_ino+0x430><== NOT EXECUTED
    }                                                                 
                                                                      
    if ((rc == 0) && (block == 0))                                    
    {                                                                 
      rc = EIO;                                                       
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))           
ffc1cafc:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1cb00:	3c 80 04 00 	lis     r4,1024                                <== NOT EXECUTED
ffc1cb04:	4b ff 77 45 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1cb08:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1cb0c:	40 be ff a0 	bne-    cr7,ffc1caac <rtems_rfs_dir_lookup_ino+0x47c><== NOT EXECUTED
ffc1cb10:	4b ff ff c4 	b       ffc1cad4 <rtems_rfs_dir_lookup_ino+0x4a4><== NOT EXECUTED
      rtems_rfs_buffer_handle_close (fs, &entries);                   
      rtems_rfs_block_map_close (fs, &map);                           
      return rc;                                                      
    }                                                                 
                                                                      
    while ((rc == 0) && block)                                        
ffc1cb14:	7f fb fb 78 	mr      r27,r31                                
            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;                                                
ffc1cb18:	7f 7f db 78 	mr      r31,r27                                
ffc1cb1c:	4b ff ff bc 	b       ffc1cad8 <rtems_rfs_dir_lookup_ino+0x4a8>
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &entries);                       
  rtems_rfs_block_map_close (fs, &map);                               
  return rc;                                                          
}                                                                     
ffc1cb20:	39 61 00 b8 	addi    r11,r1,184                             
ffc1cb24:	7f e3 fb 78 	mr      r3,r31                                 
ffc1cb28:	4b fe 4a 00 	b       ffc01528 <_restgpr_14_x>               
                                                                      

ffc1d2bc <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) {
ffc1d2bc:	94 21 ff 58 	stwu    r1,-168(r1)                            
ffc1d2c0:	7c 08 02 a6 	mflr    r0                                     
ffc1d2c4:	be 21 00 6c 	stmw    r17,108(r1)                            
ffc1d2c8:	7c 7b 1b 78 	mr      r27,r3                                 
ffc1d2cc:	7c 96 23 78 	mr      r22,r4                                 
  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))                     
ffc1d2d0:	38 60 00 00 	li      r3,0                                   
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)                   
{                                                                     
ffc1d2d4:	90 01 00 ac 	stw     r0,172(r1)                             
  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))                     
ffc1d2d8:	3c 80 80 00 	lis     r4,-32768                              
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)                   
{                                                                     
ffc1d2dc:	7c df 33 78 	mr      r31,r6                                 
ffc1d2e0:	7c be 2b 78 	mr      r30,r5                                 
ffc1d2e4:	7c fa 3b 78 	mr      r26,r7                                 
ffc1d2e8:	7d 19 43 78 	mr      r25,r8                                 
  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))                     
ffc1d2ec:	4b ff 6f 5d 	bl      ffc14248 <rtems_rfs_trace>             
ffc1d2f0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1d2f4:	41 be 00 20 	beq+    cr7,ffc1d314 <rtems_rfs_dir_read+0x58> <== ALWAYS TAKEN
    printf ("rtems-rfs: dir-read: dir=%" PRId32 " offset=%" PRId64 "\n",
ffc1d2f8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1d2fc:	80 96 00 08 	lwz     r4,8(r22)                              <== NOT EXECUTED
ffc1d300:	38 63 53 56 	addi    r3,r3,21334                            <== NOT EXECUTED
ffc1d304:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc1d308:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc1d30c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1d310:	48 00 58 61 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rtems_rfs_inode_ino (dir), offset);                       
                                                                      
  *length = 0;                                                        
ffc1d314:	39 20 00 00 	li      r9,0                                   
ffc1d318:	91 39 00 00 	stw     r9,0(r25)                              
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
ffc1d31c:	7f 63 db 78 	mr      r3,r27                                 
ffc1d320:	7e c4 b3 78 	mr      r4,r22                                 
ffc1d324:	38 a1 00 08 	addi    r5,r1,8                                
ffc1d328:	4b ff db 95 	bl      ffc1aebc <rtems_rfs_block_map_open>    
  if (rc > 0)                                                         
ffc1d32c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc1d330:	41 a1 03 00 	bgt+    ffc1d630 <rtems_rfs_dir_read+0x374>    <== NEVER TAKEN
    return rc;                                                        
                                                                      
  if (((rtems_rfs_fs_block_size (fs) -                                
        (offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
ffc1d334:	83 bb 00 08 	lwz     r29,8(r27)                             
ffc1d338:	3b 80 00 00 	li      r28,0                                  
ffc1d33c:	7f c3 f3 78 	mr      r3,r30                                 
ffc1d340:	7f e4 fb 78 	mr      r4,r31                                 
ffc1d344:	7f 85 e3 78 	mr      r5,r28                                 
ffc1d348:	7f a6 eb 78 	mr      r6,r29                                 
ffc1d34c:	48 01 2d cd 	bl      ffc30118 <__moddi3>                    
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  if (((rtems_rfs_fs_block_size (fs) -                                
ffc1d350:	7d 64 e8 10 	subfc   r11,r4,r29                             
ffc1d354:	7d 43 e1 10 	subfe   r10,r3,r28                             
ffc1d358:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1d35c:	41 9d 00 44 	bgt-    cr7,ffc1d3a0 <rtems_rfs_dir_read+0xe4> <== NEVER TAKEN
ffc1d360:	40 9e 00 0c 	bne-    cr7,ffc1d36c <rtems_rfs_dir_read+0xb0> <== NEVER TAKEN
ffc1d364:	2b 8b 00 0a 	cmplwi  cr7,r11,10                             
ffc1d368:	41 9d 00 38 	bgt-    cr7,ffc1d3a0 <rtems_rfs_dir_read+0xe4> <== ALWAYS TAKEN
        (offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
    offset = (((offset / rtems_rfs_fs_block_size (fs)) + 1) *         
ffc1d36c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1d370:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1d374:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc1d378:	7f a6 eb 78 	mr      r6,r29                                 <== NOT EXECUTED
ffc1d37c:	48 01 29 79 	bl      ffc2fcf4 <__divdi3>                    <== NOT EXECUTED
ffc1d380:	31 64 00 01 	addic   r11,r4,1                               <== NOT EXECUTED
ffc1d384:	7d 43 01 94 	addze   r10,r3                                 <== NOT EXECUTED
ffc1d388:	7d 4a e9 d6 	mullw   r10,r10,r29                            <== NOT EXECUTED
ffc1d38c:	7d 3c 59 d6 	mullw   r9,r28,r11                             <== NOT EXECUTED
ffc1d390:	7f cb e8 16 	mulhwu  r30,r11,r29                            <== NOT EXECUTED
ffc1d394:	7f eb e9 d6 	mullw   r31,r11,r29                            <== NOT EXECUTED
ffc1d398:	7d 2a 4a 14 	add     r9,r10,r9                              <== NOT EXECUTED
ffc1d39c:	7f c9 f2 14 	add     r30,r9,r30                             <== NOT EXECUTED
              rtems_rfs_fs_block_size (fs));                          
                                                                      
  rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);           
ffc1d3a0:	3b 01 00 64 	addi    r24,r1,100                             
ffc1d3a4:	3b 81 00 08 	addi    r28,r1,8                               
ffc1d3a8:	7f 63 db 78 	mr      r3,r27                                 
ffc1d3ac:	7f 84 e3 78 	mr      r4,r28                                 
ffc1d3b0:	7f c5 f3 78 	mr      r5,r30                                 
ffc1d3b4:	7f e6 fb 78 	mr      r6,r31                                 
ffc1d3b8:	7f 07 c3 78 	mr      r7,r24                                 
ffc1d3bc:	4b ff e0 05 	bl      ffc1b3c0 <rtems_rfs_block_map_seek>    
  if (rc > 0)                                                         
ffc1d3c0:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc1d3c4:	40 81 00 14 	ble-    ffc1d3d8 <rtems_rfs_dir_read+0x11c>    <== ALWAYS TAKEN
  {                                                                   
    if (rc == ENXIO)                                                  
ffc1d3c8:	2f 9d 00 06 	cmpwi   cr7,r29,6                              <== NOT EXECUTED
ffc1d3cc:	40 be 02 58 	bne+    cr7,ffc1d624 <rtems_rfs_dir_read+0x368><== NOT EXECUTED
      rc = ENOENT;                                                    
ffc1d3d0:	3b a0 00 02 	li      r29,2                                  <== NOT EXECUTED
ffc1d3d4:	48 00 02 50 	b       ffc1d624 <rtems_rfs_dir_read+0x368>    <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc1d3d8:	39 20 00 00 	li      r9,0                                   
ffc1d3dc:	99 21 00 58 	stb     r9,88(r1)                              
  handle->bnum  = 0;                                                  
ffc1d3e0:	39 20 00 00 	li      r9,0                                   
    entry += map.bpos.boff;                                           
                                                                      
    elength = rtems_rfs_dir_entry_length (entry);                     
    eino    = rtems_rfs_dir_entry_ino (entry);                        
                                                                      
    if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)                         
ffc1d3e4:	3a 80 00 00 	li      r20,0                                  
    }                                                                 
                                                                      
    *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",
ffc1d3e8:	3e 60 ff c3 	lis     r19,-61                                
ffc1d3ec:	91 21 00 5c 	stw     r9,92(r1)                              
    entry += map.bpos.boff;                                           
                                                                      
    elength = rtems_rfs_dir_entry_length (entry);                     
    eino    = rtems_rfs_dir_entry_ino (entry);                        
                                                                      
    if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)                         
ffc1d3f0:	62 94 ff ff 	ori     r20,r20,65535                          
  handle->buffer = NULL;                                              
ffc1d3f4:	91 21 00 60 	stw     r9,96(r1)                              
    }                                                                 
                                                                      
    *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",
ffc1d3f8:	3a 73 53 f9 	addi    r19,r19,21497                          
              offset, *length);                                       
                                                                      
    rc = rtems_rfs_block_map_next_block (fs, &map, &block);           
ffc1d3fc:	7f 12 c3 78 	mr      r18,r24                                
ffc1d400:	7f 91 e3 78 	mr      r17,r28                                
    uint8_t*      entry;                                              
    rtems_rfs_ino eino;                                               
    int           elength;                                            
    int           remaining;                                          
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
ffc1d404:	80 a1 00 64 	lwz     r5,100(r1)                             
ffc1d408:	7f 63 db 78 	mr      r3,r27                                 
ffc1d40c:	38 81 00 58 	addi    r4,r1,88                               
ffc1d410:	38 c0 00 01 	li      r6,1                                   
ffc1d414:	4b ff ea bd 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
    if (rc > 0)                                                       
ffc1d418:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc1d41c:	40 a1 00 08 	ble+    ffc1d424 <rtems_rfs_dir_read+0x168>    <== ALWAYS TAKEN
ffc1d420:	48 00 01 f8 	b       ffc1d618 <rtems_rfs_dir_read+0x35c>    <== NOT EXECUTED
      rtems_rfs_buffer_handle_close (fs, &buffer);                    
      rtems_rfs_block_map_close (fs, &map);                           
      return rc;                                                      
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
ffc1d424:	81 21 00 60 	lwz     r9,96(r1)                              
    entry += map.bpos.boff;                                           
ffc1d428:	82 e1 00 1c 	lwz     r23,28(r1)                             
      rtems_rfs_buffer_handle_close (fs, &buffer);                    
      rtems_rfs_block_map_close (fs, &map);                           
      return rc;                                                      
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
ffc1d42c:	81 29 00 1c 	lwz     r9,28(r9)                              
    entry += map.bpos.boff;                                           
ffc1d430:	7f 89 ba 14 	add     r28,r9,r23                             
                                                                      
    elength = rtems_rfs_dir_entry_length (entry);                     
    eino    = rtems_rfs_dir_entry_ino (entry);                        
ffc1d434:	7e a9 b8 ae 	lbzx    r21,r9,r23                             
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
    entry += map.bpos.boff;                                           
                                                                      
    elength = rtems_rfs_dir_entry_length (entry);                     
ffc1d438:	8b 1c 00 08 	lbz     r24,8(r28)                             
ffc1d43c:	89 5c 00 09 	lbz     r10,9(r28)                             
ffc1d440:	57 18 40 2e 	rlwinm  r24,r24,8,0,23                         
    eino    = rtems_rfs_dir_entry_ino (entry);                        
ffc1d444:	89 1c 00 01 	lbz     r8,1(r28)                              
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
    entry += map.bpos.boff;                                           
                                                                      
    elength = rtems_rfs_dir_entry_length (entry);                     
ffc1d448:	7f 18 53 78 	or      r24,r24,r10                            
    eino    = rtems_rfs_dir_entry_ino (entry);                        
ffc1d44c:	89 3c 00 02 	lbz     r9,2(r28)                              
                                                                      
    if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)                         
ffc1d450:	7f 98 a0 00 	cmpw    cr7,r24,r20                            
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
    entry += map.bpos.boff;                                           
                                                                      
    elength = rtems_rfs_dir_entry_length (entry);                     
    eino    = rtems_rfs_dir_entry_ino (entry);                        
ffc1d454:	89 5c 00 03 	lbz     r10,3(r28)                             
                                                                      
    if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)                         
ffc1d458:	41 be 01 54 	beq+    cr7,ffc1d5ac <rtems_rfs_dir_read+0x2f0>
    {                                                                 
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
ffc1d45c:	2f 98 00 0a 	cmpwi   cr7,r24,10                             
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
    entry += map.bpos.boff;                                           
                                                                      
    elength = rtems_rfs_dir_entry_length (entry);                     
    eino    = rtems_rfs_dir_entry_ino (entry);                        
ffc1d460:	56 b5 c0 0e 	rlwinm  r21,r21,24,0,7                         
ffc1d464:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc1d468:	7e b5 43 78 	or      r21,r21,r8                             
ffc1d46c:	7e b5 53 78 	or      r21,r21,r10                            
ffc1d470:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc1d474:	7e b5 4b 78 	or      r21,r21,r9                             
                                                                      
    if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)                         
    {                                                                 
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
ffc1d478:	40 9d 00 24 	ble-    cr7,ffc1d49c <rtems_rfs_dir_read+0x1e0><== NEVER TAKEN
ffc1d47c:	81 3b 00 1c 	lwz     r9,28(r27)                             
ffc1d480:	7f 98 48 40 	cmplw   cr7,r24,r9                             
ffc1d484:	40 9c 00 18 	bge-    cr7,ffc1d49c <rtems_rfs_dir_read+0x1e0><== NEVER TAKEN
ffc1d488:	2f 95 00 00 	cmpwi   cr7,r21,0                              
ffc1d48c:	41 9e 00 10 	beq-    cr7,ffc1d49c <rtems_rfs_dir_read+0x1e0><== NEVER TAKEN
ffc1d490:	81 3b 00 14 	lwz     r9,20(r27)                             
ffc1d494:	7f 95 48 40 	cmplw   cr7,r21,r9                             
ffc1d498:	40 9d 00 40 	ble-    cr7,ffc1d4d8 <rtems_rfs_dir_read+0x21c><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))               
ffc1d49c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1d4a0:	3c 80 80 00 	lis     r4,-32768                              <== NOT EXECUTED
ffc1d4a4:	4b ff 6d a5 	bl      ffc14248 <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;                                                     
ffc1d4a8:	3b a0 00 05 	li      r29,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))               
ffc1d4ac:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1d4b0:	41 be 01 68 	beq+    cr7,ffc1d618 <rtems_rfs_dir_read+0x35c><== NOT EXECUTED
          printf ("rtems-rfs: dir-read: "                             
ffc1d4b4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1d4b8:	80 96 00 08 	lwz     r4,8(r22)                              <== NOT EXECUTED
ffc1d4bc:	80 e1 00 1c 	lwz     r7,28(r1)                              <== NOT EXECUTED
ffc1d4c0:	7f 05 c3 78 	mr      r5,r24                                 <== NOT EXECUTED
ffc1d4c4:	7e a6 ab 78 	mr      r6,r21                                 <== NOT EXECUTED
ffc1d4c8:	38 63 53 80 	addi    r3,r3,21376                            <== NOT EXECUTED
ffc1d4cc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1d4d0:	48 00 56 a1 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1d4d4:	48 00 01 44 	b       ffc1d618 <rtems_rfs_dir_read+0x35c>    <== NOT EXECUTED
                  rtems_rfs_inode_ino (dir), elength, eino, map.bpos.boff);
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      memset (dirent, 0, sizeof (struct dirent));                     
ffc1d4d8:	7f 43 d3 78 	mr      r3,r26                                 
ffc1d4dc:	38 80 00 00 	li      r4,0                                   
ffc1d4e0:	38 a0 01 18 	li      r5,280                                 
ffc1d4e4:	48 00 54 31 	bl      ffc22914 <memset>                      
      dirent->d_off = offset;                                         
      dirent->d_reclen = sizeof (struct dirent);                      
ffc1d4e8:	39 20 01 18 	li      r9,280                                 
ffc1d4ec:	b1 3a 00 10 	sth     r9,16(r26)                             
                                                                      
      *length += elength;                                             
ffc1d4f0:	81 39 00 00 	lwz     r9,0(r25)                              
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      memset (dirent, 0, sizeof (struct dirent));                     
      dirent->d_off = offset;                                         
ffc1d4f4:	93 da 00 08 	stw     r30,8(r26)                             
      dirent->d_reclen = sizeof (struct dirent);                      
                                                                      
      *length += elength;                                             
ffc1d4f8:	7d 38 4a 14 	add     r9,r24,r9                              
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      memset (dirent, 0, sizeof (struct dirent));                     
      dirent->d_off = offset;                                         
ffc1d4fc:	93 fa 00 0c 	stw     r31,12(r26)                            
      dirent->d_reclen = sizeof (struct dirent);                      
                                                                      
      *length += elength;                                             
ffc1d500:	91 39 00 00 	stw     r9,0(r25)                              
                                                                      
      remaining = rtems_rfs_fs_block_size (fs) - (map.bpos.boff + elength);
ffc1d504:	81 5b 00 08 	lwz     r10,8(r27)                             
ffc1d508:	7e f7 50 50 	subf    r23,r23,r10                            
ffc1d50c:	7e f8 b8 50 	subf    r23,r24,r23                            
                                                                      
      if (remaining <= RTEMS_RFS_DIR_ENTRY_SIZE)                      
ffc1d510:	2f 97 00 0a 	cmpwi   cr7,r23,10                             
ffc1d514:	41 9d 00 0c 	bgt-    cr7,ffc1d520 <rtems_rfs_dir_read+0x264><== ALWAYS TAKEN
        *length += remaining;                                         
ffc1d518:	7d 37 4a 14 	add     r9,r23,r9                              <== NOT EXECUTED
ffc1d51c:	91 39 00 00 	stw     r9,0(r25)                              <== NOT EXECUTED
                                                                      
      elength -= RTEMS_RFS_DIR_ENTRY_SIZE;                            
ffc1d520:	3b 18 ff f6 	addi    r24,r24,-10                            
ffc1d524:	2f 98 00 ff 	cmpwi   cr7,r24,255                            
ffc1d528:	40 9d 00 08 	ble-    cr7,ffc1d530 <rtems_rfs_dir_read+0x274><== ALWAYS TAKEN
ffc1d52c:	3b 00 00 ff 	li      r24,255                                <== NOT EXECUTED
      if (elength > NAME_MAX)                                         
        elength = NAME_MAX;                                           
                                                                      
      memcpy (dirent->d_name, entry + RTEMS_RFS_DIR_ENTRY_SIZE, elength);
ffc1d530:	3b fa 00 14 	addi    r31,r26,20                             
ffc1d534:	38 9c 00 0a 	addi    r4,r28,10                              
ffc1d538:	7f 05 c3 78 	mr      r5,r24                                 
ffc1d53c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d540:	48 00 51 a5 	bl      ffc226e4 <memcpy>                      
                                                                      
      dirent->d_ino = rtems_rfs_dir_entry_ino (entry);                
ffc1d544:	89 5c 00 00 	lbz     r10,0(r28)                             
ffc1d548:	89 3c 00 01 	lbz     r9,1(r28)                              
      dirent->d_namlen = elength;                                     
                                                                      
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                 
ffc1d54c:	38 60 00 00 	li      r3,0                                   
      if (elength > NAME_MAX)                                         
        elength = NAME_MAX;                                           
                                                                      
      memcpy (dirent->d_name, entry + RTEMS_RFS_DIR_ENTRY_SIZE, elength);
                                                                      
      dirent->d_ino = rtems_rfs_dir_entry_ino (entry);                
ffc1d550:	55 4a c0 0e 	rlwinm  r10,r10,24,0,7                         
ffc1d554:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc1d558:	7d 49 4b 78 	or      r9,r10,r9                              
ffc1d55c:	89 5c 00 03 	lbz     r10,3(r28)                             
      dirent->d_namlen = elength;                                     
                                                                      
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                 
ffc1d560:	3c 80 80 00 	lis     r4,-32768                              
      if (elength > NAME_MAX)                                         
        elength = NAME_MAX;                                           
                                                                      
      memcpy (dirent->d_name, entry + RTEMS_RFS_DIR_ENTRY_SIZE, elength);
                                                                      
      dirent->d_ino = rtems_rfs_dir_entry_ino (entry);                
ffc1d564:	7d 29 53 78 	or      r9,r9,r10                              
ffc1d568:	89 5c 00 02 	lbz     r10,2(r28)                             
      dirent->d_namlen = elength;                                     
ffc1d56c:	b3 1a 00 12 	sth     r24,18(r26)                            
      if (elength > NAME_MAX)                                         
        elength = NAME_MAX;                                           
                                                                      
      memcpy (dirent->d_name, entry + RTEMS_RFS_DIR_ENTRY_SIZE, elength);
                                                                      
      dirent->d_ino = rtems_rfs_dir_entry_ino (entry);                
ffc1d570:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc1d574:	7d 29 53 78 	or      r9,r9,r10                              
ffc1d578:	91 3a 00 00 	stw     r9,0(r26)                              
      dirent->d_namlen = elength;                                     
                                                                      
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                 
ffc1d57c:	4b ff 6c cd 	bl      ffc14248 <rtems_rfs_trace>             
ffc1d580:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1d584:	41 be 00 94 	beq+    cr7,ffc1d618 <rtems_rfs_dir_read+0x35c><== ALWAYS TAKEN
        printf ("rtems-rfs: dir-read: found off:%" PRIooff_t " ino:%ld name=%s\n",
ffc1d588:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1d58c:	80 ba 00 08 	lwz     r5,8(r26)                              <== NOT EXECUTED
ffc1d590:	80 da 00 0c 	lwz     r6,12(r26)                             <== NOT EXECUTED
ffc1d594:	7f e8 fb 78 	mr      r8,r31                                 <== NOT EXECUTED
ffc1d598:	80 fa 00 00 	lwz     r7,0(r26)                              <== NOT EXECUTED
ffc1d59c:	38 63 53 c4 	addi    r3,r3,21444                            <== NOT EXECUTED
ffc1d5a0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1d5a4:	48 00 55 cd 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1d5a8:	48 00 00 70 	b       ffc1d618 <rtems_rfs_dir_read+0x35c>    <== NOT EXECUTED
                dirent->d_off, dirent->d_ino, dirent->d_name);        
      break;                                                          
    }                                                                 
                                                                      
    *length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;          
ffc1d5ac:	81 3b 00 08 	lwz     r9,8(r27)                              
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                   
ffc1d5b0:	38 60 00 00 	li      r3,0                                   
ffc1d5b4:	3c 80 80 00 	lis     r4,-32768                              
        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;          
ffc1d5b8:	7e f7 48 50 	subf    r23,r23,r9                             
ffc1d5bc:	81 39 00 00 	lwz     r9,0(r25)                              
ffc1d5c0:	7d 29 ba 14 	add     r9,r9,r23                              
ffc1d5c4:	91 39 00 00 	stw     r9,0(r25)                              
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                   
ffc1d5c8:	4b ff 6c 81 	bl      ffc14248 <rtems_rfs_trace>             
ffc1d5cc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1d5d0:	41 be 00 1c 	beq+    cr7,ffc1d5ec <rtems_rfs_dir_read+0x330><== ALWAYS TAKEN
      printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
ffc1d5d4:	80 f9 00 00 	lwz     r7,0(r25)                              <== NOT EXECUTED
ffc1d5d8:	7e 63 9b 78 	mr      r3,r19                                 <== NOT EXECUTED
ffc1d5dc:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc1d5e0:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc1d5e4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1d5e8:	48 00 55 89 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
              offset, *length);                                       
                                                                      
    rc = rtems_rfs_block_map_next_block (fs, &map, &block);           
ffc1d5ec:	7f 63 db 78 	mr      r3,r27                                 
ffc1d5f0:	7e 24 8b 78 	mr      r4,r17                                 
ffc1d5f4:	7e 45 93 78 	mr      r5,r18                                 
ffc1d5f8:	4b ff de 59 	bl      ffc1b450 <rtems_rfs_block_map_next_block>
    if (rc == ENXIO)                                                  
ffc1d5fc:	2f 83 00 06 	cmpwi   cr7,r3,6                               
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                   
      printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
              offset, *length);                                       
                                                                      
    rc = rtems_rfs_block_map_next_block (fs, &map, &block);           
ffc1d600:	7c 7d 1b 78 	mr      r29,r3                                 
    if (rc == ENXIO)                                                  
ffc1d604:	41 9e 00 10 	beq-    cr7,ffc1d614 <rtems_rfs_dir_read+0x358><== ALWAYS TAKEN
                                                                      
  /*                                                                  
   * Look for an empty entry and if this is the last block that is the end of
   * the directory.                                                   
   */                                                                 
  while (rc == 0)                                                     
ffc1d608:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1d60c:	41 9e fd f8 	beq+    cr7,ffc1d404 <rtems_rfs_dir_read+0x148><== NOT EXECUTED
ffc1d610:	48 00 00 08 	b       ffc1d618 <rtems_rfs_dir_read+0x35c>    <== 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;                                                    
ffc1d614:	3b a0 00 02 	li      r29,2                                  
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
ffc1d618:	7f 63 db 78 	mr      r3,r27                                 
ffc1d61c:	38 81 00 58 	addi    r4,r1,88                               
ffc1d620:	4b ff ef d5 	bl      ffc1c5f4 <rtems_rfs_buffer_handle_close>
  rtems_rfs_block_map_close (fs, &map);                               
ffc1d624:	7f 63 db 78 	mr      r3,r27                                 
ffc1d628:	38 81 00 08 	addi    r4,r1,8                                
ffc1d62c:	4b ff da 49 	bl      ffc1b074 <rtems_rfs_block_map_close>   
  return rc;                                                          
}                                                                     
ffc1d630:	39 61 00 a8 	addi    r11,r1,168                             
ffc1d634:	7f a3 eb 78 	mr      r3,r29                                 
ffc1d638:	4b fe 3e fc 	b       ffc01534 <_restgpr_17_x>               
                                                                      

ffc1d86c <rtems_rfs_file_close>: } int rtems_rfs_file_close (rtems_rfs_file_system* fs, rtems_rfs_file_handle* handle) {
ffc1d86c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1d870:	7c 08 02 a6 	mflr    r0                                     
ffc1d874:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc1d878:	7c 7d 1b 78 	mr      r29,r3                                 
ffc1d87c:	7c 9f 23 78 	mr      r31,r4                                 
  int rrc;                                                            
  int rc;                                                             
                                                                      
  rrc = 0;                                                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))                   
ffc1d880:	38 60 00 10 	li      r3,16                                  
}                                                                     
                                                                      
int                                                                   
rtems_rfs_file_close (rtems_rfs_file_system* fs,                      
                      rtems_rfs_file_handle* handle)                  
{                                                                     
ffc1d884:	90 01 00 24 	stw     r0,36(r1)                              
  int rrc;                                                            
  int rc;                                                             
                                                                      
  rrc = 0;                                                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))                   
ffc1d888:	38 80 00 00 	li      r4,0                                   
ffc1d88c:	4b ff 69 bd 	bl      ffc14248 <rtems_rfs_trace>             
ffc1d890:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1d894:	41 be 00 1c 	beq+    cr7,ffc1d8b0 <rtems_rfs_file_close+0x44><== ALWAYS TAKEN
    printf ("rtems-rfs: file-close: entry: ino=%" PRId32 "\n",        
            handle->shared->inode.ino);                               
ffc1d898:	81 3f 00 1c 	lwz     r9,28(r31)                             <== NOT EXECUTED
  int rc;                                                             
                                                                      
  rrc = 0;                                                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))                   
    printf ("rtems-rfs: file-close: entry: ino=%" PRId32 "\n",        
ffc1d89c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1d8a0:	38 63 54 92 	addi    r3,r3,21650                            <== NOT EXECUTED
ffc1d8a4:	80 89 00 14 	lwz     r4,20(r9)                              <== NOT EXECUTED
ffc1d8a8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1d8ac:	48 00 52 c5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            handle->shared->inode.ino);                               
                                                                      
  if (handle->shared->references > 0)                                 
ffc1d8b0:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc1d8b4:	81 24 00 08 	lwz     r9,8(r4)                               
ffc1d8b8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1d8bc:	40 9d 00 0c 	ble-    cr7,ffc1d8c8 <rtems_rfs_file_close+0x5c><== NEVER TAKEN
    handle->shared->references--;                                     
ffc1d8c0:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1d8c4:	91 24 00 08 	stw     r9,8(r4)                               
                                                                      
  if (handle->shared->references == 0)                                
ffc1d8c8:	81 24 00 08 	lwz     r9,8(r4)                               
                      rtems_rfs_file_handle* handle)                  
{                                                                     
  int rrc;                                                            
  int rc;                                                             
                                                                      
  rrc = 0;                                                            
ffc1d8cc:	3b c0 00 00 	li      r30,0                                  
            handle->shared->inode.ino);                               
                                                                      
  if (handle->shared->references > 0)                                 
    handle->shared->references--;                                     
                                                                      
  if (handle->shared->references == 0)                                
ffc1d8d0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1d8d4:	40 9e 01 e8 	bne-    cr7,ffc1dabc <rtems_rfs_file_close+0x250><== NEVER TAKEN
  {                                                                   
    if (!rtems_rfs_inode_is_loaded (&handle->shared->inode))          
ffc1d8d8:	81 24 00 18 	lwz     r9,24(r4)                              
ffc1d8dc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1d8e0:	40 be 00 18 	bne+    cr7,ffc1d8f8 <rtems_rfs_file_close+0x8c><== NEVER TAKEN
      rrc = rtems_rfs_inode_load (fs, &handle->shared->inode);        
ffc1d8e4:	7f a3 eb 78 	mr      r3,r29                                 
ffc1d8e8:	38 84 00 0c 	addi    r4,r4,12                               
ffc1d8ec:	4b ff 4e 41 	bl      ffc1272c <rtems_rfs_inode_load>        
                                                                      
    if (rrc == 0)                                                     
ffc1d8f0:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1d8f4:	40 a2 00 f0 	bne+    ffc1d9e4 <rtems_rfs_file_close+0x178>  <== NEVER TAKEN
    {                                                                 
      /*                                                              
       * @todo This could be clever and only update if different.     
       */                                                             
      rtems_rfs_inode_set_atime (&handle->shared->inode,              
ffc1d8f8:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc1d8fc:	81 49 00 8c 	lwz     r10,140(r9)                            
 */                                                                   
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);                  
ffc1d900:	81 09 00 18 	lwz     r8,24(r9)                              
ffc1d904:	55 47 46 3e 	rlwinm  r7,r10,8,24,31                         
ffc1d908:	98 e8 00 10 	stb     r7,16(r8)                              
ffc1d90c:	55 47 84 3e 	rlwinm  r7,r10,16,16,31                        
ffc1d910:	81 09 00 18 	lwz     r8,24(r9)                              
ffc1d914:	98 e8 00 11 	stb     r7,17(r8)                              
ffc1d918:	55 47 c2 3e 	rlwinm  r7,r10,24,8,31                         
ffc1d91c:	81 09 00 18 	lwz     r8,24(r9)                              
ffc1d920:	98 e8 00 12 	stb     r7,18(r8)                              
ffc1d924:	81 09 00 18 	lwz     r8,24(r9)                              
ffc1d928:	99 48 00 13 	stb     r10,19(r8)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1d92c:	39 00 00 01 	li      r8,1                                   
ffc1d930:	99 09 00 1c 	stb     r8,28(r9)                              
                                 handle->shared->atime);              
      rtems_rfs_inode_set_mtime (&handle->shared->inode,              
ffc1d934:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc1d938:	81 49 00 90 	lwz     r10,144(r9)                            
 */                                                                   
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);                  
ffc1d93c:	80 e9 00 18 	lwz     r7,24(r9)                              
ffc1d940:	55 46 46 3e 	rlwinm  r6,r10,8,24,31                         
ffc1d944:	98 c7 00 14 	stb     r6,20(r7)                              
ffc1d948:	55 46 84 3e 	rlwinm  r6,r10,16,16,31                        
ffc1d94c:	80 e9 00 18 	lwz     r7,24(r9)                              
ffc1d950:	98 c7 00 15 	stb     r6,21(r7)                              
ffc1d954:	55 46 c2 3e 	rlwinm  r6,r10,24,8,31                         
ffc1d958:	80 e9 00 18 	lwz     r7,24(r9)                              
ffc1d95c:	98 c7 00 16 	stb     r6,22(r7)                              
ffc1d960:	80 e9 00 18 	lwz     r7,24(r9)                              
ffc1d964:	99 47 00 17 	stb     r10,23(r7)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1d968:	99 09 00 1c 	stb     r8,28(r9)                              
                                 handle->shared->mtime);              
      rtems_rfs_inode_set_ctime (&handle->shared->inode,              
ffc1d96c:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc1d970:	81 49 00 94 	lwz     r10,148(r9)                            
 */                                                                   
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);                  
ffc1d974:	80 e9 00 18 	lwz     r7,24(r9)                              
ffc1d978:	55 46 46 3e 	rlwinm  r6,r10,8,24,31                         
ffc1d97c:	98 c7 00 18 	stb     r6,24(r7)                              
ffc1d980:	55 46 84 3e 	rlwinm  r6,r10,16,16,31                        
ffc1d984:	80 e9 00 18 	lwz     r7,24(r9)                              
ffc1d988:	98 c7 00 19 	stb     r6,25(r7)                              
ffc1d98c:	55 46 c2 3e 	rlwinm  r6,r10,24,8,31                         
ffc1d990:	80 e9 00 18 	lwz     r7,24(r9)                              
ffc1d994:	98 c7 00 1a 	stb     r6,26(r7)                              
ffc1d998:	80 e9 00 18 	lwz     r7,24(r9)                              
ffc1d99c:	99 47 00 1b 	stb     r10,27(r7)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1d9a0:	99 09 00 1c 	stb     r8,28(r9)                              
                                 handle->shared->ctime);              
      if (!rtems_rfs_block_size_equal (&handle->shared->size,         
ffc1d9a4:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc1d9a8:	81 49 00 84 	lwz     r10,132(r9)                            
ffc1d9ac:	81 09 00 3c 	lwz     r8,60(r9)                              
ffc1d9b0:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc1d9b4:	40 be 00 18 	bne+    cr7,ffc1d9cc <rtems_rfs_file_close+0x160><== NEVER TAKEN
ffc1d9b8:	80 e9 00 88 	lwz     r7,136(r9)                             
ffc1d9bc:	3b c0 00 00 	li      r30,0                                  
ffc1d9c0:	81 09 00 40 	lwz     r8,64(r9)                              
ffc1d9c4:	7f 87 40 00 	cmpw    cr7,r7,r8                              
ffc1d9c8:	41 9e 00 1c 	beq-    cr7,ffc1d9e4 <rtems_rfs_file_close+0x178><== 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);                       
ffc1d9cc:	91 49 00 3c 	stw     r10,60(r9)                             <== NOT EXECUTED
  map->dirty = true;                                                  
ffc1d9d0:	3b c0 00 00 	li      r30,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);                       
ffc1d9d4:	81 49 00 88 	lwz     r10,136(r9)                            <== NOT EXECUTED
ffc1d9d8:	91 49 00 40 	stw     r10,64(r9)                             <== NOT EXECUTED
  map->dirty = true;                                                  
ffc1d9dc:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc1d9e0:	99 49 00 34 	stb     r10,52(r9)                             <== 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);        
ffc1d9e4:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc1d9e8:	7f a3 eb 78 	mr      r3,r29                                 
ffc1d9ec:	38 84 00 34 	addi    r4,r4,52                               
ffc1d9f0:	4b ff d6 85 	bl      ffc1b074 <rtems_rfs_block_map_close>   
    if (rc > 0)                                                       
ffc1d9f4:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc1d9f8:	40 81 00 50 	ble-    ffc1da48 <rtems_rfs_file_close+0x1dc>  <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))               
ffc1d9fc:	38 60 00 10 	li      r3,16                                  <== NOT EXECUTED
ffc1da00:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1da04:	4b ff 68 45 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1da08:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1da0c:	41 be 00 30 	beq+    cr7,ffc1da3c <rtems_rfs_file_close+0x1d0><== NOT EXECUTED
        printf ("rtems-rfs: file-close: map close error: ino=%" PRId32 ": %d: %s\n",
                handle->shared->inode.ino, rc, strerror (rc));        
ffc1da10:	81 3f 00 1c 	lwz     r9,28(r31)                             <== 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",
ffc1da14:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc1da18:	83 69 00 14 	lwz     r27,20(r9)                             <== NOT EXECUTED
ffc1da1c:	48 00 63 41 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1da20:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc1da24:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1da28:	38 63 54 b9 	addi    r3,r3,21689                            <== NOT EXECUTED
ffc1da2c:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc1da30:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc1da34:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1da38:	48 00 51 39 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                handle->shared->inode.ino, rc, strerror (rc));        
      if (rrc == 0)                                                   
ffc1da3c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc1da40:	40 9e 00 08 	bne-    cr7,ffc1da48 <rtems_rfs_file_close+0x1dc><== NOT EXECUTED
ffc1da44:	7f 9e e3 78 	mr      r30,r28                                <== NOT EXECUTED
        rrc = rc;                                                     
    }                                                                 
                                                                      
    rc = rtems_rfs_inode_close (fs, &handle->shared->inode);          
ffc1da48:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc1da4c:	7f a3 eb 78 	mr      r3,r29                                 
ffc1da50:	38 84 00 0c 	addi    r4,r4,12                               
ffc1da54:	4b ff 4f 89 	bl      ffc129dc <rtems_rfs_inode_close>       
    if (rc > 0)                                                       
ffc1da58:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc1da5c:	40 81 00 50 	ble-    ffc1daac <rtems_rfs_file_close+0x240>  <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))               
ffc1da60:	38 60 00 10 	li      r3,16                                  <== NOT EXECUTED
ffc1da64:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1da68:	4b ff 67 e1 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1da6c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1da70:	41 be 00 30 	beq+    cr7,ffc1daa0 <rtems_rfs_file_close+0x234><== NOT EXECUTED
        printf ("rtems-rfs: file-close: inode close error: ino=%" PRId32 ": %d: %s\n",
                handle->shared->inode.ino, rc, strerror (rc));        
ffc1da74:	81 3f 00 1c 	lwz     r9,28(r31)                             <== 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",
ffc1da78:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc1da7c:	83 69 00 14 	lwz     r27,20(r9)                             <== NOT EXECUTED
ffc1da80:	48 00 62 dd 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1da84:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc1da88:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1da8c:	38 63 54 f2 	addi    r3,r3,21746                            <== NOT EXECUTED
ffc1da90:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc1da94:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc1da98:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1da9c:	48 00 50 d5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                handle->shared->inode.ino, rc, strerror (rc));        
      if (rrc == 0)                                                   
ffc1daa0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc1daa4:	40 9e 00 08 	bne-    cr7,ffc1daac <rtems_rfs_file_close+0x240><== NOT EXECUTED
ffc1daa8:	7f 9e e3 78 	mr      r30,r28                                <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
ffc1daac:	80 7f 00 1c 	lwz     r3,28(r31)                             
ffc1dab0:	4b ff b1 35 	bl      ffc18be4 <_Chain_Extract>              
        rrc = rc;                                                     
    }                                                                 
                                                                      
    rtems_chain_extract (&handle->shared->link);                      
    free (handle->shared);                                            
ffc1dab4:	80 7f 00 1c 	lwz     r3,28(r31)                             
ffc1dab8:	4b fe b0 5d 	bl      ffc08b14 <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);                       
ffc1dabc:	7f a3 eb 78 	mr      r3,r29                                 
ffc1dac0:	38 9f 00 04 	addi    r4,r31,4                               
ffc1dac4:	4b ff e2 29 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
                                                                      
  rc = rtems_rfs_buffer_handle_close (fs, &handle->buffer);           
  if ((rrc == 0) && (rc > 0))                                         
    rrc = rc;                                                         
                                                                      
  if (rrc > 0)                                                        
ffc1dac8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
  handle->dirty = false;                                              
ffc1dacc:	39 20 00 00 	li      r9,0                                   
ffc1dad0:	99 3f 00 04 	stb     r9,4(r31)                              
  handle->bnum  = 0;                                                  
ffc1dad4:	39 20 00 00 	li      r9,0                                   
ffc1dad8:	91 3f 00 08 	stw     r9,8(r31)                              
  handle->buffer = NULL;                                              
ffc1dadc:	91 3f 00 0c 	stw     r9,12(r31)                             
ffc1dae0:	40 9d 00 38 	ble-    cr7,ffc1db18 <rtems_rfs_file_close+0x2ac><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))                 
ffc1dae4:	38 60 00 10 	li      r3,16                                  <== NOT EXECUTED
ffc1dae8:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1daec:	4b ff 67 5d 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1daf0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1daf4:	41 be 00 24 	beq+    cr7,ffc1db18 <rtems_rfs_file_close+0x2ac><== NOT EXECUTED
      printf ("rtems-rfs: file-close: result: %d: %s\n", rrc, strerror (rrc));
ffc1daf8:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1dafc:	48 00 62 61 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1db00:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc1db04:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1db08:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1db0c:	38 63 55 2d 	addi    r3,r3,21805                            <== NOT EXECUTED
ffc1db10:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1db14:	48 00 50 5d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
  }                                                                   
                                                                      
  free (handle);                                                      
ffc1db18:	7f e3 fb 78 	mr      r3,r31                                 
ffc1db1c:	4b fe af f9 	bl      ffc08b14 <free>                        
                                                                      
  return rrc;                                                         
}                                                                     
ffc1db20:	39 61 00 20 	addi    r11,r1,32                              
ffc1db24:	7f c3 f3 78 	mr      r3,r30                                 
ffc1db28:	4b fe 3a 34 	b       ffc0155c <_restgpr_27_x>               
                                                                      

ffc1e3f4 <rtems_rfs_file_get_shared>: */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First( Chain_Control *the_chain ) { return _Chain_Head( the_chain )->next;
ffc1e3f4:	81 23 00 74 	lwz     r9,116(r3)                             
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 ));            
ffc1e3f8:	38 63 00 78 	addi    r3,r3,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))               
ffc1e3fc:	48 00 00 14 	b       ffc1e410 <rtems_rfs_file_get_shared+0x1c>
  {                                                                   
    rtems_rfs_file_shared* shared;                                    
    shared = (rtems_rfs_file_shared*) node;                           
    if (shared->inode.ino == ino)                                     
ffc1e400:	81 49 00 14 	lwz     r10,20(r9)                             
ffc1e404:	7f 8a 20 00 	cmpw    cr7,r10,r4                             
ffc1e408:	41 9e 00 18 	beq-    cr7,ffc1e420 <rtems_rfs_file_get_shared+0x2c><== ALWAYS TAKEN
      return shared;                                                  
    node = rtems_chain_next (node);                                   
  }                                                                   
  return NULL;                                                        
}                                                                     
ffc1e40c:	81 29 00 00 	lwz     r9,0(r9)                               <== 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))               
ffc1e410:	7f 89 18 00 	cmpw    cr7,r9,r3                              
ffc1e414:	40 9e ff ec 	bne+    cr7,ffc1e400 <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;                                                        
ffc1e418:	38 60 00 00 	li      r3,0                                   
ffc1e41c:	4e 80 00 20 	blr                                            
  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;                           
    if (shared->inode.ino == ino)                                     
ffc1e420:	7d 23 4b 78 	mr      r3,r9                                  
      return shared;                                                  
    node = rtems_chain_next (node);                                   
  }                                                                   
  return NULL;                                                        
}                                                                     
ffc1e424:	4e 80 00 20 	blr                                            
                                                                      

ffc1dd4c <rtems_rfs_file_io_end>: int rtems_rfs_file_io_end (rtems_rfs_file_handle* handle, size_t size, bool read) {
ffc1dd4c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1dd50:	7c 08 02 a6 	mflr    r0                                     
ffc1dd54:	bf 41 00 08 	stmw    r26,8(r1)                              
ffc1dd58:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1dd5c:	7c 9c 23 78 	mr      r28,r4                                 
  bool atime;                                                         
  bool mtime;                                                         
  bool length;                                                        
  int  rc = 0;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1dd60:	38 60 00 20 	li      r3,32                                  
                                                                      
int                                                                   
rtems_rfs_file_io_end (rtems_rfs_file_handle* handle,                 
                       size_t                 size,                   
                       bool                   read)                   
{                                                                     
ffc1dd64:	90 01 00 24 	stw     r0,36(r1)                              
  bool atime;                                                         
  bool mtime;                                                         
  bool length;                                                        
  int  rc = 0;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1dd68:	38 80 00 00 	li      r4,0                                   
                                                                      
int                                                                   
rtems_rfs_file_io_end (rtems_rfs_file_handle* handle,                 
                       size_t                 size,                   
                       bool                   read)                   
{                                                                     
ffc1dd6c:	7c be 2b 78 	mr      r30,r5                                 
  bool atime;                                                         
  bool mtime;                                                         
  bool length;                                                        
  int  rc = 0;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1dd70:	4b ff 64 d9 	bl      ffc14248 <rtems_rfs_trace>             
ffc1dd74:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1dd78:	41 9e 00 34 	beq-    cr7,ffc1ddac <rtems_rfs_file_io_end+0x60><== ALWAYS TAKEN
    printf ("rtems-rfs: file-io:   end: %s size=%zu\n",               
ffc1dd7c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc1dd80:	41 9e 00 10 	beq-    cr7,ffc1dd90 <rtems_rfs_file_io_end+0x44><== NOT EXECUTED
ffc1dd84:	3c 80 ff c3 	lis     r4,-61                                 <== NOT EXECUTED
ffc1dd88:	38 84 41 67 	addi    r4,r4,16743                            <== NOT EXECUTED
ffc1dd8c:	48 00 00 0c 	b       ffc1dd98 <rtems_rfs_file_io_end+0x4c>  <== NOT EXECUTED
ffc1dd90:	3c 80 ff c3 	lis     r4,-61                                 <== NOT EXECUTED
ffc1dd94:	38 84 55 54 	addi    r4,r4,21844                            <== NOT EXECUTED
ffc1dd98:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1dd9c:	38 63 56 0b 	addi    r3,r3,22027                            <== NOT EXECUTED
ffc1dda0:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc1dda4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1dda8:	48 00 4d c9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            read ? "read" : "write", size);                           
                                                                      
  if (rtems_rfs_buffer_handle_has_block (&handle->buffer))            
ffc1ddac:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc1ddb0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1ddb4:	41 9e 00 74 	beq-    cr7,ffc1de28 <rtems_rfs_file_io_end+0xdc><== NEVER TAKEN
  {                                                                   
    if (!read)                                                        
ffc1ddb8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc1ddbc:	40 9e 00 0c 	bne-    cr7,ffc1ddc8 <rtems_rfs_file_io_end+0x7c>
      rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));   
ffc1ddc0:	39 20 00 01 	li      r9,1                                   
ffc1ddc4:	99 3f 00 04 	stb     r9,4(r31)                              
    rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle), 
ffc1ddc8:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc1ddcc:	38 9f 00 04 	addi    r4,r31,4                               
ffc1ddd0:	80 69 00 98 	lwz     r3,152(r9)                             
ffc1ddd4:	4b ff df 19 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
                                          rtems_rfs_file_buffer (handle));
    if (rc > 0)                                                       
ffc1ddd8:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc1dddc:	40 81 00 50 	ble-    ffc1de2c <rtems_rfs_file_io_end+0xe0>  <== ALWAYS TAKEN
    {                                                                 
      printf (                                                        
ffc1dde0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc1dde4:	41 be 00 10 	beq+    cr7,ffc1ddf4 <rtems_rfs_file_io_end+0xa8><== NOT EXECUTED
ffc1dde8:	3f e0 ff c3 	lis     r31,-61                                <== NOT EXECUTED
ffc1ddec:	3b ff 41 67 	addi    r31,r31,16743                          <== NOT EXECUTED
ffc1ddf0:	48 00 00 0c 	b       ffc1ddfc <rtems_rfs_file_io_end+0xb0>  <== NOT EXECUTED
ffc1ddf4:	3f e0 ff c3 	lis     r31,-61                                <== NOT EXECUTED
ffc1ddf8:	3b ff 55 54 	addi    r31,r31,21844                          <== NOT EXECUTED
ffc1ddfc:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc1de00:	48 00 5f 5d 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1de04:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1de08:	7c 67 1b 78 	mr      r7,r3                                  <== NOT EXECUTED
ffc1de0c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1de10:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc1de14:	7f a6 eb 78 	mr      r6,r29                                 <== NOT EXECUTED
ffc1de18:	38 63 56 33 	addi    r3,r3,22067                            <== NOT EXECUTED
ffc1de1c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1de20:	48 00 4d 51 	bl      ffc22b70 <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;                                                      
ffc1de24:	48 00 01 98 	b       ffc1dfbc <rtems_rfs_file_io_end+0x270> <== NOT EXECUTED
                       bool                   read)                   
{                                                                     
  bool atime;                                                         
  bool mtime;                                                         
  bool length;                                                        
  int  rc = 0;                                                        
ffc1de28:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
   * 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;                                          
ffc1de2c:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc1de30:	7f 9c 4a 14 	add     r28,r28,r9                             
                                                                      
  if (handle->bpos.boff >=                                            
      rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))           
ffc1de34:	81 3f 00 1c 	lwz     r9,28(r31)                             
   * 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;                                          
ffc1de38:	93 9f 00 14 	stw     r28,20(r31)                            
                                                                      
  if (handle->bpos.boff >=                                            
      rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))           
ffc1de3c:	81 49 00 98 	lwz     r10,152(r9)                            
ffc1de40:	81 4a 00 08 	lwz     r10,8(r10)                             
   * 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 >=                                            
ffc1de44:	7f 9c 50 40 	cmplw   cr7,r28,r10                            
ffc1de48:	41 9c 00 18 	blt-    cr7,ffc1de60 <rtems_rfs_file_io_end+0x114>
      rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))           
  {                                                                   
    handle->bpos.bno++;                                               
ffc1de4c:	81 1f 00 10 	lwz     r8,16(r31)                             
    handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
ffc1de50:	7f 8a e0 50 	subf    r28,r10,r28                            
ffc1de54:	93 9f 00 14 	stw     r28,20(r31)                            
  handle->bpos.boff += size;                                          
                                                                      
  if (handle->bpos.boff >=                                            
      rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))           
  {                                                                   
    handle->bpos.bno++;                                               
ffc1de58:	39 08 00 01 	addi    r8,r8,1                                
ffc1de5c:	91 1f 00 10 	stw     r8,16(r31)                             
  }                                                                   
                                                                      
  length = false;                                                     
  mtime = false;                                                      
                                                                      
  if (!read &&                                                        
ffc1de60:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    handle->bpos.bno++;                                               
    handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
  }                                                                   
                                                                      
  length = false;                                                     
  mtime = false;                                                      
ffc1de64:	39 40 00 00 	li      r10,0                                  
                                                                      
  if (!read &&                                                        
ffc1de68:	40 9e 00 58 	bne-    cr7,ffc1dec0 <rtems_rfs_file_io_end+0x174>
      rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),      
ffc1de6c:	81 1f 00 10 	lwz     r8,16(r31)                             
ffc1de70:	81 49 00 3c 	lwz     r10,60(r9)                             
  }                                                                   
                                                                      
  length = false;                                                     
  mtime = false;                                                      
                                                                      
  if (!read &&                                                        
ffc1de74:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc1de78:	41 9e 00 0c 	beq-    cr7,ffc1de84 <rtems_rfs_file_io_end+0x138>
      rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),      
ffc1de7c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1de80:	41 9e 00 2c 	beq-    cr7,ffc1deac <rtems_rfs_file_io_end+0x160><== NEVER TAKEN
ffc1de84:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc1de88:	40 9c 00 24 	bge-    cr7,ffc1deac <rtems_rfs_file_io_end+0x160>
ffc1de8c:	38 ea ff ff 	addi    r7,r10,-1                              
ffc1de90:	7f 88 38 00 	cmpw    cr7,r8,r7                              
    handle->bpos.bno++;                                               
    handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
  }                                                                   
                                                                      
  length = false;                                                     
  mtime = false;                                                      
ffc1de94:	39 40 00 00 	li      r10,0                                  
                                                                      
  if (!read &&                                                        
      rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),      
ffc1de98:	40 be 00 28 	bne+    cr7,ffc1dec0 <rtems_rfs_file_io_end+0x174>
ffc1de9c:	80 ff 00 14 	lwz     r7,20(r31)                             
ffc1dea0:	81 09 00 40 	lwz     r8,64(r9)                              
ffc1dea4:	7f 87 40 40 	cmplw   cr7,r7,r8                              
ffc1dea8:	40 9d 00 18 	ble-    cr7,ffc1dec0 <rtems_rfs_file_io_end+0x174>
 */                                                                   
static inline void                                                    
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,        
                                     rtems_rfs_block_off  offset)     
{                                                                     
  map->size.offset = offset;                                          
ffc1deac:	81 5f 00 14 	lwz     r10,20(r31)                            
ffc1deb0:	91 49 00 40 	stw     r10,64(r9)                             
  map->dirty = true;                                                  
ffc1deb4:	39 40 00 01 	li      r10,1                                  
ffc1deb8:	99 49 00 34 	stb     r10,52(r9)                             
                                    rtems_rfs_file_bpos (handle)))    
  {                                                                   
    rtems_rfs_block_map_set_size_offset (rtems_rfs_file_map (handle), 
                                         handle->bpos.boff);          
    length = true;                                                    
    mtime = true;                                                     
ffc1debc:	39 40 00 01 	li      r10,1                                  
  }                                                                   
                                                                      
  atime  = rtems_rfs_file_update_atime (handle);                      
ffc1dec0:	81 3f 00 00 	lwz     r9,0(r31)                              
  mtime  = rtems_rfs_file_update_mtime (handle) && mtime;             
ffc1dec4:	3b 80 00 00 	li      r28,0                                  
ffc1dec8:	71 28 00 02 	andi.   r8,r9,2                                
                                         handle->bpos.boff);          
    length = true;                                                    
    mtime = true;                                                     
  }                                                                   
                                                                      
  atime  = rtems_rfs_file_update_atime (handle);                      
ffc1decc:	55 3b 07 fe 	clrlwi  r27,r9,31                              
ffc1ded0:	6b 7b 00 01 	xori    r27,r27,1                              
  mtime  = rtems_rfs_file_update_mtime (handle) && mtime;             
ffc1ded4:	40 82 00 08 	bne-    ffc1dedc <rtems_rfs_file_io_end+0x190> <== NEVER TAKEN
ffc1ded8:	7d 5c 53 78 	mr      r28,r10                                
  length = rtems_rfs_file_update_length (handle) && length;           
ffc1dedc:	71 28 00 04 	andi.   r8,r9,4                                
    length = true;                                                    
    mtime = true;                                                     
  }                                                                   
                                                                      
  atime  = rtems_rfs_file_update_atime (handle);                      
  mtime  = rtems_rfs_file_update_mtime (handle) && mtime;             
ffc1dee0:	57 9c 07 fe 	clrlwi  r28,r28,31                             
  length = rtems_rfs_file_update_length (handle) && length;           
ffc1dee4:	3b 40 00 00 	li      r26,0                                  
ffc1dee8:	40 82 00 08 	bne-    ffc1def0 <rtems_rfs_file_io_end+0x1a4> <== NEVER TAKEN
ffc1deec:	7d 5a 53 78 	mr      r26,r10                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1def0:	38 60 00 20 	li      r3,32                                  
ffc1def4:	38 80 00 00 	li      r4,0                                   
ffc1def8:	4b ff 63 51 	bl      ffc14248 <rtems_rfs_trace>             
    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;           
ffc1defc:	57 5a 07 fe 	clrlwi  r26,r26,31                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1df00:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1df04:	41 9e 00 50 	beq-    cr7,ffc1df54 <rtems_rfs_file_io_end+0x208><== ALWAYS TAKEN
    printf ("rtems-rfs: file-io:   end: pos=%" PRIu32 ":%" PRIu32 " %c %c %c\n",
ffc1df08:	30 db ff ff 	addic   r6,r27,-1                              <== NOT EXECUTED
ffc1df0c:	7c c6 31 10 	subfe   r6,r6,r6                               <== NOT EXECUTED
ffc1df10:	80 9f 00 10 	lwz     r4,16(r31)                             <== NOT EXECUTED
ffc1df14:	80 bf 00 14 	lwz     r5,20(r31)                             <== NOT EXECUTED
ffc1df18:	39 20 ff ec 	li      r9,-20                                 <== NOT EXECUTED
ffc1df1c:	30 fc ff ff 	addic   r7,r28,-1                              <== NOT EXECUTED
ffc1df20:	7c e7 39 10 	subfe   r7,r7,r7                               <== NOT EXECUTED
ffc1df24:	31 1a ff ff 	addic   r8,r26,-1                              <== NOT EXECUTED
ffc1df28:	7d 08 41 10 	subfe   r8,r8,r8                               <== NOT EXECUTED
ffc1df2c:	7c c6 48 38 	and     r6,r6,r9                               <== NOT EXECUTED
ffc1df30:	54 e7 00 34 	rlwinm  r7,r7,0,0,26                           <== NOT EXECUTED
ffc1df34:	55 08 07 f4 	rlwinm  r8,r8,0,31,26                          <== NOT EXECUTED
ffc1df38:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1df3c:	38 63 56 75 	addi    r3,r3,22133                            <== NOT EXECUTED
ffc1df40:	38 c6 00 41 	addi    r6,r6,65                               <== NOT EXECUTED
ffc1df44:	38 e7 00 4d 	addi    r7,r7,77                               <== NOT EXECUTED
ffc1df48:	39 08 00 4c 	addi    r8,r8,76                               <== NOT EXECUTED
ffc1df4c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1df50:	48 00 4c 21 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            handle->bpos.bno, handle->bpos.boff,                      
            atime ? 'A' : '-', mtime ? 'M' : '-', length ? 'L' : '-');
                                                                      
  if (atime || mtime)                                                 
ffc1df54:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc1df58:	40 9e 00 0c 	bne-    cr7,ffc1df64 <rtems_rfs_file_io_end+0x218><== ALWAYS TAKEN
ffc1df5c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              <== NOT EXECUTED
ffc1df60:	41 9e 00 30 	beq-    cr7,ffc1df90 <rtems_rfs_file_io_end+0x244><== NOT EXECUTED
  {                                                                   
    time_t now = time (NULL);                                         
ffc1df64:	38 60 00 00 	li      r3,0                                   
ffc1df68:	48 00 8f ed 	bl      ffc26f54 <time>                        
    if (read && atime)                                                
ffc1df6c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc1df70:	41 9e 00 40 	beq-    cr7,ffc1dfb0 <rtems_rfs_file_io_end+0x264>
ffc1df74:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc1df78:	41 9e 00 18 	beq-    cr7,ffc1df90 <rtems_rfs_file_io_end+0x244><== NEVER TAKEN
      handle->shared->atime = now;                                    
ffc1df7c:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc1df80:	90 69 00 8c 	stw     r3,140(r9)                             
ffc1df84:	48 00 00 0c 	b       ffc1df90 <rtems_rfs_file_io_end+0x244> 
    if (!read && mtime)                                               
      handle->shared->mtime = now;                                    
ffc1df88:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc1df8c:	90 69 00 90 	stw     r3,144(r9)                             
  }                                                                   
  if (length)                                                         
ffc1df90:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc1df94:	41 9e 00 28 	beq-    cr7,ffc1dfbc <rtems_rfs_file_io_end+0x270>
  {                                                                   
    handle->shared->size.count =                                      
      rtems_rfs_block_map_count (rtems_rfs_file_map (handle));        
ffc1df98:	81 3f 00 1c 	lwz     r9,28(r31)                             
    if (!read && mtime)                                               
      handle->shared->mtime = now;                                    
  }                                                                   
  if (length)                                                         
  {                                                                   
    handle->shared->size.count =                                      
ffc1df9c:	81 49 00 3c 	lwz     r10,60(r9)                             
ffc1dfa0:	91 49 00 84 	stw     r10,132(r9)                            
      rtems_rfs_block_map_count (rtems_rfs_file_map (handle));        
    handle->shared->size.offset =                                     
ffc1dfa4:	81 49 00 40 	lwz     r10,64(r9)                             
ffc1dfa8:	91 49 00 88 	stw     r10,136(r9)                            
ffc1dfac:	48 00 00 10 	b       ffc1dfbc <rtems_rfs_file_io_end+0x270> 
  if (atime || mtime)                                                 
  {                                                                   
    time_t now = time (NULL);                                         
    if (read && atime)                                                
      handle->shared->atime = now;                                    
    if (!read && mtime)                                               
ffc1dfb0:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc1dfb4:	40 be ff d4 	bne-    cr7,ffc1df88 <rtems_rfs_file_io_end+0x23c>
ffc1dfb8:	4b ff ff d8 	b       ffc1df90 <rtems_rfs_file_io_end+0x244> 
    handle->shared->size.offset =                                     
      rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));  
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc1dfbc:	39 61 00 20 	addi    r11,r1,32                              
ffc1dfc0:	7f a3 eb 78 	mr      r3,r29                                 
ffc1dfc4:	4b fe 35 94 	b       ffc01558 <_restgpr_26_x>               
                                                                      

ffc1dfc8 <rtems_rfs_file_io_release>: int rtems_rfs_file_io_release (rtems_rfs_file_handle* handle) { int rc = 0; if (rtems_rfs_buffer_handle_has_block (&handle->buffer))
ffc1dfc8:	81 23 00 0c 	lwz     r9,12(r3)                              
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_file_io_release (rtems_rfs_file_handle* handle)             
{                                                                     
ffc1dfcc:	7c 64 1b 78 	mr      r4,r3                                  
  int rc = 0;                                                         
  if (rtems_rfs_buffer_handle_has_block (&handle->buffer))            
ffc1dfd0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1dfd4:	41 9e 00 14 	beq-    cr7,ffc1dfe8 <rtems_rfs_file_io_release+0x20><== ALWAYS TAKEN
    rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle), 
ffc1dfd8:	81 23 00 1c 	lwz     r9,28(r3)                              <== NOT EXECUTED
ffc1dfdc:	38 84 00 04 	addi    r4,r4,4                                <== NOT EXECUTED
ffc1dfe0:	80 69 00 98 	lwz     r3,152(r9)                             <== NOT EXECUTED
ffc1dfe4:	4b ff dd 08 	b       ffc1bcec <rtems_rfs_buffer_handle_release><== NOT EXECUTED
                                          rtems_rfs_file_buffer (handle));
  return rc;                                                          
}                                                                     
ffc1dfe8:	38 60 00 00 	li      r3,0                                   
ffc1dfec:	4e 80 00 20 	blr                                            
                                                                      

ffc1db2c <rtems_rfs_file_io_start>: int rtems_rfs_file_io_start (rtems_rfs_file_handle* handle, size_t* available, bool read) {
ffc1db2c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc1db30:	7c 08 02 a6 	mflr    r0                                     
ffc1db34:	bf 61 00 1c 	stmw    r27,28(r1)                             
ffc1db38:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1db3c:	7c 9d 23 78 	mr      r29,r4                                 
  size_t size;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1db40:	38 60 00 20 	li      r3,32                                  
                                                                      
int                                                                   
rtems_rfs_file_io_start (rtems_rfs_file_handle* handle,               
                         size_t*                available,            
                         bool                   read)                 
{                                                                     
ffc1db44:	90 01 00 34 	stw     r0,52(r1)                              
  size_t size;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1db48:	38 80 00 00 	li      r4,0                                   
                                                                      
int                                                                   
rtems_rfs_file_io_start (rtems_rfs_file_handle* handle,               
                         size_t*                available,            
                         bool                   read)                 
{                                                                     
ffc1db4c:	7c bc 2b 78 	mr      r28,r5                                 
  size_t size;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1db50:	4b ff 66 f9 	bl      ffc14248 <rtems_rfs_trace>             
ffc1db54:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1db58:	41 9e 00 38 	beq-    cr7,ffc1db90 <rtems_rfs_file_io_start+0x64><== ALWAYS TAKEN
    printf ("rtems-rfs: file-io: start: %s pos=%" PRIu32 ":%" PRIu32 "\n",
ffc1db5c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              <== NOT EXECUTED
ffc1db60:	41 9e 00 10 	beq-    cr7,ffc1db70 <rtems_rfs_file_io_start+0x44><== NOT EXECUTED
ffc1db64:	3c 80 ff c3 	lis     r4,-61                                 <== NOT EXECUTED
ffc1db68:	38 84 41 67 	addi    r4,r4,16743                            <== NOT EXECUTED
ffc1db6c:	48 00 00 0c 	b       ffc1db78 <rtems_rfs_file_io_start+0x4c><== NOT EXECUTED
ffc1db70:	3c 80 ff c3 	lis     r4,-61                                 <== NOT EXECUTED
ffc1db74:	38 84 55 54 	addi    r4,r4,21844                            <== NOT EXECUTED
ffc1db78:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1db7c:	80 bf 00 10 	lwz     r5,16(r31)                             <== NOT EXECUTED
ffc1db80:	80 df 00 14 	lwz     r6,20(r31)                             <== NOT EXECUTED
ffc1db84:	38 63 55 5a 	addi    r3,r3,21850                            <== NOT EXECUTED
ffc1db88:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1db8c:	48 00 4f e5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            read ? "read" : "write",  handle->bpos.bno, handle->bpos.boff);
                                                                      
  if (!rtems_rfs_buffer_handle_has_block (&handle->buffer))           
ffc1db90:	83 7f 00 0c 	lwz     r27,12(r31)                            
ffc1db94:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc1db98:	40 be 01 24 	bne+    cr7,ffc1dcbc <rtems_rfs_file_io_start+0x190>
    bool                   request_read;                              
    int                    rc;                                        
                                                                      
    request_read = read;                                              
                                                                      
    rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),        
ffc1db9c:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc1dba0:	38 bf 00 10 	addi    r5,r31,16                              
ffc1dba4:	38 c1 00 08 	addi    r6,r1,8                                
ffc1dba8:	80 64 00 98 	lwz     r3,152(r4)                             
ffc1dbac:	38 84 00 34 	addi    r4,r4,52                               
ffc1dbb0:	4b ff d6 b5 	bl      ffc1b264 <rtems_rfs_block_map_find>    
ffc1dbb4:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
                                   rtems_rfs_file_map (handle),       
                                   rtems_rfs_file_bpos (handle),      
                                   &block);                           
    if (rc > 0)                                                       
ffc1dbb8:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1dbbc:	40 81 00 68 	ble-    ffc1dc24 <rtems_rfs_file_io_start+0xf8>
ffc1dbc0:	2f 1e 00 06 	cmpwi   cr6,r30,6                              
    {                                                                 
      /*                                                              
       * Has the read reached the EOF ?                               
       */                                                             
      if (read && (rc == ENXIO))                                      
ffc1dbc4:	41 9e 00 14 	beq-    cr7,ffc1dbd8 <rtems_rfs_file_io_start+0xac><== ALWAYS TAKEN
ffc1dbc8:	40 ba 01 78 	bne+    cr6,ffc1dd40 <rtems_rfs_file_io_start+0x214><== NOT EXECUTED
      {                                                               
        *available = 0;                                               
ffc1dbcc:	93 7d 00 00 	stw     r27,0(r29)                             <== NOT EXECUTED
        return 0;                                                     
ffc1dbd0:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
ffc1dbd4:	48 00 01 6c 	b       ffc1dd40 <rtems_rfs_file_io_start+0x214><== NOT EXECUTED
      }                                                               
                                                                      
      if (rc != ENXIO)                                                
ffc1dbd8:	40 ba 01 68 	bne+    cr6,ffc1dd40 <rtems_rfs_file_io_start+0x214><== NEVER TAKEN
        return rc;                                                    
                                                                      
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                  
ffc1dbdc:	38 60 00 20 	li      r3,32                                  
ffc1dbe0:	38 80 00 00 	li      r4,0                                   
ffc1dbe4:	4b ff 66 65 	bl      ffc14248 <rtems_rfs_trace>             
ffc1dbe8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1dbec:	41 be 00 10 	beq+    cr7,ffc1dbfc <rtems_rfs_file_io_start+0xd0><== ALWAYS TAKEN
        printf ("rtems-rfs: file-io: start: grow\n");                 
ffc1dbf0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1dbf4:	38 63 55 85 	addi    r3,r3,21893                            <== NOT EXECUTED
ffc1dbf8:	48 00 52 e1 	bl      ffc22ed8 <puts>                        <== NOT EXECUTED
                                                                      
      rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),      
ffc1dbfc:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc1dc00:	38 a0 00 01 	li      r5,1                                   
ffc1dc04:	38 c1 00 08 	addi    r6,r1,8                                
ffc1dc08:	80 64 00 98 	lwz     r3,152(r4)                             
ffc1dc0c:	38 84 00 34 	addi    r4,r4,52                               
ffc1dc10:	4b ff d8 81 	bl      ffc1b490 <rtems_rfs_block_map_grow>    
                                     rtems_rfs_file_map (handle),     
                                     1, &block);                      
      if (rc > 0)                                                     
ffc1dc14:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1dc18:	41 a1 01 28 	bgt+    ffc1dd40 <rtems_rfs_file_io_start+0x214>
        return rc;                                                    
                                                                      
      request_read = false;                                           
ffc1dc1c:	3b c0 00 00 	li      r30,0                                  
ffc1dc20:	48 00 00 38 	b       ffc1dc58 <rtems_rfs_file_io_start+0x12c>
      /*                                                              
       * 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 &&                                                    
ffc1dc24:	40 9e 00 30 	bne-    cr7,ffc1dc54 <rtems_rfs_file_io_start+0x128>
ffc1dc28:	81 3f 00 14 	lwz     r9,20(r31)                             
          (rtems_rfs_file_block_offset (handle) ||                    
           (*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
        request_read = true;                                          
ffc1dc2c:	3b c0 00 01 	li      r30,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 &&                                                    
ffc1dc30:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1dc34:	40 9e 00 24 	bne-    cr7,ffc1dc58 <rtems_rfs_file_io_start+0x12c>
          (rtems_rfs_file_block_offset (handle) ||                    
           (*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
ffc1dc38:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc1dc3c:	81 49 00 98 	lwz     r10,152(r9)                            
       * 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) ||                    
ffc1dc40:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc1dc44:	81 4a 00 08 	lwz     r10,8(r10)                             
ffc1dc48:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc1dc4c:	40 bc ff d0 	bge-    cr7,ffc1dc1c <rtems_rfs_file_io_start+0xf0><== NEVER TAKEN
ffc1dc50:	48 00 00 08 	b       ffc1dc58 <rtems_rfs_file_io_start+0x12c>
      /*                                                              
       * 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 &&                                                    
ffc1dc54:	7f 9e e3 78 	mr      r30,r28                                
          (rtems_rfs_file_block_offset (handle) ||                    
           (*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
        request_read = true;                                          
    }                                                                 
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                    
ffc1dc58:	38 60 00 20 	li      r3,32                                  
ffc1dc5c:	38 80 00 00 	li      r4,0                                   
ffc1dc60:	4b ff 65 e9 	bl      ffc14248 <rtems_rfs_trace>             
ffc1dc64:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1dc68:	41 9e 00 34 	beq-    cr7,ffc1dc9c <rtems_rfs_file_io_start+0x170><== ALWAYS TAKEN
      printf ("rtems-rfs: file-io: start: block=%" PRIu32 " request-read=%s\n",
ffc1dc6c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc1dc70:	80 81 00 08 	lwz     r4,8(r1)                               <== NOT EXECUTED
ffc1dc74:	41 9e 00 10 	beq-    cr7,ffc1dc84 <rtems_rfs_file_io_start+0x158><== NOT EXECUTED
ffc1dc78:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc1dc7c:	38 a5 3c 1a 	addi    r5,r5,15386                            <== NOT EXECUTED
ffc1dc80:	48 00 00 0c 	b       ffc1dc8c <rtems_rfs_file_io_start+0x160><== NOT EXECUTED
ffc1dc84:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc1dc88:	38 a5 40 fb 	addi    r5,r5,16635                            <== NOT EXECUTED
ffc1dc8c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1dc90:	38 63 55 a5 	addi    r3,r3,21925                            <== NOT EXECUTED
ffc1dc94:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1dc98:	48 00 4e d9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
              block, request_read ? "yes" : "no");                    
                                                                      
    rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle), 
ffc1dc9c:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc1dca0:	7f c6 f3 78 	mr      r6,r30                                 
ffc1dca4:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc1dca8:	38 9f 00 04 	addi    r4,r31,4                               
ffc1dcac:	80 69 00 98 	lwz     r3,152(r9)                             
ffc1dcb0:	4b ff e2 21 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
                                          rtems_rfs_file_buffer (handle),
                                          block, request_read);       
    if (rc > 0)                                                       
ffc1dcb4:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1dcb8:	41 a1 00 88 	bgt+    ffc1dd40 <rtems_rfs_file_io_start+0x214><== NEVER TAKEN
      return rc;                                                      
  }                                                                   
                                                                      
  if (read                                                            
ffc1dcbc:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc1dcc0:	41 9e 00 38 	beq-    cr7,ffc1dcf8 <rtems_rfs_file_io_start+0x1cc>
      && rtems_rfs_block_map_last (rtems_rfs_file_map (handle))       
ffc1dcc4:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc1dcc8:	81 49 00 44 	lwz     r10,68(r9)                             
ffc1dccc:	81 09 00 3c 	lwz     r8,60(r9)                              
ffc1dcd0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1dcd4:	40 9e 00 0c 	bne-    cr7,ffc1dce0 <rtems_rfs_file_io_start+0x1b4>
ffc1dcd8:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc1dcdc:	41 9e 00 10 	beq-    cr7,ffc1dcec <rtems_rfs_file_io_start+0x1c0><== NEVER TAKEN
ffc1dce0:	39 08 ff ff 	addi    r8,r8,-1                               
ffc1dce4:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc1dce8:	40 be 00 10 	bne+    cr7,ffc1dcf8 <rtems_rfs_file_io_start+0x1cc>
      && rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle)))
ffc1dcec:	83 89 00 40 	lwz     r28,64(r9)                             
ffc1dcf0:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc1dcf4:	40 9e 00 10 	bne-    cr7,ffc1dd04 <rtems_rfs_file_io_start+0x1d8>
    size = rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));
  else                                                                
    size = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));      
ffc1dcf8:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc1dcfc:	81 29 00 98 	lwz     r9,152(r9)                             
ffc1dd00:	83 89 00 08 	lwz     r28,8(r9)                              
                                                                      
  *available = size - rtems_rfs_file_block_offset (handle);           
ffc1dd04:	81 3f 00 14 	lwz     r9,20(r31)                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1dd08:	38 60 00 20 	li      r3,32                                  
ffc1dd0c:	38 80 00 00 	li      r4,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);           
ffc1dd10:	7d 29 e0 50 	subf    r9,r9,r28                              
ffc1dd14:	91 3d 00 00 	stw     r9,0(r29)                              
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
    printf ("rtems-rfs: file-io: start: available=%zu (%zu)\n",       
            *available, size);                                        
                                                                      
  return 0;                                                           
ffc1dd18:	3b c0 00 00 	li      r30,0                                  
  else                                                                
    size = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));      
                                                                      
  *available = size - rtems_rfs_file_block_offset (handle);           
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1dd1c:	4b ff 65 2d 	bl      ffc14248 <rtems_rfs_trace>             
ffc1dd20:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1dd24:	41 be 00 1c 	beq+    cr7,ffc1dd40 <rtems_rfs_file_io_start+0x214><== ALWAYS TAKEN
    printf ("rtems-rfs: file-io: start: available=%zu (%zu)\n",       
ffc1dd28:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1dd2c:	80 9d 00 00 	lwz     r4,0(r29)                              <== NOT EXECUTED
ffc1dd30:	38 63 55 db 	addi    r3,r3,21979                            <== NOT EXECUTED
ffc1dd34:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc1dd38:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1dd3c:	48 00 4e 35 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            *available, size);                                        
                                                                      
  return 0;                                                           
}                                                                     
ffc1dd40:	39 61 00 30 	addi    r11,r1,48                              
ffc1dd44:	7f c3 f3 78 	mr      r3,r30                                 
ffc1dd48:	4b fe 38 14 	b       ffc0155c <_restgpr_27_x>               
                                                                      

ffc1e428 <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) {
ffc1e428:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc1e42c:	7c 08 02 a6 	mflr    r0                                     
ffc1e430:	bf 01 00 08 	stmw    r24,8(r1)                              
ffc1e434:	7c 7d 1b 78 	mr      r29,r3                                 
ffc1e438:	7c 9b 23 78 	mr      r27,r4                                 
  rtems_rfs_file_handle* handle;                                      
  rtems_rfs_file_shared* shared;                                      
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                    
ffc1e43c:	38 60 00 08 	li      r3,8                                   
int                                                                   
rtems_rfs_file_open (rtems_rfs_file_system*  fs,                      
                     rtems_rfs_ino           ino,                     
                     int                     oflag,                   
                     rtems_rfs_file_handle** file)                    
{                                                                     
ffc1e440:	90 01 00 2c 	stw     r0,44(r1)                              
  rtems_rfs_file_handle* handle;                                      
  rtems_rfs_file_shared* shared;                                      
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                    
ffc1e444:	38 80 00 00 	li      r4,0                                   
int                                                                   
rtems_rfs_file_open (rtems_rfs_file_system*  fs,                      
                     rtems_rfs_ino           ino,                     
                     int                     oflag,                   
                     rtems_rfs_file_handle** file)                    
{                                                                     
ffc1e448:	7c b8 2b 78 	mr      r24,r5                                 
ffc1e44c:	7c d9 33 78 	mr      r25,r6                                 
  rtems_rfs_file_handle* handle;                                      
  rtems_rfs_file_shared* shared;                                      
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                    
ffc1e450:	4b ff 5d f9 	bl      ffc14248 <rtems_rfs_trace>             
ffc1e454:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1e458:	41 be 00 18 	beq+    cr7,ffc1e470 <rtems_rfs_file_open+0x48><== ALWAYS TAKEN
    printf ("rtems-rfs: file-open: ino=%" PRId32 "\n", ino);          
ffc1e45c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e460:	38 63 56 eb 	addi    r3,r3,22251                            <== NOT EXECUTED
ffc1e464:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc1e468:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1e46c:	48 00 47 05 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
  *file = NULL;                                                       
ffc1e470:	3b c0 00 00 	li      r30,0                                  
ffc1e474:	93 d9 00 00 	stw     r30,0(r25)                             
  /*                                                                  
   * 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));                   
ffc1e478:	38 60 00 20 	li      r3,32                                  
  if (!handle)                                                        
    return ENOMEM;                                                    
ffc1e47c:	3b 80 00 0c 	li      r28,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));                   
ffc1e480:	4b fe ad 5d 	bl      ffc091dc <malloc>                      
  if (!handle)                                                        
ffc1e484:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1e488:	41 82 02 a0 	beq-    ffc1e728 <rtems_rfs_file_open+0x300>   <== NEVER TAKEN
    return ENOMEM;                                                    
                                                                      
  memset (handle, 0, sizeof (rtems_rfs_file_handle));                 
ffc1e48c:	38 80 00 00 	li      r4,0                                   
ffc1e490:	38 a0 00 20 	li      r5,32                                  
ffc1e494:	48 00 44 81 	bl      ffc22914 <memset>                      
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc1e498:	9b df 00 04 	stb     r30,4(r31)                             
                                                                      
  /*                                                                  
   * 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);                       
ffc1e49c:	7f a3 eb 78 	mr      r3,r29                                 
  handle->bnum  = 0;                                                  
ffc1e4a0:	93 df 00 08 	stw     r30,8(r31)                             
ffc1e4a4:	7f 64 db 78 	mr      r4,r27                                 
  handle->buffer = NULL;                                              
ffc1e4a8:	93 df 00 0c 	stw     r30,12(r31)                            
ffc1e4ac:	4b ff ff 49 	bl      ffc1e3f4 <rtems_rfs_file_get_shared>   
  if (shared)                                                         
ffc1e4b0:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1e4b4:	41 82 00 30 	beq-    ffc1e4e4 <rtems_rfs_file_open+0xbc>    <== ALWAYS TAKEN
  {                                                                   
    shared->references++;                                             
ffc1e4b8:	81 3e 00 08 	lwz     r9,8(r30)                              <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                  
ffc1e4bc:	38 60 00 08 	li      r3,8                                   <== NOT EXECUTED
ffc1e4c0:	38 80 00 00 	li      r4,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++;                                             
ffc1e4c4:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc1e4c8:	91 3e 00 08 	stw     r9,8(r30)                              <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                  
ffc1e4cc:	4b ff 5d 7d 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1e4d0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1e4d4:	41 be 02 44 	beq+    cr7,ffc1e718 <rtems_rfs_file_open+0x2f0><== NOT EXECUTED
      printf ("rtems-rfs: file-open: ino=%" PRId32 " shared\n", ino); 
ffc1e4d8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e4dc:	38 63 57 0a 	addi    r3,r3,22282                            <== NOT EXECUTED
ffc1e4e0:	48 00 02 2c 	b       ffc1e70c <rtems_rfs_file_open+0x2e4>   <== 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));                 
ffc1e4e4:	38 60 00 9c 	li      r3,156                                 
ffc1e4e8:	4b fe ac f5 	bl      ffc091dc <malloc>                      
    if (!shared)                                                      
ffc1e4ec:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1e4f0:	40 a2 00 20 	bne+    ffc1e510 <rtems_rfs_file_open+0xe8>    <== 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);                       
ffc1e4f4:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc1e4f8:	38 9f 00 04 	addi    r4,r31,4                               <== NOT EXECUTED
ffc1e4fc:	4b ff d7 f1 	bl      ffc1bcec <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
ffc1e500:	9b df 00 04 	stb     r30,4(r31)                             <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc1e504:	93 df 00 08 	stw     r30,8(r31)                             <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc1e508:	93 df 00 0c 	stw     r30,12(r31)                            <== NOT EXECUTED
ffc1e50c:	48 00 00 e8 	b       ffc1e5f4 <rtems_rfs_file_open+0x1cc>   <== NOT EXECUTED
      rtems_rfs_buffer_handle_close (fs, &handle->buffer);            
      free (handle);                                                  
      return ENOMEM;                                                  
    }                                                                 
                                                                      
    memset (shared, 0, sizeof (rtems_rfs_file_shared));               
ffc1e510:	38 80 00 00 	li      r4,0                                   
ffc1e514:	38 a0 00 9c 	li      r5,156                                 
                                                                      
    rc = rtems_rfs_inode_open (fs, ino, &shared->inode, true);        
ffc1e518:	3b 5e 00 0c 	addi    r26,r30,12                             
      rtems_rfs_buffer_handle_close (fs, &handle->buffer);            
      free (handle);                                                  
      return ENOMEM;                                                  
    }                                                                 
                                                                      
    memset (shared, 0, sizeof (rtems_rfs_file_shared));               
ffc1e51c:	48 00 43 f9 	bl      ffc22914 <memset>                      
                                                                      
    rc = rtems_rfs_inode_open (fs, ino, &shared->inode, true);        
ffc1e520:	7f a3 eb 78 	mr      r3,r29                                 
ffc1e524:	7f 64 db 78 	mr      r4,r27                                 
ffc1e528:	7f 45 d3 78 	mr      r5,r26                                 
ffc1e52c:	38 c0 00 01 	li      r6,1                                   
ffc1e530:	4b ff 42 b9 	bl      ffc127e8 <rtems_rfs_inode_open>        
    if (rc > 0)                                                       
ffc1e534:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc1e538:	40 81 00 3c 	ble-    ffc1e574 <rtems_rfs_file_open+0x14c>   <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                
ffc1e53c:	38 60 00 08 	li      r3,8                                   <== NOT EXECUTED
ffc1e540:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1e544:	4b ff 5d 05 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1e548:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1e54c:	41 be 00 80 	beq+    cr7,ffc1e5cc <rtems_rfs_file_open+0x1a4><== NOT EXECUTED
        printf ("rtems-rfs: file-open: inode open failed: %d: %s\n",  
ffc1e550:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc1e554:	48 00 58 09 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1e558:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc1e55c:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1e560:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e564:	38 63 57 30 	addi    r3,r3,22320                            <== NOT EXECUTED
ffc1e568:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1e56c:	48 00 46 05 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1e570:	48 00 00 5c 	b       ffc1e5cc <rtems_rfs_file_open+0x1a4>   <== 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); 
ffc1e574:	7f a3 eb 78 	mr      r3,r29                                 
ffc1e578:	7f 44 d3 78 	mr      r4,r26                                 
ffc1e57c:	38 be 00 34 	addi    r5,r30,52                              
ffc1e580:	4b ff c9 3d 	bl      ffc1aebc <rtems_rfs_block_map_open>    
    if (rc > 0)                                                       
ffc1e584:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc1e588:	40 81 00 78 	ble-    ffc1e600 <rtems_rfs_file_open+0x1d8>   <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                
ffc1e58c:	38 60 00 08 	li      r3,8                                   <== NOT EXECUTED
ffc1e590:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1e594:	4b ff 5c b5 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1e598:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1e59c:	41 be 00 24 	beq+    cr7,ffc1e5c0 <rtems_rfs_file_open+0x198><== NOT EXECUTED
        printf ("rtems-rfs: file-open: block map open failed: %d: %s\n",
ffc1e5a0:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc1e5a4:	48 00 57 b9 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1e5a8:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc1e5ac:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1e5b0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e5b4:	38 63 57 61 	addi    r3,r3,22369                            <== NOT EXECUTED
ffc1e5b8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1e5bc:	48 00 45 b5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                rc, strerror (rc));                                   
      rtems_rfs_inode_close (fs, &shared->inode);                     
ffc1e5c0:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc1e5c4:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc1e5c8:	4b ff 44 15 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
      free (shared);                                                  
ffc1e5cc:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1e5d0:	4b fe a5 45 	bl      ffc08b14 <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);                       
ffc1e5d4:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc1e5d8:	38 9f 00 04 	addi    r4,r31,4                               <== NOT EXECUTED
ffc1e5dc:	4b ff d7 11 	bl      ffc1bcec <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
ffc1e5e0:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc1e5e4:	99 3f 00 04 	stb     r9,4(r31)                              <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc1e5e8:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc1e5ec:	91 3f 00 08 	stw     r9,8(r31)                              <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc1e5f0:	91 3f 00 0c 	stw     r9,12(r31)                             <== NOT EXECUTED
      rtems_rfs_buffer_handle_close (fs, &handle->buffer);            
      free (handle);                                                  
ffc1e5f4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1e5f8:	4b fe a5 1d 	bl      ffc08b14 <free>                        <== NOT EXECUTED
      return rc;                                                      
ffc1e5fc:	48 00 01 2c 	b       ffc1e728 <rtems_rfs_file_open+0x300>   <== NOT EXECUTED
    }                                                                 
                                                                      
    shared->references = 1;                                           
ffc1e600:	39 20 00 01 	li      r9,1                                   
ffc1e604:	91 3e 00 08 	stw     r9,8(r30)                              
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
ffc1e608:	38 7d 00 74 	addi    r3,r29,116                             
ffc1e60c:	7f c4 f3 78 	mr      r4,r30                                 
    if (shared->inode.ino == ino)                                     
      return shared;                                                  
    node = rtems_chain_next (node);                                   
  }                                                                   
  return NULL;                                                        
}                                                                     
ffc1e610:	81 3e 00 18 	lwz     r9,24(r30)                             
 * @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);             
ffc1e614:	89 09 00 0c 	lbz     r8,12(r9)                              
ffc1e618:	89 49 00 0d 	lbz     r10,13(r9)                             
ffc1e61c:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           
ffc1e620:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc1e624:	7d 0a 53 78 	or      r10,r8,r10                             
ffc1e628:	89 09 00 0f 	lbz     r8,15(r9)                              
ffc1e62c:	7d 4a 43 78 	or      r10,r10,r8                             
ffc1e630:	89 09 00 0e 	lbz     r8,14(r9)                              
ffc1e634:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc1e638:	7d 4a 43 78 	or      r10,r10,r8                             
      free (handle);                                                  
      return rc;                                                      
    }                                                                 
                                                                      
    shared->references = 1;                                           
    shared->size.count = rtems_rfs_inode_get_block_count (&shared->inode);
ffc1e63c:	91 5e 00 84 	stw     r10,132(r30)                           
 * @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);            
ffc1e640:	89 49 00 0a 	lbz     r10,10(r9)                             
ffc1e644:	89 09 00 0b 	lbz     r8,11(r9)                              
ffc1e648:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
    shared->size.offset = rtems_rfs_inode_get_block_offset (&shared->inode);
ffc1e64c:	7d 4a 43 78 	or      r10,r10,r8                             
ffc1e650:	91 5e 00 88 	stw     r10,136(r30)                           
 * @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);                   
ffc1e654:	89 09 00 10 	lbz     r8,16(r9)                              
ffc1e658:	89 49 00 11 	lbz     r10,17(r9)                             
ffc1e65c:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           
ffc1e660:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc1e664:	7d 0a 53 78 	or      r10,r8,r10                             
ffc1e668:	89 09 00 13 	lbz     r8,19(r9)                              
ffc1e66c:	7d 4a 43 78 	or      r10,r10,r8                             
ffc1e670:	89 09 00 12 	lbz     r8,18(r9)                              
ffc1e674:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc1e678:	7d 4a 43 78 	or      r10,r10,r8                             
    shared->atime = rtems_rfs_inode_get_atime (&shared->inode);       
ffc1e67c:	91 5e 00 8c 	stw     r10,140(r30)                           
 * @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);                   
ffc1e680:	89 09 00 14 	lbz     r8,20(r9)                              
ffc1e684:	89 49 00 15 	lbz     r10,21(r9)                             
ffc1e688:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           
ffc1e68c:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc1e690:	7d 0a 53 78 	or      r10,r8,r10                             
ffc1e694:	89 09 00 17 	lbz     r8,23(r9)                              
ffc1e698:	7d 4a 43 78 	or      r10,r10,r8                             
ffc1e69c:	89 09 00 16 	lbz     r8,22(r9)                              
ffc1e6a0:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc1e6a4:	7d 4a 43 78 	or      r10,r10,r8                             
    shared->mtime = rtems_rfs_inode_get_mtime (&shared->inode);       
ffc1e6a8:	91 5e 00 90 	stw     r10,144(r30)                           
 * @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);                   
ffc1e6ac:	89 09 00 18 	lbz     r8,24(r9)                              
ffc1e6b0:	89 49 00 19 	lbz     r10,25(r9)                             
ffc1e6b4:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           
ffc1e6b8:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc1e6bc:	7d 08 53 78 	or      r8,r8,r10                              
ffc1e6c0:	89 49 00 1b 	lbz     r10,27(r9)                             
ffc1e6c4:	7d 08 53 78 	or      r8,r8,r10                              
ffc1e6c8:	89 49 00 1a 	lbz     r10,26(r9)                             
    shared->ctime = rtems_rfs_inode_get_ctime (&shared->inode);       
    shared->fs = fs;                                                  
ffc1e6cc:	93 be 00 98 	stw     r29,152(r30)                           
ffc1e6d0:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc1e6d4:	7d 09 53 78 	or      r9,r8,r10                              
    shared->references = 1;                                           
    shared->size.count = rtems_rfs_inode_get_block_count (&shared->inode);
    shared->size.offset = rtems_rfs_inode_get_block_offset (&shared->inode);
    shared->atime = rtems_rfs_inode_get_atime (&shared->inode);       
    shared->mtime = rtems_rfs_inode_get_mtime (&shared->inode);       
    shared->ctime = rtems_rfs_inode_get_ctime (&shared->inode);       
ffc1e6d8:	91 3e 00 94 	stw     r9,148(r30)                            
ffc1e6dc:	4b fe fc cd 	bl      ffc0e3a8 <_Chain_Append>               
    shared->fs = fs;                                                  
                                                                      
    rtems_chain_append (&fs->file_shares, &shared->link);             
                                                                      
    rtems_rfs_inode_unload (fs, &shared->inode, false);               
ffc1e6e0:	7f 44 d3 78 	mr      r4,r26                                 
ffc1e6e4:	38 a0 00 00 	li      r5,0                                   
ffc1e6e8:	7f a3 eb 78 	mr      r3,r29                                 
ffc1e6ec:	4b ff 41 e9 	bl      ffc128d4 <rtems_rfs_inode_unload>      
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                  
ffc1e6f0:	38 60 00 08 	li      r3,8                                   
ffc1e6f4:	38 80 00 00 	li      r4,0                                   
ffc1e6f8:	4b ff 5b 51 	bl      ffc14248 <rtems_rfs_trace>             
ffc1e6fc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1e700:	41 be 00 18 	beq+    cr7,ffc1e718 <rtems_rfs_file_open+0x2f0><== ALWAYS TAKEN
      printf ("rtems-rfs: file-open: ino=%" PRId32 " share created\n", ino);
ffc1e704:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e708:	38 63 57 96 	addi    r3,r3,22422                            <== NOT EXECUTED
ffc1e70c:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc1e710:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1e714:	48 00 44 5d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
  }                                                                   
                                                                      
  handle->flags  = oflag;                                             
ffc1e718:	93 1f 00 00 	stw     r24,0(r31)                             
  handle->shared = shared;                                            
                                                                      
  *file = handle;                                                     
                                                                      
  return 0;                                                           
ffc1e71c:	3b 80 00 00 	li      r28,0                                  
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                  
      printf ("rtems-rfs: file-open: ino=%" PRId32 " share created\n", ino);
  }                                                                   
                                                                      
  handle->flags  = oflag;                                             
  handle->shared = shared;                                            
ffc1e720:	93 df 00 1c 	stw     r30,28(r31)                            
                                                                      
  *file = handle;                                                     
ffc1e724:	93 f9 00 00 	stw     r31,0(r25)                             
                                                                      
  return 0;                                                           
}                                                                     
ffc1e728:	39 61 00 28 	addi    r11,r1,40                              
ffc1e72c:	7f 83 e3 78 	mr      r3,r28                                 
ffc1e730:	4b fe 2e 20 	b       ffc01550 <_restgpr_24_x>               
                                                                      

ffc1dff0 <rtems_rfs_file_seek>: int rtems_rfs_file_seek (rtems_rfs_file_handle* handle, rtems_rfs_pos pos, rtems_rfs_pos* new_pos) {
ffc1dff0:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc1dff4:	7c 08 02 a6 	mflr    r0                                     
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1dff8:	38 80 00 00 	li      r4,0                                   
                                                                      
int                                                                   
rtems_rfs_file_seek (rtems_rfs_file_handle* handle,                   
                     rtems_rfs_pos          pos,                      
                     rtems_rfs_pos*         new_pos)                  
{                                                                     
ffc1dffc:	bf 61 00 1c 	stmw    r27,28(r1)                             
ffc1e000:	7c 7f 1b 78 	mr      r31,r3                                 
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1e004:	38 60 00 20 	li      r3,32                                  
                                                                      
int                                                                   
rtems_rfs_file_seek (rtems_rfs_file_handle* handle,                   
                     rtems_rfs_pos          pos,                      
                     rtems_rfs_pos*         new_pos)                  
{                                                                     
ffc1e008:	90 01 00 34 	stw     r0,52(r1)                              
ffc1e00c:	7c be 2b 78 	mr      r30,r5                                 
ffc1e010:	7c dd 33 78 	mr      r29,r6                                 
ffc1e014:	7c fc 3b 78 	mr      r28,r7                                 
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1e018:	4b ff 62 31 	bl      ffc14248 <rtems_rfs_trace>             
ffc1e01c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1e020:	41 be 00 1c 	beq+    cr7,ffc1e03c <rtems_rfs_file_seek+0x4c><== ALWAYS TAKEN
    printf ("rtems-rfs: file-seek: new=%" PRIu64 "\n", pos);          
ffc1e024:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e028:	38 63 56 a6 	addi    r3,r3,22182                            <== NOT EXECUTED
ffc1e02c:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc1e030:	7f a6 eb 78 	mr      r6,r29                                 <== NOT EXECUTED
ffc1e034:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1e038:	48 00 4b 39 	bl      ffc22b70 <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),
ffc1e03c:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc1e040:	80 64 00 98 	lwz     r3,152(r4)                             
ffc1e044:	38 84 00 84 	addi    r4,r4,132                              
ffc1e048:	4b ff ce 21 	bl      ffc1ae68 <rtems_rfs_block_get_size>    
ffc1e04c:	7f 9e 18 40 	cmplw   cr7,r30,r3                             
ffc1e050:	41 9d 00 80 	bgt-    cr7,ffc1e0d0 <rtems_rfs_file_seek+0xe0><== NEVER TAKEN
ffc1e054:	7f 9e 18 00 	cmpw    cr7,r30,r3                             
ffc1e058:	40 9e 00 0c 	bne-    cr7,ffc1e064 <rtems_rfs_file_seek+0x74><== NEVER TAKEN
ffc1e05c:	7f 9d 20 40 	cmplw   cr7,r29,r4                             
ffc1e060:	41 9d 00 70 	bgt-    cr7,ffc1e0d0 <rtems_rfs_file_seek+0xe0>
                                            handle->shared))          
  {                                                                   
    rtems_rfs_file_set_bpos (handle, pos);                            
ffc1e064:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc1e068:	3b 7f 00 10 	addi    r27,r31,16                             
ffc1e06c:	7f c5 f3 78 	mr      r5,r30                                 
ffc1e070:	80 69 00 98 	lwz     r3,152(r9)                             
ffc1e074:	7f a6 eb 78 	mr      r6,r29                                 
ffc1e078:	7f 67 db 78 	mr      r7,r27                                 
ffc1e07c:	4b ff cd 09 	bl      ffc1ad84 <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))          
ffc1e080:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc1e084:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1e088:	41 9e 00 58 	beq-    cr7,ffc1e0e0 <rtems_rfs_file_seek+0xf0>
    {                                                                 
      rtems_rfs_buffer_block block;                                   
      int                    rc;                                      
                                                                      
      rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),      
ffc1e08c:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc1e090:	7f 65 db 78 	mr      r5,r27                                 
ffc1e094:	38 c1 00 08 	addi    r6,r1,8                                
ffc1e098:	80 64 00 98 	lwz     r3,152(r4)                             
ffc1e09c:	38 84 00 34 	addi    r4,r4,52                               
ffc1e0a0:	4b ff d1 c5 	bl      ffc1b264 <rtems_rfs_block_map_find>    
                                     rtems_rfs_file_map (handle),     
                                     rtems_rfs_file_bpos (handle),    
                                     &block);                         
      if (rc > 0)                                                     
ffc1e0a4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1e0a8:	41 a1 00 44 	bgt+    ffc1e0ec <rtems_rfs_file_seek+0xfc>    <== NEVER TAKEN
        return rc;                                                    
      if (rtems_rfs_buffer_bnum (&handle->buffer) != block)           
ffc1e0ac:	81 5f 00 08 	lwz     r10,8(r31)                             
ffc1e0b0:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1e0b4:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc1e0b8:	41 9e 00 28 	beq-    cr7,ffc1e0e0 <rtems_rfs_file_seek+0xf0><== ALWAYS TAKEN
      {                                                               
        rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
ffc1e0bc:	81 3f 00 1c 	lwz     r9,28(r31)                             <== NOT EXECUTED
ffc1e0c0:	38 9f 00 04 	addi    r4,r31,4                               <== NOT EXECUTED
ffc1e0c4:	80 69 00 98 	lwz     r3,152(r9)                             <== NOT EXECUTED
ffc1e0c8:	4b ff dc 25 	bl      ffc1bcec <rtems_rfs_buffer_handle_release><== NOT EXECUTED
ffc1e0cc:	48 00 00 0c 	b       ffc1e0d8 <rtems_rfs_file_seek+0xe8>    <== 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);                      
ffc1e0d0:	7f e3 fb 78 	mr      r3,r31                                 
ffc1e0d4:	4b ff fe f5 	bl      ffc1dfc8 <rtems_rfs_file_io_release>   
    if (rc > 0)                                                       
ffc1e0d8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1e0dc:	41 a1 00 10 	bgt+    ffc1e0ec <rtems_rfs_file_seek+0xfc>    <== NEVER TAKEN
      return rc;                                                      
  }                                                                   
                                                                      
  *new_pos = pos;                                                     
ffc1e0e0:	93 dc 00 00 	stw     r30,0(r28)                             
  return 0;                                                           
ffc1e0e4:	38 60 00 00 	li      r3,0                                   
    int rc = rtems_rfs_file_io_release (handle);                      
    if (rc > 0)                                                       
      return rc;                                                      
  }                                                                   
                                                                      
  *new_pos = pos;                                                     
ffc1e0e8:	93 bc 00 04 	stw     r29,4(r28)                             
  return 0;                                                           
}                                                                     
ffc1e0ec:	39 61 00 30 	addi    r11,r1,48                              
ffc1e0f0:	4b fe 34 6c 	b       ffc0155c <_restgpr_27_x>               
                                                                      

ffc1e0f4 <rtems_rfs_file_set_size>: int rtems_rfs_file_set_size (rtems_rfs_file_handle* handle, rtems_rfs_pos new_size) {
ffc1e0f4:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc1e0f8:	7c 08 02 a6 	mflr    r0                                     
  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))                      
ffc1e0fc:	38 80 00 00 	li      r4,0                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,               
                         rtems_rfs_pos          new_size)             
{                                                                     
ffc1e100:	90 01 00 4c 	stw     r0,76(r1)                              
ffc1e104:	be 81 00 18 	stmw    r20,24(r1)                             
ffc1e108:	7c 7b 1b 78 	mr      r27,r3                                 
ffc1e10c:	7c df 33 78 	mr      r31,r6                                 
  rtems_rfs_block_map* map  = rtems_rfs_file_map (handle);            
ffc1e110:	83 43 00 1c 	lwz     r26,28(r3)                             
  rtems_rfs_pos        size;                                          
  int                  rc;                                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1e114:	38 60 00 20 	li      r3,32                                  
}                                                                     
                                                                      
int                                                                   
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,               
                         rtems_rfs_pos          new_size)             
{                                                                     
ffc1e118:	7c be 2b 78 	mr      r30,r5                                 
  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))                      
ffc1e11c:	4b ff 61 2d 	bl      ffc14248 <rtems_rfs_trace>             
ffc1e120:	2f 83 00 00 	cmpwi   cr7,r3,0                               
                                                                      
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);            
ffc1e124:	3b 1a 00 34 	addi    r24,r26,52                             
  rtems_rfs_pos        size;                                          
  int                  rc;                                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc1e128:	41 be 00 1c 	beq+    cr7,ffc1e144 <rtems_rfs_file_set_size+0x50><== ALWAYS TAKEN
    printf ("rtems-rfs: file-set-size: size=%" PRIu64 "\n", new_size);
ffc1e12c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e130:	38 63 56 c6 	addi    r3,r3,22214                            <== NOT EXECUTED
ffc1e134:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc1e138:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc1e13c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1e140:	48 00 4a 31 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
  size = rtems_rfs_file_size (handle);                                
ffc1e144:	80 9b 00 1c 	lwz     r4,28(r27)                             
ffc1e148:	80 64 00 98 	lwz     r3,152(r4)                             
ffc1e14c:	38 84 00 84 	addi    r4,r4,132                              
ffc1e150:	4b ff cd 19 	bl      ffc1ae68 <rtems_rfs_block_get_size>    
  /*                                                                  
   * 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)                                               
ffc1e154:	7f 83 f0 00 	cmpw    cr7,r3,r30                             
ffc1e158:	40 be 00 10 	bne+    cr7,ffc1e168 <rtems_rfs_file_set_size+0x74><== NEVER TAKEN
ffc1e15c:	7f 84 f8 00 	cmpw    cr7,r4,r31                             
ffc1e160:	40 be 00 08 	bne+    cr7,ffc1e168 <rtems_rfs_file_set_size+0x74>
ffc1e164:	48 00 02 84 	b       ffc1e3e8 <rtems_rfs_file_set_size+0x2f4>
  {                                                                   
    /*                                                                
     * Short cut for the common truncate on open call.                
     */                                                               
    if (new_size == 0)                                                
ffc1e168:	7f c9 fb 79 	or.     r9,r30,r31                             
ffc1e16c:	83 3b 00 1c 	lwz     r25,28(r27)                            
ffc1e170:	40 a2 00 1c 	bne+    ffc1e18c <rtems_rfs_file_set_size+0x98>
    {                                                                 
      rc = rtems_rfs_block_map_free_all (rtems_rfs_file_fs (handle), map);
ffc1e174:	80 79 00 98 	lwz     r3,152(r25)                            
ffc1e178:	7f 04 c3 78 	mr      r4,r24                                 
ffc1e17c:	4b ff d9 bd 	bl      ffc1bb38 <rtems_rfs_block_map_free_all>
      if (rc > 0)                                                     
ffc1e180:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1e184:	41 a1 02 68 	bgt+    ffc1e3ec <rtems_rfs_file_set_size+0x2f8><== NEVER TAKEN
ffc1e188:	48 00 02 34 	b       ffc1e3bc <rtems_rfs_file_set_size+0x2c8>
        return rc;                                                    
    }                                                                 
    else                                                              
    {                                                                 
      if (size < new_size)                                            
ffc1e18c:	7f 9e 18 40 	cmplw   cr7,r30,r3                             
ffc1e190:	41 9d 00 14 	bgt-    cr7,ffc1e1a4 <rtems_rfs_file_set_size+0xb0><== NEVER TAKEN
ffc1e194:	7f 9e 18 00 	cmpw    cr7,r30,r3                             
ffc1e198:	40 9e 01 54 	bne-    cr7,ffc1e2ec <rtems_rfs_file_set_size+0x1f8><== NEVER TAKEN
ffc1e19c:	7f 9f 20 40 	cmplw   cr7,r31,r4                             
ffc1e1a0:	40 9d 01 4c 	ble-    cr7,ffc1e2ec <rtems_rfs_file_set_size+0x1f8>
        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));
ffc1e1a4:	81 3b 00 1c 	lwz     r9,28(r27)                             
         */                                                           
        rtems_rfs_pos count;                                          
        uint32_t      length;                                         
        bool          read_block;                                     
                                                                      
        count = new_size - size;                                      
ffc1e1a8:	7f e4 f8 10 	subfc   r31,r4,r31                             
ffc1e1ac:	7f c3 f1 10 	subfe   r30,r3,r30                             
        length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
ffc1e1b0:	81 29 00 98 	lwz     r9,152(r9)                             
        read_block = false;                                           
ffc1e1b4:	3a a0 00 00 	li      r21,0                                  
          /*                                                          
           * 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);
ffc1e1b8:	3a e0 00 00 	li      r23,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));
ffc1e1bc:	83 29 00 08 	lwz     r25,8(r9)                              
ffc1e1c0:	3a c0 00 01 	li      r22,1                                  
          }                                                           
                                                                      
          /*                                                          
           * Only read the block if the length is not the block size. 
           */                                                         
          rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle),
ffc1e1c4:	3a 9b 00 04 	addi    r20,r27,4                              
                                                                      
        count = new_size - size;                                      
        length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
        read_block = false;                                           
                                                                      
        while (count)                                                 
ffc1e1c8:	48 00 01 18 	b       ffc1e2e0 <rtems_rfs_file_set_size+0x1ec>
          /*                                                          
           * 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);
ffc1e1cc:	81 3a 00 40 	lwz     r9,64(r26)                             
ffc1e1d0:	81 5a 00 3c 	lwz     r10,60(r26)                            
ffc1e1d4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1e1d8:	91 21 00 0c 	stw     r9,12(r1)                              
ffc1e1dc:	91 41 00 08 	stw     r10,8(r1)                              
ffc1e1e0:	92 e1 00 10 	stw     r23,16(r1)                             
ffc1e1e4:	41 9e 00 0c 	beq-    cr7,ffc1e1f0 <rtems_rfs_file_set_size+0xfc>
ffc1e1e8:	39 4a ff ff 	addi    r10,r10,-1                             
ffc1e1ec:	91 41 00 08 	stw     r10,8(r1)                              
          rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),  
ffc1e1f0:	81 3b 00 1c 	lwz     r9,28(r27)                             
ffc1e1f4:	7f 04 c3 78 	mr      r4,r24                                 
ffc1e1f8:	38 a1 00 08 	addi    r5,r1,8                                
ffc1e1fc:	80 69 00 98 	lwz     r3,152(r9)                             
ffc1e200:	38 c1 00 14 	addi    r6,r1,20                               
ffc1e204:	4b ff d0 61 	bl      ffc1b264 <rtems_rfs_block_map_find>    
                                         map, &bpos, &block);         
          if (rc > 0)                                                 
ffc1e208:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1e20c:	41 a1 00 20 	bgt+    ffc1e22c <rtems_rfs_file_set_size+0x138>
                                           map, 1, &block);           
            if (rc > 0)                                               
              return rc;                                              
          }                                                           
                                                                      
          if (count < (length - bpos.boff))                           
ffc1e210:	7f 97 f0 00 	cmpw    cr7,r23,r30                            
ffc1e214:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc1e218:	7d 49 c8 50 	subf    r10,r9,r25                             
ffc1e21c:	40 9e 00 50 	bne-    cr7,ffc1e26c <rtems_rfs_file_set_size+0x178><== NEVER TAKEN
ffc1e220:	7f 8a f8 40 	cmplw   cr7,r10,r31                            
ffc1e224:	41 9d 00 34 	bgt-    cr7,ffc1e258 <rtems_rfs_file_set_size+0x164>
ffc1e228:	48 00 00 44 	b       ffc1e26c <rtems_rfs_file_set_size+0x178>
          if (rc > 0)                                                 
          {                                                           
            /*                                                        
             * Have we reached the EOF ?                              
             */                                                       
            if (rc != ENXIO)                                          
ffc1e22c:	2f 83 00 06 	cmpwi   cr7,r3,6                               
ffc1e230:	40 9e 01 bc 	bne-    cr7,ffc1e3ec <rtems_rfs_file_set_size+0x2f8><== NEVER TAKEN
              return rc;                                              
                                                                      
            rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),
ffc1e234:	81 3b 00 1c 	lwz     r9,28(r27)                             
ffc1e238:	7f 04 c3 78 	mr      r4,r24                                 
ffc1e23c:	38 a0 00 01 	li      r5,1                                   
ffc1e240:	80 69 00 98 	lwz     r3,152(r9)                             
ffc1e244:	38 c1 00 14 	addi    r6,r1,20                               
ffc1e248:	4b ff d2 49 	bl      ffc1b490 <rtems_rfs_block_map_grow>    
                                           map, 1, &block);           
            if (rc > 0)                                               
ffc1e24c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1e250:	40 81 ff c0 	ble+    ffc1e210 <rtems_rfs_file_set_size+0x11c><== ALWAYS TAKEN
ffc1e254:	48 00 01 98 	b       ffc1e3ec <rtems_rfs_file_set_size+0x2f8><== NOT EXECUTED
              return rc;                                              
          }                                                           
                                                                      
          if (count < (length - bpos.boff))                           
          {                                                           
            length = count + bpos.boff;                               
ffc1e258:	7f 29 fa 14 	add     r25,r9,r31                             
ffc1e25c:	9a da 00 34 	stb     r22,52(r26)                            
            read_block = true;                                        
ffc1e260:	3a a0 00 01 	li      r21,1                                  
 */                                                                   
static inline void                                                    
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,        
                                     rtems_rfs_block_off  offset)     
{                                                                     
  map->size.offset = offset;                                          
ffc1e264:	93 3a 00 40 	stw     r25,64(r26)                            
ffc1e268:	48 00 00 0c 	b       ffc1e274 <rtems_rfs_file_set_size+0x180>
ffc1e26c:	92 fa 00 40 	stw     r23,64(r26)                            
  map->dirty = true;                                                  
ffc1e270:	9a da 00 34 	stb     r22,52(r26)                            
          }                                                           
                                                                      
          /*                                                          
           * Only read the block if the length is not the block size. 
           */                                                         
          rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle),
ffc1e274:	81 3b 00 1c 	lwz     r9,28(r27)                             
ffc1e278:	7e 84 a3 78 	mr      r4,r20                                 
ffc1e27c:	80 a1 00 14 	lwz     r5,20(r1)                              
ffc1e280:	7e a6 ab 78 	mr      r6,r21                                 
ffc1e284:	80 69 00 98 	lwz     r3,152(r9)                             
ffc1e288:	4b ff dc 49 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
                                                rtems_rfs_file_buffer (handle),
                                                block, read_block);   
          if (rc > 0)                                                 
ffc1e28c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1e290:	41 81 01 5c 	bgt-    ffc1e3ec <rtems_rfs_file_set_size+0x2f8><== NEVER TAKEN
            return rc;                                                
                                                                      
          dst = rtems_rfs_buffer_data (&handle->buffer);              
ffc1e294:	81 3b 00 0c 	lwz     r9,12(r27)                             
          memset (dst + bpos.boff, 0, length - bpos.boff);            
ffc1e298:	38 80 00 00 	li      r4,0                                   
ffc1e29c:	80 a1 00 0c 	lwz     r5,12(r1)                              
ffc1e2a0:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc1e2a4:	7c 63 2a 14 	add     r3,r3,r5                               
ffc1e2a8:	7c a5 c8 50 	subf    r5,r5,r25                              
ffc1e2ac:	48 00 46 69 	bl      ffc22914 <memset>                      
                                                                      
          rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
                                                                      
          rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
ffc1e2b0:	81 3b 00 1c 	lwz     r9,28(r27)                             
            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));
ffc1e2b4:	9a db 00 04 	stb     r22,4(r27)                             
                                                                      
          rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
ffc1e2b8:	7e 84 a3 78 	mr      r4,r20                                 
ffc1e2bc:	80 69 00 98 	lwz     r3,152(r9)                             
ffc1e2c0:	4b ff da 2d 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
                                                rtems_rfs_file_buffer (handle));
          if (rc > 0)                                                 
ffc1e2c4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1e2c8:	41 81 01 24 	bgt-    ffc1e3ec <rtems_rfs_file_set_size+0x2f8><== NEVER TAKEN
            return rc;                                                
                                                                      
          count -= length - bpos.boff;                                
ffc1e2cc:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc1e2d0:	3b 80 00 00 	li      r28,0                                  
ffc1e2d4:	7f a9 c8 50 	subf    r29,r9,r25                             
ffc1e2d8:	7f fd f8 10 	subfc   r31,r29,r31                            
ffc1e2dc:	7f dc f1 10 	subfe   r30,r28,r30                            
                                                                      
        count = new_size - size;                                      
        length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
        read_block = false;                                           
                                                                      
        while (count)                                                 
ffc1e2e0:	7f ca fb 79 	or.     r10,r30,r31                            
ffc1e2e4:	40 82 fe e8 	bne+    ffc1e1cc <rtems_rfs_file_set_size+0xd8>
ffc1e2e8:	48 00 00 d4 	b       ffc1e3bc <rtems_rfs_file_set_size+0x2c8>
        uint32_t           offset;                                    
                                                                      
        blocks =                                                      
          rtems_rfs_block_map_count (map) -                           
          (((new_size - 1) /                                          
            rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
ffc1e2ec:	83 99 00 98 	lwz     r28,152(r25)                           
        rtems_rfs_block_no blocks;                                    
        uint32_t           offset;                                    
                                                                      
        blocks =                                                      
          rtems_rfs_block_map_count (map) -                           
          (((new_size - 1) /                                          
ffc1e2f0:	30 9f ff ff 	addic   r4,r31,-1                              
ffc1e2f4:	7c 7e 01 d4 	addme   r3,r30                                 
ffc1e2f8:	83 1c 00 08 	lwz     r24,8(r28)                             
ffc1e2fc:	38 a0 00 00 	li      r5,0                                   
ffc1e300:	7f 06 c3 78 	mr      r6,r24                                 
ffc1e304:	48 01 21 b5 	bl      ffc304b8 <__udivdi3>                   
         * Shrink                                                     
         */                                                           
        rtems_rfs_block_no blocks;                                    
        uint32_t           offset;                                    
                                                                      
        blocks =                                                      
ffc1e308:	81 3a 00 3c 	lwz     r9,60(r26)                             
ffc1e30c:	7c 84 20 f8 	not     r4,r4                                  
ffc1e310:	7f a4 4a 14 	add     r29,r4,r9                              
          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));
ffc1e314:	7f c3 f3 78 	mr      r3,r30                                 
ffc1e318:	7f e4 fb 78 	mr      r4,r31                                 
ffc1e31c:	38 a0 00 00 	li      r5,0                                   
ffc1e320:	7f 06 c3 78 	mr      r6,r24                                 
ffc1e324:	48 01 25 8d 	bl      ffc308b0 <__umoddi3>                   
                                                                      
        if (blocks)                                                   
ffc1e328:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
          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));
ffc1e32c:	7c 9f 23 78 	mr      r31,r4                                 
                                                                      
        if (blocks)                                                   
ffc1e330:	40 9e 00 24 	bne-    cr7,ffc1e354 <rtems_rfs_file_set_size+0x260>
ffc1e334:	39 20 00 01 	li      r9,1                                   
 */                                                                   
static inline void                                                    
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,        
                                     rtems_rfs_block_off  offset)     
{                                                                     
  map->size.offset = offset;                                          
ffc1e338:	93 fa 00 40 	stw     r31,64(r26)                            
  map->dirty = true;                                                  
ffc1e33c:	99 3a 00 34 	stb     r9,52(r26)                             
            return rc;                                                
        }                                                             
                                                                      
        rtems_rfs_block_map_set_size_offset (map, offset);            
                                                                      
        if (rtems_rfs_block_pos_past_end (rtems_rfs_file_bpos (handle),
ffc1e340:	81 3b 00 10 	lwz     r9,16(r27)                             
ffc1e344:	81 5a 00 3c 	lwz     r10,60(r26)                            
ffc1e348:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1e34c:	40 9e 00 24 	bne-    cr7,ffc1e370 <rtems_rfs_file_set_size+0x27c>
ffc1e350:	48 00 00 28 	b       ffc1e378 <rtems_rfs_file_set_size+0x284>
          new_size % rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
                                                                      
        if (blocks)                                                   
        {                                                             
          int rc;                                                     
          rc = rtems_rfs_block_map_shrink (rtems_rfs_file_fs (handle),
ffc1e354:	7f 83 e3 78 	mr      r3,r28                                 
ffc1e358:	38 99 00 34 	addi    r4,r25,52                              
ffc1e35c:	7f a5 eb 78 	mr      r5,r29                                 
ffc1e360:	4b ff d4 cd 	bl      ffc1b82c <rtems_rfs_block_map_shrink>  
                                           rtems_rfs_file_map (handle),
                                           blocks);                   
          if (rc > 0)                                                 
ffc1e364:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1e368:	41 a1 00 84 	bgt+    ffc1e3ec <rtems_rfs_file_set_size+0x2f8><== NEVER TAKEN
ffc1e36c:	4b ff ff c8 	b       ffc1e334 <rtems_rfs_file_set_size+0x240>
            return rc;                                                
        }                                                             
                                                                      
        rtems_rfs_block_map_set_size_offset (map, offset);            
                                                                      
        if (rtems_rfs_block_pos_past_end (rtems_rfs_file_bpos (handle),
ffc1e370:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1e374:	41 9e 00 24 	beq-    cr7,ffc1e398 <rtems_rfs_file_set_size+0x2a4><== NEVER TAKEN
ffc1e378:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc1e37c:	40 9c 00 1c 	bge-    cr7,ffc1e398 <rtems_rfs_file_set_size+0x2a4><== NEVER TAKEN
ffc1e380:	39 4a ff ff 	addi    r10,r10,-1                             
ffc1e384:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc1e388:	40 be 00 34 	bne+    cr7,ffc1e3bc <rtems_rfs_file_set_size+0x2c8><== NEVER TAKEN
ffc1e38c:	81 3b 00 14 	lwz     r9,20(r27)                             
ffc1e390:	7f 89 f8 40 	cmplw   cr7,r9,r31                             
ffc1e394:	40 9d 00 28 	ble-    cr7,ffc1e3bc <rtems_rfs_file_set_size+0x2c8>
                                          rtems_rfs_block_map_size (map)))
          rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
ffc1e398:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc1e39c:	81 3a 00 3c 	lwz     r9,60(r26)                             
ffc1e3a0:	39 40 00 00 	li      r10,0                                  
ffc1e3a4:	93 fb 00 14 	stw     r31,20(r27)                            
ffc1e3a8:	91 3b 00 10 	stw     r9,16(r27)                             
ffc1e3ac:	91 5b 00 18 	stw     r10,24(r27)                            
ffc1e3b0:	41 9e 00 0c 	beq-    cr7,ffc1e3bc <rtems_rfs_file_set_size+0x2c8><== NEVER TAKEN
ffc1e3b4:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1e3b8:	91 3b 00 10 	stw     r9,16(r27)                             
                                         rtems_rfs_file_bpos (handle));
      }                                                               
    }                                                                 
                                                                      
    handle->shared->size.count  = rtems_rfs_block_map_count (map);    
ffc1e3bc:	83 fb 00 1c 	lwz     r31,28(r27)                            
ffc1e3c0:	81 3a 00 3c 	lwz     r9,60(r26)                             
ffc1e3c4:	91 3f 00 84 	stw     r9,132(r31)                            
    handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
ffc1e3c8:	81 3a 00 40 	lwz     r9,64(r26)                             
ffc1e3cc:	91 3f 00 88 	stw     r9,136(r31)                            
                                                                      
    if (rtems_rfs_file_update_mtime (handle))                         
ffc1e3d0:	81 3b 00 00 	lwz     r9,0(r27)                              
ffc1e3d4:	71 2a 00 02 	andi.   r10,r9,2                               
ffc1e3d8:	40 a2 00 10 	bne+    ffc1e3e8 <rtems_rfs_file_set_size+0x2f4><== NEVER TAKEN
      handle->shared->mtime = time (NULL);                            
ffc1e3dc:	38 60 00 00 	li      r3,0                                   
ffc1e3e0:	48 00 8b 75 	bl      ffc26f54 <time>                        
ffc1e3e4:	90 7f 00 90 	stw     r3,144(r31)                            
  }                                                                   
                                                                      
  return 0;                                                           
ffc1e3e8:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1e3ec:	39 61 00 48 	addi    r11,r1,72                              
ffc1e3f0:	4b fe 31 50 	b       ffc01540 <_restgpr_20_x>               
                                                                      

ffc11380 <rtems_rfs_format>: return rc; } int rtems_rfs_format (const char* name, const rtems_rfs_format_config* config) {
ffc11380:	94 21 fe d0 	stwu    r1,-304(r1)                            
ffc11384:	7c 08 02 a6 	mflr    r0                                     
ffc11388:	90 01 01 34 	stw     r0,308(r1)                             
  rtems_rfs_file_system fs;                                           
  int                   group;                                        
  int                   rc;                                           
                                                                      
  if (config->verbose)                                                
ffc1138c:	89 24 00 15 	lbz     r9,21(r4)                              
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)
{                                                                     
ffc11390:	bd e1 00 ec 	stmw    r15,236(r1)                            
ffc11394:	7c 79 1b 78 	mr      r25,r3                                 
  rtems_rfs_file_system fs;                                           
  int                   group;                                        
  int                   rc;                                           
                                                                      
  if (config->verbose)                                                
ffc11398:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)
{                                                                     
ffc1139c:	7c 9c 23 78 	mr      r28,r4                                 
  rtems_rfs_file_system fs;                                           
  int                   group;                                        
  int                   rc;                                           
                                                                      
  if (config->verbose)                                                
ffc113a0:	41 be 00 18 	beq+    cr7,ffc113b8 <rtems_rfs_format+0x38>   <== ALWAYS TAKEN
    printf ("rtems-rfs: format: %s\n", name);                         
ffc113a4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc113a8:	38 63 31 e7 	addi    r3,r3,12775                            <== NOT EXECUTED
ffc113ac:	7f 24 cb 78 	mr      r4,r25                                 <== NOT EXECUTED
ffc113b0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc113b4:	48 01 17 bd 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
  memset (&fs, 0, sizeof (rtems_rfs_file_system));                    
ffc113b8:	38 80 00 00 	li      r4,0                                   
ffc113bc:	38 a0 00 84 	li      r5,132                                 
ffc113c0:	38 61 00 08 	addi    r3,r1,8                                
ffc113c4:	48 01 15 51 	bl      ffc22914 <memset>                      
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc113c8:	7c 29 0b 78 	mr      r9,r1                                  
ffc113cc:	39 41 00 50 	addi    r10,r1,80                              
ffc113d0:	95 49 00 4c 	stwu    r10,76(r9)                             
ffc113d4:	39 41 00 60 	addi    r10,r1,96                              
  fs.flags = RTEMS_RFS_FS_NO_LOCAL_CACHE;                             
                                                                      
  /*                                                                  
   * Open the buffer interface.                                       
   */                                                                 
  rc = rtems_rfs_buffer_open (name, &fs);                             
ffc113d8:	7f 23 cb 78 	mr      r3,r25                                 
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc113dc:	91 21 00 54 	stw     r9,84(r1)                              
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc113e0:	7c 29 0b 78 	mr      r9,r1                                  
ffc113e4:	38 81 00 08 	addi    r4,r1,8                                
ffc113e8:	95 49 00 5c 	stwu    r10,92(r9)                             
ffc113ec:	39 41 00 70 	addi    r10,r1,112                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc113f0:	91 21 00 64 	stw     r9,100(r1)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc113f4:	7c 29 0b 78 	mr      r9,r1                                  
ffc113f8:	95 49 00 6c 	stwu    r10,108(r9)                            
ffc113fc:	39 41 00 80 	addi    r10,r1,128                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc11400:	91 21 00 74 	stw     r9,116(r1)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc11404:	7c 29 0b 78 	mr      r9,r1                                  
ffc11408:	95 49 00 7c 	stwu    r10,124(r9)                            
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc1140c:	91 21 00 84 	stw     r9,132(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;                
ffc11410:	39 20 00 05 	li      r9,5                                   
ffc11414:	91 21 00 48 	stw     r9,72(r1)                              
                                                                      
  fs.release_count = 0;                                               
  fs.release_modified_count = 0;                                      
                                                                      
  fs.flags = RTEMS_RFS_FS_NO_LOCAL_CACHE;                             
ffc11418:	39 20 00 02 	li      r9,2                                   
ffc1141c:	91 21 00 08 	stw     r9,8(r1)                               
                                                                      
  /*                                                                  
   * Open the buffer interface.                                       
   */                                                                 
  rc = rtems_rfs_buffer_open (name, &fs);                             
ffc11420:	48 00 ad 55 	bl      ffc1c174 <rtems_rfs_buffer_open>       
  if (rc > 0)                                                         
ffc11424:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc11428:	40 a1 00 18 	ble+    ffc11440 <rtems_rfs_format+0xc0>       <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: buffer open failed: %d: %s\n",        
ffc1142c:	48 01 29 31 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11430:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc11434:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11438:	38 63 31 fe 	addi    r3,r3,12798                            <== NOT EXECUTED
ffc1143c:	48 00 0b 58 	b       ffc11f94 <rtems_rfs_format+0xc14>      <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Check the media.                                                 
   */                                                                 
  if (rtems_rfs_fs_media_block_size (&fs) == 0)                       
ffc11440:	81 21 00 18 	lwz     r9,24(r1)                              
ffc11444:	81 29 00 20 	lwz     r9,32(r9)                              
ffc11448:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1144c:	40 be 00 14 	bne+    cr7,ffc11460 <rtems_rfs_format+0xe0>   <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: media block is invalid: %" PRIu32 "\n",       
ffc11450:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11454:	38 63 32 2d 	addi    r3,r3,12845                            <== NOT EXECUTED
ffc11458:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1145c:	48 00 05 cc 	b       ffc11a28 <rtems_rfs_format+0x6a8>      <== 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;                                
ffc11460:	81 3c 00 00 	lwz     r9,0(r28)                              
  if (!fs->block_size)                                                
ffc11464:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
static bool                                                           
rtems_rfs_check_config (rtems_rfs_file_system*         fs,            
                        const rtems_rfs_format_config* config)        
{                                                                     
  fs->block_size = config->block_size;                                
ffc11468:	91 21 00 10 	stw     r9,16(r1)                              
  if (!fs->block_size)                                                
ffc1146c:	40 be 00 94 	bne+    cr7,ffc11500 <rtems_rfs_format+0x180>  
  {                                                                   
    uint64_t total_size = rtems_rfs_fs_media_size (fs);               
ffc11470:	38 61 00 08 	addi    r3,r1,8                                
ffc11474:	48 00 d3 19 	bl      ffc1e78c <rtems_rfs_fs_media_size>     
                                                                      
    if (total_size >= GIGS (1))                                       
ffc11478:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1147c:	40 82 00 14 	bne-    ffc11490 <rtems_rfs_format+0x110>      <== NEVER TAKEN
ffc11480:	3d 20 00 0f 	lis     r9,15                                  
ffc11484:	61 29 ff ff 	ori     r9,r9,65535                            
ffc11488:	7f 84 48 40 	cmplw   cr7,r4,r9                              
ffc1148c:	40 9d 00 4c 	ble-    cr7,ffc114d8 <rtems_rfs_format+0x158>  <== ALWAYS TAKEN
    {                                                                 
      uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);             
ffc11490:	3d 24 00 10 	addis   r9,r4,16                               <== NOT EXECUTED
ffc11494:	7c 84 48 10 	subfc   r4,r4,r9                               <== NOT EXECUTED
ffc11498:	7c 84 21 10 	subfe   r4,r4,r4                               <== NOT EXECUTED
ffc1149c:	7c 84 18 50 	subf    r4,r4,r3                               <== NOT EXECUTED
ffc114a0:	55 29 65 3e 	rlwinm  r9,r9,12,20,31                         <== NOT EXECUTED
ffc114a4:	54 84 60 26 	rlwinm  r4,r4,12,0,19                          <== NOT EXECUTED
ffc114a8:	7c 84 4b 78 	or      r4,r4,r9                               <== NOT EXECUTED
      int      b;                                                     
      for (b = 31; b > 0; b--)                                        
ffc114ac:	39 20 00 1f 	li      r9,31                                  <== NOT EXECUTED
        if ((gigs & (1 << b)) != 0)                                   
ffc114b0:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc114b4:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc114b8:	7d 48 48 30 	slw     r8,r10,r9                              <== NOT EXECUTED
ffc114bc:	7d 07 20 39 	and.    r7,r8,r4                               <== NOT EXECUTED
ffc114c0:	40 82 00 0c 	bne-    ffc114cc <rtems_rfs_format+0x14c>      <== NOT EXECUTED
                                                                      
    if (total_size >= GIGS (1))                                       
    {                                                                 
      uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);             
      int      b;                                                     
      for (b = 31; b > 0; b--)                                        
ffc114c4:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc114c8:	42 00 ff f0 	bdnz+   ffc114b8 <rtems_rfs_format+0x138>      <== NOT EXECUTED
        if ((gigs & (1 << b)) != 0)                                   
          break;                                                      
      fs->block_size = 1 << b;                                        
ffc114cc:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc114d0:	7d 49 48 30 	slw     r9,r10,r9                              <== NOT EXECUTED
ffc114d4:	91 21 00 10 	stw     r9,16(r1)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    if (fs->block_size < 512)                                         
ffc114d8:	81 21 00 10 	lwz     r9,16(r1)                              
ffc114dc:	2b 89 01 ff 	cmplwi  cr7,r9,511                             
ffc114e0:	41 9d 00 0c 	bgt-    cr7,ffc114ec <rtems_rfs_format+0x16c>  <== NEVER TAKEN
      fs->block_size = 512;                                           
ffc114e4:	39 20 02 00 	li      r9,512                                 
ffc114e8:	91 21 00 10 	stw     r9,16(r1)                              
                                                                      
    if (fs->block_size > (4 * 1024))                                  
ffc114ec:	81 21 00 10 	lwz     r9,16(r1)                              
ffc114f0:	2b 89 10 00 	cmplwi  cr7,r9,4096                            
ffc114f4:	40 9d 00 0c 	ble-    cr7,ffc11500 <rtems_rfs_format+0x180>  <== ALWAYS TAKEN
      fs->block_size = (4 * 1024);                                    
ffc114f8:	39 20 10 00 	li      r9,4096                                <== NOT EXECUTED
ffc114fc:	91 21 00 10 	stw     r9,16(r1)                              <== NOT EXECUTED
  }                                                                   
                                                                      
  if ((fs->block_size % rtems_rfs_fs_media_block_size (fs)) != 0)     
ffc11500:	81 21 00 18 	lwz     r9,24(r1)                              
ffc11504:	80 81 00 10 	lwz     r4,16(r1)                              
ffc11508:	80 a9 00 20 	lwz     r5,32(r9)                              
ffc1150c:	7d 24 2b 96 	divwu   r9,r4,r5                               
ffc11510:	7d 29 29 d6 	mullw   r9,r9,r5                               
ffc11514:	7f 84 48 00 	cmpw    cr7,r4,r9                              
ffc11518:	41 be 00 10 	beq+    cr7,ffc11528 <rtems_rfs_format+0x1a8>  <== ALWAYS TAKEN
  {                                                                   
    printf ("block size (%zd) is not a multiple of media block size (%" PRId32 ")\n",
ffc1151c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11520:	38 63 32 55 	addi    r3,r3,12885                            <== NOT EXECUTED
ffc11524:	48 00 08 20 	b       ffc11d44 <rtems_rfs_format+0x9c4>      <== NOT EXECUTED
            fs->block_size, rtems_rfs_fs_media_block_size (fs));      
    return false;                                                     
  }                                                                   
                                                                      
  fs->group_blocks = config->group_blocks;                            
ffc11528:	81 3c 00 04 	lwz     r9,4(r28)                              
ffc1152c:	54 84 18 38 	rlwinm  r4,r4,3,0,28                           
  if (!fs->group_blocks)                                              
ffc11530:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11534:	41 9e 00 0c 	beq-    cr7,ffc11540 <rtems_rfs_format+0x1c0>  <== ALWAYS TAKEN
    printf ("block size (%zd) is not a multiple of media block size (%" PRId32 ")\n",
            fs->block_size, rtems_rfs_fs_media_block_size (fs));      
    return false;                                                     
  }                                                                   
                                                                      
  fs->group_blocks = config->group_blocks;                            
ffc11538:	91 21 00 30 	stw     r9,48(r1)                              <== NOT EXECUTED
ffc1153c:	48 00 00 08 	b       ffc11544 <rtems_rfs_format+0x1c4>      <== NOT EXECUTED
  {                                                                   
    /*                                                                
     * 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);  
ffc11540:	90 81 00 30 	stw     r4,48(r1)                              
  }                                                                   
                                                                      
  if (fs->group_blocks > rtems_rfs_bitmap_numof_bits (fs->block_size))
ffc11544:	81 21 00 30 	lwz     r9,48(r1)                              
ffc11548:	7f 89 20 40 	cmplw   cr7,r9,r4                              
ffc1154c:	40 bd 00 10 	ble+    cr7,ffc1155c <rtems_rfs_format+0x1dc>  <== ALWAYS TAKEN
  {                                                                   
    printf ("group block count is higher than bits in block\n");      
ffc11550:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11554:	38 63 32 93 	addi    r3,r3,12947                            <== NOT EXECUTED
ffc11558:	48 00 04 9c 	b       ffc119f4 <rtems_rfs_format+0x674>      <== NOT EXECUTED
    return false;                                                     
  }                                                                   
                                                                      
  fs->blocks = rtems_rfs_fs_media_size (fs) / fs->block_size;         
ffc1155c:	38 61 00 08 	addi    r3,r1,8                                
ffc11560:	48 00 d2 2d 	bl      ffc1e78c <rtems_rfs_fs_media_size>     
ffc11564:	83 e1 00 10 	lwz     r31,16(r1)                             
ffc11568:	38 a0 00 00 	li      r5,0                                   
ffc1156c:	7f e6 fb 78 	mr      r6,r31                                 
ffc11570:	48 01 ef 49 	bl      ffc304b8 <__udivdi3>                   
 * 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));  
ffc11574:	57 fe 18 38 	rlwinm  r30,r31,3,0,28                         
  {                                                                   
    printf ("group block count is higher than bits in block\n");      
    return false;                                                     
  }                                                                   
                                                                      
  fs->blocks = rtems_rfs_fs_media_size (fs) / fs->block_size;         
ffc11578:	90 81 00 0c 	stw     r4,12(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), 
ffc1157c:	7c 83 23 78 	mr      r3,r4                                  
  {                                                                   
    printf ("group block count is higher than bits in block\n");      
    return false;                                                     
  }                                                                   
                                                                      
  fs->blocks = rtems_rfs_fs_media_size (fs) / fs->block_size;         
ffc11580:	7c 9d 23 78 	mr      r29,r4                                 
  /*                                                                  
   * 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), 
ffc11584:	7f c4 f3 78 	mr      r4,r30                                 
ffc11588:	4b ff fd d9 	bl      ffc11360 <rtems_rfs_rup_quotient>      
                                            rtems_rfs_bits_per_block (fs));
                                                                      
  fs->group_inodes = config->group_inodes;                            
ffc1158c:	81 3c 00 08 	lwz     r9,8(r28)                              
  /*                                                                  
   * 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), 
ffc11590:	7c 64 1b 78 	mr      r4,r3                                  
ffc11594:	90 61 00 2c 	stw     r3,44(r1)                              
                                            rtems_rfs_bits_per_block (fs));
                                                                      
  fs->group_inodes = config->group_inodes;                            
  if (!fs->group_inodes)                                              
ffc11598:	2f 89 00 00 	cmpwi   cr7,r9,0                               
   * per block.                                                       
   */                                                                 
  fs->group_count = rtems_rfs_rup_quotient (rtems_rfs_fs_blocks (fs), 
                                            rtems_rfs_bits_per_block (fs));
                                                                      
  fs->group_inodes = config->group_inodes;                            
ffc1159c:	91 21 00 34 	stw     r9,52(r1)                              
  if (!fs->group_inodes)                                              
ffc115a0:	40 9e 00 38 	bne-    cr7,ffc115d8 <rtems_rfs_format+0x258>  <== 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)                                       
ffc115a4:	81 3c 00 0c 	lwz     r9,12(r28)                             
ffc115a8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc115ac:	40 9e 00 08 	bne-    cr7,ffc115b4 <rtems_rfs_format+0x234>  <== 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;         
ffc115b0:	39 20 00 01 	li      r9,1                                   
static int                                                            
rtems_rfs_inodes_from_percent (rtems_rfs_file_system* fs,             
                               int                    percentage)     
{                                                                     
  int blocks;                                                         
  blocks = ((rtems_rfs_fs_blocks (fs) -                               
ffc115b4:	3b bd ff ff 	addi    r29,r29,-1                             
             RTEMS_RFS_SUPERBLOCK_SIZE) * percentage) / 100;          
ffc115b8:	7d 29 e9 d6 	mullw   r9,r9,r29                              
  blocks = rtems_rfs_rup_quotient (blocks, fs->group_count);          
ffc115bc:	38 60 00 64 	li      r3,100                                 
ffc115c0:	7c 69 1b 96 	divwu   r3,r9,r3                               
ffc115c4:	4b ff fd 9d 	bl      ffc11360 <rtems_rfs_rup_quotient>      
  return blocks * (rtems_rfs_fs_block_size (fs) / RTEMS_RFS_INODE_SIZE);
ffc115c8:	39 20 00 38 	li      r9,56                                  
ffc115cc:	7d 3f 4b 96 	divwu   r9,r31,r9                              
ffc115d0:	7c 63 49 d6 	mullw   r3,r3,r9                               
     * 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);
ffc115d4:	90 61 00 34 	stw     r3,52(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;
ffc115d8:	39 20 00 38 	li      r9,56                                  
  fs->group_inodes =                                                  
    rtems_rfs_rup_quotient (fs->group_inodes,                         
ffc115dc:	80 61 00 34 	lwz     r3,52(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;
ffc115e0:	7f ff 4b 96 	divwu   r31,r31,r9                             
  fs->group_inodes =                                                  
    rtems_rfs_rup_quotient (fs->group_inodes,                         
ffc115e4:	7f e4 fb 78 	mr      r4,r31                                 
  }                                                                   
                                                                      
  /*                                                                  
   * 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;
ffc115e8:	93 e1 00 38 	stw     r31,56(r1)                             
  fs->group_inodes =                                                  
    rtems_rfs_rup_quotient (fs->group_inodes,                         
ffc115ec:	4b ff fd 75 	bl      ffc11360 <rtems_rfs_rup_quotient>      
                            fs->inodes_per_block) * fs->inodes_per_block;
ffc115f0:	7c 63 f9 d6 	mullw   r3,r3,r31                              
                                                                      
  if (fs->group_inodes > rtems_rfs_bitmap_numof_bits (fs->block_size))
ffc115f4:	7f 83 f0 40 	cmplw   cr7,r3,r30                             
ffc115f8:	41 9d 00 0c 	bgt-    cr7,ffc11604 <rtems_rfs_format+0x284>  <== NEVER TAKEN
                                                                      
  /*                                                                  
   * 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 =                                                  
ffc115fc:	90 61 00 34 	stw     r3,52(r1)                              
ffc11600:	48 00 00 08 	b       ffc11608 <rtems_rfs_format+0x288>      
    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))
    fs->group_inodes = rtems_rfs_bitmap_numof_bits (fs->block_size);  
ffc11604:	93 c1 00 34 	stw     r30,52(r1)                             <== NOT EXECUTED
                                                                      
  fs->max_name_length = config->max_name_length;                      
ffc11608:	81 3c 00 10 	lwz     r9,16(r28)                             
  if (!fs->max_name_length)                                           
ffc1160c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11610:	40 9e 09 9c 	bne-    cr7,ffc11fac <rtems_rfs_format+0xc2c>  <== NEVER TAKEN
  {                                                                   
    fs->max_name_length = 512;                                        
ffc11614:	39 20 02 00 	li      r9,512                                 
ffc11618:	48 00 09 94 	b       ffc11fac <rtems_rfs_format+0xc2c>      
  if (!rtems_rfs_check_config (&fs, config))                          
    return -1;                                                        
                                                                      
  if (config->verbose)                                                
  {                                                                   
    printf ("rtems-rfs: format: media size = %" PRIu64 "\n",          
ffc1161c:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc11620:	48 00 d1 6d 	bl      ffc1e78c <rtems_rfs_fs_media_size>     <== NOT EXECUTED
ffc11624:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc11628:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1162c:	7c 86 23 78 	mr      r6,r4                                  <== NOT EXECUTED
ffc11630:	38 63 32 c2 	addi    r3,r3,12994                            <== NOT EXECUTED
ffc11634:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11638:	48 01 15 39 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rtems_rfs_fs_media_size (&fs));                           
    printf ("rtems-rfs: format: media blocks = %" PRIu32 "\n",        
ffc1163c:	81 21 00 18 	lwz     r9,24(r1)                              <== NOT EXECUTED
ffc11640:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11644:	80 89 00 1c 	lwz     r4,28(r9)                              <== NOT EXECUTED
ffc11648:	38 63 32 e8 	addi    r3,r3,13032                            <== NOT EXECUTED
ffc1164c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11650:	48 01 15 21 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rtems_rfs_fs_media_blocks (&fs));                         
    printf ("rtems-rfs: format: media block size = %" PRIu32 "\n",    
ffc11654:	81 21 00 18 	lwz     r9,24(r1)                              <== NOT EXECUTED
ffc11658:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1165c:	80 89 00 20 	lwz     r4,32(r9)                              <== NOT EXECUTED
ffc11660:	38 63 33 0f 	addi    r3,r3,13071                            <== NOT EXECUTED
ffc11664:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11668:	48 01 15 09 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rtems_rfs_fs_media_block_size (&fs));                     
    printf ("rtems-rfs: format: size = %" PRIu64 "\n",                
ffc1166c:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc11670:	48 00 d1 01 	bl      ffc1e770 <rtems_rfs_fs_size>           <== NOT EXECUTED
ffc11674:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc11678:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1167c:	7c 86 23 78 	mr      r6,r4                                  <== NOT EXECUTED
ffc11680:	38 63 33 3a 	addi    r3,r3,13114                            <== NOT EXECUTED
ffc11684:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11688:	48 01 14 e9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rtems_rfs_fs_size (&fs));                                 
    printf ("rtems-rfs: format: blocks = %zu\n",                      
ffc1168c:	80 81 00 0c 	lwz     r4,12(r1)                              <== NOT EXECUTED
ffc11690:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11694:	38 63 33 5a 	addi    r3,r3,13146                            <== NOT EXECUTED
ffc11698:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1169c:	48 01 14 d5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rtems_rfs_fs_blocks (&fs));                               
    printf ("rtems-rfs: format: block size = %zu\n",                  
ffc116a0:	80 81 00 10 	lwz     r4,16(r1)                              <== NOT EXECUTED
ffc116a4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc116a8:	38 63 33 7b 	addi    r3,r3,13179                            <== NOT EXECUTED
ffc116ac:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc116b0:	48 01 14 c1 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rtems_rfs_fs_block_size (&fs));                           
    printf ("rtems-rfs: format: bits per block = %u\n",               
ffc116b4:	80 81 00 10 	lwz     r4,16(r1)                              <== NOT EXECUTED
ffc116b8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc116bc:	54 84 18 38 	rlwinm  r4,r4,3,0,28                           <== NOT EXECUTED
ffc116c0:	38 63 33 a0 	addi    r3,r3,13216                            <== NOT EXECUTED
ffc116c4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc116c8:	48 01 14 a9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rtems_rfs_bits_per_block (&fs));                          
    printf ("rtems-rfs: format: inode size = %zu\n", RTEMS_RFS_INODE_SIZE);
ffc116cc:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc116d0:	38 80 00 38 	li      r4,56                                  <== NOT EXECUTED
ffc116d4:	38 63 33 c8 	addi    r3,r3,13256                            <== NOT EXECUTED
ffc116d8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc116dc:	48 01 14 95 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
    printf ("rtems-rfs: format: inodes = %zu (%d.%d%%)\n",            
            fs.group_inodes * fs.group_count,                         
ffc116e0:	80 61 00 34 	lwz     r3,52(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",            
ffc116e4:	83 c1 00 2c 	lwz     r30,44(r1)                             <== NOT EXECUTED
rtems_rfs_inode_overhead (rtems_rfs_file_system* fs)                  
{                                                                     
  int blocks;                                                         
  int bits_per_block;                                                 
  blocks = rtems_rfs_rup_quotient(fs->group_inodes * RTEMS_RFS_INODE_SIZE,
                                  rtems_rfs_fs_block_size (fs));      
ffc116e8:	83 e1 00 10 	lwz     r31,16(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",            
ffc116ec:	7f c3 f1 d6 	mullw   r30,r3,r30                             <== NOT EXECUTED
static int                                                            
rtems_rfs_inode_overhead (rtems_rfs_file_system* fs)                  
{                                                                     
  int blocks;                                                         
  int bits_per_block;                                                 
  blocks = rtems_rfs_rup_quotient(fs->group_inodes * RTEMS_RFS_INODE_SIZE,
ffc116f0:	1c 63 00 38 	mulli   r3,r3,56                               <== NOT EXECUTED
ffc116f4:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc116f8:	4b ff fc 69 	bl      ffc11360 <rtems_rfs_rup_quotient>      <== 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))
ffc116fc:	81 21 00 0c 	lwz     r9,12(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));  
ffc11700:	57 ff 18 38 	rlwinm  r31,r31,3,0,28                         <== 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))
ffc11704:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc11708:	7f 9f 48 40 	cmplw   cr7,r31,r9                             <== NOT EXECUTED
ffc1170c:	41 bd 00 08 	bgt+    cr7,ffc11714 <rtems_rfs_format+0x394>  <== 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));  
ffc11710:	7f e9 fb 78 	mr      r9,r31                                 <== 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;                  
ffc11714:	38 63 00 01 	addi    r3,r3,1                                <== NOT EXECUTED
ffc11718:	1c 63 03 e8 	mulli   r3,r3,1000                             <== NOT EXECUTED
ffc1171c:	7d 23 4b d6 	divw    r9,r3,r9                               <== 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",            
ffc11720:	38 a0 00 0a 	li      r5,10                                  <== NOT EXECUTED
ffc11724:	7c a9 2b d6 	divw    r5,r9,r5                               <== NOT EXECUTED
ffc11728:	1c c5 00 0a 	mulli   r6,r5,10                               <== NOT EXECUTED
ffc1172c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11730:	7c c6 48 50 	subf    r6,r6,r9                               <== NOT EXECUTED
ffc11734:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc11738:	38 63 33 ed 	addi    r3,r3,13293                            <== NOT EXECUTED
ffc1173c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11740:	48 01 14 31 	bl      ffc22b70 <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);      
ffc11744:	80 81 00 2c 	lwz     r4,44(r1)                              <== NOT EXECUTED
ffc11748:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1174c:	38 63 34 18 	addi    r3,r3,13336                            <== NOT EXECUTED
ffc11750:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11754:	48 01 14 1d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
    printf ("rtems-rfs: format: group blocks = %zu\n", fs.group_blocks);
ffc11758:	80 81 00 30 	lwz     r4,48(r1)                              <== NOT EXECUTED
ffc1175c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11760:	38 63 34 38 	addi    r3,r3,13368                            <== NOT EXECUTED
ffc11764:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11768:	48 01 14 09 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
    printf ("rtems-rfs: format: group inodes = %zu\n", fs.group_inodes);
ffc1176c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11770:	80 81 00 34 	lwz     r4,52(r1)                              <== NOT EXECUTED
ffc11774:	38 63 34 5f 	addi    r3,r3,13407                            <== NOT EXECUTED
ffc11778:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1177c:	48 01 13 f5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_setblksize (&fs, rtems_rfs_fs_block_size (&fs));
ffc11780:	3b a1 00 08 	addi    r29,r1,8                               
ffc11784:	80 81 00 10 	lwz     r4,16(r1)                              
ffc11788:	7f a3 eb 78 	mr      r3,r29                                 
ffc1178c:	48 00 ac 95 	bl      ffc1c420 <rtems_rfs_buffer_setblksize> 
  if (rc > 0)                                                         
ffc11790:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc11794:	40 a1 00 18 	ble+    ffc117ac <rtems_rfs_format+0x42c>      <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: setting block size failed: %d: %s\n", 
ffc11798:	48 01 25 c5 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1179c:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc117a0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc117a4:	38 63 34 86 	addi    r3,r3,13446                            <== NOT EXECUTED
ffc117a8:	48 00 07 ec 	b       ffc11f94 <rtems_rfs_format+0xc14>      <== 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);       
ffc117ac:	3b c1 00 cc 	addi    r30,r1,204                             
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc117b0:	39 20 00 00 	li      r9,0                                   
  handle->bnum  = 0;                                                  
ffc117b4:	3b 60 00 00 	li      r27,0                                  
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc117b8:	99 21 00 cc 	stb     r9,204(r1)                             
ffc117bc:	7f a3 eb 78 	mr      r3,r29                                 
ffc117c0:	7f c4 f3 78 	mr      r4,r30                                 
  handle->bnum  = 0;                                                  
ffc117c4:	93 61 00 d0 	stw     r27,208(r1)                            
ffc117c8:	38 a0 00 00 	li      r5,0                                   
ffc117cc:	38 c0 00 00 	li      r6,0                                   
  handle->buffer = NULL;                                              
ffc117d0:	93 61 00 d4 	stw     r27,212(r1)                            
ffc117d4:	48 00 a6 fd 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
  if (rc > 0)                                                         
ffc117d8:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc117dc:	40 81 00 28 	ble-    ffc11804 <rtems_rfs_format+0x484>      <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc117e0:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc117e4:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc117e8:	4b ff fb 3d 	bl      ffc11324 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
    printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",  
ffc117ec:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc117f0:	48 01 25 6d 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc117f4:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc117f8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc117fc:	38 63 34 bc 	addi    r3,r3,13500                            <== NOT EXECUTED
ffc11800:	48 00 01 90 	b       ffc11990 <rtems_rfs_format+0x610>      <== NOT EXECUTED
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  sb = rtems_rfs_buffer_data (&handle);                               
ffc11804:	81 21 00 d4 	lwz     r9,212(r1)                             
                                                                      
#define write_sb(_o, _d) rtems_rfs_write_u32(sb + (_o), _d)           
                                                                      
  memset (sb, 0xff, rtems_rfs_fs_block_size (fs));                    
ffc11808:	38 80 00 ff 	li      r4,255                                 
ffc1180c:	80 a1 00 10 	lwz     r5,16(r1)                              
    printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",  
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  sb = rtems_rfs_buffer_data (&handle);                               
ffc11810:	83 e9 00 1c 	lwz     r31,28(r9)                             
                                                                      
#define write_sb(_o, _d) rtems_rfs_write_u32(sb + (_o), _d)           
                                                                      
  memset (sb, 0xff, rtems_rfs_fs_block_size (fs));                    
ffc11814:	7f e3 fb 78 	mr      r3,r31                                 
ffc11818:	48 01 10 fd 	bl      ffc22914 <memset>                      
                                                                      
  write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);           
ffc1181c:	39 20 00 28 	li      r9,40                                  
ffc11820:	99 3f 00 00 	stb     r9,0(r31)                              
ffc11824:	39 20 00 09 	li      r9,9                                   
ffc11828:	39 40 00 01 	li      r10,1                                  
ffc1182c:	99 3f 00 01 	stb     r9,1(r31)                              
ffc11830:	39 20 00 20 	li      r9,32                                  
  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);                              
                                                                      
  rc = rtems_rfs_buffer_handle_release (fs, &handle);                 
ffc11834:	7f c4 f3 78 	mr      r4,r30                                 
                                                                      
#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);           
ffc11838:	99 5f 00 03 	stb     r10,3(r31)                             
  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);                              
                                                                      
  rc = rtems_rfs_buffer_handle_release (fs, &handle);                 
ffc1183c:	7f a3 eb 78 	mr      r3,r29                                 
                                                                      
#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);           
ffc11840:	99 3f 00 02 	stb     r9,2(r31)                              
  write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);          
ffc11844:	9b 7f 00 04 	stb     r27,4(r31)                             
ffc11848:	9b 7f 00 05 	stb     r27,5(r31)                             
ffc1184c:	9b 7f 00 06 	stb     r27,6(r31)                             
ffc11850:	9b 7f 00 07 	stb     r27,7(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));    
ffc11854:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc11858:	55 28 46 3e 	rlwinm  r8,r9,8,24,31                          
ffc1185c:	99 3f 00 0f 	stb     r9,15(r31)                             
ffc11860:	99 1f 00 0c 	stb     r8,12(r31)                             
ffc11864:	55 28 84 3e 	rlwinm  r8,r9,16,16,31                         
ffc11868:	99 1f 00 0d 	stb     r8,13(r31)                             
ffc1186c:	55 28 c2 3e 	rlwinm  r8,r9,24,8,31                          
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
ffc11870:	89 21 00 10 	lbz     r9,16(r1)                              
                                                                      
  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));    
ffc11874:	99 1f 00 0e 	stb     r8,14(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
ffc11878:	99 3f 00 08 	stb     r9,8(r31)                              
ffc1187c:	a1 21 00 10 	lhz     r9,16(r1)                              
ffc11880:	99 3f 00 09 	stb     r9,9(r31)                              
ffc11884:	81 21 00 10 	lwz     r9,16(r1)                              
ffc11888:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc1188c:	99 3f 00 0a 	stb     r9,10(r31)                             
ffc11890:	81 21 00 10 	lwz     r9,16(r1)                              
ffc11894:	99 3f 00 0b 	stb     r9,11(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);          
ffc11898:	89 21 00 20 	lbz     r9,32(r1)                              
ffc1189c:	99 3f 00 10 	stb     r9,16(r31)                             
ffc118a0:	a1 21 00 20 	lhz     r9,32(r1)                              
ffc118a4:	99 3f 00 11 	stb     r9,17(r31)                             
ffc118a8:	81 21 00 20 	lwz     r9,32(r1)                              
ffc118ac:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc118b0:	99 3f 00 12 	stb     r9,18(r31)                             
ffc118b4:	81 21 00 20 	lwz     r9,32(r1)                              
ffc118b8:	99 3f 00 13 	stb     r9,19(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
ffc118bc:	89 21 00 24 	lbz     r9,36(r1)                              
ffc118c0:	99 3f 00 14 	stb     r9,20(r31)                             
ffc118c4:	a1 21 00 24 	lhz     r9,36(r1)                              
ffc118c8:	99 3f 00 15 	stb     r9,21(r31)                             
ffc118cc:	81 21 00 24 	lwz     r9,36(r1)                              
ffc118d0:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc118d4:	99 3f 00 16 	stb     r9,22(r31)                             
ffc118d8:	81 21 00 24 	lwz     r9,36(r1)                              
ffc118dc:	99 3f 00 17 	stb     r9,23(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);             
ffc118e0:	89 21 00 2c 	lbz     r9,44(r1)                              
ffc118e4:	99 3f 00 18 	stb     r9,24(r31)                             
ffc118e8:	a1 21 00 2c 	lhz     r9,44(r1)                              
ffc118ec:	99 3f 00 19 	stb     r9,25(r31)                             
ffc118f0:	81 21 00 2c 	lwz     r9,44(r1)                              
ffc118f4:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc118f8:	99 3f 00 1a 	stb     r9,26(r31)                             
ffc118fc:	81 21 00 2c 	lwz     r9,44(r1)                              
ffc11900:	99 3f 00 1b 	stb     r9,27(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);      
ffc11904:	89 21 00 30 	lbz     r9,48(r1)                              
ffc11908:	99 3f 00 1c 	stb     r9,28(r31)                             
ffc1190c:	a1 21 00 30 	lhz     r9,48(r1)                              
ffc11910:	99 3f 00 1d 	stb     r9,29(r31)                             
ffc11914:	81 21 00 30 	lwz     r9,48(r1)                              
ffc11918:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc1191c:	99 3f 00 1e 	stb     r9,30(r31)                             
ffc11920:	81 21 00 30 	lwz     r9,48(r1)                              
ffc11924:	99 3f 00 1f 	stb     r9,31(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);      
ffc11928:	89 21 00 34 	lbz     r9,52(r1)                              
ffc1192c:	99 3f 00 20 	stb     r9,32(r31)                             
ffc11930:	a1 21 00 34 	lhz     r9,52(r1)                              
ffc11934:	99 3f 00 21 	stb     r9,33(r31)                             
ffc11938:	81 21 00 34 	lwz     r9,52(r1)                              
ffc1193c:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc11940:	99 3f 00 22 	stb     r9,34(r31)                             
ffc11944:	81 21 00 34 	lwz     r9,52(r1)                              
  write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);    
ffc11948:	9b 7f 00 24 	stb     r27,36(r31)                            
  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);      
ffc1194c:	99 3f 00 23 	stb     r9,35(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);    
ffc11950:	39 20 00 38 	li      r9,56                                  
ffc11954:	9b 7f 00 25 	stb     r27,37(r31)                            
ffc11958:	9b 7f 00 26 	stb     r27,38(r31)                            
ffc1195c:	99 3f 00 27 	stb     r9,39(r31)                             
                                                                      
  rtems_rfs_buffer_mark_dirty (&handle);                              
ffc11960:	99 41 00 cc 	stb     r10,204(r1)                            
                                                                      
  rc = rtems_rfs_buffer_handle_release (fs, &handle);                 
ffc11964:	48 00 a3 89 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
  if (rc > 0)                                                         
ffc11968:	7c 7f 1b 79 	mr.     r31,r3                                 
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc1196c:	7f c4 f3 78 	mr      r4,r30                                 
ffc11970:	7f a3 eb 78 	mr      r3,r29                                 
  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);                 
  if (rc > 0)                                                         
ffc11974:	40 81 00 2c 	ble-    ffc119a0 <rtems_rfs_format+0x620>      <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc11978:	4b ff f9 ad 	bl      ffc11324 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
    printf ("rtems-rfs: write-superblock: buffer release failed: %d: %s\n",
ffc1197c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc11980:	48 01 23 dd 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11984:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc11988:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1198c:	38 63 34 f1 	addi    r3,r3,13553                            <== NOT EXECUTED
ffc11990:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc11994:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11998:	48 01 11 d9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1199c:	48 00 00 50 	b       ffc119ec <rtems_rfs_format+0x66c>      <== NOT EXECUTED
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_handle_close (fs, &handle);                   
ffc119a0:	4b ff f9 85 	bl      ffc11324 <rtems_rfs_buffer_handle_close>
  if (rc > 0)                                                         
ffc119a4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc119a8:	40 81 00 18 	ble-    ffc119c0 <rtems_rfs_format+0x640>      <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: write-superblock: buffer handle close failed: %d: %s\n",
ffc119ac:	48 01 23 b1 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc119b0:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc119b4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc119b8:	38 63 35 2d 	addi    r3,r3,13613                            <== NOT EXECUTED
ffc119bc:	4b ff ff d4 	b       ffc11990 <rtems_rfs_format+0x610>      <== NOT EXECUTED
   */                                                                 
  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",
ffc119c0:	3e 80 ff c3 	lis     r20,-61                                
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  if (verbose)                                                        
    printf (", blocks");                                              
ffc119c4:	3e 40 ff c3 	lis     r18,-61                                
  }                                                                   
                                                                      
  rtems_rfs_buffer_mark_dirty (&handle);                              
                                                                      
  if (verbose)                                                        
    printf (", inodes");                                              
ffc119c8:	3e 20 ff c3 	lis     r17,-61                                
    printf ("rtems-rfs: format: setting block size failed: %d: %s\n", 
            rc, strerror (rc));                                       
    return -1;                                                        
  }                                                                   
                                                                      
  if (!rtems_rfs_write_superblock (&fs))                              
ffc119cc:	3b e0 00 00 	li      r31,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",
ffc119d0:	3a 94 35 d2 	addi    r20,r20,13778                          
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc119d4:	3a 60 00 00 	li      r19,0                                  
  handle->bnum  = 0;                                                  
ffc119d8:	3a a0 00 00 	li      r21,0                                  
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  if (verbose)                                                        
    printf (", blocks");                                              
ffc119dc:	3a 52 36 08 	addi    r18,r18,13832                          
    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);                              
ffc119e0:	3b 00 00 01 	li      r24,1                                  
                                                                      
  if (verbose)                                                        
    printf (", inodes");                                              
ffc119e4:	3a 31 36 e9 	addi    r17,r17,14057                          
ffc119e8:	48 00 03 68 	b       ffc11d50 <rtems_rfs_format+0x9d0>      
    return -1;                                                        
  }                                                                   
                                                                      
  if (!rtems_rfs_write_superblock (&fs))                              
  {                                                                   
    printf ("rtems-rfs: format: superblock write failed\n");          
ffc119ec:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc119f0:	38 63 35 6e 	addi    r3,r3,13678                            <== NOT EXECUTED
ffc119f4:	48 01 14 e5 	bl      ffc22ed8 <puts>                        <== NOT EXECUTED
ffc119f8:	48 00 05 ac 	b       ffc11fa4 <rtems_rfs_format+0xc24>      <== NOT EXECUTED
  size_t                   group_size;                                
  int                      blocks;                                    
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
ffc119fc:	83 61 00 30 	lwz     r27,48(r1)                             
    printf ("rtems-rfs: format: superblock write failed\n");          
    return -1;                                                        
  }                                                                   
                                                                      
  for (group = 0; group < fs.group_count; group++)                    
    if (!rtems_rfs_write_group (&fs, group,                           
ffc11a00:	56 d6 06 3e 	clrlwi  r22,r22,24                             
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
                                                                      
  if (group_base > rtems_rfs_fs_blocks (fs))                          
ffc11a04:	81 21 00 0c 	lwz     r9,12(r1)                              
  size_t                   group_size;                                
  int                      blocks;                                    
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
ffc11a08:	7e ff d9 d6 	mullw   r23,r31,r27                            
    printf ("rtems-rfs: format: superblock write failed\n");          
    return -1;                                                        
  }                                                                   
                                                                      
  for (group = 0; group < fs.group_count; group++)                    
    if (!rtems_rfs_write_group (&fs, group,                           
ffc11a0c:	8a 1c 00 14 	lbz     r16,20(r28)                            
  size_t                   group_size;                                
  int                      blocks;                                    
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
ffc11a10:	3b 57 00 01 	addi    r26,r23,1                              
                                                                      
  if (group_base > rtems_rfs_fs_blocks (fs))                          
ffc11a14:	7f 9a 48 40 	cmplw   cr7,r26,r9                             
ffc11a18:	40 bd 00 1c 	ble+    cr7,ffc11a34 <rtems_rfs_format+0x6b4>  <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: write-group: group %d base beyond disk limit\n",
ffc11a1c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11a20:	38 63 35 99 	addi    r3,r3,13721                            <== NOT EXECUTED
ffc11a24:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc11a28:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11a2c:	48 01 11 45 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc11a30:	48 00 05 74 	b       ffc11fa4 <rtems_rfs_format+0xc24>      <== 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))           
ffc11a34:	7d 5a da 14 	add     r10,r26,r27                            
ffc11a38:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc11a3c:	40 9d 00 08 	ble-    cr7,ffc11a44 <rtems_rfs_format+0x6c4>  <== NEVER TAKEN
    group_size = rtems_rfs_fs_blocks (fs) - group_base;               
ffc11a40:	7f 7a 48 50 	subf    r27,r26,r9                             
                                                                      
  if (verbose)                                                        
ffc11a44:	2f 96 00 00 	cmpwi   cr7,r22,0                              
ffc11a48:	41 be 00 1c 	beq+    cr7,ffc11a64 <rtems_rfs_format+0x6e4>  <== ALWAYS TAKEN
    printf ("\rrtems-rfs: format: group %3d: base = %" PRId32 ", size = %zd",
ffc11a4c:	7e 83 a3 78 	mr      r3,r20                                 <== NOT EXECUTED
ffc11a50:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc11a54:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc11a58:	7f 66 db 78 	mr      r6,r27                                 <== NOT EXECUTED
ffc11a5c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11a60:	48 01 11 11 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
    printf ("\nrtems-rfs: write-group: handle open failed: %d: %s\n", 
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  if (verbose)                                                        
ffc11a64:	2f 96 00 00 	cmpwi   cr7,r22,0                              
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc11a68:	9a 61 00 cc 	stb     r19,204(r1)                            
  handle->bnum  = 0;                                                  
ffc11a6c:	92 a1 00 d0 	stw     r21,208(r1)                            
  handle->buffer = NULL;                                              
ffc11a70:	92 a1 00 d4 	stw     r21,212(r1)                            
ffc11a74:	41 be 00 10 	beq+    cr7,ffc11a84 <rtems_rfs_format+0x704>  <== ALWAYS TAKEN
    printf (", blocks");                                              
ffc11a78:	7e 43 93 78 	mr      r3,r18                                 <== NOT EXECUTED
ffc11a7c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11a80:	48 01 10 f1 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Open the block bitmap using the new buffer.                      
   */                                                                 
  rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,       
ffc11a84:	7f 47 d3 78 	mr      r7,r26                                 
ffc11a88:	38 61 00 b4 	addi    r3,r1,180                              
ffc11a8c:	7f a4 eb 78 	mr      r4,r29                                 
ffc11a90:	7f c5 f3 78 	mr      r5,r30                                 
ffc11a94:	7f 66 db 78 	mr      r6,r27                                 
ffc11a98:	48 00 8f 59 	bl      ffc1a9f0 <rtems_rfs_bitmap_open>       
                              group_base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
  if (rc > 0)                                                         
ffc11a9c:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc11aa0:	40 81 00 28 	ble-    ffc11ac8 <rtems_rfs_format+0x748>      <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc11aa4:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc11aa8:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc11aac:	4b ff f8 79 	bl      ffc11324 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
    printf ("\nrtems-rfs: write-group: group %3d: open block bitmap failed: %d: %s\n",
ffc11ab0:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc11ab4:	48 01 22 a9 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11ab8:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc11abc:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11ac0:	38 63 36 11 	addi    r3,r3,13841                            <== NOT EXECUTED
ffc11ac4:	48 00 00 50 	b       ffc11b14 <rtems_rfs_format+0x794>      <== 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));
ffc11ac8:	81 21 00 d4 	lwz     r9,212(r1)                             
ffc11acc:	38 80 00 ff 	li      r4,255                                 
ffc11ad0:	80 a1 00 10 	lwz     r5,16(r1)                              
ffc11ad4:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc11ad8:	48 01 0e 3d 	bl      ffc22914 <memset>                      
                                                                      
  /*                                                                  
   * Clear the bitmap.                                                
   */                                                                 
  rc = rtems_rfs_bitmap_map_clear_all (&bitmap);                      
ffc11adc:	38 61 00 b4 	addi    r3,r1,180                              
ffc11ae0:	48 00 8c 51 	bl      ffc1a730 <rtems_rfs_bitmap_map_clear_all>
  if (rc > 0)                                                         
ffc11ae4:	7c 7a 1b 79 	mr.     r26,r3                                 
  {                                                                   
    rtems_rfs_bitmap_close (&bitmap);                                 
ffc11ae8:	38 61 00 b4 	addi    r3,r1,180                              
                                                                      
  /*                                                                  
   * Clear the bitmap.                                                
   */                                                                 
  rc = rtems_rfs_bitmap_map_clear_all (&bitmap);                      
  if (rc > 0)                                                         
ffc11aec:	40 81 00 34 	ble-    ffc11b20 <rtems_rfs_format+0x7a0>      <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_bitmap_close (&bitmap);                                 
ffc11af0:	48 00 8f 69 	bl      ffc1aa58 <rtems_rfs_bitmap_close>      <== NOT EXECUTED
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc11af4:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc11af8:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc11afc:	4b ff f8 29 	bl      ffc11324 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
    printf ("\nrtems-rfs: write-group: group %3d: block bitmap clear all failed: %d: %s\n",
ffc11b00:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc11b04:	48 01 22 59 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11b08:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc11b0c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11b10:	38 63 36 57 	addi    r3,r3,13911                            <== NOT EXECUTED
ffc11b14:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc11b18:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc11b1c:	48 00 01 58 	b       ffc11c74 <rtems_rfs_format+0x8f4>      <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Forced allocation of the block bitmap.                           
   */                                                                 
  rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
ffc11b20:	38 80 00 00 	li      r4,0                                   
ffc11b24:	48 00 89 b9 	bl      ffc1a4dc <rtems_rfs_bitmap_map_set>    
                                                                      
  /*                                                                  
   * Forced allocation of the inode bitmap.                           
   */                                                                 
  rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
ffc11b28:	38 80 00 01 	li      r4,1                                   
ffc11b2c:	38 61 00 b4 	addi    r3,r1,180                              
ffc11b30:	48 00 89 ad 	bl      ffc1a4dc <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);
ffc11b34:	80 61 00 34 	lwz     r3,52(r1)                              
ffc11b38:	80 81 00 38 	lwz     r4,56(r1)                              
                                                                      
  /*                                                                  
   * Forced allocation of the inode blocks which follow the block bitmap.
   */                                                                 
  for (b = 0; b < blocks; b++)                                        
ffc11b3c:	3b 40 00 00 	li      r26,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);
ffc11b40:	4b ff f8 21 	bl      ffc11360 <rtems_rfs_rup_quotient>      
ffc11b44:	7c 6f 1b 78 	mr      r15,r3                                 
ffc11b48:	48 00 00 10 	b       ffc11b58 <rtems_rfs_format+0x7d8>      
                                                                      
  /*                                                                  
   * 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);
ffc11b4c:	38 9a 00 02 	addi    r4,r26,2                               
ffc11b50:	48 00 89 8d 	bl      ffc1a4dc <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++)                                        
ffc11b54:	3b 5a 00 01 	addi    r26,r26,1                              
ffc11b58:	7f 9a 78 00 	cmpw    cr7,r26,r15                            
    rtems_rfs_bitmap_map_set (&bitmap, b + RTEMS_RFS_GROUP_INODE_BLOCK);
ffc11b5c:	38 61 00 b4 	addi    r3,r1,180                              
  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++)                                        
ffc11b60:	41 9c ff ec 	blt+    cr7,ffc11b4c <rtems_rfs_format+0x7cc>  
    rtems_rfs_bitmap_map_set (&bitmap, b + RTEMS_RFS_GROUP_INODE_BLOCK);
                                                                      
  /*                                                                  
   * Close the block bitmap.                                          
   */                                                                 
  rc = rtems_rfs_bitmap_close (&bitmap);                              
ffc11b64:	48 00 8e f5 	bl      ffc1aa58 <rtems_rfs_bitmap_close>      
  if (rc > 0)                                                         
ffc11b68:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc11b6c:	40 a1 00 28 	ble+    ffc11b94 <rtems_rfs_format+0x814>      <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc11b70:	38 81 00 cc 	addi    r4,r1,204                              <== NOT EXECUTED
ffc11b74:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc11b78:	4b ff f7 ad 	bl      ffc11324 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
    printf ("\nrtems-rfs: write-group: group %3d: close block bitmap failed: %d: %s\n",
ffc11b7c:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc11b80:	48 01 21 dd 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11b84:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc11b88:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11b8c:	38 63 36 a2 	addi    r3,r3,13986                            <== NOT EXECUTED
ffc11b90:	4b ff ff 84 	b       ffc11b14 <rtems_rfs_format+0x794>      <== NOT EXECUTED
    return false;                                                     
  }                                                                   
                                                                      
  rtems_rfs_buffer_mark_dirty (&handle);                              
                                                                      
  if (verbose)                                                        
ffc11b94:	2f 96 00 00 	cmpwi   cr7,r22,0                              
    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);                              
ffc11b98:	9b 01 00 cc 	stb     r24,204(r1)                            
                                                                      
  if (verbose)                                                        
ffc11b9c:	41 be 00 10 	beq+    cr7,ffc11bac <rtems_rfs_format+0x82c>  <== ALWAYS TAKEN
    printf (", inodes");                                              
ffc11ba0:	7e 23 8b 78 	mr      r3,r17                                 <== NOT EXECUTED
ffc11ba4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11ba8:	48 01 0f c9 	bl      ffc22b70 <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,       
ffc11bac:	7f 66 db 78 	mr      r6,r27                                 
ffc11bb0:	38 61 00 b4 	addi    r3,r1,180                              
ffc11bb4:	7f a4 eb 78 	mr      r4,r29                                 
ffc11bb8:	7f c5 f3 78 	mr      r5,r30                                 
ffc11bbc:	38 f7 00 02 	addi    r7,r23,2                               
ffc11bc0:	48 00 8e 31 	bl      ffc1a9f0 <rtems_rfs_bitmap_open>       
                              group_base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
  if (rc > 0)                                                         
ffc11bc4:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc11bc8:	40 81 00 28 	ble-    ffc11bf0 <rtems_rfs_format+0x870>      <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc11bcc:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc11bd0:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc11bd4:	4b ff f7 51 	bl      ffc11324 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
    printf ("\nrtems-rfs: write-group: group %3d: open inode bitmap failed: %d: %s\n",
ffc11bd8:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc11bdc:	48 01 21 81 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11be0:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc11be4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11be8:	38 63 36 f2 	addi    r3,r3,14066                            <== NOT EXECUTED
ffc11bec:	48 00 00 80 	b       ffc11c6c <rtems_rfs_format+0x8ec>      <== 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));
ffc11bf0:	81 21 00 d4 	lwz     r9,212(r1)                             
ffc11bf4:	38 80 00 00 	li      r4,0                                   
ffc11bf8:	80 a1 00 10 	lwz     r5,16(r1)                              
ffc11bfc:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc11c00:	48 01 0d 15 	bl      ffc22914 <memset>                      
                                                                      
  /*                                                                  
   * Clear the inode bitmap.                                          
   */                                                                 
  rc = rtems_rfs_bitmap_map_clear_all (&bitmap);                      
ffc11c04:	38 61 00 b4 	addi    r3,r1,180                              
ffc11c08:	48 00 8b 29 	bl      ffc1a730 <rtems_rfs_bitmap_map_clear_all>
  if (rc > 0)                                                         
ffc11c0c:	7c 7b 1b 79 	mr.     r27,r3                                 
  {                                                                   
    rtems_rfs_bitmap_close (&bitmap);                                 
ffc11c10:	38 61 00 b4 	addi    r3,r1,180                              
                                                                      
  /*                                                                  
   * Clear the inode bitmap.                                          
   */                                                                 
  rc = rtems_rfs_bitmap_map_clear_all (&bitmap);                      
  if (rc > 0)                                                         
ffc11c14:	40 81 00 2c 	ble-    ffc11c40 <rtems_rfs_format+0x8c0>      <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_bitmap_close (&bitmap);                                 
ffc11c18:	48 00 8e 41 	bl      ffc1aa58 <rtems_rfs_bitmap_close>      <== NOT EXECUTED
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc11c1c:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc11c20:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc11c24:	4b ff f7 01 	bl      ffc11324 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
    printf ("\nrtems-rfs: write-group: group %3d: inode bitmap" \     
ffc11c28:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc11c2c:	48 01 21 31 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11c30:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc11c34:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11c38:	38 63 37 38 	addi    r3,r3,14136                            <== NOT EXECUTED
ffc11c3c:	48 00 00 30 	b       ffc11c6c <rtems_rfs_format+0x8ec>      <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Close the inode bitmap.                                          
   */                                                                 
  rc = rtems_rfs_bitmap_close (&bitmap);                              
ffc11c40:	48 00 8e 19 	bl      ffc1aa58 <rtems_rfs_bitmap_close>      
  if (rc > 0)                                                         
ffc11c44:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc11c48:	40 a1 00 38 	ble+    ffc11c80 <rtems_rfs_format+0x900>      <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc11c4c:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc11c50:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc11c54:	4b ff f6 d1 	bl      ffc11324 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
    printf ("\nrtems-rfs: write-group: group %3d: close inode" \      
ffc11c58:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc11c5c:	48 01 21 01 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11c60:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc11c64:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11c68:	38 63 37 83 	addi    r3,r3,14211                            <== NOT EXECUTED
ffc11c6c:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc11c70:	7f 65 db 78 	mr      r5,r27                                 <== NOT EXECUTED
ffc11c74:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11c78:	48 01 0e f9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc11c7c:	48 00 03 28 	b       ffc11fa4 <rtems_rfs_format+0xc24>      <== NOT EXECUTED
  rtems_rfs_buffer_mark_dirty (&handle);                              
                                                                      
  /*                                                                  
   * Initialise the inode tables if required to do so.                
   */                                                                 
  if (initialise_inodes)                                              
ffc11c80:	2f 90 00 00 	cmpwi   cr7,r16,0                              
    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);                              
ffc11c84:	9b 01 00 cc 	stb     r24,204(r1)                            
                                                                      
  /*                                                                  
   * Initialise the inode tables if required to do so.                
   */                                                                 
  if (initialise_inodes)                                              
ffc11c88:	3b 60 00 00 	li      r27,0                                  
  {                                                                   
    for (b = 0; b < blocks; b++)                                      
    {                                                                 
      rc = rtems_rfs_buffer_handle_request (fs, &handle,              
                                            group_base + b + RTEMS_RFS_GROUP_INODE_BLOCK,
ffc11c8c:	3a f7 00 03 	addi    r23,r23,3                              
  rtems_rfs_buffer_mark_dirty (&handle);                              
                                                                      
  /*                                                                  
   * Initialise the inode tables if required to do so.                
   */                                                                 
  if (initialise_inodes)                                              
ffc11c90:	40 be 00 94 	bne+    cr7,ffc11d24 <rtems_rfs_format+0x9a4>  <== NEVER TAKEN
                                                                      
      rtems_rfs_buffer_mark_dirty (&handle);                          
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_handle_close (fs, &handle);                   
ffc11c94:	7f a3 eb 78 	mr      r3,r29                                 
ffc11c98:	7f c4 f3 78 	mr      r4,r30                                 
ffc11c9c:	4b ff f6 89 	bl      ffc11324 <rtems_rfs_buffer_handle_close>
  if (rc > 0)                                                         
ffc11ca0:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc11ca4:	41 a1 00 8c 	bgt+    ffc11d30 <rtems_rfs_format+0x9b0>      <== NEVER TAKEN
  {                                                                   
    printf ("rtems-rfs: format: superblock write failed\n");          
    return -1;                                                        
  }                                                                   
                                                                      
  for (group = 0; group < fs.group_count; group++)                    
ffc11ca8:	3b ff 00 01 	addi    r31,r31,1                              
ffc11cac:	48 00 00 a4 	b       ffc11d50 <rtems_rfs_format+0x9d0>      
                                                                      
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)
ffc11cb0:	7f 57 da 14 	add     r26,r23,r27                            <== NOT EXECUTED
   */                                                                 
  if (initialise_inodes)                                              
  {                                                                   
    for (b = 0; b < blocks; b++)                                      
    {                                                                 
      rc = rtems_rfs_buffer_handle_request (fs, &handle,              
ffc11cb4:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc11cb8:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc11cbc:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc11cc0:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
ffc11cc4:	48 00 a2 0d 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
                                            group_base + b + RTEMS_RFS_GROUP_INODE_BLOCK,
                                            false);                   
      if (rc > 0)                                                     
ffc11cc8:	7c 76 1b 79 	mr.     r22,r3                                 <== NOT EXECUTED
ffc11ccc:	40 a1 00 3c 	ble+    ffc11d08 <rtems_rfs_format+0x988>      <== NOT EXECUTED
      {                                                               
        rtems_rfs_buffer_handle_close (fs, &handle);                  
ffc11cd0:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc11cd4:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc11cd8:	4b ff f6 4d 	bl      ffc11324 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
        printf ("\nrtems-rfs: write-group: group %3d: block %" PRId32 " request failed: %d: %s\n",
ffc11cdc:	7e c3 b3 78 	mr      r3,r22                                 <== NOT EXECUTED
ffc11ce0:	48 01 20 7d 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11ce4:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc11ce8:	7c 67 1b 78 	mr      r7,r3                                  <== NOT EXECUTED
ffc11cec:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11cf0:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc11cf4:	7e c6 b3 78 	mr      r6,r22                                 <== NOT EXECUTED
ffc11cf8:	38 63 37 ca 	addi    r3,r3,14282                            <== NOT EXECUTED
ffc11cfc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11d00:	48 01 0e 71 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc11d04:	48 00 02 a0 	b       ffc11fa4 <rtems_rfs_format+0xc24>      <== 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));
ffc11d08:	81 21 00 d4 	lwz     r9,212(r1)                             <== NOT EXECUTED
ffc11d0c:	38 80 00 ff 	li      r4,255                                 <== NOT EXECUTED
ffc11d10:	80 a1 00 10 	lwz     r5,16(r1)                              <== NOT EXECUTED
  /*                                                                  
   * Initialise the inode tables if required to do so.                
   */                                                                 
  if (initialise_inodes)                                              
  {                                                                   
    for (b = 0; b < blocks; b++)                                      
ffc11d14:	3b 7b 00 01 	addi    r27,r27,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));
ffc11d18:	80 69 00 1c 	lwz     r3,28(r9)                              <== NOT EXECUTED
ffc11d1c:	48 01 0b f9 	bl      ffc22914 <memset>                      <== NOT EXECUTED
                                                                      
      rtems_rfs_buffer_mark_dirty (&handle);                          
ffc11d20:	9b 01 00 cc 	stb     r24,204(r1)                            <== NOT EXECUTED
  /*                                                                  
   * Initialise the inode tables if required to do so.                
   */                                                                 
  if (initialise_inodes)                                              
  {                                                                   
    for (b = 0; b < blocks; b++)                                      
ffc11d24:	7f 9b 78 00 	cmpw    cr7,r27,r15                            <== NOT EXECUTED
ffc11d28:	41 9c ff 88 	blt+    cr7,ffc11cb0 <rtems_rfs_format+0x930>  <== NOT EXECUTED
ffc11d2c:	4b ff ff 68 	b       ffc11c94 <rtems_rfs_format+0x914>      <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_handle_close (fs, &handle);                   
  if (rc > 0)                                                         
  {                                                                   
    printf ("\nrtems-rfs: write-group: buffer handle close failed: %d: %s\n",
ffc11d30:	48 01 20 2d 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11d34:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc11d38:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc11d3c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11d40:	38 63 38 10 	addi    r3,r3,14352                            <== NOT EXECUTED
ffc11d44:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11d48:	48 01 0e 29 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc11d4c:	48 00 02 58 	b       ffc11fa4 <rtems_rfs_format+0xc24>      <== NOT EXECUTED
  {                                                                   
    printf ("rtems-rfs: format: superblock write failed\n");          
    return -1;                                                        
  }                                                                   
                                                                      
  for (group = 0; group < fs.group_count; group++)                    
ffc11d50:	81 21 00 2c 	lwz     r9,44(r1)                              
ffc11d54:	8a dc 00 15 	lbz     r22,21(r28)                            
ffc11d58:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc11d5c:	41 9c fc a0 	blt+    cr7,ffc119fc <rtems_rfs_format+0x67c>  
    if (!rtems_rfs_write_group (&fs, group,                           
                                config->initialise_inodes, config->verbose))
      return -1;                                                      
                                                                      
  if (config->verbose)                                                
ffc11d60:	72 c8 00 ff 	andi.   r8,r22,255                             
ffc11d64:	41 a2 00 0c 	beq+    ffc11d70 <rtems_rfs_format+0x9f0>      <== ALWAYS TAKEN
    printf ("\n");                                                    
ffc11d68:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc11d6c:	48 01 10 91 	bl      ffc22dfc <putchar>                     <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_buffer_close (&fs);                                  
ffc11d70:	38 61 00 08 	addi    r3,r1,8                                
ffc11d74:	48 00 a7 a9 	bl      ffc1c51c <rtems_rfs_buffer_close>      
  if (rc > 0)                                                         
ffc11d78:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc11d7c:	40 a1 00 18 	ble+    ffc11d94 <rtems_rfs_format+0xa14>      <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: buffer close failed: %d: %s\n",       
ffc11d80:	48 01 1f dd 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11d84:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc11d88:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11d8c:	38 63 38 4d 	addi    r3,r3,14413                            <== NOT EXECUTED
ffc11d90:	48 00 02 04 	b       ffc11f94 <rtems_rfs_format+0xc14>      <== NOT EXECUTED
  int                    rc;                                          
                                                                      
  /*                                                                  
   * External API so returns -1.                                      
   */                                                                 
  rc = rtems_rfs_fs_open (name, NULL,                                 
ffc11d94:	7f 23 cb 78 	mr      r3,r25                                 
ffc11d98:	38 80 00 00 	li      r4,0                                   
ffc11d9c:	38 a0 00 06 	li      r5,6                                   
ffc11da0:	38 c0 00 00 	li      r6,0                                   
ffc11da4:	38 e1 00 dc 	addi    r7,r1,220                              
ffc11da8:	48 00 ca 05 	bl      ffc1e7ac <rtems_rfs_fs_open>           
                          RTEMS_RFS_FS_FORCE_OPEN | RTEMS_RFS_FS_NO_LOCAL_CACHE,
                          0, &fs);                                    
  if (rc < 0)                                                         
ffc11dac:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11db0:	40 bc 00 34 	bge+    cr7,ffc11de4 <rtems_rfs_format+0xa64>  <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: file system open failed: %d: %s\n",   
            errno, strerror (errno));                                 
ffc11db4:	48 00 f4 19 	bl      ffc211cc <__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",   
ffc11db8:	83 e3 00 00 	lwz     r31,0(r3)                              <== NOT EXECUTED
            errno, strerror (errno));                                 
ffc11dbc:	48 00 f4 11 	bl      ffc211cc <__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",   
ffc11dc0:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc11dc4:	48 01 1f 99 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11dc8:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc11dcc:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc11dd0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11dd4:	38 63 38 7d 	addi    r3,r3,14461                            <== NOT EXECUTED
ffc11dd8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11ddc:	48 01 0d 95 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc11de0:	48 00 01 bc 	b       ffc11f9c <rtems_rfs_format+0xc1c>      <== NOT EXECUTED
            errno, strerror (errno));                                 
    return -1;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_alloc (fs, RTEMS_RFS_ROOT_INO, &ino);          
ffc11de4:	80 61 00 dc 	lwz     r3,220(r1)                             
ffc11de8:	38 80 00 01 	li      r4,1                                   
ffc11dec:	38 a1 00 d8 	addi    r5,r1,216                              
ffc11df0:	48 00 08 fd 	bl      ffc126ec <rtems_rfs_inode_alloc>       
  if (rc > 0)                                                         
ffc11df4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc11df8:	40 a1 00 24 	ble+    ffc11e1c <rtems_rfs_format+0xa9c>      <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: inode allocation failed: %d: %s\n",   
ffc11dfc:	48 01 1f 61 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11e00:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc11e04:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc11e08:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11e0c:	38 63 38 b1 	addi    r3,r3,14513                            <== NOT EXECUTED
ffc11e10:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11e14:	48 01 0d 5d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc11e18:	48 00 00 20 	b       ffc11e38 <rtems_rfs_format+0xab8>      <== NOT EXECUTED
            rc, strerror (rc));                                       
    rtems_rfs_fs_close (fs);                                          
    return rc;                                                        
  }                                                                   
                                                                      
  if (ino != RTEMS_RFS_ROOT_INO)                                      
ffc11e1c:	80 81 00 d8 	lwz     r4,216(r1)                             
ffc11e20:	2f 84 00 01 	cmpwi   cr7,r4,1                               
ffc11e24:	41 9e 00 20 	beq-    cr7,ffc11e44 <rtems_rfs_format+0xac4>  <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: allocated inode not root ino: %" PRId32 "\n", ino);
ffc11e28:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11e2c:	38 63 38 e5 	addi    r3,r3,14565                            <== NOT EXECUTED
ffc11e30:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11e34:	48 01 0d 3d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
    rtems_rfs_fs_close (fs);                                          
ffc11e38:	80 61 00 dc 	lwz     r3,220(r1)                             <== NOT EXECUTED
ffc11e3c:	48 00 d1 05 	bl      ffc1ef40 <rtems_rfs_fs_close>          <== NOT EXECUTED
ffc11e40:	48 00 01 38 	b       ffc11f78 <rtems_rfs_format+0xbf8>      <== NOT EXECUTED
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc11e44:	80 61 00 dc 	lwz     r3,220(r1)                             
ffc11e48:	38 80 00 01 	li      r4,1                                   
ffc11e4c:	38 a1 00 8c 	addi    r5,r1,140                              
ffc11e50:	38 c0 00 01 	li      r6,1                                   
ffc11e54:	48 00 09 95 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc11e58:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc11e5c:	40 81 00 34 	ble-    ffc11e90 <rtems_rfs_format+0xb10>      <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: inode open failed: %d: %s\n",         
ffc11e60:	48 01 1e fd 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11e64:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc11e68:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc11e6c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11e70:	38 63 39 1b 	addi    r3,r3,14619                            <== NOT EXECUTED
ffc11e74:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11e78:	48 01 0c f9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
    rtems_rfs_group_bitmap_free (fs, true, ino);                      
ffc11e7c:	80 61 00 dc 	lwz     r3,220(r1)                             <== NOT EXECUTED
ffc11e80:	80 a1 00 d8 	lwz     r5,216(r1)                             <== NOT EXECUTED
ffc11e84:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc11e88:	48 00 06 11 	bl      ffc12498 <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
ffc11e8c:	4b ff ff ac 	b       ffc11e38 <rtems_rfs_format+0xab8>      <== NOT EXECUTED
    rtems_rfs_fs_close (fs);                                          
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_initialise (&inode, 0,                         
ffc11e90:	38 61 00 8c 	addi    r3,r1,140                              
ffc11e94:	38 80 00 00 	li      r4,0                                   
ffc11e98:	38 a0 41 c9 	li      r5,16841                               
ffc11e9c:	38 c0 00 00 	li      r6,0                                   
ffc11ea0:	38 e0 00 00 	li      r7,0                                   
ffc11ea4:	48 00 0d 89 	bl      ffc12c2c <rtems_rfs_inode_initialise>  
                                   (RTEMS_RFS_S_IFDIR | RTEMS_RFS_S_IRWXU |
                                    RTEMS_RFS_S_IXGRP | RTEMS_RFS_S_IXOTH),
                                   0, 0);                             
  if (rc > 0)                                                         
ffc11ea8:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc11eac:	40 81 00 20 	ble-    ffc11ecc <rtems_rfs_format+0xb4c>      <== ALWAYS TAKEN
    printf ("rtems-rfs: format: inode initialise failed: %d: %s\n",   
ffc11eb0:	48 01 1e ad 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11eb4:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc11eb8:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc11ebc:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11ec0:	38 63 39 49 	addi    r3,r3,14665                            <== NOT EXECUTED
ffc11ec4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11ec8:	48 01 0c a9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, ino);             
ffc11ecc:	80 61 00 dc 	lwz     r3,220(r1)                             
ffc11ed0:	3c a0 ff c3 	lis     r5,-61                                 
ffc11ed4:	80 e1 00 d8 	lwz     r7,216(r1)                             
ffc11ed8:	38 81 00 8c 	addi    r4,r1,140                              
ffc11edc:	38 a5 18 85 	addi    r5,r5,6277                             
ffc11ee0:	38 c0 00 01 	li      r6,1                                   
ffc11ee4:	48 00 ac 49 	bl      ffc1cb2c <rtems_rfs_dir_add_entry>     
  if (rc > 0)                                                         
ffc11ee8:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc11eec:	40 81 00 20 	ble-    ffc11f0c <rtems_rfs_format+0xb8c>      <== ALWAYS TAKEN
    printf ("rtems-rfs: format: directory add failed: %d: %s\n",      
ffc11ef0:	48 01 1e 6d 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11ef4:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc11ef8:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc11efc:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11f00:	38 63 39 7d 	addi    r3,r3,14717                            <== NOT EXECUTED
ffc11f04:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11f08:	48 01 0c 69 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc11f0c:	80 61 00 dc 	lwz     r3,220(r1)                             
ffc11f10:	38 81 00 8c 	addi    r4,r1,140                              
ffc11f14:	48 00 0a c9 	bl      ffc129dc <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
ffc11f18:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc11f1c:	40 81 00 20 	ble-    ffc11f3c <rtems_rfs_format+0xbbc>      <== ALWAYS TAKEN
    printf ("rtems-rfs: format: inode close failed: %d: %s\n",        
ffc11f20:	48 01 1e 3d 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11f24:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc11f28:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc11f2c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11f30:	38 63 39 ae 	addi    r3,r3,14766                            <== NOT EXECUTED
ffc11f34:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11f38:	48 01 0c 39 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_fs_close (fs);                                       
ffc11f3c:	80 61 00 dc 	lwz     r3,220(r1)                             
ffc11f40:	48 00 d0 01 	bl      ffc1ef40 <rtems_rfs_fs_close>          
  if (rc < 0)                                                         
ffc11f44:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc11f48:	40 a0 00 30 	bge+    ffc11f78 <rtems_rfs_format+0xbf8>      <== ALWAYS TAKEN
    printf ("rtems-rfs: format: file system close failed: %d: %s\n",  
            errno, strerror (errno));                                 
ffc11f4c:	48 00 f2 81 	bl      ffc211cc <__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",  
ffc11f50:	83 c3 00 00 	lwz     r30,0(r3)                              <== NOT EXECUTED
            errno, strerror (errno));                                 
ffc11f54:	48 00 f2 79 	bl      ffc211cc <__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",  
ffc11f58:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc11f5c:	48 01 1e 01 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11f60:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc11f64:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc11f68:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11f6c:	38 63 39 dd 	addi    r3,r3,14813                            <== NOT EXECUTED
ffc11f70:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc11f74:	48 01 0b fd 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
    return -1;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_write_root_dir (name);                               
  if (rc > 0)                                                         
ffc11f78:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc11f7c:	40 bd 00 20 	ble+    cr7,ffc11f9c <rtems_rfs_format+0xc1c>  <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: writing root dir failed: %d: %s\n",   
ffc11f80:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc11f84:	48 01 1d d9 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc11f88:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc11f8c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc11f90:	38 63 3a 12 	addi    r3,r3,14866                            <== NOT EXECUTED
ffc11f94:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc11f98:	4b ff fd ac 	b       ffc11d44 <rtems_rfs_format+0x9c4>      <== NOT EXECUTED
            rc, strerror (rc));                                       
    return -1;                                                        
  }                                                                   
                                                                      
  return 0;                                                           
ffc11f9c:	38 60 00 00 	li      r3,0                                   
ffc11fa0:	48 00 00 20 	b       ffc11fc0 <rtems_rfs_format+0xc40>      
                                                                      
  /*                                                                  
   * Check the configuration data.                                    
   */                                                                 
  if (!rtems_rfs_check_config (&fs, config))                          
    return -1;                                                        
ffc11fa4:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc11fa8:	48 00 00 18 	b       ffc11fc0 <rtems_rfs_format+0xc40>      <== NOT EXECUTED
                            fs->inodes_per_block) * fs->inodes_per_block;
                                                                      
  if (fs->group_inodes > rtems_rfs_bitmap_numof_bits (fs->block_size))
    fs->group_inodes = rtems_rfs_bitmap_numof_bits (fs->block_size);  
                                                                      
  fs->max_name_length = config->max_name_length;                      
ffc11fac:	91 21 00 24 	stw     r9,36(r1)                              
   * Check the configuration data.                                    
   */                                                                 
  if (!rtems_rfs_check_config (&fs, config))                          
    return -1;                                                        
                                                                      
  if (config->verbose)                                                
ffc11fb0:	89 3c 00 15 	lbz     r9,21(r28)                             
ffc11fb4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11fb8:	41 9e f7 c8 	beq+    cr7,ffc11780 <rtems_rfs_format+0x400>  <== ALWAYS TAKEN
ffc11fbc:	4b ff f6 60 	b       ffc1161c <rtems_rfs_format+0x29c>      <== NOT EXECUTED
            rc, strerror (rc));                                       
    return -1;                                                        
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc11fc0:	39 61 01 30 	addi    r11,r1,304                             
ffc11fc4:	4b fe f5 68 	b       ffc0152c <_restgpr_15_x>               
                                                                      

ffc1ef40 <rtems_rfs_fs_close>: int rtems_rfs_fs_close (rtems_rfs_file_system* fs) {
ffc1ef40:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1ef44:	7c 08 02 a6 	mflr    r0                                     
  int group;                                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))                        
ffc1ef48:	38 80 00 02 	li      r4,2                                   
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_fs_close (rtems_rfs_file_system* fs)                        
{                                                                     
ffc1ef4c:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc1ef50:	7c 7f 1b 78 	mr      r31,r3                                 
  int group;                                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))                        
ffc1ef54:	38 60 00 00 	li      r3,0                                   
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_fs_close (rtems_rfs_file_system* fs)                        
{                                                                     
ffc1ef58:	90 01 00 14 	stw     r0,20(r1)                              
  int group;                                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))                        
ffc1ef5c:	4b ff 52 ed 	bl      ffc14248 <rtems_rfs_trace>             
ffc1ef60:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1ef64:	41 be 00 10 	beq+    cr7,ffc1ef74 <rtems_rfs_fs_close+0x34> <== ALWAYS TAKEN
    printf ("rtems-rfs: close\n");                                    
ffc1ef68:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1ef6c:	38 63 5a ca 	addi    r3,r3,23242                            <== NOT EXECUTED
ffc1ef70:	48 00 3f 69 	bl      ffc22ed8 <puts>                        <== NOT EXECUTED
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_fs_close (rtems_rfs_file_system* fs)                        
{                                                                     
ffc1ef74:	3b c0 00 00 	li      r30,0                                  
ffc1ef78:	48 00 00 1c 	b       ffc1ef94 <rtems_rfs_fs_close+0x54>     
  errno = 0;                                                          
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_fs_close (rtems_rfs_file_system* fs)                        
ffc1ef7c:	1c 9e 00 50 	mulli   r4,r30,80                              
                                                                      
  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]);                   
ffc1ef80:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc1ef84:	7f e3 fb 78 	mr      r3,r31                                 
ffc1ef88:	7c 89 22 14 	add     r4,r9,r4                               
ffc1ef8c:	4b ff 32 5d 	bl      ffc121e8 <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++)                   
ffc1ef90:	3b de 00 01 	addi    r30,r30,1                              
ffc1ef94:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc1ef98:	7f 9e 48 00 	cmpw    cr7,r30,r9                             
ffc1ef9c:	41 9c ff e0 	blt+    cr7,ffc1ef7c <rtems_rfs_fs_close+0x3c> 
    rtems_rfs_group_close (fs, &fs->groups[group]);                   
                                                                      
  rtems_rfs_buffer_close (fs);                                        
ffc1efa0:	7f e3 fb 78 	mr      r3,r31                                 
ffc1efa4:	4b ff d5 79 	bl      ffc1c51c <rtems_rfs_buffer_close>      
                                                                      
  free (fs);                                                          
ffc1efa8:	7f e3 fb 78 	mr      r3,r31                                 
ffc1efac:	4b fe 9b 69 	bl      ffc08b14 <free>                        
  return 0;                                                           
}                                                                     
ffc1efb0:	39 61 00 10 	addi    r11,r1,16                              
ffc1efb4:	38 60 00 00 	li      r3,0                                   
ffc1efb8:	4b fe 25 b0 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc1e7ac <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) {
ffc1e7ac:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc1e7b0:	7c 08 02 a6 	mflr    r0                                     
ffc1e7b4:	bf 61 00 4c 	stmw    r27,76(r1)                             
ffc1e7b8:	7c 7e 1b 78 	mr      r30,r3                                 
ffc1e7bc:	7c 9f 23 78 	mr      r31,r4                                 
#endif                                                                
  rtems_rfs_inode_handle inode;                                       
  uint16_t               mode;                                        
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                         
ffc1e7c0:	38 60 00 00 	li      r3,0                                   
rtems_rfs_fs_open (const char*             name,                      
                   void*                   user,                      
                   uint32_t                flags,                     
                   uint32_t                max_held_buffers,          
                   rtems_rfs_file_system** fs)                        
{                                                                     
ffc1e7c4:	90 01 00 64 	stw     r0,100(r1)                             
#endif                                                                
  rtems_rfs_inode_handle inode;                                       
  uint16_t               mode;                                        
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                         
ffc1e7c8:	38 80 00 01 	li      r4,1                                   
rtems_rfs_fs_open (const char*             name,                      
                   void*                   user,                      
                   uint32_t                flags,                     
                   uint32_t                max_held_buffers,          
                   rtems_rfs_file_system** fs)                        
{                                                                     
ffc1e7cc:	7c bc 2b 78 	mr      r28,r5                                 
ffc1e7d0:	7c db 33 78 	mr      r27,r6                                 
ffc1e7d4:	7c fd 3b 78 	mr      r29,r7                                 
#endif                                                                
  rtems_rfs_inode_handle inode;                                       
  uint16_t               mode;                                        
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                         
ffc1e7d8:	4b ff 5a 71 	bl      ffc14248 <rtems_rfs_trace>             
ffc1e7dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1e7e0:	41 be 00 18 	beq+    cr7,ffc1e7f8 <rtems_rfs_fs_open+0x4c>  <== ALWAYS TAKEN
    printf ("rtems-rfs: open: %s\n", name);                           
ffc1e7e4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e7e8:	38 63 57 c3 	addi    r3,r3,22467                            <== NOT EXECUTED
ffc1e7ec:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc1e7f0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1e7f4:	48 00 43 7d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
  *fs = malloc (sizeof (rtems_rfs_file_system));                      
ffc1e7f8:	38 60 00 84 	li      r3,132                                 
ffc1e7fc:	4b fe a9 e1 	bl      ffc091dc <malloc>                      
  if (!*fs)                                                           
ffc1e800:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                         
    printf ("rtems-rfs: open: %s\n", name);                           
                                                                      
  *fs = malloc (sizeof (rtems_rfs_file_system));                      
ffc1e804:	90 7d 00 00 	stw     r3,0(r29)                              
  if (!*fs)                                                           
ffc1e808:	40 be 00 30 	bne+    cr7,ffc1e838 <rtems_rfs_fs_open+0x8c>  <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc1e80c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1e810:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1e814:	4b ff 5a 35 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1e818:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1e81c:	41 be 00 10 	beq+    cr7,ffc1e82c <rtems_rfs_fs_open+0x80>  <== NOT EXECUTED
      printf ("rtems-rfs: open: no memory for file system data\n");   
ffc1e820:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e824:	38 63 57 d8 	addi    r3,r3,22488                            <== NOT EXECUTED
ffc1e828:	48 00 46 b1 	bl      ffc22ed8 <puts>                        <== NOT EXECUTED
    errno = ENOMEM;                                                   
ffc1e82c:	48 00 29 a1 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1e830:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc1e834:	48 00 06 8c 	b       ffc1eec0 <rtems_rfs_fs_open+0x714>     <== NOT EXECUTED
    return -1;                                                        
  }                                                                   
                                                                      
  memset (*fs, 0, sizeof (rtems_rfs_file_system));                    
ffc1e838:	38 80 00 00 	li      r4,0                                   
ffc1e83c:	38 a0 00 84 	li      r5,132                                 
ffc1e840:	48 00 40 d5 	bl      ffc22914 <memset>                      
                                                                      
  (*fs)->user = user;                                                 
ffc1e844:	81 3d 00 00 	lwz     r9,0(r29)                              
#endif                                                                
                                                                      
  /*                                                                  
   * Open the buffer interface.                                       
   */                                                                 
  rc = rtems_rfs_buffer_open (name, *fs);                             
ffc1e848:	7f c3 f3 78 	mr      r3,r30                                 
    return -1;                                                        
  }                                                                   
                                                                      
  memset (*fs, 0, sizeof (rtems_rfs_file_system));                    
                                                                      
  (*fs)->user = user;                                                 
ffc1e84c:	93 e9 00 80 	stw     r31,128(r9)                            
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc1e850:	3b e0 00 00 	li      r31,0                                  
  rtems_chain_initialize_empty (&(*fs)->buffers);                     
ffc1e854:	81 3d 00 00 	lwz     r9,0(r29)                              
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 );                        
ffc1e858:	39 49 00 44 	addi    r10,r9,68                              
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc1e85c:	93 e9 00 48 	stw     r31,72(r9)                             
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 );                        
ffc1e860:	39 09 00 48 	addi    r8,r9,72                               
                                                                      
  head->next = tail;                                                  
ffc1e864:	91 09 00 44 	stw     r8,68(r9)                              
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc1e868:	91 49 00 4c 	stw     r10,76(r9)                             
  rtems_chain_initialize_empty (&(*fs)->release);                     
ffc1e86c:	81 3d 00 00 	lwz     r9,0(r29)                              
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 );                        
ffc1e870:	39 49 00 54 	addi    r10,r9,84                              
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc1e874:	93 e9 00 58 	stw     r31,88(r9)                             
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 );                        
ffc1e878:	39 09 00 58 	addi    r8,r9,88                               
                                                                      
  head->next = tail;                                                  
ffc1e87c:	91 09 00 54 	stw     r8,84(r9)                              
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc1e880:	91 49 00 5c 	stw     r10,92(r9)                             
  rtems_chain_initialize_empty (&(*fs)->release_modified);            
ffc1e884:	81 3d 00 00 	lwz     r9,0(r29)                              
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 );                        
ffc1e888:	39 49 00 64 	addi    r10,r9,100                             
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc1e88c:	93 e9 00 68 	stw     r31,104(r9)                            
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 );                        
ffc1e890:	39 09 00 68 	addi    r8,r9,104                              
                                                                      
  head->next = tail;                                                  
ffc1e894:	91 09 00 64 	stw     r8,100(r9)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc1e898:	91 49 00 6c 	stw     r10,108(r9)                            
  rtems_chain_initialize_empty (&(*fs)->file_shares);                 
ffc1e89c:	81 3d 00 00 	lwz     r9,0(r29)                              
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 );                        
ffc1e8a0:	39 49 00 74 	addi    r10,r9,116                             
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc1e8a4:	93 e9 00 78 	stw     r31,120(r9)                            
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 );                        
ffc1e8a8:	39 09 00 78 	addi    r8,r9,120                              
                                                                      
  head->next = tail;                                                  
ffc1e8ac:	91 09 00 74 	stw     r8,116(r9)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc1e8b0:	91 49 00 7c 	stw     r10,124(r9)                            
                                                                      
  (*fs)->max_held_buffers = max_held_buffers;                         
ffc1e8b4:	80 9d 00 00 	lwz     r4,0(r29)                              
  (*fs)->buffers_count = 0;                                           
  (*fs)->release_count = 0;                                           
  (*fs)->release_modified_count = 0;                                  
  (*fs)->flags = flags;                                               
ffc1e8b8:	93 84 00 00 	stw     r28,0(r4)                              
  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;                         
ffc1e8bc:	93 64 00 40 	stw     r27,64(r4)                             
  (*fs)->buffers_count = 0;                                           
ffc1e8c0:	93 e4 00 50 	stw     r31,80(r4)                             
  (*fs)->release_count = 0;                                           
ffc1e8c4:	93 e4 00 60 	stw     r31,96(r4)                             
  (*fs)->release_modified_count = 0;                                  
ffc1e8c8:	93 e4 00 70 	stw     r31,112(r4)                            
#endif                                                                
                                                                      
  /*                                                                  
   * Open the buffer interface.                                       
   */                                                                 
  rc = rtems_rfs_buffer_open (name, *fs);                             
ffc1e8cc:	4b ff d8 a9 	bl      ffc1c174 <rtems_rfs_buffer_open>       
ffc1e8d0:	83 dd 00 00 	lwz     r30,0(r29)                             
  if (rc > 0)                                                         
ffc1e8d4:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc1e8d8:	40 a1 00 50 	ble+    ffc1e928 <rtems_rfs_fs_open+0x17c>     <== ALWAYS TAKEN
  {                                                                   
    free (*fs);                                                       
ffc1e8dc:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1e8e0:	4b fe a2 35 	bl      ffc08b14 <free>                        <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc1e8e4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1e8e8:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1e8ec:	4b ff 59 5d 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1e8f0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1e8f4:	41 be 00 24 	beq+    cr7,ffc1e918 <rtems_rfs_fs_open+0x16c> <== NOT EXECUTED
      printf ("rtems-rfs: open: buffer open failed: %d: %s\n",        
ffc1e8f8:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc1e8fc:	48 00 54 61 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1e900:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc1e904:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1e908:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e90c:	38 63 58 08 	addi    r3,r3,22536                            <== NOT EXECUTED
ffc1e910:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1e914:	48 00 42 5d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
              rc, strerror (rc));                                     
    errno = rc;                                                       
ffc1e918:	48 00 28 b5 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1e91c:	93 83 00 00 	stw     r28,0(r3)                              <== NOT EXECUTED
    return -1;                                                        
ffc1e920:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1e924:	48 00 06 14 	b       ffc1ef38 <rtems_rfs_fs_open+0x78c>     <== NOT EXECUTED
      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);        
ffc1e928:	7f c3 f3 78 	mr      r3,r30                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc1e92c:	9b e1 00 30 	stb     r31,48(r1)                             
ffc1e930:	38 81 00 30 	addi    r4,r1,48                               
ffc1e934:	38 a0 00 00 	li      r5,0                                   
  handle->bnum  = 0;                                                  
ffc1e938:	93 e1 00 34 	stw     r31,52(r1)                             
ffc1e93c:	38 c0 00 01 	li      r6,1                                   
  handle->buffer = NULL;                                              
ffc1e940:	93 e1 00 38 	stw     r31,56(r1)                             
ffc1e944:	4b ff d5 8d 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
  if (rc > 0)                                                         
ffc1e948:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1e94c:	40 81 00 30 	ble-    ffc1e97c <rtems_rfs_fs_open+0x1d0>     <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc1e950:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1e954:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1e958:	4b ff 58 f1 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1e95c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1e960:	41 be 04 4c 	beq+    cr7,ffc1edac <rtems_rfs_fs_open+0x600> <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: request failed%d: %s\n",   
ffc1e964:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1e968:	48 00 53 f5 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1e96c:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1e970:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e974:	38 63 58 35 	addi    r3,r3,22581                            <== NOT EXECUTED
ffc1e978:	48 00 03 34 	b       ffc1ecac <rtems_rfs_fs_open+0x500>     <== NOT EXECUTED
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  sb = rtems_rfs_buffer_data (&handle);                               
ffc1e97c:	81 21 00 38 	lwz     r9,56(r1)                              
ffc1e980:	83 e9 00 1c 	lwz     r31,28(r9)                             
                                                                      
#define read_sb(_o) rtems_rfs_read_u32 (sb + (_o))                    
                                                                      
  if (read_sb (RTEMS_RFS_SB_OFFSET_MAGIC) != RTEMS_RFS_SB_MAGIC)      
ffc1e984:	89 5f 00 00 	lbz     r10,0(r31)                             
ffc1e988:	89 3f 00 01 	lbz     r9,1(r31)                              
ffc1e98c:	55 4a c0 0e 	rlwinm  r10,r10,24,0,7                         
ffc1e990:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc1e994:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc1e998:	89 3f 00 03 	lbz     r9,3(r31)                              
ffc1e99c:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc1e9a0:	89 3f 00 02 	lbz     r9,2(r31)                              
ffc1e9a4:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc1e9a8:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc1e9ac:	6d 49 28 09 	xoris   r9,r10,10249                           
ffc1e9b0:	2f 89 20 01 	cmpwi   cr7,r9,8193                            
ffc1e9b4:	41 9e 00 24 	beq-    cr7,ffc1e9d8 <rtems_rfs_fs_open+0x22c> <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc1e9b8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1e9bc:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1e9c0:	4b ff 58 89 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1e9c4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1e9c8:	41 be 01 40 	beq+    cr7,ffc1eb08 <rtems_rfs_fs_open+0x35c> <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: invalid superblock, bad magic\n");
ffc1e9cc:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e9d0:	38 63 58 67 	addi    r3,r3,22631                            <== NOT EXECUTED
ffc1e9d4:	48 00 00 ac 	b       ffc1ea80 <rtems_rfs_fs_open+0x2d4>     <== NOT EXECUTED
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    return EIO;                                                       
  }                                                                   
                                                                      
  fs->blocks     = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);              
ffc1e9d8:	89 5f 00 0c 	lbz     r10,12(r31)                            
ffc1e9dc:	89 3f 00 0d 	lbz     r9,13(r31)                             
ffc1e9e0:	55 4a c0 0e 	rlwinm  r10,r10,24,0,7                         
ffc1e9e4:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc1e9e8:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc1e9ec:	89 3f 00 0f 	lbz     r9,15(r31)                             
ffc1e9f0:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc1e9f4:	89 3f 00 0e 	lbz     r9,14(r31)                             
ffc1e9f8:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc1e9fc:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc1ea00:	91 5e 00 04 	stw     r10,4(r30)                             
  fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);          
ffc1ea04:	88 ff 00 08 	lbz     r7,8(r31)                              
ffc1ea08:	89 3f 00 09 	lbz     r9,9(r31)                              
ffc1ea0c:	54 e7 c0 0e 	rlwinm  r7,r7,24,0,7                           
ffc1ea10:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc1ea14:	7c e7 4b 78 	or      r7,r7,r9                               
ffc1ea18:	89 3f 00 0b 	lbz     r9,11(r31)                             
ffc1ea1c:	7c e7 4b 78 	or      r7,r7,r9                               
ffc1ea20:	89 3f 00 0a 	lbz     r9,10(r31)                             
ffc1ea24:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc1ea28:	7c e7 4b 78 	or      r7,r7,r9                               
}                                                                     
                                                                      
uint64_t                                                              
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)                   
{                                                                     
  uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);  
ffc1ea2c:	81 3e 00 10 	lwz     r9,16(r30)                             
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;                                         
ffc1ea30:	7d 07 50 16 	mulhwu  r8,r7,r10                              
    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);          
ffc1ea34:	90 fe 00 08 	stw     r7,8(r30)                              
}                                                                     
                                                                      
uint64_t                                                              
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)                   
{                                                                     
  uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);  
ffc1ea38:	80 c9 00 1c 	lwz     r6,28(r9)                              
  uint64_t media_block_size = (uint64_t) rtems_rfs_fs_media_block_size (fs);
ffc1ea3c:	80 a9 00 20 	lwz     r5,32(r9)                              
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;                                         
ffc1ea40:	7d 27 51 d6 	mullw   r9,r7,r10                              
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;                             
ffc1ea44:	7d 45 30 16 	mulhwu  r10,r5,r6                              
ffc1ea48:	7d 65 31 d6 	mullw   r11,r5,r6                              
  }                                                                   
                                                                      
  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))           
ffc1ea4c:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc1ea50:	41 9d 00 14 	bgt-    cr7,ffc1ea64 <rtems_rfs_fs_open+0x2b8> <== NEVER TAKEN
ffc1ea54:	7f 88 50 00 	cmpw    cr7,r8,r10                             
ffc1ea58:	40 9e 00 30 	bne-    cr7,ffc1ea88 <rtems_rfs_fs_open+0x2dc> <== NEVER TAKEN
ffc1ea5c:	7f 89 58 40 	cmplw   cr7,r9,r11                             
ffc1ea60:	40 9d 00 28 	ble-    cr7,ffc1ea88 <rtems_rfs_fs_open+0x2dc> <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc1ea64:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1ea68:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1ea6c:	4b ff 57 dd 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1ea70:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1ea74:	41 be 00 94 	beq+    cr7,ffc1eb08 <rtems_rfs_fs_open+0x35c> <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: invalid superblock block/size count\n");
ffc1ea78:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1ea7c:	38 63 58 a1 	addi    r3,r3,22689                            <== NOT EXECUTED
ffc1ea80:	48 00 44 59 	bl      ffc22ed8 <puts>                        <== NOT EXECUTED
ffc1ea84:	48 00 00 84 	b       ffc1eb08 <rtems_rfs_fs_open+0x35c>     <== 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)
ffc1ea88:	89 1f 00 24 	lbz     r8,36(r31)                             
ffc1ea8c:	89 3f 00 25 	lbz     r9,37(r31)                             
ffc1ea90:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           
ffc1ea94:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc1ea98:	7d 08 4b 78 	or      r8,r8,r9                               
ffc1ea9c:	89 3f 00 27 	lbz     r9,39(r31)                             
ffc1eaa0:	7d 08 4b 78 	or      r8,r8,r9                               
ffc1eaa4:	89 3f 00 26 	lbz     r9,38(r31)                             
ffc1eaa8:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc1eaac:	7d 08 4b 78 	or      r8,r8,r9                               
ffc1eab0:	2f 88 00 38 	cmpwi   cr7,r8,56                              
ffc1eab4:	41 9e 00 68 	beq-    cr7,ffc1eb1c <rtems_rfs_fs_open+0x370> <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc1eab8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1eabc:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1eac0:	4b ff 57 89 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1eac4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1eac8:	41 be 00 40 	beq+    cr7,ffc1eb08 <rtems_rfs_fs_open+0x35c> <== 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);
ffc1eacc:	88 9f 00 04 	lbz     r4,4(r31)                              <== 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",
ffc1ead0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
ffc1ead4:	89 3f 00 05 	lbz     r9,5(r31)                              <== 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",
ffc1ead8:	38 63 58 e1 	addi    r3,r3,22753                            <== NOT EXECUTED
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
ffc1eadc:	54 84 c0 0e 	rlwinm  r4,r4,24,0,7                           <== NOT EXECUTED
ffc1eae0:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          <== NOT EXECUTED
ffc1eae4:	7c 84 4b 78 	or      r4,r4,r9                               <== NOT EXECUTED
ffc1eae8:	89 3f 00 07 	lbz     r9,7(r31)                              <== 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",
ffc1eaec:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
ffc1eaf0:	7c 84 4b 78 	or      r4,r4,r9                               <== NOT EXECUTED
ffc1eaf4:	89 3f 00 06 	lbz     r9,6(r31)                              <== NOT EXECUTED
ffc1eaf8:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           <== 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",
ffc1eafc:	7c 84 4b 78 	or      r4,r4,r9                               <== NOT EXECUTED
ffc1eb00:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1eb04:	48 00 40 6d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc1eb08:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1eb0c:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc1eb10:	4b ff fc 25 	bl      ffc1e734 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
    return EIO;                                                       
ffc1eb14:	3b e0 00 05 	li      r31,5                                  <== NOT EXECUTED
ffc1eb18:	48 00 02 9c 	b       ffc1edb4 <rtems_rfs_fs_open+0x608>     <== NOT EXECUTED
  }                                                                   
                                                                      
  fs->bad_blocks      = read_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS);     
ffc1eb1c:	89 5f 00 10 	lbz     r10,16(r31)                            
  fs->block_map_doubly_blocks =                                       
    fs->blocks_per_block * fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
                                                                      
  fs->inodes = fs->group_count * fs->group_inodes;                    
                                                                      
  fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;       
ffc1eb20:	7d 07 43 96 	divwu   r8,r7,r8                               
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    return EIO;                                                       
  }                                                                   
                                                                      
  fs->bad_blocks      = read_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS);     
ffc1eb24:	89 3f 00 11 	lbz     r9,17(r31)                             
ffc1eb28:	55 4a c0 0e 	rlwinm  r10,r10,24,0,7                         
ffc1eb2c:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc1eb30:	7d 49 4b 78 	or      r9,r10,r9                              
ffc1eb34:	89 5f 00 13 	lbz     r10,19(r31)                            
  fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;       
                                                                      
  if (fs->group_blocks >                                              
      rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs)))     
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc1eb38:	7f c3 f3 78 	mr      r3,r30                                 
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    return EIO;                                                       
  }                                                                   
                                                                      
  fs->bad_blocks      = read_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS);     
ffc1eb3c:	7d 29 53 78 	or      r9,r9,r10                              
ffc1eb40:	89 5f 00 12 	lbz     r10,18(r31)                            
ffc1eb44:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc1eb48:	7d 29 53 78 	or      r9,r9,r10                              
ffc1eb4c:	91 3e 00 18 	stw     r9,24(r30)                             
  fs->max_name_length = read_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH);
ffc1eb50:	89 5f 00 14 	lbz     r10,20(r31)                            
ffc1eb54:	89 3f 00 15 	lbz     r9,21(r31)                             
ffc1eb58:	55 4a c0 0e 	rlwinm  r10,r10,24,0,7                         
ffc1eb5c:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc1eb60:	7d 49 4b 78 	or      r9,r10,r9                              
ffc1eb64:	89 5f 00 17 	lbz     r10,23(r31)                            
ffc1eb68:	7d 29 53 78 	or      r9,r9,r10                              
ffc1eb6c:	89 5f 00 16 	lbz     r10,22(r31)                            
ffc1eb70:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc1eb74:	7d 29 53 78 	or      r9,r9,r10                              
ffc1eb78:	91 3e 00 1c 	stw     r9,28(r30)                             
  fs->group_count     = read_sb (RTEMS_RFS_SB_OFFSET_GROUPS);         
ffc1eb7c:	88 df 00 18 	lbz     r6,24(r31)                             
ffc1eb80:	89 3f 00 19 	lbz     r9,25(r31)                             
ffc1eb84:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc1eb88:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc1eb8c:	7c c6 4b 78 	or      r6,r6,r9                               
ffc1eb90:	89 3f 00 1b 	lbz     r9,27(r31)                             
ffc1eb94:	7c c6 4b 78 	or      r6,r6,r9                               
ffc1eb98:	89 3f 00 1a 	lbz     r9,26(r31)                             
ffc1eb9c:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc1eba0:	7c c6 4b 78 	or      r6,r6,r9                               
ffc1eba4:	90 de 00 24 	stw     r6,36(r30)                             
  fs->group_blocks    = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS);   
ffc1eba8:	89 5f 00 1c 	lbz     r10,28(r31)                            
ffc1ebac:	89 3f 00 1d 	lbz     r9,29(r31)                             
ffc1ebb0:	55 4a c0 0e 	rlwinm  r10,r10,24,0,7                         
ffc1ebb4:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc1ebb8:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc1ebbc:	89 3f 00 1f 	lbz     r9,31(r31)                             
ffc1ebc0:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc1ebc4:	89 3f 00 1e 	lbz     r9,30(r31)                             
ffc1ebc8:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc1ebcc:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc1ebd0:	91 5e 00 28 	stw     r10,40(r30)                            
  fs->group_inodes    = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES);   
ffc1ebd4:	88 bf 00 20 	lbz     r5,32(r31)                             
ffc1ebd8:	89 3f 00 21 	lbz     r9,33(r31)                             
ffc1ebdc:	54 a5 c0 0e 	rlwinm  r5,r5,24,0,7                           
ffc1ebe0:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc1ebe4:	7c a5 4b 78 	or      r5,r5,r9                               
ffc1ebe8:	89 3f 00 23 	lbz     r9,35(r31)                             
ffc1ebec:	7c a5 4b 78 	or      r5,r5,r9                               
ffc1ebf0:	89 3f 00 22 	lbz     r9,34(r31)                             
  fs->block_map_doubly_blocks =                                       
    fs->blocks_per_block * fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
                                                                      
  fs->inodes = fs->group_count * fs->group_inodes;                    
                                                                      
  fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;       
ffc1ebf4:	91 1e 00 30 	stw     r8,48(r30)                             
                                                                      
  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);   
ffc1ebf8:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc1ebfc:	7c a5 4b 78 	or      r5,r5,r9                               
                                                                      
  fs->blocks_per_block =                                              
    rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);    
ffc1ec00:	54 e9 f0 be 	rlwinm  r9,r7,30,2,31                          
                                                                      
  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);   
ffc1ec04:	90 be 00 2c 	stw     r5,44(r30)                             
  fs->inodes = fs->group_count * fs->group_inodes;                    
                                                                      
  fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;       
                                                                      
  if (fs->group_blocks >                                              
      rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs)))     
ffc1ec08:	54 e7 18 38 	rlwinm  r7,r7,3,0,28                           
                                                                      
  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;                    
ffc1ec0c:	1c 89 00 05 	mulli   r4,r9,5                                
  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 =                                              
ffc1ec10:	91 3e 00 34 	stw     r9,52(r30)                             
                                                                      
  fs->inodes = fs->group_count * fs->group_inodes;                    
                                                                      
  fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;       
                                                                      
  if (fs->group_blocks >                                              
ffc1ec14:	7f 8a 38 40 	cmplw   cr7,r10,r7                             
  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 =                                       
ffc1ec18:	90 9e 00 38 	stw     r4,56(r30)                             
    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;
ffc1ec1c:	7d 29 49 d6 	mullw   r9,r9,r9                               
                                                                      
  fs->inodes = fs->group_count * fs->group_inodes;                    
ffc1ec20:	7c c5 31 d6 	mullw   r6,r5,r6                               
    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 =                                       
    fs->blocks_per_block * fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
ffc1ec24:	1d 29 00 05 	mulli   r9,r9,5                                
                                                                      
  fs->inodes = fs->group_count * fs->group_inodes;                    
ffc1ec28:	90 de 00 14 	stw     r6,20(r30)                             
  fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;       
                                                                      
  if (fs->group_blocks >                                              
      rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs)))     
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc1ec2c:	38 81 00 30 	addi    r4,r1,48                               
  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 =                                       
ffc1ec30:	91 3e 00 3c 	stw     r9,60(r30)                             
                                                                      
  fs->inodes = fs->group_count * fs->group_inodes;                    
                                                                      
  fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;       
                                                                      
  if (fs->group_blocks >                                              
ffc1ec34:	40 9d 00 2c 	ble-    cr7,ffc1ec60 <rtems_rfs_fs_open+0x4b4> <== ALWAYS TAKEN
      rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs)))     
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc1ec38:	4b ff fa fd 	bl      ffc1e734 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc1ec3c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1ec40:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1ec44:	4b ff 56 05 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: groups blocks larger than block bits\n");
    return EIO;                                                       
ffc1ec48:	3b e0 00 05 	li      r31,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))                       
ffc1ec4c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1ec50:	41 be 01 64 	beq+    cr7,ffc1edb4 <rtems_rfs_fs_open+0x608> <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: groups blocks larger than block bits\n");
ffc1ec54:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1ec58:	38 63 59 25 	addi    r3,r3,22821                            <== NOT EXECUTED
ffc1ec5c:	48 00 00 a8 	b       ffc1ed04 <rtems_rfs_fs_open+0x558>     <== NOT EXECUTED
    return EIO;                                                       
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &handle);                        
ffc1ec60:	4b ff fa d5 	bl      ffc1e734 <rtems_rfs_buffer_handle_close>
                                                                      
  /*                                                                  
   * Change the block size to the value in the superblock.            
   */                                                                 
  rc = rtems_rfs_buffer_setblksize (fs, rtems_rfs_fs_block_size (fs));
ffc1ec64:	80 9e 00 08 	lwz     r4,8(r30)                              
ffc1ec68:	7f c3 f3 78 	mr      r3,r30                                 
ffc1ec6c:	4b ff d7 b5 	bl      ffc1c420 <rtems_rfs_buffer_setblksize> 
  if (rc > 0)                                                         
ffc1ec70:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1ec74:	40 81 00 48 	ble-    ffc1ecbc <rtems_rfs_fs_open+0x510>     <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc1ec78:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc1ec7c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1ec80:	4b ff fa b5 	bl      ffc1e734 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc1ec84:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1ec88:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1ec8c:	4b ff 55 bd 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1ec90:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1ec94:	41 be 01 18 	beq+    cr7,ffc1edac <rtems_rfs_fs_open+0x600> <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: invalid superblock block size%d: %s\n",
ffc1ec98:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1ec9c:	48 00 50 c1 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1eca0:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1eca4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1eca8:	38 63 59 66 	addi    r3,r3,22886                            <== NOT EXECUTED
ffc1ecac:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1ecb0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1ecb4:	48 00 3e bd 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1ecb8:	48 00 00 f4 	b       ffc1edac <rtems_rfs_fs_open+0x600>     <== NOT EXECUTED
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  fs->groups = calloc (fs->group_count, sizeof (rtems_rfs_group));    
ffc1ecbc:	80 7e 00 24 	lwz     r3,36(r30)                             
ffc1ecc0:	38 80 00 50 	li      r4,80                                  
                                                                      
  if (!fs->groups)                                                    
ffc1ecc4:	3b 80 00 00 	li      r28,0                                  
      printf ("rtems-rfs: read-superblock: invalid superblock block size%d: %s\n",
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  fs->groups = calloc (fs->group_count, sizeof (rtems_rfs_group));    
ffc1ecc8:	4b fe 9c a5 	bl      ffc0896c <calloc>                      
                                                                      
  if (!fs->groups)                                                    
ffc1eccc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
      printf ("rtems-rfs: read-superblock: invalid superblock block size%d: %s\n",
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  fs->groups = calloc (fs->group_count, sizeof (rtems_rfs_group));    
ffc1ecd0:	90 7e 00 20 	stw     r3,32(r30)                             
                                                                      
  if (!fs->groups)                                                    
ffc1ecd4:	40 be 00 c8 	bne+    cr7,ffc1ed9c <rtems_rfs_fs_open+0x5f0> <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
ffc1ecd8:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc1ecdc:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1ece0:	4b ff fa 55 	bl      ffc1e734 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc1ece4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1ece8:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1ecec:	4b ff 55 5d 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: no memory for group table\n");
    return ENOMEM;                                                    
ffc1ecf0:	3b e0 00 0c 	li      r31,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))                       
ffc1ecf4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1ecf8:	41 be 00 bc 	beq+    cr7,ffc1edb4 <rtems_rfs_fs_open+0x608> <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: no memory for group table\n");
ffc1ecfc:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1ed00:	38 63 59 a7 	addi    r3,r3,22951                            <== NOT EXECUTED
ffc1ed04:	48 00 41 d5 	bl      ffc22ed8 <puts>                        <== NOT EXECUTED
ffc1ed08:	48 00 00 ac 	b       ffc1edb4 <rtems_rfs_fs_open+0x608>     <== 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),     
ffc1ed0c:	80 be 00 28 	lwz     r5,40(r30)                             
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_fs_open (const char*             name,                      
ffc1ed10:	1c fc 00 50 	mulli   r7,r28,80                              
   * 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,                                    
ffc1ed14:	81 3e 00 20 	lwz     r9,32(r30)                             
                               rtems_rfs_fs_block (fs, group, 0),     
ffc1ed18:	7c 9c 29 d6 	mullw   r4,r28,r5                              
   * 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,                                    
ffc1ed1c:	80 de 00 2c 	lwz     r6,44(r30)                             
ffc1ed20:	7f c3 f3 78 	mr      r3,r30                                 
ffc1ed24:	38 84 00 01 	addi    r4,r4,1                                
ffc1ed28:	7c e9 3a 14 	add     r7,r9,r7                               
ffc1ed2c:	4b ff 32 9d 	bl      ffc11fc8 <rtems_rfs_group_open>        
                               rtems_rfs_fs_block (fs, group, 0),     
                               fs->group_blocks,                      
                               fs->group_inodes,                      
                               &fs->groups[group]);                   
    if (rc > 0)                                                       
ffc1ed30:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1ed34:	40 a1 00 64 	ble+    ffc1ed98 <rtems_rfs_fs_open+0x5ec>     <== ALWAYS TAKEN
ffc1ed38:	3b 60 00 00 	li      r27,0                                  <== NOT EXECUTED
ffc1ed3c:	48 00 00 1c 	b       ffc1ed58 <rtems_rfs_fs_open+0x5ac>     <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_fs_open (const char*             name,                      
ffc1ed40:	1c 9b 00 50 	mulli   r4,r27,80                              <== NOT EXECUTED
                               &fs->groups[group]);                   
    if (rc > 0)                                                       
    {                                                                 
      int g;                                                          
      for (g = 0; g < group; g++)                                     
        rtems_rfs_group_close (fs, &fs->groups[g]);                   
ffc1ed44:	81 3e 00 20 	lwz     r9,32(r30)                             <== NOT EXECUTED
ffc1ed48:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1ed4c:	7c 89 22 14 	add     r4,r9,r4                               <== NOT EXECUTED
ffc1ed50:	4b ff 34 99 	bl      ffc121e8 <rtems_rfs_group_close>       <== NOT EXECUTED
                               fs->group_inodes,                      
                               &fs->groups[group]);                   
    if (rc > 0)                                                       
    {                                                                 
      int g;                                                          
      for (g = 0; g < group; g++)                                     
ffc1ed54:	3b 7b 00 01 	addi    r27,r27,1                              <== NOT EXECUTED
ffc1ed58:	7f 9b e0 00 	cmpw    cr7,r27,r28                            <== NOT EXECUTED
ffc1ed5c:	41 9c ff e4 	blt+    cr7,ffc1ed40 <rtems_rfs_fs_open+0x594> <== NOT EXECUTED
        rtems_rfs_group_close (fs, &fs->groups[g]);                   
      rtems_rfs_buffer_handle_close (fs, &handle);                    
ffc1ed60:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc1ed64:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1ed68:	4b ff f9 cd 	bl      ffc1e734 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                     
ffc1ed6c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1ed70:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1ed74:	4b ff 54 d5 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1ed78:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1ed7c:	41 be 00 30 	beq+    cr7,ffc1edac <rtems_rfs_fs_open+0x600> <== NOT EXECUTED
        printf ("rtems-rfs: read-superblock: no memory for group table%d: %s\n",
ffc1ed80:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1ed84:	48 00 4f d9 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1ed88:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1ed8c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1ed90:	38 63 59 dd 	addi    r3,r3,23005                            <== NOT EXECUTED
ffc1ed94:	4b ff ff 18 	b       ffc1ecac <rtems_rfs_fs_open+0x500>     <== 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++)                   
ffc1ed98:	3b 9c 00 01 	addi    r28,r28,1                              
ffc1ed9c:	81 3e 00 24 	lwz     r9,36(r30)                             
ffc1eda0:	7f 9c 48 00 	cmpw    cr7,r28,r9                             
ffc1eda4:	41 9c ff 68 	blt+    cr7,ffc1ed0c <rtems_rfs_fs_open+0x560> 
ffc1eda8:	48 00 00 48 	b       ffc1edf0 <rtems_rfs_fs_open+0x644>     
    errno = rc;                                                       
    return -1;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_fs_read_superblock (*fs);                            
  if (rc > 0)                                                         
ffc1edac:	2f 9f 00 00 	cmpwi   cr7,r31,0                              <== NOT EXECUTED
ffc1edb0:	41 be 00 40 	beq+    cr7,ffc1edf0 <rtems_rfs_fs_open+0x644> <== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_close (*fs);                                     
ffc1edb4:	80 7d 00 00 	lwz     r3,0(r29)                              <== NOT EXECUTED
ffc1edb8:	4b ff d7 65 	bl      ffc1c51c <rtems_rfs_buffer_close>      <== NOT EXECUTED
    free (*fs);                                                       
ffc1edbc:	80 7d 00 00 	lwz     r3,0(r29)                              <== NOT EXECUTED
ffc1edc0:	4b fe 9d 55 	bl      ffc08b14 <free>                        <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc1edc4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1edc8:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1edcc:	4b ff 54 7d 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1edd0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1edd4:	41 be 01 48 	beq+    cr7,ffc1ef1c <rtems_rfs_fs_open+0x770> <== NOT EXECUTED
      printf ("rtems-rfs: open: reading superblock: %d: %s\n",        
ffc1edd8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1eddc:	48 00 4f 81 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1ede0:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1ede4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1ede8:	38 63 5a 1a 	addi    r3,r3,23066                            <== NOT EXECUTED
ffc1edec:	48 00 01 24 	b       ffc1ef10 <rtems_rfs_fs_open+0x764>     <== NOT EXECUTED
              rc, strerror (rc));                                     
    errno = rc;                                                       
    return -1;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (*fs, RTEMS_RFS_ROOT_INO, &inode, true);  
ffc1edf0:	80 7d 00 00 	lwz     r3,0(r29)                              
ffc1edf4:	38 80 00 01 	li      r4,1                                   
ffc1edf8:	38 a1 00 08 	addi    r5,r1,8                                
ffc1edfc:	38 c0 00 01 	li      r6,1                                   
ffc1ee00:	4b ff 39 e9 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc1ee04:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1ee08:	80 7d 00 00 	lwz     r3,0(r29)                              
ffc1ee0c:	40 a1 00 3c 	ble+    ffc1ee48 <rtems_rfs_fs_open+0x69c>     <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_buffer_close (*fs);                                     
ffc1ee10:	4b ff d7 0d 	bl      ffc1c51c <rtems_rfs_buffer_close>      <== NOT EXECUTED
    free (*fs);                                                       
ffc1ee14:	80 7d 00 00 	lwz     r3,0(r29)                              <== NOT EXECUTED
ffc1ee18:	4b fe 9c fd 	bl      ffc08b14 <free>                        <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc1ee1c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1ee20:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1ee24:	4b ff 54 25 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1ee28:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1ee2c:	41 be 00 f0 	beq+    cr7,ffc1ef1c <rtems_rfs_fs_open+0x770> <== NOT EXECUTED
      printf ("rtems-rfs: open: reading root inode: %d: %s\n",        
ffc1ee30:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1ee34:	48 00 4f 29 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1ee38:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1ee3c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1ee40:	38 63 5a 47 	addi    r3,r3,23111                            <== NOT EXECUTED
ffc1ee44:	48 00 00 cc 	b       ffc1ef10 <rtems_rfs_fs_open+0x764>     <== NOT EXECUTED
              rc, strerror (rc));                                     
    errno = rc;                                                       
    return -1;                                                        
  }                                                                   
                                                                      
  if (((*fs)->flags & RTEMS_RFS_FS_FORCE_OPEN) == 0)                  
ffc1ee48:	81 23 00 00 	lwz     r9,0(r3)                               
ffc1ee4c:	71 2a 00 04 	andi.   r10,r9,4                               
ffc1ee50:	40 82 00 78 	bne-    ffc1eec8 <rtems_rfs_fs_open+0x71c>     
  {                                                                   
    mode = rtems_rfs_inode_get_mode (&inode);                         
ffc1ee54:	81 21 00 14 	lwz     r9,20(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);                    
ffc1ee58:	89 09 00 02 	lbz     r8,2(r9)                               
ffc1ee5c:	89 49 00 03 	lbz     r10,3(r9)                              
ffc1ee60:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc1ee64:	7d 09 53 78 	or      r9,r8,r10                              
                                                                      
    if ((mode == 0xffff) || !RTEMS_RFS_S_ISDIR (mode))                
ffc1ee68:	6d 2a ff ff 	xoris   r10,r9,65535                           
ffc1ee6c:	2f 8a ff ff 	cmpwi   cr7,r10,-1                             
ffc1ee70:	41 9e 00 10 	beq-    cr7,ffc1ee80 <rtems_rfs_fs_open+0x6d4> <== NEVER TAKEN
ffc1ee74:	55 29 04 26 	rlwinm  r9,r9,0,16,19                          
ffc1ee78:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
ffc1ee7c:	41 be 00 4c 	beq+    cr7,ffc1eec8 <rtems_rfs_fs_open+0x71c> <== ALWAYS TAKEN
    {                                                                 
      rtems_rfs_inode_close (*fs, &inode);                            
ffc1ee80:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc1ee84:	4b ff 3b 59 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
      rtems_rfs_buffer_close (*fs);                                   
ffc1ee88:	80 7d 00 00 	lwz     r3,0(r29)                              <== NOT EXECUTED
ffc1ee8c:	4b ff d6 91 	bl      ffc1c51c <rtems_rfs_buffer_close>      <== NOT EXECUTED
      free (*fs);                                                     
ffc1ee90:	80 7d 00 00 	lwz     r3,0(r29)                              <== NOT EXECUTED
ffc1ee94:	4b fe 9c 81 	bl      ffc08b14 <free>                        <== NOT EXECUTED
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                     
ffc1ee98:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1ee9c:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1eea0:	4b ff 53 a9 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1eea4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1eea8:	41 be 00 10 	beq+    cr7,ffc1eeb8 <rtems_rfs_fs_open+0x70c> <== NOT EXECUTED
        printf ("rtems-rfs: open: invalid root inode mode\n");        
ffc1eeac:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1eeb0:	38 63 5a 74 	addi    r3,r3,23156                            <== NOT EXECUTED
ffc1eeb4:	48 00 40 25 	bl      ffc22ed8 <puts>                        <== NOT EXECUTED
      errno = EIO;                                                    
ffc1eeb8:	48 00 23 15 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1eebc:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1eec0:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1eec4:	4b ff fa 5c 	b       ffc1e920 <rtems_rfs_fs_open+0x174>     <== NOT EXECUTED
      return -1;                                                      
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (*fs, &inode);                           
ffc1eec8:	38 81 00 08 	addi    r4,r1,8                                
ffc1eecc:	4b ff 3b 11 	bl      ffc129dc <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
ffc1eed0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1eed4:	40 a1 00 54 	ble+    ffc1ef28 <rtems_rfs_fs_open+0x77c>     <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_buffer_close (*fs);                                     
ffc1eed8:	80 7d 00 00 	lwz     r3,0(r29)                              <== NOT EXECUTED
ffc1eedc:	4b ff d6 41 	bl      ffc1c51c <rtems_rfs_buffer_close>      <== NOT EXECUTED
    free (*fs);                                                       
ffc1eee0:	80 7d 00 00 	lwz     r3,0(r29)                              <== NOT EXECUTED
ffc1eee4:	4b fe 9c 31 	bl      ffc08b14 <free>                        <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc1eee8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1eeec:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1eef0:	4b ff 53 59 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1eef4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1eef8:	41 be 00 24 	beq+    cr7,ffc1ef1c <rtems_rfs_fs_open+0x770> <== NOT EXECUTED
      printf ("rtems-rfs: open: closing root inode: %d: %s\n", rc, strerror (rc));
ffc1eefc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1ef00:	48 00 4e 5d 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1ef04:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1ef08:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1ef0c:	38 63 5a 9d 	addi    r3,r3,23197                            <== NOT EXECUTED
ffc1ef10:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1ef14:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1ef18:	48 00 3c 59 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
    errno = rc;                                                       
ffc1ef1c:	48 00 22 b1 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1ef20:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc1ef24:	4b ff f9 fc 	b       ffc1e920 <rtems_rfs_fs_open+0x174>     <== NOT EXECUTED
    return -1;                                                        
  }                                                                   
                                                                      
  errno = 0;                                                          
ffc1ef28:	48 00 22 a5 	bl      ffc211cc <__errno>                     
ffc1ef2c:	39 20 00 00 	li      r9,0                                   
ffc1ef30:	91 23 00 00 	stw     r9,0(r3)                               
  return 0;                                                           
ffc1ef34:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1ef38:	39 61 00 60 	addi    r11,r1,96                              
ffc1ef3c:	4b fe 26 20 	b       ffc0155c <_restgpr_27_x>               
                                                                      

ffc1e770 <rtems_rfs_fs_size>: #include <rtems/rfs/rtems-rfs-trace.h> uint64_t rtems_rfs_fs_size (rtems_rfs_file_system* fs) { uint64_t blocks = rtems_rfs_fs_blocks (fs);
ffc1e770:	81 23 00 04 	lwz     r9,4(r3)                               <== NOT EXECUTED
  uint64_t block_size = rtems_rfs_fs_block_size (fs);                 
ffc1e774:	81 03 00 08 	lwz     r8,8(r3)                               <== NOT EXECUTED
  return blocks * block_size;                                         
ffc1e778:	7d 48 48 16 	mulhwu  r10,r8,r9                              <== NOT EXECUTED
ffc1e77c:	7d 68 49 d6 	mullw   r11,r8,r9                              <== NOT EXECUTED
}                                                                     
ffc1e780:	7d 43 53 78 	mr      r3,r10                                 <== NOT EXECUTED
ffc1e784:	7d 64 5b 78 	mr      r4,r11                                 <== NOT EXECUTED
ffc1e788:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc1229c <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) {
ffc1229c:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc122a0:	7d 80 00 26 	mfcr    r12                                    
ffc122a4:	7c 08 02 a6 	mflr    r0                                     
ffc122a8:	be a1 00 1c 	stmw    r21,28(r1)                             
  rtems_rfs_bitmap_bit bit;                                           
  int                  offset;                                        
  bool                 updown;                                        
  int                  direction;                                     
                                                                      
  if (inode)                                                          
ffc122ac:	7c ba 2b 79 	mr.     r26,r5                                 
int                                                                   
rtems_rfs_group_bitmap_alloc (rtems_rfs_file_system* fs,              
                              rtems_rfs_bitmap_bit   goal,            
                              bool                   inode,           
                              rtems_rfs_bitmap_bit*  result)          
{                                                                     
ffc122b0:	7c 7e 1b 78 	mr      r30,r3                                 
ffc122b4:	90 01 00 4c 	stw     r0,76(r1)                              
ffc122b8:	7c d9 33 78 	mr      r25,r6                                 
ffc122bc:	91 81 00 18 	stw     r12,24(r1)                             
  rtems_rfs_bitmap_bit bit;                                           
  int                  offset;                                        
  bool                 updown;                                        
  int                  direction;                                     
                                                                      
  if (inode)                                                          
ffc122c0:	41 82 00 10 	beq-    ffc122d0 <rtems_rfs_group_bitmap_alloc+0x34>
  {                                                                   
    size = fs->group_inodes;                                          
ffc122c4:	83 63 00 2c 	lwz     r27,44(r3)                             
    goal -= RTEMS_RFS_ROOT_INO;                                       
ffc122c8:	38 84 ff ff 	addi    r4,r4,-1                               
ffc122cc:	48 00 00 08 	b       ffc122d4 <rtems_rfs_group_bitmap_alloc+0x38>
  }                                                                   
  else                                                                
    size = fs->group_blocks;                                          
ffc122d0:	83 63 00 28 	lwz     r27,40(r3)                             
                                                                      
  group_start = goal / size;                                          
ffc122d4:	7e c4 db 96 	divwu   r22,r4,r27                             
  bit = (rtems_rfs_bitmap_bit) (goal % size);                         
ffc122d8:	7d 36 d9 d6 	mullw   r9,r22,r27                             
      direction = direction > 0 ? -1 : 1;                             
      updown = false;                                                 
      continue;                                                       
    }                                                                 
                                                                      
   if (inode)                                                         
ffc122dc:	2e 1a 00 00 	cmpwi   cr4,r26,0                              
  }                                                                   
  else                                                                
    size = fs->group_blocks;                                          
                                                                      
  group_start = goal / size;                                          
  bit = (rtems_rfs_bitmap_bit) (goal % size);                         
ffc122e0:	7c 89 20 50 	subf    r4,r9,r4                               
ffc122e4:	90 81 00 08 	stw     r4,8(r1)                               
  offset = 0;                                                         
  updown = true;                                                      
  direction = 1;                                                      
ffc122e8:	3b e0 00 01 	li      r31,1                                  
    size = fs->group_blocks;                                          
                                                                      
  group_start = goal / size;                                          
  bit = (rtems_rfs_bitmap_bit) (goal % size);                         
  offset = 0;                                                         
  updown = true;                                                      
ffc122ec:	3b 00 00 01 	li      r24,1                                  
  else                                                                
    size = fs->group_blocks;                                          
                                                                      
  group_start = goal / size;                                          
  bit = (rtems_rfs_bitmap_bit) (goal % size);                         
  offset = 0;                                                         
ffc122f0:	3b 80 00 00 	li      r28,0                                  
   */                                                                 
  while (true)                                                        
  {                                                                   
    rtems_rfs_bitmap_control* bitmap;                                 
    int                       group;                                  
    bool                      allocated = false;                      
ffc122f4:	3a a0 00 00 	li      r21,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)                                                       
ffc122f8:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
   */                                                                 
  while (true)                                                        
  {                                                                   
    rtems_rfs_bitmap_control* bitmap;                                 
    int                       group;                                  
    bool                      allocated = false;                      
ffc122fc:	9a a1 00 0c 	stb     r21,12(r1)                             
                                                                      
    /*                                                                
     * 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);                       
ffc12300:	7f bf e1 d6 	mullw   r29,r31,r28                            
ffc12304:	7f b6 ea 14 	add     r29,r22,r29                            
    if (offset)                                                       
ffc12308:	41 9e 00 18 	beq-    cr7,ffc12320 <rtems_rfs_group_bitmap_alloc+0x84>
      bit = direction > 0 ? 0 : size - 1;                             
ffc1230c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc12310:	39 20 00 00 	li      r9,0                                   
ffc12314:	41 bd 00 08 	bgt+    cr7,ffc1231c <rtems_rfs_group_bitmap_alloc+0x80>
ffc12318:	39 3b ff ff 	addi    r9,r27,-1                              
ffc1231c:	91 21 00 08 	stw     r9,8(r1)                               
    /*                                                                
     * 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))                    
ffc12320:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc12324:	41 9c 00 10 	blt-    cr7,ffc12334 <rtems_rfs_group_bitmap_alloc+0x98>
ffc12328:	81 3e 00 24 	lwz     r9,36(r30)                             
ffc1232c:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc12330:	41 9c 00 28 	blt-    cr7,ffc12358 <rtems_rfs_group_bitmap_alloc+0xbc>
    {                                                                 
      if (!updown)                                                    
ffc12334:	2f 98 00 00 	cmpwi   cr7,r24,0                              
ffc12338:	41 9e 01 24 	beq-    cr7,ffc1245c <rtems_rfs_group_bitmap_alloc+0x1c0>
        break;                                                        
      direction = direction > 0 ? -1 : 1;                             
ffc1233c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc12340:	40 9d 00 0c 	ble-    cr7,ffc1234c <rtems_rfs_group_bitmap_alloc+0xb0><== ALWAYS TAKEN
ffc12344:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
ffc12348:	48 00 00 08 	b       ffc12350 <rtems_rfs_group_bitmap_alloc+0xb4><== NOT EXECUTED
ffc1234c:	3b e0 00 01 	li      r31,1                                  
      updown = false;                                                 
ffc12350:	3b 00 00 00 	li      r24,0                                  
ffc12354:	4b ff ff a4 	b       ffc122f8 <rtems_rfs_group_bitmap_alloc+0x5c>
ffc12358:	1d 3d 00 50 	mulli   r9,r29,80                              
ffc1235c:	82 fe 00 20 	lwz     r23,32(r30)                            
      continue;                                                       
    }                                                                 
                                                                      
   if (inode)                                                         
      bitmap = &fs->groups[group].inode_bitmap;                       
ffc12360:	7e f7 4a 14 	add     r23,r23,r9                             
      direction = direction > 0 ? -1 : 1;                             
      updown = false;                                                 
      continue;                                                       
    }                                                                 
                                                                      
   if (inode)                                                         
ffc12364:	41 92 00 0c 	beq-    cr4,ffc12370 <rtems_rfs_group_bitmap_alloc+0xd4>
      bitmap = &fs->groups[group].inode_bitmap;                       
ffc12368:	3a f7 00 2c 	addi    r23,r23,44                             
ffc1236c:	48 00 00 08 	b       ffc12374 <rtems_rfs_group_bitmap_alloc+0xd8>
    else                                                              
      bitmap = &fs->groups[group].block_bitmap;                       
ffc12370:	3a f7 00 08 	addi    r23,r23,8                              
                                                                      
    rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);  
ffc12374:	80 81 00 08 	lwz     r4,8(r1)                               
ffc12378:	7e e3 bb 78 	mr      r3,r23                                 
ffc1237c:	38 a1 00 0c 	addi    r5,r1,12                               
ffc12380:	38 c1 00 08 	addi    r6,r1,8                                
ffc12384:	48 00 84 75 	bl      ffc1a7f8 <rtems_rfs_bitmap_map_alloc>  
    if (rc > 0)                                                       
ffc12388:	7c 69 1b 79 	mr.     r9,r3                                  
ffc1238c:	41 81 00 f8 	bgt-    ffc12484 <rtems_rfs_group_bitmap_alloc+0x1e8><== NEVER TAKEN
      return rc;                                                      
                                                                      
    if (rtems_rfs_fs_release_bitmaps (fs))                            
ffc12390:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc12394:	71 2a 00 01 	andi.   r10,r9,1                               
ffc12398:	40 a2 00 10 	bne+    ffc123a8 <rtems_rfs_group_bitmap_alloc+0x10c><== NEVER TAKEN
      rtems_rfs_bitmap_release_buffer (fs, bitmap);                   
ffc1239c:	80 97 00 00 	lwz     r4,0(r23)                              
ffc123a0:	7f c3 f3 78 	mr      r3,r30                                 
ffc123a4:	48 00 99 49 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
                                                                      
    if (allocated)                                                    
ffc123a8:	89 21 00 0c 	lbz     r9,12(r1)                              
ffc123ac:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc123b0:	41 be 00 88 	beq+    cr7,ffc12438 <rtems_rfs_group_bitmap_alloc+0x19c>
    {                                                                 
      if (inode)                                                      
ffc123b4:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc123b8:	81 21 00 08 	lwz     r9,8(r1)                               
ffc123bc:	41 9e 00 18 	beq-    cr7,ffc123d4 <rtems_rfs_group_bitmap_alloc+0x138>
        *result = rtems_rfs_group_inode (fs, group, bit);             
ffc123c0:	81 5e 00 2c 	lwz     r10,44(r30)                            
ffc123c4:	39 29 00 01 	addi    r9,r9,1                                
ffc123c8:	7f bd 51 d6 	mullw   r29,r29,r10                            
ffc123cc:	7d 29 ea 14 	add     r9,r9,r29                              
ffc123d0:	48 00 00 14 	b       ffc123e4 <rtems_rfs_group_bitmap_alloc+0x148>
      else                                                            
        *result = rtems_rfs_group_block (&fs->groups[group], bit);    
ffc123d4:	81 5e 00 20 	lwz     r10,32(r30)                            
ffc123d8:	1f bd 00 50 	mulli   r29,r29,80                             
ffc123dc:	7d 4a e8 2e 	lwzx    r10,r10,r29                            
ffc123e0:	7d 29 52 14 	add     r9,r9,r10                              
ffc123e4:	91 39 00 00 	stw     r9,0(r25)                              
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))            
ffc123e8:	38 60 00 00 	li      r3,0                                   
ffc123ec:	3c 80 00 02 	lis     r4,2                                   
ffc123f0:	48 00 1e 59 	bl      ffc14248 <rtems_rfs_trace>             
        printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %" PRId32 "\n",
                inode ? "inode" : "block", *result);                  
      return 0;                                                       
ffc123f4:	39 20 00 00 	li      r9,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))            
ffc123f8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc123fc:	41 9e 00 88 	beq-    cr7,ffc12484 <rtems_rfs_group_bitmap_alloc+0x1e8><== ALWAYS TAKEN
        printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %" PRId32 "\n",
ffc12400:	2f 9a 00 00 	cmpwi   cr7,r26,0                              <== NOT EXECUTED
ffc12404:	41 9e 00 10 	beq-    cr7,ffc12414 <rtems_rfs_group_bitmap_alloc+0x178><== NOT EXECUTED
ffc12408:	3c 80 ff c3 	lis     r4,-61                                 <== NOT EXECUTED
ffc1240c:	38 84 3b 57 	addi    r4,r4,15191                            <== NOT EXECUTED
ffc12410:	48 00 00 0c 	b       ffc1241c <rtems_rfs_group_bitmap_alloc+0x180><== NOT EXECUTED
ffc12414:	3c 80 ff c3 	lis     r4,-61                                 <== NOT EXECUTED
ffc12418:	38 84 32 bc 	addi    r4,r4,12988                            <== NOT EXECUTED
ffc1241c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc12420:	80 b9 00 00 	lwz     r5,0(r25)                              <== NOT EXECUTED
ffc12424:	38 63 3b 5d 	addi    r3,r3,15197                            <== NOT EXECUTED
ffc12428:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1242c:	48 01 07 45 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                inode ? "inode" : "block", *result);                  
      return 0;                                                       
ffc12430:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc12434:	48 00 00 50 	b       ffc12484 <rtems_rfs_group_bitmap_alloc+0x1e8><== NOT EXECUTED
    }                                                                 
                                                                      
    if (updown)                                                       
ffc12438:	2f 98 00 00 	cmpwi   cr7,r24,0                              
ffc1243c:	41 9e 00 18 	beq-    cr7,ffc12454 <rtems_rfs_group_bitmap_alloc+0x1b8><== NEVER TAKEN
      direction = direction > 0 ? -1 : 1;                             
ffc12440:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc12444:	40 9d 00 0c 	ble-    cr7,ffc12450 <rtems_rfs_group_bitmap_alloc+0x1b4><== NEVER TAKEN
ffc12448:	3b e0 ff ff 	li      r31,-1                                 
ffc1244c:	48 00 00 08 	b       ffc12454 <rtems_rfs_group_bitmap_alloc+0x1b8>
ffc12450:	3b e0 00 01 	li      r31,1                                  <== NOT EXECUTED
                                                                      
    offset++;                                                         
ffc12454:	3b 9c 00 01 	addi    r28,r28,1                              
ffc12458:	4b ff fe a0 	b       ffc122f8 <rtems_rfs_group_bitmap_alloc+0x5c>
  }                                                                   
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
ffc1245c:	38 60 00 00 	li      r3,0                                   
ffc12460:	3c 80 00 02 	lis     r4,2                                   
ffc12464:	48 00 1d e5 	bl      ffc14248 <rtems_rfs_trace>             
ffc12468:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1246c:	40 9e 00 08 	bne-    cr7,ffc12474 <rtems_rfs_group_bitmap_alloc+0x1d8><== NEVER TAKEN
ffc12470:	48 00 00 10 	b       ffc12480 <rtems_rfs_group_bitmap_alloc+0x1e4>
    printf ("rtems-rfs: group-bitmap-alloc: no blocks available\n");  
ffc12474:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc12478:	38 63 3b 8f 	addi    r3,r3,15247                            <== NOT EXECUTED
ffc1247c:	48 01 0a 5d 	bl      ffc22ed8 <puts>                        <== NOT EXECUTED
                                                                      
  return ENOSPC;                                                      
ffc12480:	39 20 00 1c 	li      r9,28                                  
}                                                                     
ffc12484:	81 81 00 18 	lwz     r12,24(r1)                             
ffc12488:	39 61 00 48 	addi    r11,r1,72                              
ffc1248c:	7d 23 4b 78 	mr      r3,r9                                  
ffc12490:	7d 80 81 20 	mtcrf   8,r12                                  
ffc12494:	4b fe f0 b0 	b       ffc01544 <_restgpr_21_x>               
                                                                      

ffc12498 <rtems_rfs_group_bitmap_free>: int rtems_rfs_group_bitmap_free (rtems_rfs_file_system* fs, bool inode, rtems_rfs_bitmap_bit no) {
ffc12498:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc1249c:	7c 08 02 a6 	mflr    r0                                     
ffc124a0:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc124a4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc124a8:	7c 9e 23 78 	mr      r30,r4                                 
  unsigned int              group;                                    
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
ffc124ac:	38 60 00 00 	li      r3,0                                   
                                                                      
int                                                                   
rtems_rfs_group_bitmap_free (rtems_rfs_file_system* fs,               
                             bool                   inode,            
                             rtems_rfs_bitmap_bit   no)               
{                                                                     
ffc124b0:	90 01 00 1c 	stw     r0,28(r1)                              
  unsigned int              group;                                    
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
ffc124b4:	3c 80 00 02 	lis     r4,2                                   
                                                                      
int                                                                   
rtems_rfs_group_bitmap_free (rtems_rfs_file_system* fs,               
                             bool                   inode,            
                             rtems_rfs_bitmap_bit   no)               
{                                                                     
ffc124b8:	7c bd 2b 78 	mr      r29,r5                                 
  unsigned int              group;                                    
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
ffc124bc:	48 00 1d 8d 	bl      ffc14248 <rtems_rfs_trace>             
ffc124c0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc124c4:	41 9e 00 34 	beq-    cr7,ffc124f8 <rtems_rfs_group_bitmap_free+0x60><== ALWAYS TAKEN
    printf ("rtems-rfs: group-bitmap-free: %s free: %" PRId32 "\n",   
ffc124c8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc124cc:	41 9e 00 10 	beq-    cr7,ffc124dc <rtems_rfs_group_bitmap_free+0x44><== NOT EXECUTED
ffc124d0:	3c 80 ff c3 	lis     r4,-61                                 <== NOT EXECUTED
ffc124d4:	38 84 3b 57 	addi    r4,r4,15191                            <== NOT EXECUTED
ffc124d8:	48 00 00 0c 	b       ffc124e4 <rtems_rfs_group_bitmap_free+0x4c><== NOT EXECUTED
ffc124dc:	3c 80 ff c3 	lis     r4,-61                                 <== NOT EXECUTED
ffc124e0:	38 84 32 bc 	addi    r4,r4,12988                            <== NOT EXECUTED
ffc124e4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc124e8:	38 63 3b c2 	addi    r3,r3,15298                            <== NOT EXECUTED
ffc124ec:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc124f0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc124f4:	48 01 06 7d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            inode ? "inode" : "block", no);                           
                                                                      
  if (inode)                                                          
ffc124f8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc124fc:	3b bd ff ff 	addi    r29,r29,-1                             
ffc12500:	41 9e 00 0c 	beq-    cr7,ffc1250c <rtems_rfs_group_bitmap_free+0x74>
  {                                                                   
    no -= RTEMS_RFS_ROOT_INO;                                         
    size = fs->group_inodes;                                          
ffc12504:	81 3f 00 2c 	lwz     r9,44(r31)                             
ffc12508:	48 00 00 08 	b       ffc12510 <rtems_rfs_group_bitmap_free+0x78>
  }                                                                   
  else                                                                
  {                                                                   
    no -= RTEMS_RFS_SUPERBLOCK_SIZE;                                  
    size = fs->group_blocks;                                          
ffc1250c:	81 3f 00 28 	lwz     r9,40(r31)                             
  }                                                                   
                                                                      
  group = no / size;                                                  
ffc12510:	7d 5d 4b 96 	divwu   r10,r29,r9                             
ffc12514:	81 1f 00 20 	lwz     r8,32(r31)                             
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
                                                                      
  if (inode)                                                          
ffc12518:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    no -= RTEMS_RFS_SUPERBLOCK_SIZE;                                  
    size = fs->group_blocks;                                          
  }                                                                   
                                                                      
  group = no / size;                                                  
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
ffc1251c:	7d 2a 49 d6 	mullw   r9,r10,r9                              
ffc12520:	1d 4a 00 50 	mulli   r10,r10,80                             
ffc12524:	7c 89 e8 50 	subf    r4,r9,r29                              
                                                                      
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
ffc12528:	7f c8 52 14 	add     r30,r8,r10                             
  }                                                                   
                                                                      
  group = no / size;                                                  
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
                                                                      
  if (inode)                                                          
ffc1252c:	41 be 00 0c 	beq+    cr7,ffc12538 <rtems_rfs_group_bitmap_free+0xa0>
    bitmap = &fs->groups[group].inode_bitmap;                         
ffc12530:	3b de 00 2c 	addi    r30,r30,44                             
ffc12534:	48 00 00 08 	b       ffc1253c <rtems_rfs_group_bitmap_free+0xa4>
  else                                                                
    bitmap = &fs->groups[group].block_bitmap;                         
ffc12538:	3b de 00 08 	addi    r30,r30,8                              
                                                                      
  rc = rtems_rfs_bitmap_map_clear (bitmap, bit);                      
ffc1253c:	7f c3 f3 78 	mr      r3,r30                                 
ffc12540:	48 00 80 41 	bl      ffc1a580 <rtems_rfs_bitmap_map_clear>  
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
ffc12544:	80 9e 00 00 	lwz     r4,0(r30)                              
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
  else                                                                
    bitmap = &fs->groups[group].block_bitmap;                         
                                                                      
  rc = rtems_rfs_bitmap_map_clear (bitmap, bit);                      
ffc12548:	7c 7d 1b 78 	mr      r29,r3                                 
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
ffc1254c:	7f e3 fb 78 	mr      r3,r31                                 
ffc12550:	48 00 97 9d 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
                                                                      
  return rc;                                                          
}                                                                     
ffc12554:	39 61 00 18 	addi    r11,r1,24                              
ffc12558:	7f a3 eb 78 	mr      r3,r29                                 
ffc1255c:	4b fe f0 08 	b       ffc01564 <_restgpr_29_x>               
                                                                      

ffc12560 <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) {
ffc12560:	94 21 ff e0 	stwu    r1,-32(r1)                             <== NOT EXECUTED
ffc12564:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc12568:	bf 61 00 0c 	stmw    r27,12(r1)                             <== NOT EXECUTED
ffc1256c:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
ffc12570:	7c 9d 23 78 	mr      r29,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))                
ffc12574:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
int                                                                   
rtems_rfs_group_bitmap_test (rtems_rfs_file_system* fs,               
                             bool                   inode,            
                             rtems_rfs_bitmap_bit   no,               
                             bool*                  state)            
{                                                                     
ffc12578:	90 01 00 24 	stw     r0,36(r1)                              <== NOT EXECUTED
  unsigned int              group;                                    
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
ffc1257c:	3c 80 00 02 	lis     r4,2                                   <== NOT EXECUTED
int                                                                   
rtems_rfs_group_bitmap_test (rtems_rfs_file_system* fs,               
                             bool                   inode,            
                             rtems_rfs_bitmap_bit   no,               
                             bool*                  state)            
{                                                                     
ffc12580:	7c bf 2b 78 	mr      r31,r5                                 <== NOT EXECUTED
ffc12584:	7c db 33 78 	mr      r27,r6                                 <== NOT EXECUTED
  unsigned int              group;                                    
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
ffc12588:	48 00 1c c1 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1258c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc12590:	41 9e 00 34 	beq-    cr7,ffc125c4 <rtems_rfs_group_bitmap_test+0x64><== NOT EXECUTED
    printf ("rtems-rfs: group-bitmap-test: %s test: %" PRId32 "\n",   
ffc12594:	2f 9d 00 00 	cmpwi   cr7,r29,0                              <== NOT EXECUTED
ffc12598:	41 9e 00 10 	beq-    cr7,ffc125a8 <rtems_rfs_group_bitmap_test+0x48><== NOT EXECUTED
ffc1259c:	3c 80 ff c3 	lis     r4,-61                                 <== NOT EXECUTED
ffc125a0:	38 84 3b 57 	addi    r4,r4,15191                            <== NOT EXECUTED
ffc125a4:	48 00 00 0c 	b       ffc125b0 <rtems_rfs_group_bitmap_test+0x50><== NOT EXECUTED
ffc125a8:	3c 80 ff c3 	lis     r4,-61                                 <== NOT EXECUTED
ffc125ac:	38 84 32 bc 	addi    r4,r4,12988                            <== NOT EXECUTED
ffc125b0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc125b4:	38 63 3b ee 	addi    r3,r3,15342                            <== NOT EXECUTED
ffc125b8:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc125bc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc125c0:	48 01 05 b1 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            inode ? "inode" : "block", no);                           
                                                                      
  if (inode)                                                          
ffc125c4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              <== NOT EXECUTED
ffc125c8:	41 9e 00 28 	beq-    cr7,ffc125f0 <rtems_rfs_group_bitmap_test+0x90><== NOT EXECUTED
  {                                                                   
    if ((no < RTEMS_RFS_ROOT_INO) || (no > rtems_rfs_fs_inodes (fs))) 
ffc125cc:	2f 9f 00 00 	cmpwi   cr7,r31,0                              <== NOT EXECUTED
        return EINVAL;                                                
ffc125d0:	3b 80 00 16 	li      r28,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))) 
ffc125d4:	40 9d 00 78 	ble-    cr7,ffc1264c <rtems_rfs_group_bitmap_test+0xec><== NOT EXECUTED
ffc125d8:	81 3e 00 14 	lwz     r9,20(r30)                             <== NOT EXECUTED
ffc125dc:	7f 9f 48 40 	cmplw   cr7,r31,r9                             <== NOT EXECUTED
ffc125e0:	41 bd 00 6c 	bgt+    cr7,ffc1264c <rtems_rfs_group_bitmap_test+0xec><== NOT EXECUTED
        return EINVAL;                                                
    no -= RTEMS_RFS_ROOT_INO;                                         
ffc125e4:	3b ff ff ff 	addi    r31,r31,-1                             <== NOT EXECUTED
    size = fs->group_inodes;                                          
ffc125e8:	80 9e 00 2c 	lwz     r4,44(r30)                             <== NOT EXECUTED
ffc125ec:	48 00 00 18 	b       ffc12604 <rtems_rfs_group_bitmap_test+0xa4><== NOT EXECUTED
  }                                                                   
  else                                                                
  {                                                                   
    if (no >= rtems_rfs_fs_blocks (fs))                               
ffc125f0:	81 3e 00 04 	lwz     r9,4(r30)                              <== NOT EXECUTED
            inode ? "inode" : "block", no);                           
                                                                      
  if (inode)                                                          
  {                                                                   
    if ((no < RTEMS_RFS_ROOT_INO) || (no > rtems_rfs_fs_inodes (fs))) 
        return EINVAL;                                                
ffc125f4:	3b 80 00 16 	li      r28,22                                 <== NOT EXECUTED
    no -= RTEMS_RFS_ROOT_INO;                                         
    size = fs->group_inodes;                                          
  }                                                                   
  else                                                                
  {                                                                   
    if (no >= rtems_rfs_fs_blocks (fs))                               
ffc125f8:	7f 9f 48 40 	cmplw   cr7,r31,r9                             <== NOT EXECUTED
ffc125fc:	40 bc 00 50 	bge+    cr7,ffc1264c <rtems_rfs_group_bitmap_test+0xec><== NOT EXECUTED
        return EINVAL;                                                
    size = fs->group_blocks;                                          
ffc12600:	80 9e 00 28 	lwz     r4,40(r30)                             <== NOT EXECUTED
  }                                                                   
                                                                      
  group = no / size;                                                  
ffc12604:	7d 3f 23 96 	divwu   r9,r31,r4                              <== NOT EXECUTED
ffc12608:	81 5e 00 20 	lwz     r10,32(r30)                            <== NOT EXECUTED
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
                                                                      
  if (inode)                                                          
ffc1260c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              <== NOT EXECUTED
        return EINVAL;                                                
    size = fs->group_blocks;                                          
  }                                                                   
                                                                      
  group = no / size;                                                  
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
ffc12610:	7c 89 21 d6 	mullw   r4,r9,r4                               <== NOT EXECUTED
ffc12614:	1d 29 00 50 	mulli   r9,r9,80                               <== NOT EXECUTED
ffc12618:	7c 84 f8 50 	subf    r4,r4,r31                              <== NOT EXECUTED
                                                                      
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
ffc1261c:	7f aa 4a 14 	add     r29,r10,r9                             <== NOT EXECUTED
  }                                                                   
                                                                      
  group = no / size;                                                  
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
                                                                      
  if (inode)                                                          
ffc12620:	41 9e 00 0c 	beq-    cr7,ffc1262c <rtems_rfs_group_bitmap_test+0xcc><== NOT EXECUTED
    bitmap = &fs->groups[group].inode_bitmap;                         
ffc12624:	3b bd 00 2c 	addi    r29,r29,44                             <== NOT EXECUTED
ffc12628:	48 00 00 08 	b       ffc12630 <rtems_rfs_group_bitmap_test+0xd0><== NOT EXECUTED
  else                                                                
    bitmap = &fs->groups[group].block_bitmap;                         
ffc1262c:	3b bd 00 08 	addi    r29,r29,8                              <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);                
ffc12630:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc12634:	7f 65 db 78 	mr      r5,r27                                 <== NOT EXECUTED
ffc12638:	48 00 7f e5 	bl      ffc1a61c <rtems_rfs_bitmap_map_test>   <== NOT EXECUTED
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
ffc1263c:	80 9d 00 00 	lwz     r4,0(r29)                              <== 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);                
ffc12640:	7c 7c 1b 78 	mr      r28,r3                                 <== NOT EXECUTED
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
ffc12644:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc12648:	48 00 96 a5 	bl      ffc1bcec <rtems_rfs_buffer_handle_release><== NOT EXECUTED
                                                                      
  return rc;                                                          
}                                                                     
ffc1264c:	39 61 00 20 	addi    r11,r1,32                              <== NOT EXECUTED
ffc12650:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc12654:	4b fe ef 08 	b       ffc0155c <_restgpr_27_x>               <== NOT EXECUTED
                                                                      

ffc121e8 <rtems_rfs_group_close>: int rtems_rfs_group_close (rtems_rfs_file_system* fs, rtems_rfs_group* group) {
ffc121e8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc121ec:	7c 08 02 a6 	mflr    r0                                     
ffc121f0:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc121f4:	7c 7e 1b 78 	mr      r30,r3                                 
ffc121f8:	7c 9f 23 78 	mr      r31,r4                                 
  int result = 0;                                                     
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_CLOSE))                  
ffc121fc:	38 60 00 00 	li      r3,0                                   
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_group_close (rtems_rfs_file_system* fs, rtems_rfs_group* group)
{                                                                     
ffc12200:	90 01 00 1c 	stw     r0,28(r1)                              
  int result = 0;                                                     
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_CLOSE))                  
ffc12204:	3c 80 00 01 	lis     r4,1                                   
ffc12208:	48 00 20 41 	bl      ffc14248 <rtems_rfs_trace>             
ffc1220c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12210:	41 be 00 18 	beq+    cr7,ffc12228 <rtems_rfs_group_close+0x40><== ALWAYS TAKEN
    printf ("rtems-rfs: group-close: base=%" PRId32 "\n", group->base);
ffc12214:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc12218:	80 9f 00 00 	lwz     r4,0(r31)                              <== NOT EXECUTED
ffc1221c:	38 63 3b 35 	addi    r3,r3,15157                            <== NOT EXECUTED
ffc12220:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc12224:	48 01 09 4d 	bl      ffc22b70 <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);                 
ffc12228:	38 7f 00 2c 	addi    r3,r31,44                              
ffc1222c:	48 00 88 2d 	bl      ffc1aa58 <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);                       
ffc12230:	38 9f 00 44 	addi    r4,r31,68                              
ffc12234:	7c 7c 1b 78 	mr      r28,r3                                 
ffc12238:	7f c3 f3 78 	mr      r3,r30                                 
ffc1223c:	48 00 9a b1 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
ffc12240:	39 20 00 00 	li      r9,0                                   
ffc12244:	99 3f 00 44 	stb     r9,68(r31)                             
  handle->bnum  = 0;                                                  
ffc12248:	39 20 00 00 	li      r9,0                                   
  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);                 
ffc1224c:	38 7f 00 08 	addi    r3,r31,8                               
ffc12250:	91 3f 00 48 	stw     r9,72(r31)                             
  handle->buffer = NULL;                                              
ffc12254:	91 3f 00 4c 	stw     r9,76(r31)                             
ffc12258:	48 00 88 01 	bl      ffc1aa58 <rtems_rfs_bitmap_close>      
  if (rc > 0)                                                         
ffc1225c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc12260:	41 a1 00 10 	bgt+    ffc12270 <rtems_rfs_group_close+0x88>  <== NEVER TAKEN
ffc12264:	7f 9d e0 f8 	not     r29,r28                                
ffc12268:	7f bd fe 70 	srawi   r29,r29,31                             
ffc1226c:	7f 9d e8 38 	and     r29,r28,r29                            
 */                                                                   
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);                       
ffc12270:	7f c3 f3 78 	mr      r3,r30                                 
ffc12274:	38 9f 00 20 	addi    r4,r31,32                              
ffc12278:	48 00 9a 75 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
ffc1227c:	39 20 00 00 	li      r9,0                                   
ffc12280:	99 3f 00 20 	stb     r9,32(r31)                             
  handle->bnum  = 0;                                                  
ffc12284:	39 20 00 00 	li      r9,0                                   
  rc = rtems_rfs_buffer_handle_close (fs, &group->block_bitmap_buffer);
  if (rc > 0)                                                         
    result = rc;                                                      
                                                                      
  return result;                                                      
}                                                                     
ffc12288:	39 61 00 18 	addi    r11,r1,24                              
ffc1228c:	91 3f 00 24 	stw     r9,36(r31)                             
ffc12290:	7f a3 eb 78 	mr      r3,r29                                 
  handle->buffer = NULL;                                              
ffc12294:	91 3f 00 28 	stw     r9,40(r31)                             
ffc12298:	4b fe f2 c8 	b       ffc01560 <_restgpr_28_x>               
                                                                      

ffc11fc8 <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) {
ffc11fc8:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc11fcc:	7c 08 02 a6 	mflr    r0                                     
ffc11fd0:	90 01 00 2c 	stw     r0,44(r1)                              
  int rc;                                                             
                                                                      
  if (base >= rtems_rfs_fs_blocks (fs))                               
ffc11fd4:	81 23 00 04 	lwz     r9,4(r3)                               
rtems_rfs_group_open (rtems_rfs_file_system* fs,                      
                      rtems_rfs_buffer_block base,                    
                      size_t                 size,                    
                      size_t                 inodes,                  
                      rtems_rfs_group*       group)                   
{                                                                     
ffc11fd8:	bf 01 00 08 	stmw    r24,8(r1)                              
ffc11fdc:	7c 7d 1b 78 	mr      r29,r3                                 
  int rc;                                                             
                                                                      
  if (base >= rtems_rfs_fs_blocks (fs))                               
ffc11fe0:	7f 84 48 40 	cmplw   cr7,r4,r9                              
rtems_rfs_group_open (rtems_rfs_file_system* fs,                      
                      rtems_rfs_buffer_block base,                    
                      size_t                 size,                    
                      size_t                 inodes,                  
                      rtems_rfs_group*       group)                   
{                                                                     
ffc11fe4:	7c 9b 23 78 	mr      r27,r4                                 
  int rc;                                                             
                                                                      
  if (base >= rtems_rfs_fs_blocks (fs))                               
ffc11fe8:	41 bc 00 3c 	blt+    cr7,ffc12024 <rtems_rfs_group_open+0x5c><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                 
ffc11fec:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc11ff0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc11ff4:	60 84 80 00 	ori     r4,r4,32768                            <== NOT EXECUTED
ffc11ff8:	48 00 22 51 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: group-open: base outside file system range: %d: %s\n",
              EIO, strerror (EIO));                                   
    return EIO;                                                       
ffc11ffc:	3b 80 00 05 	li      r28,5                                  <== NOT EXECUTED
{                                                                     
  int rc;                                                             
                                                                      
  if (base >= rtems_rfs_fs_blocks (fs))                               
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                 
ffc12000:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc12004:	41 be 01 d8 	beq+    cr7,ffc121dc <rtems_rfs_group_open+0x214><== NOT EXECUTED
      printf ("rtems-rfs: group-open: base outside file system range: %d: %s\n",
ffc12008:	38 60 00 05 	li      r3,5                                   <== NOT EXECUTED
ffc1200c:	48 01 1d 51 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc12010:	38 80 00 05 	li      r4,5                                   <== NOT EXECUTED
ffc12014:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc12018:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1201c:	38 63 3a 46 	addi    r3,r3,14918                            <== NOT EXECUTED
ffc12020:	48 00 00 ec 	b       ffc1210c <rtems_rfs_group_open+0x144>  <== NOT EXECUTED
              EIO, strerror (EIO));                                   
    return EIO;                                                       
  }                                                                   
                                                                      
  if ((base + size) >= rtems_rfs_fs_blocks (fs))                      
ffc12024:	7d 45 22 14 	add     r10,r5,r4                              
ffc12028:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc1202c:	7c bc 2b 78 	mr      r28,r5                                 
ffc12030:	7c ff 3b 78 	mr      r31,r7                                 
ffc12034:	41 9c 00 08 	blt-    cr7,ffc1203c <rtems_rfs_group_open+0x74><== NEVER TAKEN
    size = rtems_rfs_fs_blocks (fs) - base;                           
ffc12038:	7f 84 48 50 	subf    r28,r4,r9                              
ffc1203c:	7f 9c 30 40 	cmplw   cr7,r28,r6                             
ffc12040:	7f 99 e3 78 	mr      r25,r28                                
ffc12044:	40 9d 00 08 	ble-    cr7,ffc1204c <rtems_rfs_group_open+0x84><== NEVER TAKEN
ffc12048:	7c d9 33 78 	mr      r25,r6                                 
   * the format configuration needs reviewing.                        
   */                                                                 
  if (inodes > size)                                                  
    inodes = size;                                                    
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                   
ffc1204c:	38 80 00 00 	li      r4,0                                   
ffc12050:	38 60 00 00 	li      r3,0                                   
ffc12054:	60 84 80 00 	ori     r4,r4,32768                            
ffc12058:	48 00 21 f1 	bl      ffc14248 <rtems_rfs_trace>             
ffc1205c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12060:	41 be 00 20 	beq+    cr7,ffc12080 <rtems_rfs_group_open+0xb8><== ALWAYS TAKEN
    printf ("rtems-rfs: group-open: base=%" PRId32 ", blocks=%zd inodes=%zd\n",
ffc12064:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc12068:	38 63 3a 85 	addi    r3,r3,14981                            <== NOT EXECUTED
ffc1206c:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc12070:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc12074:	7f 26 cb 78 	mr      r6,r25                                 <== NOT EXECUTED
ffc12078:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1207c:	48 01 0a f5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc12080:	39 20 00 00 	li      r9,0                                   
            base, size, inodes);                                      
                                                                      
  group->base = base;                                                 
  group->size = size;                                                 
ffc12084:	93 9f 00 04 	stw     r28,4(r31)                             
  handle->bnum  = 0;                                                  
ffc12088:	3b c0 00 00 	li      r30,0                                  
                                                                      
  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;                                                 
ffc1208c:	93 7f 00 00 	stw     r27,0(r31)                             
      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,               
ffc12090:	3b 1f 00 08 	addi    r24,r31,8                              
ffc12094:	3b 5f 00 20 	addi    r26,r31,32                             
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc12098:	99 3f 00 20 	stb     r9,32(r31)                             
ffc1209c:	7f 86 e3 78 	mr      r6,r28                                 
ffc120a0:	7f 03 c3 78 	mr      r3,r24                                 
  handle->bnum  = 0;                                                  
ffc120a4:	93 df 00 24 	stw     r30,36(r31)                            
ffc120a8:	7f a4 eb 78 	mr      r4,r29                                 
ffc120ac:	7f 45 d3 78 	mr      r5,r26                                 
  handle->buffer = NULL;                                              
ffc120b0:	93 df 00 28 	stw     r30,40(r31)                            
ffc120b4:	7f 67 db 78 	mr      r7,r27                                 
ffc120b8:	48 00 89 39 	bl      ffc1a9f0 <rtems_rfs_bitmap_open>       
                              &group->block_bitmap_buffer, size,      
                              group->base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
  if (rc > 0)                                                         
ffc120bc:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc120c0:	40 81 00 58 	ble-    ffc12118 <rtems_rfs_group_open+0x150>  <== 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);                       
ffc120c4:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc120c8:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc120cc:	48 00 9c 21 	bl      ffc1bcec <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
ffc120d0:	9b df 00 20 	stb     r30,32(r31)                            <== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &group->block_bitmap_buffer);  
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                 
ffc120d4:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc120d8:	93 df 00 24 	stw     r30,36(r31)                            <== NOT EXECUTED
ffc120dc:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc120e0:	60 84 80 00 	ori     r4,r4,32768                            <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc120e4:	93 df 00 28 	stw     r30,40(r31)                            <== NOT EXECUTED
ffc120e8:	48 00 21 61 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc120ec:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc120f0:	41 be 00 ec 	beq+    cr7,ffc121dc <rtems_rfs_group_open+0x214><== NOT EXECUTED
      printf ("rtems-rfs: group-open: could not open block bitmap: %d: %s\n",
ffc120f4:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc120f8:	48 01 1c 65 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc120fc:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc12100:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc12104:	38 63 3a bd 	addi    r3,r3,15037                            <== NOT EXECUTED
ffc12108:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc1210c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc12110:	48 01 0a 61 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc12114:	48 00 00 c8 	b       ffc121dc <rtems_rfs_group_open+0x214>  <== 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,               
ffc12118:	80 ff 00 00 	lwz     r7,0(r31)                              
ffc1211c:	3b 7f 00 44 	addi    r27,r31,68                             
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc12120:	9b df 00 44 	stb     r30,68(r31)                            
ffc12124:	38 7f 00 2c 	addi    r3,r31,44                              
ffc12128:	7f a4 eb 78 	mr      r4,r29                                 
  handle->bnum  = 0;                                                  
ffc1212c:	93 df 00 48 	stw     r30,72(r31)                            
ffc12130:	7f 65 db 78 	mr      r5,r27                                 
ffc12134:	7f 26 cb 78 	mr      r6,r25                                 
  handle->buffer = NULL;                                              
ffc12138:	93 df 00 4c 	stw     r30,76(r31)                            
ffc1213c:	38 e7 00 01 	addi    r7,r7,1                                
ffc12140:	48 00 88 b1 	bl      ffc1a9f0 <rtems_rfs_bitmap_open>       
                              &group->inode_bitmap_buffer, inodes,    
                              group->base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
  if (rc > 0)                                                         
ffc12144:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc12148:	40 81 00 6c 	ble-    ffc121b4 <rtems_rfs_group_open+0x1ec>  <== 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);                       
ffc1214c:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc12150:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc12154:	48 00 9b 99 	bl      ffc1bcec <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
ffc12158:	9b df 00 44 	stb     r30,68(r31)                            <== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &group->inode_bitmap_buffer);  
    rtems_rfs_bitmap_close (&group->block_bitmap);                    
ffc1215c:	7f 03 c3 78 	mr      r3,r24                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc12160:	93 df 00 48 	stw     r30,72(r31)                            <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc12164:	93 df 00 4c 	stw     r30,76(r31)                            <== NOT EXECUTED
ffc12168:	48 00 88 f1 	bl      ffc1aa58 <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);                       
ffc1216c:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc12170:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc12174:	48 00 9b 79 	bl      ffc1bcec <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
ffc12178:	9b df 00 20 	stb     r30,32(r31)                            <== NOT EXECUTED
    rtems_rfs_buffer_handle_close (fs, &group->block_bitmap_buffer);  
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                 
ffc1217c:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc12180:	93 df 00 24 	stw     r30,36(r31)                            <== NOT EXECUTED
ffc12184:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc12188:	60 84 80 00 	ori     r4,r4,32768                            <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc1218c:	93 df 00 28 	stw     r30,40(r31)                            <== NOT EXECUTED
ffc12190:	48 00 20 b9 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc12194:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc12198:	41 be 00 44 	beq+    cr7,ffc121dc <rtems_rfs_group_open+0x214><== NOT EXECUTED
      printf ("rtems-rfs: group-open: could not open inode bitmap: %d: %s\n",
ffc1219c:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc121a0:	48 01 1b bd 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc121a4:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc121a8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc121ac:	38 63 3a f9 	addi    r3,r3,15097                            <== NOT EXECUTED
ffc121b0:	4b ff ff 58 	b       ffc12108 <rtems_rfs_group_open+0x140>  <== NOT EXECUTED
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  if (rtems_rfs_fs_release_bitmaps (fs))                              
ffc121b4:	81 3d 00 00 	lwz     r9,0(r29)                              
  {                                                                   
    rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);       
    rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);       
  }                                                                   
                                                                      
  return 0;                                                           
ffc121b8:	3b 80 00 00 	li      r28,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))                              
ffc121bc:	71 2a 00 01 	andi.   r10,r9,1                               
ffc121c0:	40 a2 00 1c 	bne+    ffc121dc <rtems_rfs_group_open+0x214>  <== NEVER TAKEN
  {                                                                   
    rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);       
ffc121c4:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc121c8:	7f a3 eb 78 	mr      r3,r29                                 
ffc121cc:	48 00 9b 21 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
    rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);       
ffc121d0:	80 9f 00 2c 	lwz     r4,44(r31)                             
ffc121d4:	7f a3 eb 78 	mr      r3,r29                                 
ffc121d8:	48 00 9b 15 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc121dc:	39 61 00 28 	addi    r11,r1,40                              
ffc121e0:	7f 83 e3 78 	mr      r3,r28                                 
ffc121e4:	4b fe f3 6c 	b       ffc01550 <_restgpr_24_x>               
                                                                      

ffc12658 <rtems_rfs_group_usage>: size_t* blocks, size_t* inodes) { int g; *blocks = 0;
ffc12658:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc1265c:	91 24 00 00 	stw     r9,0(r4)                               <== NOT EXECUTED
  *inodes = 0;                                                        
ffc12660:	91 25 00 00 	stw     r9,0(r5)                               <== NOT EXECUTED
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
ffc12664:	48 00 00 44 	b       ffc126a8 <rtems_rfs_group_usage+0x50>  <== NOT EXECUTED
                                                                      
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_group_usage (rtems_rfs_file_system* fs,                     
ffc12668:	1d 09 00 50 	mulli   r8,r9,80                               <== NOT EXECUTED
  *blocks = 0;                                                        
  *inodes = 0;                                                        
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
  {                                                                   
    rtems_rfs_group* group = &fs->groups[g];                          
ffc1266c:	81 43 00 20 	lwz     r10,32(r3)                             <== NOT EXECUTED
ffc12670:	7d 4a 42 14 	add     r10,r10,r8                             <== NOT EXECUTED
    *blocks +=                                                        
      rtems_rfs_bitmap_map_size(&group->block_bitmap) -               
ffc12674:	81 0a 00 18 	lwz     r8,24(r10)                             <== NOT EXECUTED
  int g;                                                              
                                                                      
  *blocks = 0;                                                        
  *inodes = 0;                                                        
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
ffc12678:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
  {                                                                   
    rtems_rfs_group* group = &fs->groups[g];                          
    *blocks +=                                                        
      rtems_rfs_bitmap_map_size(&group->block_bitmap) -               
ffc1267c:	80 ea 00 14 	lwz     r7,20(r10)                             <== NOT EXECUTED
ffc12680:	7c e8 38 50 	subf    r7,r8,r7                               <== NOT EXECUTED
  *inodes = 0;                                                        
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
  {                                                                   
    rtems_rfs_group* group = &fs->groups[g];                          
    *blocks +=                                                        
ffc12684:	81 04 00 00 	lwz     r8,0(r4)                               <== NOT EXECUTED
ffc12688:	7d 08 3a 14 	add     r8,r8,r7                               <== NOT EXECUTED
ffc1268c:	91 04 00 00 	stw     r8,0(r4)                               <== 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) -              
ffc12690:	81 0a 00 38 	lwz     r8,56(r10)                             <== NOT EXECUTED
ffc12694:	81 4a 00 3c 	lwz     r10,60(r10)                            <== NOT EXECUTED
ffc12698:	7d 0a 40 50 	subf    r8,r10,r8                              <== 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 +=                                                        
ffc1269c:	81 45 00 00 	lwz     r10,0(r5)                              <== NOT EXECUTED
ffc126a0:	7d 4a 42 14 	add     r10,r10,r8                             <== NOT EXECUTED
ffc126a4:	91 45 00 00 	stw     r10,0(r5)                              <== NOT EXECUTED
  int g;                                                              
                                                                      
  *blocks = 0;                                                        
  *inodes = 0;                                                        
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
ffc126a8:	81 43 00 24 	lwz     r10,36(r3)                             <== NOT EXECUTED
ffc126ac:	7f 89 50 00 	cmpw    cr7,r9,r10                             <== NOT EXECUTED
ffc126b0:	41 9c ff b8 	blt+    cr7,ffc12668 <rtems_rfs_group_usage+0x10><== 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))                             
ffc126b4:	81 43 00 04 	lwz     r10,4(r3)                              <== NOT EXECUTED
ffc126b8:	81 24 00 00 	lwz     r9,0(r4)                               <== NOT EXECUTED
ffc126bc:	7f 89 50 40 	cmplw   cr7,r9,r10                             <== NOT EXECUTED
ffc126c0:	40 9d 00 08 	ble-    cr7,ffc126c8 <rtems_rfs_group_usage+0x70><== NOT EXECUTED
ffc126c4:	7d 49 53 78 	mr      r9,r10                                 <== NOT EXECUTED
ffc126c8:	91 24 00 00 	stw     r9,0(r4)                               <== NOT EXECUTED
    *blocks = rtems_rfs_fs_blocks (fs);                               
  if (*inodes > rtems_rfs_fs_inodes (fs))                             
ffc126cc:	81 43 00 14 	lwz     r10,20(r3)                             <== NOT EXECUTED
ffc126d0:	81 25 00 00 	lwz     r9,0(r5)                               <== NOT EXECUTED
ffc126d4:	7f 89 50 40 	cmplw   cr7,r9,r10                             <== NOT EXECUTED
ffc126d8:	40 9d 00 08 	ble-    cr7,ffc126e0 <rtems_rfs_group_usage+0x88><== NOT EXECUTED
ffc126dc:	7d 49 53 78 	mr      r9,r10                                 <== NOT EXECUTED
ffc126e0:	91 25 00 00 	stw     r9,0(r5)                               <== NOT EXECUTED
    *inodes = rtems_rfs_fs_inodes (fs);                               
                                                                      
  return 0;                                                           
}                                                                     
ffc126e4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc126e8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc129dc <rtems_rfs_inode_close>: } int rtems_rfs_inode_close (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* handle) {
ffc129dc:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc129e0:	7c 08 02 a6 	mflr    r0                                     
ffc129e4:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc129e8:	7c 7e 1b 78 	mr      r30,r3                                 
ffc129ec:	7c 9f 23 78 	mr      r31,r4                                 
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CLOSE))                  
ffc129f0:	38 60 00 00 	li      r3,0                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_inode_close (rtems_rfs_file_system*  fs,                    
                       rtems_rfs_inode_handle* handle)                
{                                                                     
ffc129f4:	90 01 00 14 	stw     r0,20(r1)                              
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CLOSE))                  
ffc129f8:	3c 80 00 08 	lis     r4,8                                   
ffc129fc:	48 00 18 4d 	bl      ffc14248 <rtems_rfs_trace>             
ffc12a00:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12a04:	41 be 00 18 	beq+    cr7,ffc12a1c <rtems_rfs_inode_close+0x40><== ALWAYS TAKEN
    printf ("rtems-rfs: inode-close: ino: %" PRIu32 "\n", handle->ino);
ffc12a08:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc12a0c:	80 9f 00 08 	lwz     r4,8(r31)                              <== NOT EXECUTED
ffc12a10:	38 63 3c a7 	addi    r3,r3,15527                            <== NOT EXECUTED
ffc12a14:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc12a18:	48 01 01 59 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_inode_unload (fs, handle, true);                     
ffc12a1c:	7f c3 f3 78 	mr      r3,r30                                 
ffc12a20:	7f e4 fb 78 	mr      r4,r31                                 
ffc12a24:	38 a0 00 01 	li      r5,1                                   
ffc12a28:	4b ff fe ad 	bl      ffc128d4 <rtems_rfs_inode_unload>      
                                                                      
  if ((rc == 0) && (handle->loads > 0))                               
ffc12a2c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc12a30:	40 82 00 3c 	bne-    ffc12a6c <rtems_rfs_inode_close+0x90>  <== NEVER TAKEN
ffc12a34:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc12a38:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc12a3c:	40 9d 00 30 	ble-    cr7,ffc12a6c <rtems_rfs_inode_close+0x90><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CLOSE))                
ffc12a40:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc12a44:	3c 80 00 08 	lis     r4,8                                   <== NOT EXECUTED
ffc12a48:	48 00 18 01 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: inode-close: bad loads number: %d\n",       
              handle->loads);                                         
    rc = EIO;                                                         
ffc12a4c:	3b c0 00 05 	li      r30,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))                
ffc12a50:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc12a54:	41 be 00 18 	beq+    cr7,ffc12a6c <rtems_rfs_inode_close+0x90><== NOT EXECUTED
      printf ("rtems-rfs: inode-close: bad loads number: %d\n",       
ffc12a58:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc12a5c:	80 9f 00 24 	lwz     r4,36(r31)                             <== NOT EXECUTED
ffc12a60:	38 63 3c c9 	addi    r3,r3,15561                            <== NOT EXECUTED
ffc12a64:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc12a68:	48 01 01 09 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
              handle->loads);                                         
    rc = EIO;                                                         
  }                                                                   
                                                                      
  handle->ino = 0;                                                    
ffc12a6c:	39 20 00 00 	li      r9,0                                   
ffc12a70:	91 3f 00 08 	stw     r9,8(r31)                              
  return rc;                                                          
}                                                                     
ffc12a74:	39 61 00 10 	addi    r11,r1,16                              
ffc12a78:	7f c3 f3 78 	mr      r3,r30                                 
ffc12a7c:	4b fe ea ec 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc12d84 <rtems_rfs_inode_create>: uint16_t mode, uint16_t links, uid_t uid, gid_t gid, rtems_rfs_ino* ino) {
ffc12d84:	94 21 ff 78 	stwu    r1,-136(r1)                            
ffc12d88:	7c 08 02 a6 	mflr    r0                                     
ffc12d8c:	be 81 00 58 	stmw    r20,88(r1)                             
ffc12d90:	7c 7f 1b 78 	mr      r31,r3                                 
ffc12d94:	7c 9a 23 78 	mr      r26,r4                                 
  rtems_rfs_inode_handle parent_inode;                                
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CREATE))                 
ffc12d98:	38 60 00 00 	li      r3,0                                   
                        uint16_t                mode,                 
                        uint16_t                links,                
                        uid_t                   uid,                  
                        gid_t                   gid,                  
                        rtems_rfs_ino*          ino)                  
{                                                                     
ffc12d9c:	90 01 00 8c 	stw     r0,140(r1)                             
  rtems_rfs_inode_handle parent_inode;                                
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CREATE))                 
ffc12da0:	3c 80 00 40 	lis     r4,64                                  
                        uint16_t                mode,                 
                        uint16_t                links,                
                        uid_t                   uid,                  
                        gid_t                   gid,                  
                        rtems_rfs_ino*          ino)                  
{                                                                     
ffc12da4:	7c b9 2b 78 	mr      r25,r5                                 
ffc12da8:	83 81 00 90 	lwz     r28,144(r1)                            
ffc12dac:	7c d8 33 78 	mr      r24,r6                                 
ffc12db0:	7c fb 3b 78 	mr      r27,r7                                 
ffc12db4:	7d 15 43 78 	mr      r21,r8                                 
ffc12db8:	7d 36 4b 78 	mr      r22,r9                                 
ffc12dbc:	7d 57 53 78 	mr      r23,r10                                
  rtems_rfs_inode_handle parent_inode;                                
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CREATE))                 
ffc12dc0:	48 00 14 89 	bl      ffc14248 <rtems_rfs_trace>             
ffc12dc4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12dc8:	41 9e 00 cc 	beq-    cr7,ffc12e94 <rtems_rfs_inode_create+0x110><== ALWAYS TAKEN
  {                                                                   
    const char* type = "unknown";                                     
    int         c;                                                    
    if (RTEMS_RFS_S_ISDIR (mode))                                     
ffc12dcc:	57 63 04 26 	rlwinm  r3,r27,0,16,19                         <== NOT EXECUTED
ffc12dd0:	2f 83 40 00 	cmpwi   cr7,r3,16384                           <== NOT EXECUTED
ffc12dd4:	41 9e 00 38 	beq-    cr7,ffc12e0c <rtems_rfs_inode_create+0x88><== NOT EXECUTED
      type = "dir";                                                   
    else if (RTEMS_RFS_S_ISCHR (mode))                                
ffc12dd8:	2f 83 20 00 	cmpwi   cr7,r3,8192                            <== NOT EXECUTED
ffc12ddc:	41 9e 00 3c 	beq-    cr7,ffc12e18 <rtems_rfs_inode_create+0x94><== NOT EXECUTED
      type = "char";                                                  
    else if (RTEMS_RFS_S_ISBLK (mode))                                
ffc12de0:	2f 83 60 00 	cmpwi   cr7,r3,24576                           <== NOT EXECUTED
ffc12de4:	41 9e 00 40 	beq-    cr7,ffc12e24 <rtems_rfs_inode_create+0xa0><== NOT EXECUTED
      type = "block";                                                 
    else if (RTEMS_RFS_S_ISREG (mode))                                
ffc12de8:	6c 69 ff ff 	xoris   r9,r3,65535                            <== NOT EXECUTED
ffc12dec:	2f 89 80 00 	cmpwi   cr7,r9,-32768                          <== NOT EXECUTED
ffc12df0:	41 9e 00 40 	beq-    cr7,ffc12e30 <rtems_rfs_inode_create+0xac><== NOT EXECUTED
      type = "file";                                                  
    else if (RTEMS_RFS_S_ISLNK (mode))                                
ffc12df4:	6c 69 ff ff 	xoris   r9,r3,65535                            <== NOT EXECUTED
ffc12df8:	2f 89 a0 00 	cmpwi   cr7,r9,-24576                          <== NOT EXECUTED
ffc12dfc:	41 9e 00 40 	beq-    cr7,ffc12e3c <rtems_rfs_inode_create+0xb8><== NOT EXECUTED
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CREATE))                 
  {                                                                   
    const char* type = "unknown";                                     
ffc12e00:	3f c0 ff c3 	lis     r30,-61                                <== NOT EXECUTED
ffc12e04:	3b de 3d 2c 	addi    r30,r30,15660                          <== NOT EXECUTED
ffc12e08:	48 00 00 3c 	b       ffc12e44 <rtems_rfs_inode_create+0xc0> <== NOT EXECUTED
    int         c;                                                    
    if (RTEMS_RFS_S_ISDIR (mode))                                     
      type = "dir";                                                   
ffc12e0c:	3f c0 ff c3 	lis     r30,-61                                <== NOT EXECUTED
ffc12e10:	3b de 3d 23 	addi    r30,r30,15651                          <== NOT EXECUTED
ffc12e14:	48 00 00 30 	b       ffc12e44 <rtems_rfs_inode_create+0xc0> <== NOT EXECUTED
    else if (RTEMS_RFS_S_ISCHR (mode))                                
      type = "char";                                                  
ffc12e18:	3f c0 ff c3 	lis     r30,-61                                <== NOT EXECUTED
ffc12e1c:	3b de 3d 27 	addi    r30,r30,15655                          <== NOT EXECUTED
ffc12e20:	48 00 00 24 	b       ffc12e44 <rtems_rfs_inode_create+0xc0> <== NOT EXECUTED
    else if (RTEMS_RFS_S_ISBLK (mode))                                
      type = "block";                                                 
ffc12e24:	3f c0 ff c3 	lis     r30,-61                                <== NOT EXECUTED
ffc12e28:	3b de 32 bc 	addi    r30,r30,12988                          <== NOT EXECUTED
ffc12e2c:	48 00 00 18 	b       ffc12e44 <rtems_rfs_inode_create+0xc0> <== NOT EXECUTED
    else if (RTEMS_RFS_S_ISREG (mode))                                
      type = "file";                                                  
ffc12e30:	3f c0 ff c3 	lis     r30,-61                                <== NOT EXECUTED
ffc12e34:	3b de 4b 57 	addi    r30,r30,19287                          <== NOT EXECUTED
ffc12e38:	48 00 00 0c 	b       ffc12e44 <rtems_rfs_inode_create+0xc0> <== NOT EXECUTED
    else if (RTEMS_RFS_S_ISLNK (mode))                                
      type = "link";                                                  
ffc12e3c:	3f c0 ff c3 	lis     r30,-61                                <== NOT EXECUTED
ffc12e40:	3b de 41 5a 	addi    r30,r30,16730                          <== NOT EXECUTED
    printf("rtems-rfs: inode-create: parent:%" PRIu32 " name:", parent);
ffc12e44:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc12e48:	38 63 3d 34 	addi    r3,r3,15668                            <== NOT EXECUTED
ffc12e4c:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc12e50:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc12e54:	48 00 fd 1d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc12e58:	7f 3d cb 78 	mr      r29,r25                                <== NOT EXECUTED
                                                                      
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_inode_create (rtems_rfs_file_system*  fs,                   
ffc12e5c:	7e 99 c2 14 	add     r20,r25,r24                            <== 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++)                                      
ffc12e60:	48 00 00 10 	b       ffc12e70 <rtems_rfs_inode_create+0xec> <== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc12e64:	88 7d 00 00 	lbz     r3,0(r29)                              <== NOT EXECUTED
ffc12e68:	3b bd 00 01 	addi    r29,r29,1                              <== NOT EXECUTED
ffc12e6c:	48 00 ff 91 	bl      ffc22dfc <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++)                                      
ffc12e70:	7f 9d a0 00 	cmpw    cr7,r29,r20                            <== NOT EXECUTED
ffc12e74:	40 9e ff f0 	bne+    cr7,ffc12e64 <rtems_rfs_inode_create+0xe0><== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf (" type:%s mode:%04x (%03o)\n", type, mode, mode & ((1 << 10) - 1));
ffc12e78:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc12e7c:	38 63 3d 5e 	addi    r3,r3,15710                            <== NOT EXECUTED
ffc12e80:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc12e84:	7f 65 db 78 	mr      r5,r27                                 <== NOT EXECUTED
ffc12e88:	57 66 05 be 	clrlwi  r6,r27,22                              <== NOT EXECUTED
ffc12e8c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc12e90:	48 00 fc e1 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * The file type is field within the mode. Check we have a sane mode set.
   */                                                                 
  switch (mode & RTEMS_RFS_S_IFMT)                                    
ffc12e94:	57 7d 04 26 	rlwinm  r29,r27,0,16,19                        
ffc12e98:	2f 9d 60 00 	cmpwi   cr7,r29,24576                          
ffc12e9c:	41 9e 00 38 	beq-    cr7,ffc12ed4 <rtems_rfs_inode_create+0x150><== NEVER TAKEN
ffc12ea0:	2b 9d 60 00 	cmplwi  cr7,r29,24576                          
ffc12ea4:	41 9d 00 14 	bgt-    cr7,ffc12eb8 <rtems_rfs_inode_create+0x134>
ffc12ea8:	2f 9d 20 00 	cmpwi   cr7,r29,8192                           
ffc12eac:	41 9e 00 28 	beq-    cr7,ffc12ed4 <rtems_rfs_inode_create+0x150><== NEVER TAKEN
ffc12eb0:	2f 9d 40 00 	cmpwi   cr7,r29,16384                          
ffc12eb4:	48 00 00 1c 	b       ffc12ed0 <rtems_rfs_inode_create+0x14c>
ffc12eb8:	6f a9 ff ff 	xoris   r9,r29,65535                           
ffc12ebc:	2f 89 80 00 	cmpwi   cr7,r9,-32768                          
ffc12ec0:	41 9e 00 14 	beq-    cr7,ffc12ed4 <rtems_rfs_inode_create+0x150>
ffc12ec4:	39 20 00 00 	li      r9,0                                   
ffc12ec8:	61 29 a0 00 	ori     r9,r9,40960                            
ffc12ecc:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc12ed0:	40 be 01 c4 	bne+    cr7,ffc13094 <rtems_rfs_inode_create+0x310><== NEVER TAKEN
      break;                                                          
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_alloc (fs, parent, ino);                       
ffc12ed4:	7f e3 fb 78 	mr      r3,r31                                 
ffc12ed8:	7f 44 d3 78 	mr      r4,r26                                 
ffc12edc:	7f 85 e3 78 	mr      r5,r28                                 
ffc12ee0:	4b ff f8 0d 	bl      ffc126ec <rtems_rfs_inode_alloc>       
  if (rc > 0)                                                         
ffc12ee4:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc12ee8:	41 a1 01 b8 	bgt+    ffc130a0 <rtems_rfs_inode_create+0x31c>
    return rc;                                                        
                                                                      
  rc = rtems_rfs_inode_open (fs, *ino, &inode, true);                 
ffc12eec:	80 9c 00 00 	lwz     r4,0(r28)                              
ffc12ef0:	7f e3 fb 78 	mr      r3,r31                                 
ffc12ef4:	38 a1 00 08 	addi    r5,r1,8                                
ffc12ef8:	38 c0 00 01 	li      r6,1                                   
ffc12efc:	4b ff f8 ed 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc12f00:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc12f04:	40 81 00 08 	ble-    ffc12f0c <rtems_rfs_inode_create+0x188><== ALWAYS TAKEN
ffc12f08:	48 00 01 7c 	b       ffc13084 <rtems_rfs_inode_create+0x300><== NOT EXECUTED
  {                                                                   
    rtems_rfs_inode_free (fs, *ino);                                  
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_initialise (&inode, links, mode, uid, gid);    
ffc12f0c:	38 61 00 08 	addi    r3,r1,8                                
ffc12f10:	7e a4 ab 78 	mr      r4,r21                                 
ffc12f14:	7f 65 db 78 	mr      r5,r27                                 
ffc12f18:	7e c6 b3 78 	mr      r6,r22                                 
ffc12f1c:	7e e7 bb 78 	mr      r7,r23                                 
ffc12f20:	4b ff fd 0d 	bl      ffc12c2c <rtems_rfs_inode_initialise>  
  if (rc > 0)                                                         
ffc12f24:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc12f28:	40 a1 00 14 	ble+    ffc12f3c <rtems_rfs_inode_create+0x1b8><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
ffc12f2c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc12f30:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc12f34:	4b ff fa a9 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
ffc12f38:	48 00 01 4c 	b       ffc13084 <rtems_rfs_inode_create+0x300><== 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))                                       
ffc12f3c:	2f 9d 40 00 	cmpwi   cr7,r29,16384                          
ffc12f40:	40 be 00 54 	bne+    cr7,ffc12f94 <rtems_rfs_inode_create+0x210>
  {                                                                   
    rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, *ino);          
ffc12f44:	3c a0 ff c3 	lis     r5,-61                                 
ffc12f48:	80 fc 00 00 	lwz     r7,0(r28)                              
ffc12f4c:	7f e3 fb 78 	mr      r3,r31                                 
ffc12f50:	38 81 00 08 	addi    r4,r1,8                                
ffc12f54:	38 a5 18 85 	addi    r5,r5,6277                             
ffc12f58:	38 c0 00 01 	li      r6,1                                   
ffc12f5c:	48 00 9b d1 	bl      ffc1cb2c <rtems_rfs_dir_add_entry>     
    if (rc == 0)                                                      
ffc12f60:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc12f64:	40 a2 00 24 	bne+    ffc12f88 <rtems_rfs_inode_create+0x204><== NEVER TAKEN
      rc = rtems_rfs_dir_add_entry (fs, &inode, "..", 2, parent);     
ffc12f68:	3c a0 ff c3 	lis     r5,-61                                 
ffc12f6c:	7f e3 fb 78 	mr      r3,r31                                 
ffc12f70:	38 81 00 08 	addi    r4,r1,8                                
ffc12f74:	38 a5 18 84 	addi    r5,r5,6276                             
ffc12f78:	38 c0 00 02 	li      r6,2                                   
ffc12f7c:	7f 47 d3 78 	mr      r7,r26                                 
ffc12f80:	48 00 9b ad 	bl      ffc1cb2c <rtems_rfs_dir_add_entry>     
ffc12f84:	7c 7e 1b 78 	mr      r30,r3                                 
    if (rc > 0)                                                       
ffc12f88:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    {                                                                 
      rtems_rfs_inode_delete (fs, &inode);                            
ffc12f8c:	7f e3 fb 78 	mr      r3,r31                                 
  if (RTEMS_RFS_S_ISDIR (mode))                                       
  {                                                                   
    rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, *ino);          
    if (rc == 0)                                                      
      rc = rtems_rfs_dir_add_entry (fs, &inode, "..", 2, parent);     
    if (rc > 0)                                                       
ffc12f90:	41 9d 00 24 	bgt-    cr7,ffc12fb4 <rtems_rfs_inode_create+0x230><== NEVER TAKEN
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);        
ffc12f94:	7f e3 fb 78 	mr      r3,r31                                 
ffc12f98:	7f 44 d3 78 	mr      r4,r26                                 
ffc12f9c:	38 a1 00 30 	addi    r5,r1,48                               
ffc12fa0:	38 c0 00 01 	li      r6,1                                   
ffc12fa4:	4b ff f8 45 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc12fa8:	7c 7e 1b 79 	mr.     r30,r3                                 
  {                                                                   
    rtems_rfs_inode_delete (fs, &inode);                              
ffc12fac:	7f e3 fb 78 	mr      r3,r31                                 
      return rc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);        
  if (rc > 0)                                                         
ffc12fb0:	40 81 00 0c 	ble-    ffc12fbc <rtems_rfs_inode_create+0x238><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_delete (fs, &inode);                              
ffc12fb4:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc12fb8:	48 00 00 ac 	b       ffc13064 <rtems_rfs_inode_create+0x2e0><== NOT EXECUTED
    rtems_rfs_inode_close (fs, &inode);                               
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, *ino);
ffc12fbc:	80 fc 00 00 	lwz     r7,0(r28)                              
ffc12fc0:	38 81 00 30 	addi    r4,r1,48                               
ffc12fc4:	7f 25 cb 78 	mr      r5,r25                                 
ffc12fc8:	7f 06 c3 78 	mr      r6,r24                                 
ffc12fcc:	48 00 9b 61 	bl      ffc1cb2c <rtems_rfs_dir_add_entry>     
  if (rc > 0)                                                         
ffc12fd0:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc12fd4:	40 a1 00 28 	ble+    ffc12ffc <rtems_rfs_inode_create+0x278><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_delete (fs, &inode);                              
ffc12fd8:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc12fdc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc12fe0:	4b ff fa a1 	bl      ffc12a80 <rtems_rfs_inode_delete>      <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &inode);                               
ffc12fe4:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc12fe8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc12fec:	4b ff f9 f1 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &parent_inode);                        
ffc12ff0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc12ff4:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc12ff8:	48 00 00 78 	b       ffc13070 <rtems_rfs_inode_create+0x2ec><== 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))                                       
ffc12ffc:	2f 9d 40 00 	cmpwi   cr7,r29,16384                          
ffc13000:	40 be 00 48 	bne+    cr7,ffc13048 <rtems_rfs_inode_create+0x2c4>
    rtems_rfs_inode_set_links (&parent_inode,                         
                               rtems_rfs_inode_get_links (&parent_inode) + 1);
ffc13004:	81 21 00 3c 	lwz     r9,60(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);                  
ffc13008:	89 49 00 00 	lbz     r10,0(r9)                              
ffc1300c:	89 09 00 01 	lbz     r8,1(r9)                               
ffc13010:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc13014:	7d 4a 43 78 	or      r10,r10,r8                             
  if (links == 0xffff)                                                
ffc13018:	6d 48 ff ff 	xoris   r8,r10,65535                           
ffc1301c:	2f 88 ff ff 	cmpwi   cr7,r8,-1                              
ffc13020:	40 9e 00 08 	bne-    cr7,ffc13028 <rtems_rfs_inode_create+0x2a4><== ALWAYS TAKEN
    links = 0;                                                        
ffc13024:	39 40 00 00 	li      r10,0                                  <== 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))                                       
    rtems_rfs_inode_set_links (&parent_inode,                         
ffc13028:	39 4a 00 01 	addi    r10,r10,1                              
ffc1302c:	55 4a 04 3e 	clrlwi  r10,r10,16                             
 * @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);                  
ffc13030:	55 48 c2 3e 	rlwinm  r8,r10,24,8,31                         
ffc13034:	99 09 00 00 	stb     r8,0(r9)                               
ffc13038:	81 21 00 3c 	lwz     r9,60(r1)                              
ffc1303c:	99 49 00 01 	stb     r10,1(r9)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc13040:	39 20 00 01 	li      r9,1                                   
ffc13044:	99 21 00 40 	stb     r9,64(r1)                              
                               rtems_rfs_inode_get_links (&parent_inode) + 1);
                                                                      
  rc = rtems_rfs_inode_close (fs, &parent_inode);                     
ffc13048:	38 81 00 30 	addi    r4,r1,48                               
ffc1304c:	7f e3 fb 78 	mr      r3,r31                                 
ffc13050:	4b ff f9 8d 	bl      ffc129dc <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_inode_delete (fs, &inode);                              
ffc13054:	38 81 00 08 	addi    r4,r1,8                                
  if (RTEMS_RFS_S_ISDIR (mode))                                       
    rtems_rfs_inode_set_links (&parent_inode,                         
                               rtems_rfs_inode_get_links (&parent_inode) + 1);
                                                                      
  rc = rtems_rfs_inode_close (fs, &parent_inode);                     
  if (rc > 0)                                                         
ffc13058:	7c 7e 1b 79 	mr.     r30,r3                                 
  {                                                                   
    rtems_rfs_inode_delete (fs, &inode);                              
ffc1305c:	7f e3 fb 78 	mr      r3,r31                                 
  if (RTEMS_RFS_S_ISDIR (mode))                                       
    rtems_rfs_inode_set_links (&parent_inode,                         
                               rtems_rfs_inode_get_links (&parent_inode) + 1);
                                                                      
  rc = rtems_rfs_inode_close (fs, &parent_inode);                     
  if (rc > 0)                                                         
ffc13060:	40 81 00 18 	ble-    ffc13078 <rtems_rfs_inode_create+0x2f4><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_delete (fs, &inode);                              
ffc13064:	4b ff fa 1d 	bl      ffc12a80 <rtems_rfs_inode_delete>      <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &inode);                               
ffc13068:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1306c:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc13070:	4b ff f9 6d 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
ffc13074:	48 00 00 2c 	b       ffc130a0 <rtems_rfs_inode_create+0x31c><== NOT EXECUTED
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc13078:	4b ff f9 65 	bl      ffc129dc <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
ffc1307c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc13080:	40 81 00 1c 	ble-    ffc1309c <rtems_rfs_inode_create+0x318><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_free (fs, *ino);                                  
ffc13084:	80 9c 00 00 	lwz     r4,0(r28)                              <== NOT EXECUTED
ffc13088:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1308c:	4b ff f6 95 	bl      ffc12720 <rtems_rfs_inode_free>        <== NOT EXECUTED
ffc13090:	48 00 00 10 	b       ffc130a0 <rtems_rfs_inode_create+0x31c><== NOT EXECUTED
    case RTEMS_RFS_S_IFBLK:                                           
    case RTEMS_RFS_S_IFREG:                                           
    case RTEMS_RFS_S_IFLNK:                                           
      break;                                                          
    default:                                                          
      return EINVAL;                                                  
ffc13094:	3b c0 00 16 	li      r30,22                                 <== NOT EXECUTED
ffc13098:	48 00 00 08 	b       ffc130a0 <rtems_rfs_inode_create+0x31c><== NOT EXECUTED
  {                                                                   
    rtems_rfs_inode_free (fs, *ino);                                  
    return rc;                                                        
  }                                                                   
                                                                      
  return 0;                                                           
ffc1309c:	3b c0 00 00 	li      r30,0                                  
}                                                                     
ffc130a0:	39 61 00 88 	addi    r11,r1,136                             
ffc130a4:	7f c3 f3 78 	mr      r3,r30                                 
ffc130a8:	4b fe e4 98 	b       ffc01540 <_restgpr_20_x>               
                                                                      

ffc12a80 <rtems_rfs_inode_delete>: } int rtems_rfs_inode_delete (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* handle) {
ffc12a80:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc12a84:	7c 08 02 a6 	mflr    r0                                     
ffc12a88:	bf c1 00 58 	stmw    r30,88(r1)                             
ffc12a8c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc12a90:	7c 9f 23 78 	mr      r31,r4                                 
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_DELETE))                 
ffc12a94:	38 60 00 00 	li      r3,0                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_inode_delete (rtems_rfs_file_system*  fs,                   
                        rtems_rfs_inode_handle* handle)               
{                                                                     
ffc12a98:	90 01 00 64 	stw     r0,100(r1)                             
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_DELETE))                 
ffc12a9c:	3c 80 00 80 	lis     r4,128                                 
ffc12aa0:	48 00 17 a9 	bl      ffc14248 <rtems_rfs_trace>             
ffc12aa4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12aa8:	41 9e 00 38 	beq-    cr7,ffc12ae0 <rtems_rfs_inode_delete+0x60><== ALWAYS TAKEN
    printf("rtems-rfs: inode-delete: ino:%" PRIu32 " loaded:%s\n",    
ffc12aac:	81 3f 00 0c 	lwz     r9,12(r31)                             <== NOT EXECUTED
ffc12ab0:	80 9f 00 08 	lwz     r4,8(r31)                              <== NOT EXECUTED
ffc12ab4:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc12ab8:	41 9e 00 10 	beq-    cr7,ffc12ac8 <rtems_rfs_inode_delete+0x48><== NOT EXECUTED
ffc12abc:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc12ac0:	38 a5 3c 1a 	addi    r5,r5,15386                            <== NOT EXECUTED
ffc12ac4:	48 00 00 0c 	b       ffc12ad0 <rtems_rfs_inode_delete+0x50> <== NOT EXECUTED
ffc12ac8:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc12acc:	38 a5 40 fb 	addi    r5,r5,16635                            <== NOT EXECUTED
ffc12ad0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc12ad4:	38 63 3c f7 	addi    r3,r3,15607                            <== NOT EXECUTED
ffc12ad8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc12adc:	48 01 00 95 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
           rtems_rfs_inode_ino (handle),                              
           rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");        
                                                                      
  if (rtems_rfs_inode_is_loaded (handle))                             
ffc12ae0:	81 3f 00 0c 	lwz     r9,12(r31)                             
                                                                      
int                                                                   
rtems_rfs_inode_delete (rtems_rfs_file_system*  fs,                   
                        rtems_rfs_inode_handle* handle)               
{                                                                     
  int rc = 0;                                                         
ffc12ae4:	38 60 00 00 	li      r3,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))                             
ffc12ae8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc12aec:	41 9e 00 78 	beq-    cr7,ffc12b64 <rtems_rfs_inode_delete+0xe4><== NEVER TAKEN
    rtems_rfs_block_map map;                                          
                                                                      
    /*                                                                
     * Free the ino number.                                           
     */                                                               
    rc = rtems_rfs_inode_free (fs, handle->ino);                      
ffc12af0:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc12af4:	7f c3 f3 78 	mr      r3,r30                                 
ffc12af8:	4b ff fc 29 	bl      ffc12720 <rtems_rfs_inode_free>        
    if (rc > 0)                                                       
ffc12afc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc12b00:	41 a1 00 64 	bgt+    ffc12b64 <rtems_rfs_inode_delete+0xe4> <== NEVER TAKEN
      return rc;                                                      
                                                                      
    /*                                                                
     * Free the blocks the inode may have attached.                   
     */                                                               
    rc = rtems_rfs_block_map_open (fs, handle, &map);                 
ffc12b04:	7f c3 f3 78 	mr      r3,r30                                 
ffc12b08:	7f e4 fb 78 	mr      r4,r31                                 
ffc12b0c:	38 a1 00 08 	addi    r5,r1,8                                
ffc12b10:	48 00 83 ad 	bl      ffc1aebc <rtems_rfs_block_map_open>    
    if (rc == 0)                                                      
ffc12b14:	2c 03 00 00 	cmpwi   r3,0                                   
ffc12b18:	40 a2 00 4c 	bne+    ffc12b64 <rtems_rfs_inode_delete+0xe4> <== NEVER TAKEN
    {                                                                 
      int rrc;                                                        
      rrc = rtems_rfs_block_map_free_all (fs, &map);                  
ffc12b1c:	38 81 00 08 	addi    r4,r1,8                                
ffc12b20:	7f c3 f3 78 	mr      r3,r30                                 
ffc12b24:	48 00 90 15 	bl      ffc1bb38 <rtems_rfs_block_map_free_all>
      rc = rtems_rfs_block_map_close (fs, &map);                      
ffc12b28:	38 81 00 08 	addi    r4,r1,8                                
ffc12b2c:	7f c3 f3 78 	mr      r3,r30                                 
ffc12b30:	48 00 85 45 	bl      ffc1b074 <rtems_rfs_block_map_close>   
      if (rc > 0)                                                     
        rrc = rc;                                                     
      memset (handle->node, 0xff, RTEMS_RFS_INODE_SIZE);              
ffc12b34:	80 7f 00 0c 	lwz     r3,12(r31)                             
ffc12b38:	38 80 00 ff 	li      r4,255                                 
ffc12b3c:	38 a0 00 38 	li      r5,56                                  
ffc12b40:	48 00 fd d5 	bl      ffc22914 <memset>                      
      rtems_rfs_buffer_mark_dirty (&handle->buffer);                  
ffc12b44:	39 20 00 01 	li      r9,1                                   
ffc12b48:	7f e4 fb 78 	mr      r4,r31                                 
ffc12b4c:	9d 24 00 10 	stbu    r9,16(r4)                              
      /*                                                              
       * 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);     
ffc12b50:	7f c3 f3 78 	mr      r3,r30                                 
ffc12b54:	48 00 91 99 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
      handle->loads = 0;                                              
ffc12b58:	39 20 00 00 	li      r9,0                                   
ffc12b5c:	91 3f 00 24 	stw     r9,36(r31)                             
      handle->node = NULL;                                            
ffc12b60:	91 3f 00 0c 	stw     r9,12(r31)                             
    }                                                                 
  }                                                                   
  return rc;                                                          
}                                                                     
ffc12b64:	39 61 00 60 	addi    r11,r1,96                              
ffc12b68:	4b fe ea 00 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc1fab0 <rtems_rfs_inode_get_block.isra.0>: * @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]);
ffc1fab0:	38 84 00 04 	addi    r4,r4,4                                <== NOT EXECUTED
ffc1fab4:	54 84 10 3a 	rlwinm  r4,r4,2,0,29                           <== NOT EXECUTED
ffc1fab8:	7c 63 22 14 	add     r3,r3,r4                               <== NOT EXECUTED
ffc1fabc:	39 23 00 0c 	addi    r9,r3,12                               <== NOT EXECUTED
ffc1fac0:	88 63 00 0c 	lbz     r3,12(r3)                              <== NOT EXECUTED
ffc1fac4:	89 49 00 01 	lbz     r10,1(r9)                              <== NOT EXECUTED
ffc1fac8:	54 63 c0 0e 	rlwinm  r3,r3,24,0,7                           <== NOT EXECUTED
ffc1facc:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        <== NOT EXECUTED
ffc1fad0:	7c 63 53 78 	or      r3,r3,r10                              <== NOT EXECUTED
ffc1fad4:	89 49 00 03 	lbz     r10,3(r9)                              <== NOT EXECUTED
ffc1fad8:	89 29 00 02 	lbz     r9,2(r9)                               <== NOT EXECUTED
ffc1fadc:	7c 63 53 78 	or      r3,r3,r10                              <== NOT EXECUTED
ffc1fae0:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           <== NOT EXECUTED
}                                                                     
ffc1fae4:	7c 63 4b 78 	or      r3,r3,r9                               <== NOT EXECUTED
ffc1fae8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc1394c <rtems_rfs_inode_get_block.isra.12>: * @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]);
ffc1394c:	38 84 00 04 	addi    r4,r4,4                                <== NOT EXECUTED
ffc13950:	54 84 10 3a 	rlwinm  r4,r4,2,0,29                           <== NOT EXECUTED
ffc13954:	7c 63 22 14 	add     r3,r3,r4                               <== NOT EXECUTED
ffc13958:	39 23 00 0c 	addi    r9,r3,12                               <== NOT EXECUTED
ffc1395c:	88 63 00 0c 	lbz     r3,12(r3)                              <== NOT EXECUTED
ffc13960:	89 49 00 01 	lbz     r10,1(r9)                              <== NOT EXECUTED
ffc13964:	54 63 c0 0e 	rlwinm  r3,r3,24,0,7                           <== NOT EXECUTED
ffc13968:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        <== NOT EXECUTED
ffc1396c:	7c 63 53 78 	or      r3,r3,r10                              <== NOT EXECUTED
ffc13970:	89 49 00 03 	lbz     r10,3(r9)                              <== NOT EXECUTED
ffc13974:	89 29 00 02 	lbz     r9,2(r9)                               <== NOT EXECUTED
ffc13978:	7c 63 53 78 	or      r3,r3,r10                              <== NOT EXECUTED
ffc1397c:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           <== NOT EXECUTED
}                                                                     
ffc13980:	7c 63 4b 78 	or      r3,r3,r9                               <== NOT EXECUTED
ffc13984:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc202a4 <rtems_rfs_inode_get_block.isra.5>: * @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]);
ffc202a4:	38 84 00 04 	addi    r4,r4,4                                <== NOT EXECUTED
ffc202a8:	54 84 10 3a 	rlwinm  r4,r4,2,0,29                           <== NOT EXECUTED
ffc202ac:	7c 63 22 14 	add     r3,r3,r4                               <== NOT EXECUTED
ffc202b0:	39 23 00 0c 	addi    r9,r3,12                               <== NOT EXECUTED
ffc202b4:	88 63 00 0c 	lbz     r3,12(r3)                              <== NOT EXECUTED
ffc202b8:	89 49 00 01 	lbz     r10,1(r9)                              <== NOT EXECUTED
ffc202bc:	54 63 c0 0e 	rlwinm  r3,r3,24,0,7                           <== NOT EXECUTED
ffc202c0:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        <== NOT EXECUTED
ffc202c4:	7c 63 53 78 	or      r3,r3,r10                              <== NOT EXECUTED
ffc202c8:	89 49 00 03 	lbz     r10,3(r9)                              <== NOT EXECUTED
ffc202cc:	89 29 00 02 	lbz     r9,2(r9)                               <== NOT EXECUTED
ffc202d0:	7c 63 53 78 	or      r3,r3,r10                              <== NOT EXECUTED
ffc202d4:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           <== NOT EXECUTED
}                                                                     
ffc202d8:	7c 63 4b 78 	or      r3,r3,r9                               <== NOT EXECUTED
ffc202dc:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc1272c <rtems_rfs_inode_load>: } int rtems_rfs_inode_load (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* handle) {
ffc1272c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc12730:	7c 08 02 a6 	mflr    r0                                     
ffc12734:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc12738:	7c 7e 1b 78 	mr      r30,r3                                 
ffc1273c:	7c 9f 23 78 	mr      r31,r4                                 
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_LOAD))                   
ffc12740:	38 60 00 00 	li      r3,0                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_inode_load (rtems_rfs_file_system*  fs,                     
                      rtems_rfs_inode_handle* handle)                 
{                                                                     
ffc12744:	90 01 00 14 	stw     r0,20(r1)                              
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_LOAD))                   
ffc12748:	3c 80 00 10 	lis     r4,16                                  
ffc1274c:	48 00 1a fd 	bl      ffc14248 <rtems_rfs_trace>             
ffc12750:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12754:	41 9e 00 3c 	beq-    cr7,ffc12790 <rtems_rfs_inode_load+0x64><== ALWAYS TAKEN
    printf ("rtems-rfs: inode-load: ino=%" PRIu32 " loads=%i loaded=%s\n",
ffc12758:	81 3f 00 0c 	lwz     r9,12(r31)                             <== NOT EXECUTED
ffc1275c:	80 9f 00 08 	lwz     r4,8(r31)                              <== NOT EXECUTED
ffc12760:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc12764:	80 bf 00 24 	lwz     r5,36(r31)                             <== NOT EXECUTED
ffc12768:	41 9e 00 10 	beq-    cr7,ffc12778 <rtems_rfs_inode_load+0x4c><== NOT EXECUTED
ffc1276c:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc12770:	38 c6 3c 1a 	addi    r6,r6,15386                            <== NOT EXECUTED
ffc12774:	48 00 00 0c 	b       ffc12780 <rtems_rfs_inode_load+0x54>   <== NOT EXECUTED
ffc12778:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc1277c:	38 c6 40 fb 	addi    r6,r6,16635                            <== NOT EXECUTED
ffc12780:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc12784:	38 63 3c 1e 	addi    r3,r3,15390                            <== NOT EXECUTED
ffc12788:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1278c:	48 01 03 e5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
  /*                                                                  
   * An inode does not move so once loaded no need to do again.       
   */                                                                 
                                                                      
  if (!rtems_rfs_inode_is_loaded (handle))                            
ffc12790:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc12794:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc12798:	40 be 00 38 	bne+    cr7,ffc127d0 <rtems_rfs_inode_load+0xa4>
  {                                                                   
    int rc;                                                           
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs,&handle->buffer,         
ffc1279c:	80 bf 00 1c 	lwz     r5,28(r31)                             
ffc127a0:	7f c3 f3 78 	mr      r3,r30                                 
ffc127a4:	38 9f 00 10 	addi    r4,r31,16                              
ffc127a8:	38 c0 00 01 	li      r6,1                                   
ffc127ac:	48 00 97 25 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request>
                                          handle->block, true);       
    if (rc > 0)                                                       
ffc127b0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc127b4:	41 a1 00 2c 	bgt+    ffc127e0 <rtems_rfs_inode_load+0xb4>   <== NEVER TAKEN
      return rc;                                                      
                                                                      
    handle->node = rtems_rfs_buffer_data (&handle->buffer);           
ffc127b8:	81 3f 00 18 	lwz     r9,24(r31)                             
    handle->node += handle->offset;                                   
ffc127bc:	81 5f 00 20 	lwz     r10,32(r31)                            
ffc127c0:	81 29 00 1c 	lwz     r9,28(r9)                              
ffc127c4:	1d 4a 00 38 	mulli   r10,r10,56                             
ffc127c8:	7d 49 52 14 	add     r10,r9,r10                             
ffc127cc:	91 5f 00 0c 	stw     r10,12(r31)                            
  }                                                                   
                                                                      
  handle->loads++;                                                    
ffc127d0:	81 3f 00 24 	lwz     r9,36(r31)                             
                                                                      
  return 0;                                                           
ffc127d4:	38 60 00 00 	li      r3,0                                   
                                                                      
    handle->node = rtems_rfs_buffer_data (&handle->buffer);           
    handle->node += handle->offset;                                   
  }                                                                   
                                                                      
  handle->loads++;                                                    
ffc127d8:	39 29 00 01 	addi    r9,r9,1                                
ffc127dc:	91 3f 00 24 	stw     r9,36(r31)                             
                                                                      
  return 0;                                                           
}                                                                     
ffc127e0:	39 61 00 10 	addi    r11,r1,16                              
ffc127e4:	4b fe ed 84 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc127e8 <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) {
ffc127e8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc127ec:	7c 08 02 a6 	mflr    r0                                     
ffc127f0:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc127f4:	7c 7e 1b 78 	mr      r30,r3                                 
ffc127f8:	7c 9d 23 78 	mr      r29,r4                                 
  int group;                                                          
  int gino;                                                           
  int index;                                                          
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_OPEN))                   
ffc127fc:	38 60 00 00 	li      r3,0                                   
int                                                                   
rtems_rfs_inode_open (rtems_rfs_file_system*  fs,                     
                      rtems_rfs_ino           ino,                    
                      rtems_rfs_inode_handle* handle,                 
                      bool                    load)                   
{                                                                     
ffc12800:	90 01 00 1c 	stw     r0,28(r1)                              
  int group;                                                          
  int gino;                                                           
  int index;                                                          
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_OPEN))                   
ffc12804:	3c 80 00 04 	lis     r4,4                                   
int                                                                   
rtems_rfs_inode_open (rtems_rfs_file_system*  fs,                     
                      rtems_rfs_ino           ino,                    
                      rtems_rfs_inode_handle* handle,                 
                      bool                    load)                   
{                                                                     
ffc12808:	7c bf 2b 78 	mr      r31,r5                                 
ffc1280c:	7c dc 33 78 	mr      r28,r6                                 
  int group;                                                          
  int gino;                                                           
  int index;                                                          
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_OPEN))                   
ffc12810:	48 00 1a 39 	bl      ffc14248 <rtems_rfs_trace>             
ffc12814:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12818:	41 be 00 18 	beq+    cr7,ffc12830 <rtems_rfs_inode_open+0x48><== ALWAYS TAKEN
    printf ("rtems-rfs: inode-open: ino: %" PRIu32 "\n", ino);        
ffc1281c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc12820:	38 63 3c 51 	addi    r3,r3,15441                            <== NOT EXECUTED
ffc12824:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc12828:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1282c:	48 01 03 45 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
  if (ino == RTEMS_RFS_EMPTY_INO)                                     
ffc12830:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
    return EINVAL;                                                    
ffc12834:	38 60 00 16 	li      r3,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)                                     
ffc12838:	41 be 00 94 	beq+    cr7,ffc128cc <rtems_rfs_inode_open+0xe4><== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))          
ffc1283c:	81 3e 00 14 	lwz     r9,20(r30)                             
ffc12840:	39 5d ff ff 	addi    r10,r29,-1                             
ffc12844:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc12848:	41 bd 00 84 	bgt+    cr7,ffc128cc <rtems_rfs_inode_open+0xe4><== NEVER TAKEN
  handle->ino = ino;                                                  
  handle->node = NULL;                                                
  handle->loads = 0;                                                  
                                                                      
  gino  = ino - RTEMS_RFS_ROOT_INO;                                   
  group = gino / fs->group_inodes;                                    
ffc1284c:	81 1e 00 2c 	lwz     r8,44(r30)                             
                                                                      
  handle->offset = gino % fs->inodes_per_block;                       
  handle->block  = rtems_rfs_group_block (&fs->groups[group], index); 
                                                                      
  rc = rtems_rfs_buffer_handle_open (fs, &handle->buffer);            
  if ((rc == 0) && load)                                              
ffc12850:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
                                                                      
  if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))          
    return EINVAL;                                                    
                                                                      
  handle->ino = ino;                                                  
  handle->node = NULL;                                                
ffc12854:	39 20 00 00 	li      r9,0                                   
    return EINVAL;                                                    
                                                                      
  if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))          
    return EINVAL;                                                    
                                                                      
  handle->ino = ino;                                                  
ffc12858:	93 bf 00 08 	stw     r29,8(r31)                             
  handle->node = NULL;                                                
  handle->loads = 0;                                                  
                                                                      
  gino  = ino - RTEMS_RFS_ROOT_INO;                                   
  group = gino / fs->group_inodes;                                    
  gino  = gino % fs->group_inodes;                                    
ffc1285c:	7c aa 43 96 	divwu   r5,r10,r8                              
                                                                      
  if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))          
    return EINVAL;                                                    
                                                                      
  handle->ino = ino;                                                  
  handle->node = NULL;                                                
ffc12860:	91 3f 00 0c 	stw     r9,12(r31)                             
  handle->loads = 0;                                                  
ffc12864:	91 3f 00 24 	stw     r9,36(r31)                             
                                                                      
  gino  = ino - RTEMS_RFS_ROOT_INO;                                   
  group = gino / fs->group_inodes;                                    
  gino  = gino % fs->group_inodes;                                    
ffc12868:	7d 05 41 d6 	mullw   r8,r5,r8                               
  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); 
ffc1286c:	1c a5 00 50 	mulli   r5,r5,80                               
  handle->node = NULL;                                                
  handle->loads = 0;                                                  
                                                                      
  gino  = ino - RTEMS_RFS_ROOT_INO;                                   
  group = gino / fs->group_inodes;                                    
  gino  = gino % fs->group_inodes;                                    
ffc12870:	7d 48 50 50 	subf    r10,r8,r10                             
  index = (gino / fs->inodes_per_block) + RTEMS_RFS_GROUP_INODE_BLOCK;
ffc12874:	81 1e 00 30 	lwz     r8,48(r30)                             
                                                                      
  handle->offset = gino % fs->inodes_per_block;                       
  handle->block  = rtems_rfs_group_block (&fs->groups[group], index); 
                                                                      
  rc = rtems_rfs_buffer_handle_open (fs, &handle->buffer);            
ffc12878:	38 60 00 00 	li      r3,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;
                                                                      
  handle->offset = gino % fs->inodes_per_block;                       
ffc1287c:	7c ea 43 96 	divwu   r7,r10,r8                              
ffc12880:	7d 07 41 d6 	mullw   r8,r7,r8                               
ffc12884:	7d 48 50 50 	subf    r10,r8,r10                             
ffc12888:	91 5f 00 20 	stw     r10,32(r31)                            
  handle->block  = rtems_rfs_group_block (&fs->groups[group], index); 
ffc1288c:	81 5e 00 20 	lwz     r10,32(r30)                            
  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;
ffc12890:	7d 4a 28 2e 	lwzx    r10,r10,r5                             
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc12894:	99 3f 00 10 	stb     r9,16(r31)                             
ffc12898:	39 4a 00 02 	addi    r10,r10,2                              
                                                                      
  handle->offset = gino % fs->inodes_per_block;                       
  handle->block  = rtems_rfs_group_block (&fs->groups[group], index); 
ffc1289c:	7c ea 3a 14 	add     r7,r10,r7                              
  handle->bnum  = 0;                                                  
ffc128a0:	91 3f 00 14 	stw     r9,20(r31)                             
ffc128a4:	90 ff 00 1c 	stw     r7,28(r31)                             
  handle->buffer = NULL;                                              
ffc128a8:	91 3f 00 18 	stw     r9,24(r31)                             
                                                                      
  rc = rtems_rfs_buffer_handle_open (fs, &handle->buffer);            
  if ((rc == 0) && load)                                              
ffc128ac:	41 be 00 20 	beq+    cr7,ffc128cc <rtems_rfs_inode_open+0xe4><== NEVER TAKEN
    rc = rtems_rfs_inode_load (fs, handle);                           
  return rc;                                                          
}                                                                     
ffc128b0:	80 01 00 1c 	lwz     r0,28(r1)                              
  handle->offset = gino % fs->inodes_per_block;                       
  handle->block  = rtems_rfs_group_block (&fs->groups[group], index); 
                                                                      
  rc = rtems_rfs_buffer_handle_open (fs, &handle->buffer);            
  if ((rc == 0) && load)                                              
    rc = rtems_rfs_inode_load (fs, handle);                           
ffc128b4:	7f c3 f3 78 	mr      r3,r30                                 
ffc128b8:	7f e4 fb 78 	mr      r4,r31                                 
  return rc;                                                          
}                                                                     
ffc128bc:	bb 81 00 08 	lmw     r28,8(r1)                              
ffc128c0:	7c 08 03 a6 	mtlr    r0                                     
ffc128c4:	38 21 00 18 	addi    r1,r1,24                               
  handle->offset = gino % fs->inodes_per_block;                       
  handle->block  = rtems_rfs_group_block (&fs->groups[group], index); 
                                                                      
  rc = rtems_rfs_buffer_handle_open (fs, &handle->buffer);            
  if ((rc == 0) && load)                                              
    rc = rtems_rfs_inode_load (fs, handle);                           
ffc128c8:	4b ff fe 64 	b       ffc1272c <rtems_rfs_inode_load>        
  return rc;                                                          
}                                                                     
ffc128cc:	39 61 00 18 	addi    r11,r1,24                              <== NOT EXECUTED
ffc128d0:	4b fe ec 90 	b       ffc01560 <_restgpr_28_x>               <== NOT EXECUTED
                                                                      

ffc13114 <rtems_rfs_inode_set_block>: * @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);
ffc13114:	81 23 00 0c 	lwz     r9,12(r3)                              <== NOT EXECUTED
ffc13118:	38 84 00 04 	addi    r4,r4,4                                <== NOT EXECUTED
ffc1311c:	54 84 10 3a 	rlwinm  r4,r4,2,0,29                           <== NOT EXECUTED
ffc13120:	7d 29 22 14 	add     r9,r9,r4                               <== NOT EXECUTED
ffc13124:	54 aa 46 3e 	rlwinm  r10,r5,8,24,31                         <== NOT EXECUTED
ffc13128:	99 49 00 0c 	stb     r10,12(r9)                             <== NOT EXECUTED
ffc1312c:	54 aa 84 3e 	rlwinm  r10,r5,16,16,31                        <== NOT EXECUTED
ffc13130:	81 23 00 0c 	lwz     r9,12(r3)                              <== NOT EXECUTED
ffc13134:	7d 29 22 14 	add     r9,r9,r4                               <== NOT EXECUTED
ffc13138:	99 49 00 0d 	stb     r10,13(r9)                             <== NOT EXECUTED
ffc1313c:	54 aa c2 3e 	rlwinm  r10,r5,24,8,31                         <== NOT EXECUTED
ffc13140:	81 23 00 0c 	lwz     r9,12(r3)                              <== NOT EXECUTED
ffc13144:	7d 29 22 14 	add     r9,r9,r4                               <== NOT EXECUTED
ffc13148:	99 49 00 0e 	stb     r10,14(r9)                             <== NOT EXECUTED
ffc1314c:	81 23 00 0c 	lwz     r9,12(r3)                              <== NOT EXECUTED
ffc13150:	7c 89 22 14 	add     r4,r9,r4                               <== NOT EXECUTED
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc13154:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
 * @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);       
ffc13158:	98 a4 00 0f 	stb     r5,15(r4)                              <== NOT EXECUTED
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1315c:	99 23 00 10 	stb     r9,16(r3)                              <== NOT EXECUTED
ffc13160:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc12b6c <rtems_rfs_inode_time_stamp_now>: int rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle, bool atime, bool mtime) {
ffc12b6c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc12b70:	7c 08 02 a6 	mflr    r0                                     
ffc12b74:	90 01 00 1c 	stw     r0,28(r1)                              
  time_t now;                                                         
  if (!rtems_rfs_inode_is_loaded (handle))                            
ffc12b78:	81 23 00 0c 	lwz     r9,12(r3)                              
                                                                      
int                                                                   
rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle,       
                                bool                    atime,        
                                bool                    mtime)        
{                                                                     
ffc12b7c:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc12b80:	7c 7f 1b 78 	mr      r31,r3                                 
  time_t now;                                                         
  if (!rtems_rfs_inode_is_loaded (handle))                            
ffc12b84:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    return ENXIO;                                                     
ffc12b88:	38 60 00 06 	li      r3,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))                            
ffc12b8c:	41 9e 00 98 	beq-    cr7,ffc12c24 <rtems_rfs_inode_time_stamp_now+0xb8><== NEVER TAKEN
ffc12b90:	7c 9e 23 78 	mr      r30,r4                                 
    return ENXIO;                                                     
  now = time (NULL);                                                  
ffc12b94:	38 60 00 00 	li      r3,0                                   
ffc12b98:	7c bd 2b 78 	mr      r29,r5                                 
ffc12b9c:	48 01 43 b9 	bl      ffc26f54 <time>                        
  if (atime)                                                          
ffc12ba0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
                                bool                    mtime)        
{                                                                     
  time_t now;                                                         
  if (!rtems_rfs_inode_is_loaded (handle))                            
    return ENXIO;                                                     
  now = time (NULL);                                                  
ffc12ba4:	7c 69 1b 78 	mr      r9,r3                                  
  if (atime)                                                          
ffc12ba8:	41 be 00 38 	beq+    cr7,ffc12be0 <rtems_rfs_inode_time_stamp_now+0x74><== 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);                  
ffc12bac:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc12bb0:	54 68 46 3e 	rlwinm  r8,r3,8,24,31                          
ffc12bb4:	99 0a 00 10 	stb     r8,16(r10)                             
ffc12bb8:	54 68 84 3e 	rlwinm  r8,r3,16,16,31                         
ffc12bbc:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc12bc0:	99 0a 00 11 	stb     r8,17(r10)                             
ffc12bc4:	54 68 c2 3e 	rlwinm  r8,r3,24,8,31                          
ffc12bc8:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc12bcc:	99 0a 00 12 	stb     r8,18(r10)                             
ffc12bd0:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc12bd4:	98 6a 00 13 	stb     r3,19(r10)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc12bd8:	39 40 00 01 	li      r10,1                                  
ffc12bdc:	99 5f 00 10 	stb     r10,16(r31)                            
    rtems_rfs_inode_set_atime (handle, now);                          
  if (mtime)                                                          
ffc12be0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
    rtems_rfs_inode_set_mtime (handle, now);                          
  return 0;                                                           
ffc12be4:	38 60 00 00 	li      r3,0                                   
  if (!rtems_rfs_inode_is_loaded (handle))                            
    return ENXIO;                                                     
  now = time (NULL);                                                  
  if (atime)                                                          
    rtems_rfs_inode_set_atime (handle, now);                          
  if (mtime)                                                          
ffc12be8:	41 be 00 3c 	beq+    cr7,ffc12c24 <rtems_rfs_inode_time_stamp_now+0xb8><== 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);                  
ffc12bec:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc12bf0:	55 28 46 3e 	rlwinm  r8,r9,8,24,31                          
ffc12bf4:	99 0a 00 14 	stb     r8,20(r10)                             
ffc12bf8:	55 28 84 3e 	rlwinm  r8,r9,16,16,31                         
ffc12bfc:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc12c00:	99 0a 00 15 	stb     r8,21(r10)                             
ffc12c04:	55 28 c2 3e 	rlwinm  r8,r9,24,8,31                          
ffc12c08:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc12c0c:	99 0a 00 16 	stb     r8,22(r10)                             
ffc12c10:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc12c14:	99 2a 00 17 	stb     r9,23(r10)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc12c18:	39 20 00 01 	li      r9,1                                   
ffc12c1c:	99 3f 00 10 	stb     r9,16(r31)                             
ffc12c20:	48 00 00 04 	b       ffc12c24 <rtems_rfs_inode_time_stamp_now+0xb8>
    rtems_rfs_inode_set_mtime (handle, now);                          
  return 0;                                                           
}                                                                     
ffc12c24:	39 61 00 18 	addi    r11,r1,24                              
ffc12c28:	4b fe e9 3c 	b       ffc01564 <_restgpr_29_x>               
                                                                      

ffc128d4 <rtems_rfs_inode_unload>: int rtems_rfs_inode_unload (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* handle, bool update_ctime) {
ffc128d4:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc128d8:	7c 08 02 a6 	mflr    r0                                     
ffc128dc:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc128e0:	7c 7e 1b 78 	mr      r30,r3                                 
ffc128e4:	7c 9f 23 78 	mr      r31,r4                                 
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_UNLOAD))                 
ffc128e8:	38 60 00 00 	li      r3,0                                   
                                                                      
int                                                                   
rtems_rfs_inode_unload (rtems_rfs_file_system*  fs,                   
                        rtems_rfs_inode_handle* handle,               
                        bool                    update_ctime)         
{                                                                     
ffc128ec:	90 01 00 1c 	stw     r0,28(r1)                              
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_UNLOAD))                 
ffc128f0:	3c 80 00 20 	lis     r4,32                                  
                                                                      
int                                                                   
rtems_rfs_inode_unload (rtems_rfs_file_system*  fs,                   
                        rtems_rfs_inode_handle* handle,               
                        bool                    update_ctime)         
{                                                                     
ffc128f4:	7c bd 2b 78 	mr      r29,r5                                 
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_UNLOAD))                 
ffc128f8:	48 00 19 51 	bl      ffc14248 <rtems_rfs_trace>             
ffc128fc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12900:	41 9e 00 3c 	beq-    cr7,ffc1293c <rtems_rfs_inode_unload+0x68><== ALWAYS TAKEN
    printf ("rtems-rfs: inode-unload: ino=%" PRIu32 " loads=%i loaded=%s\n",
ffc12904:	81 3f 00 0c 	lwz     r9,12(r31)                             <== NOT EXECUTED
ffc12908:	80 9f 00 08 	lwz     r4,8(r31)                              <== NOT EXECUTED
ffc1290c:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc12910:	80 bf 00 24 	lwz     r5,36(r31)                             <== NOT EXECUTED
ffc12914:	41 9e 00 10 	beq-    cr7,ffc12924 <rtems_rfs_inode_unload+0x50><== NOT EXECUTED
ffc12918:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc1291c:	38 c6 3c 1a 	addi    r6,r6,15386                            <== NOT EXECUTED
ffc12920:	48 00 00 0c 	b       ffc1292c <rtems_rfs_inode_unload+0x58> <== NOT EXECUTED
ffc12924:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc12928:	38 c6 40 fb 	addi    r6,r6,16635                            <== NOT EXECUTED
ffc1292c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc12930:	38 63 3c 72 	addi    r3,r3,15474                            <== NOT EXECUTED
ffc12934:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc12938:	48 01 02 39 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            handle->ino, handle->loads,                               
            rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");       
                                                                      
  if (rtems_rfs_inode_is_loaded (handle))                             
ffc1293c:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc12940:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc12944:	40 be 00 0c 	bne+    cr7,ffc12950 <rtems_rfs_inode_unload+0x7c>
int                                                                   
rtems_rfs_inode_unload (rtems_rfs_file_system*  fs,                   
                        rtems_rfs_inode_handle* handle,               
                        bool                    update_ctime)         
{                                                                     
  int rc = 0;                                                         
ffc12948:	38 60 00 00 	li      r3,0                                   
ffc1294c:	48 00 00 88 	b       ffc129d4 <rtems_rfs_inode_unload+0x100>
            handle->ino, handle->loads,                               
            rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");       
                                                                      
  if (rtems_rfs_inode_is_loaded (handle))                             
  {                                                                   
    if (handle->loads == 0)                                           
ffc12950:	81 5f 00 24 	lwz     r10,36(r31)                            
      return EIO;                                                     
ffc12954:	38 60 00 05 	li      r3,5                                   
            handle->ino, handle->loads,                               
            rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");       
                                                                      
  if (rtems_rfs_inode_is_loaded (handle))                             
  {                                                                   
    if (handle->loads == 0)                                           
ffc12958:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1295c:	41 be 00 78 	beq+    cr7,ffc129d4 <rtems_rfs_inode_unload+0x100><== NEVER TAKEN
      return EIO;                                                     
                                                                      
    handle->loads--;                                                  
ffc12960:	39 2a ff ff 	addi    r9,r10,-1                              
                                                                      
    if (handle->loads == 0)                                           
ffc12964:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  if (rtems_rfs_inode_is_loaded (handle))                             
  {                                                                   
    if (handle->loads == 0)                                           
      return EIO;                                                     
                                                                      
    handle->loads--;                                                  
ffc12968:	91 3f 00 24 	stw     r9,36(r31)                             
                                                                      
    if (handle->loads == 0)                                           
ffc1296c:	40 be ff dc 	bne-    cr7,ffc12948 <rtems_rfs_inode_unload+0x74>
    {                                                                 
      /*                                                              
       * If the buffer is dirty it will be release. Also set the ctime.
       */                                                             
      if (rtems_rfs_buffer_dirty (&handle->buffer) && update_ctime)   
ffc12970:	89 3f 00 10 	lbz     r9,16(r31)                             
ffc12974:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc12978:	41 9e 00 48 	beq-    cr7,ffc129c0 <rtems_rfs_inode_unload+0xec>
ffc1297c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc12980:	41 be 00 40 	beq+    cr7,ffc129c0 <rtems_rfs_inode_unload+0xec><== NEVER TAKEN
        rtems_rfs_inode_set_ctime (handle, time (NULL));              
ffc12984:	38 60 00 00 	li      r3,0                                   
ffc12988:	48 01 45 cd 	bl      ffc26f54 <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);                  
ffc1298c:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc12990:	54 68 46 3e 	rlwinm  r8,r3,8,24,31                          
ffc12994:	99 0a 00 18 	stb     r8,24(r10)                             
ffc12998:	54 68 84 3e 	rlwinm  r8,r3,16,16,31                         
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1299c:	39 20 00 01 	li      r9,1                                   
 */                                                                   
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);                  
ffc129a0:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc129a4:	99 0a 00 19 	stb     r8,25(r10)                             
ffc129a8:	54 68 c2 3e 	rlwinm  r8,r3,24,8,31                          
ffc129ac:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc129b0:	99 0a 00 1a 	stb     r8,26(r10)                             
ffc129b4:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc129b8:	98 6a 00 1b 	stb     r3,27(r10)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc129bc:	99 3f 00 10 	stb     r9,16(r31)                             
      rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);     
ffc129c0:	7f c3 f3 78 	mr      r3,r30                                 
ffc129c4:	38 9f 00 10 	addi    r4,r31,16                              
ffc129c8:	48 00 93 25 	bl      ffc1bcec <rtems_rfs_buffer_handle_release>
      handle->node = NULL;                                            
ffc129cc:	39 40 00 00 	li      r10,0                                  
ffc129d0:	91 5f 00 0c 	stw     r10,12(r31)                            
    }                                                                 
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc129d4:	39 61 00 18 	addi    r11,r1,24                              
ffc129d8:	4b fe eb 8c 	b       ffc01564 <_restgpr_29_x>               
                                                                      

ffc1efbc <rtems_rfs_link>: const char* name, int length, rtems_rfs_ino parent, rtems_rfs_ino target, bool link_dir) {
ffc1efbc:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc1efc0:	7c 08 02 a6 	mflr    r0                                     
ffc1efc4:	bf 21 00 5c 	stmw    r25,92(r1)                             
ffc1efc8:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1efcc:	7c 9b 23 78 	mr      r27,r4                                 
  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))                         
ffc1efd0:	38 60 00 00 	li      r3,0                                   
                const char*            name,                          
                int                    length,                        
                rtems_rfs_ino          parent,                        
                rtems_rfs_ino          target,                        
                bool                   link_dir)                      
{                                                                     
ffc1efd4:	90 01 00 7c 	stw     r0,124(r1)                             
  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))                         
ffc1efd8:	3c 80 01 00 	lis     r4,256                                 
                const char*            name,                          
                int                    length,                        
                rtems_rfs_ino          parent,                        
                rtems_rfs_ino          target,                        
                bool                   link_dir)                      
{                                                                     
ffc1efdc:	7c bc 2b 78 	mr      r28,r5                                 
ffc1efe0:	7c da 33 78 	mr      r26,r6                                 
ffc1efe4:	7c fd 3b 78 	mr      r29,r7                                 
ffc1efe8:	7d 19 43 78 	mr      r25,r8                                 
  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))                         
ffc1efec:	4b ff 52 5d 	bl      ffc14248 <rtems_rfs_trace>             
ffc1eff0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1eff4:	41 be 00 48 	beq+    cr7,ffc1f03c <rtems_rfs_link+0x80>     <== ALWAYS TAKEN
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: link: parent(%" PRIu32 ") -> ", parent);      
ffc1eff8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1effc:	38 63 5a db 	addi    r3,r3,23259                            <== NOT EXECUTED
ffc1f000:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc1f004:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1f008:	48 00 3b 69 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
    for (c = 0; c < length; c++)                                      
ffc1f00c:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
ffc1f010:	48 00 00 10 	b       ffc1f020 <rtems_rfs_link+0x64>         <== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc1f014:	7c 7b f0 ae 	lbzx    r3,r27,r30                             <== 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++)                                      
ffc1f018:	3b de 00 01 	addi    r30,r30,1                              <== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc1f01c:	48 00 3d e1 	bl      ffc22dfc <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++)                                      
ffc1f020:	7f 9e e0 00 	cmpw    cr7,r30,r28                            <== NOT EXECUTED
ffc1f024:	41 9c ff f0 	blt+    cr7,ffc1f014 <rtems_rfs_link+0x58>     <== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf ("(%" PRIu32 ")\n", target);                               
ffc1f028:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f02c:	38 63 5b 20 	addi    r3,r3,23328                            <== NOT EXECUTED
ffc1f030:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc1f034:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1f038:	48 00 3b 39 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, target, &target_inode, true);        
ffc1f03c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1f040:	7f a4 eb 78 	mr      r4,r29                                 
ffc1f044:	38 a1 00 08 	addi    r5,r1,8                                
ffc1f048:	38 c0 00 01 	li      r6,1                                   
ffc1f04c:	4b ff 37 9d 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc1f050:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1f054:	40 82 01 14 	bne-    ffc1f168 <rtems_rfs_link+0x1ac>        <== 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)))
ffc1f058:	2f 99 00 00 	cmpwi   cr7,r25,0                              
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc1f05c:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  /*                                                                  
   * 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)))
ffc1f060:	40 9e 00 28 	bne-    cr7,ffc1f088 <rtems_rfs_link+0xcc>     <== NEVER TAKEN
ffc1f064:	81 21 00 14 	lwz     r9,20(r1)                              
ffc1f068:	89 29 00 02 	lbz     r9,2(r9)                               
ffc1f06c:	55 29 44 26 	rlwinm  r9,r9,8,16,19                          
ffc1f070:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
ffc1f074:	40 be 00 14 	bne+    cr7,ffc1f088 <rtems_rfs_link+0xcc>     <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc1f078:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc1f07c:	4b ff 39 61 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
    return ENOTSUP;                                                   
ffc1f080:	3b c0 00 86 	li      r30,134                                <== NOT EXECUTED
ffc1f084:	48 00 00 e4 	b       ffc1f168 <rtems_rfs_link+0x1ac>        <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);        
ffc1f088:	7f 44 d3 78 	mr      r4,r26                                 
ffc1f08c:	38 a1 00 30 	addi    r5,r1,48                               
ffc1f090:	38 c0 00 01 	li      r6,1                                   
ffc1f094:	4b ff 37 55 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc1f098:	7c 7e 1b 79 	mr.     r30,r3                                 
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc1f09c:	7f e3 fb 78 	mr      r3,r31                                 
    rtems_rfs_inode_close (fs, &target_inode);                        
    return ENOTSUP;                                                   
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);        
  if (rc)                                                             
ffc1f0a0:	41 a2 00 08 	beq+    ffc1f0a8 <rtems_rfs_link+0xec>         <== ALWAYS TAKEN
ffc1f0a4:	48 00 00 30 	b       ffc1f0d4 <rtems_rfs_link+0x118>        <== NOT EXECUTED
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, target);
ffc1f0a8:	38 81 00 30 	addi    r4,r1,48                               
ffc1f0ac:	7f 65 db 78 	mr      r5,r27                                 
ffc1f0b0:	7f 86 e3 78 	mr      r6,r28                                 
ffc1f0b4:	7f a7 eb 78 	mr      r7,r29                                 
ffc1f0b8:	4b ff da 75 	bl      ffc1cb2c <rtems_rfs_dir_add_entry>     
  if (rc > 0)                                                         
ffc1f0bc:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1f0c0:	40 81 00 20 	ble-    ffc1f0e0 <rtems_rfs_link+0x124>        <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &parent_inode);                        
ffc1f0c4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f0c8:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc1f0cc:	4b ff 39 11 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc1f0d0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f0d4:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc1f0d8:	4b ff 39 05 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
ffc1f0dc:	48 00 00 8c 	b       ffc1f168 <rtems_rfs_link+0x1ac>        <== NOT EXECUTED
    return rc;                                                        
  }                                                                   
                                                                      
  links = rtems_rfs_inode_get_links (&target_inode) + 1;              
ffc1f0e0:	81 21 00 14 	lwz     r9,20(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);                  
ffc1f0e4:	89 49 00 00 	lbz     r10,0(r9)                              
ffc1f0e8:	89 09 00 01 	lbz     r8,1(r9)                               
ffc1f0ec:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc1f0f0:	7d 4a 43 78 	or      r10,r10,r8                             
  if (links == 0xffff)                                                
ffc1f0f4:	6d 48 ff ff 	xoris   r8,r10,65535                           
ffc1f0f8:	2f 88 ff ff 	cmpwi   cr7,r8,-1                              
ffc1f0fc:	40 9e 00 08 	bne-    cr7,ffc1f104 <rtems_rfs_link+0x148>    <== ALWAYS TAKEN
    links = 0;                                                        
ffc1f100:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc1f104:	39 4a 00 01 	addi    r10,r10,1                              
ffc1f108:	55 4a 04 3e 	clrlwi  r10,r10,16                             
 * @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);                  
ffc1f10c:	55 48 c2 3e 	rlwinm  r8,r10,24,8,31                         
ffc1f110:	99 09 00 00 	stb     r8,0(r9)                               
  rtems_rfs_inode_set_links (&target_inode, links);                   
                                                                      
  rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);    
ffc1f114:	38 80 00 01 	li      r4,1                                   
ffc1f118:	38 61 00 30 	addi    r3,r1,48                               
ffc1f11c:	81 21 00 14 	lwz     r9,20(r1)                              
ffc1f120:	38 a0 00 01 	li      r5,1                                   
ffc1f124:	99 49 00 01 	stb     r10,1(r9)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1f128:	39 20 00 01 	li      r9,1                                   
ffc1f12c:	99 21 00 18 	stb     r9,24(r1)                              
ffc1f130:	4b ff 3a 3d 	bl      ffc12b6c <rtems_rfs_inode_time_stamp_now>
  if (rc > 0)                                                         
ffc1f134:	7c 7e 1b 79 	mr.     r30,r3                                 
  {                                                                   
    rtems_rfs_inode_close (fs, &parent_inode);                        
ffc1f138:	38 81 00 30 	addi    r4,r1,48                               
ffc1f13c:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  links = rtems_rfs_inode_get_links (&target_inode) + 1;              
  rtems_rfs_inode_set_links (&target_inode, links);                   
                                                                      
  rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);    
  if (rc > 0)                                                         
ffc1f140:	40 81 00 08 	ble-    ffc1f148 <rtems_rfs_link+0x18c>        <== ALWAYS TAKEN
ffc1f144:	4b ff ff 88 	b       ffc1f0cc <rtems_rfs_link+0x110>        <== 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);                     
ffc1f148:	4b ff 38 95 	bl      ffc129dc <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc1f14c:	38 81 00 08 	addi    r4,r1,8                                
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &parent_inode);                     
  if (rc > 0)                                                         
ffc1f150:	7c 7e 1b 79 	mr.     r30,r3                                 
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc1f154:	7f e3 fb 78 	mr      r3,r31                                 
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &parent_inode);                     
  if (rc > 0)                                                         
ffc1f158:	40 81 00 08 	ble-    ffc1f160 <rtems_rfs_link+0x1a4>        <== ALWAYS TAKEN
ffc1f15c:	4b ff ff 7c 	b       ffc1f0d8 <rtems_rfs_link+0x11c>        <== NOT EXECUTED
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &target_inode);                     
ffc1f160:	4b ff 38 7d 	bl      ffc129dc <rtems_rfs_inode_close>       
ffc1f164:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  return rc;                                                          
}                                                                     
ffc1f168:	39 61 00 78 	addi    r11,r1,120                             
ffc1f16c:	7f c3 f3 78 	mr      r3,r30                                 
ffc1f170:	4b fe 23 e4 	b       ffc01554 <_restgpr_25_x>               
                                                                      

ffc1f994 <rtems_rfs_mutex_create>: RTEMS_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL) #endif int rtems_rfs_mutex_create (rtems_rfs_mutex* mutex) {
ffc1f994:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1f998:	7c 08 02 a6 	mflr    r0                                     
ffc1f99c:	7c 67 1b 78 	mr      r7,r3                                  
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_create (rtems_build_name ('R', 'F', 'S', 'm'), 
ffc1f9a0:	3c 60 52 46 	lis     r3,21062                               
   RTEMS_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)  
#endif                                                                
                                                                      
int                                                                   
rtems_rfs_mutex_create (rtems_rfs_mutex* mutex)                       
{                                                                     
ffc1f9a4:	bf c1 00 08 	stmw    r30,8(r1)                              
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_create (rtems_build_name ('R', 'F', 'S', 'm'), 
ffc1f9a8:	60 63 53 6d 	ori     r3,r3,21357                            
ffc1f9ac:	38 80 00 01 	li      r4,1                                   
   RTEMS_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)  
#endif                                                                
                                                                      
int                                                                   
rtems_rfs_mutex_create (rtems_rfs_mutex* mutex)                       
{                                                                     
ffc1f9b0:	90 01 00 14 	stw     r0,20(r1)                              
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_create (rtems_build_name ('R', 'F', 'S', 'm'), 
ffc1f9b4:	38 a0 00 54 	li      r5,84                                  
ffc1f9b8:	38 c0 00 00 	li      r6,0                                   
ffc1f9bc:	4b fe dc a5 	bl      ffc0d660 <rtems_semaphore_create>      
      printf ("rtems-rfs: mutex: open failed: %s\n",                  
              rtems_status_text (sc));                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
ffc1f9c0:	3b e0 00 00 	li      r31,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)                                         
ffc1f9c4:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1f9c8:	41 a2 00 3c 	beq+    ffc1fa04 <rtems_rfs_mutex_create+0x70> <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc1f9cc:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1f9d0:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc1f9d4:	4b ff 48 75 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: mutex: open failed: %s\n",                  
              rtems_status_text (sc));                                
    return EIO;                                                       
ffc1f9d8:	3b e0 00 05 	li      r31,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))                      
ffc1f9dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1f9e0:	41 be 00 24 	beq+    cr7,ffc1fa04 <rtems_rfs_mutex_create+0x70><== NOT EXECUTED
      printf ("rtems-rfs: mutex: open failed: %s\n",                  
ffc1f9e4:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1f9e8:	4b ff 7f 55 	bl      ffc1793c <rtems_status_text>           <== NOT EXECUTED
ffc1f9ec:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc1f9f0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f9f4:	38 63 5c f9 	addi    r3,r3,23801                            <== NOT EXECUTED
ffc1f9f8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1f9fc:	48 00 31 75 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1fa00:	48 00 00 04 	b       ffc1fa04 <rtems_rfs_mutex_create+0x70> <== NOT EXECUTED
              rtems_status_text (sc));                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
}                                                                     
ffc1fa04:	39 61 00 10 	addi    r11,r1,16                              
ffc1fa08:	7f e3 fb 78 	mr      r3,r31                                 
ffc1fa0c:	4b fe 1b 5c 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc1fa10 <rtems_rfs_mutex_destroy>: int rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex) {
ffc1fa10:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1fa14:	7c 08 02 a6 	mflr    r0                                     
ffc1fa18:	90 01 00 14 	stw     r0,20(r1)                              
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_delete (*mutex);                               
ffc1fa1c:	80 63 00 00 	lwz     r3,0(r3)                               
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex)                      
{                                                                     
ffc1fa20:	bf c1 00 08 	stmw    r30,8(r1)                              
      printf ("rtems-rfs: mutex: close failed: %s\n",                 
              rtems_status_text (sc));                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
ffc1fa24:	3b e0 00 00 	li      r31,0                                  
int                                                                   
rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex)                      
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_delete (*mutex);                               
ffc1fa28:	4b fe de 01 	bl      ffc0d828 <rtems_semaphore_delete>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc1fa2c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1fa30:	41 a2 00 3c 	beq+    ffc1fa6c <rtems_rfs_mutex_destroy+0x5c><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc1fa34:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1fa38:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc1fa3c:	4b ff 48 0d 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: mutex: close failed: %s\n",                 
              rtems_status_text (sc));                                
    return EIO;                                                       
ffc1fa40:	3b e0 00 05 	li      r31,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))                      
ffc1fa44:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1fa48:	41 be 00 24 	beq+    cr7,ffc1fa6c <rtems_rfs_mutex_destroy+0x5c><== NOT EXECUTED
      printf ("rtems-rfs: mutex: close failed: %s\n",                 
ffc1fa4c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1fa50:	4b ff 7e ed 	bl      ffc1793c <rtems_status_text>           <== NOT EXECUTED
ffc1fa54:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc1fa58:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1fa5c:	38 63 5d 1c 	addi    r3,r3,23836                            <== NOT EXECUTED
ffc1fa60:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1fa64:	48 00 31 0d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1fa68:	48 00 00 04 	b       ffc1fa6c <rtems_rfs_mutex_destroy+0x5c><== NOT EXECUTED
              rtems_status_text (sc));                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
}                                                                     
ffc1fa6c:	39 61 00 10 	addi    r11,r1,16                              
ffc1fa70:	7f e3 fb 78 	mr      r3,r31                                 
ffc1fa74:	4b fe 1a f4 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc1ff4c <rtems_rfs_mutex_lock.isra.0>: * @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)
ffc1ff4c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1ff50:	7c 08 02 a6 	mflr    r0                                     
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc1ff54:	38 80 00 00 	li      r4,0                                   
ffc1ff58:	38 a0 00 00 	li      r5,0                                   
 * @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)                         
ffc1ff5c:	bf c1 00 08 	stmw    r30,8(r1)                              
              rtems_status_text (sc));                                
#endif                                                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
ffc1ff60:	3b e0 00 00 	li      r31,0                                  
 * @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)                         
ffc1ff64:	90 01 00 14 	stw     r0,20(r1)                              
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc1ff68:	4b fe d9 7d 	bl      ffc0d8e4 <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc1ff6c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1ff70:	41 a2 00 3c 	beq+    ffc1ffac <rtems_rfs_mutex_lock.isra.0+0x60><== ALWAYS TAKEN
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc1ff74:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1ff78:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc1ff7c:	4b ff 42 cd 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
              rtems_status_text (sc));                                
#endif                                                                
    return EIO;                                                       
ffc1ff80:	3b e0 00 05 	li      r31,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))                      
ffc1ff84:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1ff88:	41 be 00 24 	beq+    cr7,ffc1ffac <rtems_rfs_mutex_lock.isra.0+0x60><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc1ff8c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1ff90:	4b ff 79 ad 	bl      ffc1793c <rtems_status_text>           <== NOT EXECUTED
ffc1ff94:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc1ff98:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1ff9c:	38 63 3e 2a 	addi    r3,r3,15914                            <== NOT EXECUTED
ffc1ffa0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1ffa4:	48 00 2b cd 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1ffa8:	48 00 00 04 	b       ffc1ffac <rtems_rfs_mutex_lock.isra.0+0x60><== NOT EXECUTED
#endif                                                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
}                                                                     
ffc1ffac:	39 61 00 10 	addi    r11,r1,16                              
ffc1ffb0:	7f e3 fb 78 	mr      r3,r31                                 
ffc1ffb4:	4b fe 15 b4 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc1fc90 <rtems_rfs_mutex_lock.isra.1>: * @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)
ffc1fc90:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1fc94:	7c 08 02 a6 	mflr    r0                                     
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc1fc98:	38 80 00 00 	li      r4,0                                   
ffc1fc9c:	38 a0 00 00 	li      r5,0                                   
 * @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)                         
ffc1fca0:	bf c1 00 08 	stmw    r30,8(r1)                              
              rtems_status_text (sc));                                
#endif                                                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
ffc1fca4:	3b e0 00 00 	li      r31,0                                  
 * @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)                         
ffc1fca8:	90 01 00 14 	stw     r0,20(r1)                              
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc1fcac:	4b fe dc 39 	bl      ffc0d8e4 <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc1fcb0:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1fcb4:	41 a2 00 3c 	beq+    ffc1fcf0 <rtems_rfs_mutex_lock.isra.1+0x60><== ALWAYS TAKEN
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc1fcb8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1fcbc:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc1fcc0:	4b ff 45 89 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
              rtems_status_text (sc));                                
#endif                                                                
    return EIO;                                                       
ffc1fcc4:	3b e0 00 05 	li      r31,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))                      
ffc1fcc8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1fccc:	41 be 00 24 	beq+    cr7,ffc1fcf0 <rtems_rfs_mutex_lock.isra.1+0x60><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc1fcd0:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1fcd4:	4b ff 7c 69 	bl      ffc1793c <rtems_status_text>           <== NOT EXECUTED
ffc1fcd8:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc1fcdc:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1fce0:	38 63 3e 2a 	addi    r3,r3,15914                            <== NOT EXECUTED
ffc1fce4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1fce8:	48 00 2e 89 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1fcec:	48 00 00 04 	b       ffc1fcf0 <rtems_rfs_mutex_lock.isra.1+0x60><== NOT EXECUTED
#endif                                                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
}                                                                     
ffc1fcf0:	39 61 00 10 	addi    r11,r1,16                              
ffc1fcf4:	7f e3 fb 78 	mr      r3,r31                                 
ffc1fcf8:	4b fe 18 70 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc13c98 <rtems_rfs_mutex_lock.isra.20>: * @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)
ffc13c98:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc13c9c:	7c 08 02 a6 	mflr    r0                                     
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc13ca0:	38 80 00 00 	li      r4,0                                   
ffc13ca4:	38 a0 00 00 	li      r5,0                                   
 * @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)                         
ffc13ca8:	bf c1 00 08 	stmw    r30,8(r1)                              
              rtems_status_text (sc));                                
#endif                                                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
ffc13cac:	3b e0 00 00 	li      r31,0                                  
 * @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)                         
ffc13cb0:	90 01 00 14 	stw     r0,20(r1)                              
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc13cb4:	4b ff 9c 31 	bl      ffc0d8e4 <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc13cb8:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc13cbc:	41 a2 00 3c 	beq+    ffc13cf8 <rtems_rfs_mutex_lock.isra.20+0x60><== ALWAYS TAKEN
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc13cc0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc13cc4:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc13cc8:	48 00 05 81 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
              rtems_status_text (sc));                                
#endif                                                                
    return EIO;                                                       
ffc13ccc:	3b e0 00 05 	li      r31,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))                      
ffc13cd0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc13cd4:	41 be 00 24 	beq+    cr7,ffc13cf8 <rtems_rfs_mutex_lock.isra.20+0x60><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc13cd8:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc13cdc:	48 00 3c 61 	bl      ffc1793c <rtems_status_text>           <== NOT EXECUTED
ffc13ce0:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc13ce4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc13ce8:	38 63 3e 2a 	addi    r3,r3,15914                            <== NOT EXECUTED
ffc13cec:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc13cf0:	48 00 ee 81 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc13cf4:	48 00 00 04 	b       ffc13cf8 <rtems_rfs_mutex_lock.isra.20+0x60><== NOT EXECUTED
#endif                                                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
}                                                                     
ffc13cf8:	39 61 00 10 	addi    r11,r1,16                              
ffc13cfc:	7f e3 fb 78 	mr      r3,r31                                 
ffc13d00:	4b fe d8 68 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc202e0 <rtems_rfs_mutex_lock.isra.6>: * @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)
ffc202e0:	94 21 ff f0 	stwu    r1,-16(r1)                             <== NOT EXECUTED
ffc202e4:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc202e8:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc202ec:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
 * @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)                         
ffc202f0:	bf c1 00 08 	stmw    r30,8(r1)                              <== NOT EXECUTED
              rtems_status_text (sc));                                
#endif                                                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
ffc202f4:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
 * @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)                         
ffc202f8:	90 01 00 14 	stw     r0,20(r1)                              <== NOT EXECUTED
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc202fc:	4b fe 7f 39 	bl      ffc08234 <rtems_semaphore_obtain>      <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc20300:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc20304:	41 a2 00 3c 	beq+    ffc20340 <rtems_rfs_mutex_lock.isra.6+0x60><== NOT EXECUTED
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc20308:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc2030c:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc20310:	48 00 11 95 	bl      ffc214a4 <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
              rtems_status_text (sc));                                
#endif                                                                
    return EIO;                                                       
ffc20314:	3b e0 00 05 	li      r31,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))                      
ffc20318:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc2031c:	41 be 00 24 	beq+    cr7,ffc20340 <rtems_rfs_mutex_lock.isra.6+0x60><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc20320:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc20324:	48 00 3f d5 	bl      ffc242f8 <rtems_status_text>           <== NOT EXECUTED
ffc20328:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc2032c:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc20330:	38 63 89 7c 	addi    r3,r3,-30340                           <== NOT EXECUTED
ffc20334:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc20338:	48 01 c7 8d 	bl      ffc3cac4 <printf>                      <== NOT EXECUTED
ffc2033c:	48 00 00 04 	b       ffc20340 <rtems_rfs_mutex_lock.isra.6+0x60><== NOT EXECUTED
#endif                                                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
}                                                                     
ffc20340:	39 61 00 10 	addi    r11,r1,16                              <== NOT EXECUTED
ffc20344:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc20348:	48 03 34 b0 	b       ffc537f8 <_restgpr_30_x>               <== NOT EXECUTED
                                                                      

ffc13c34 <rtems_rfs_mutex_unlock.isra.19>: * @param mutex The mutex to unlock. * @retval true The mutex is unlocked. * @retval false The mutex could not be unlocked. */ static inline int rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
ffc13c34:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc13c38:	7c 08 02 a6 	mflr    r0                                     
ffc13c3c:	bf c1 00 08 	stmw    r30,8(r1)                              
              rtems_status_text (sc));                                
#endif                                                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
ffc13c40:	3b e0 00 00 	li      r31,0                                  
 * @param mutex The mutex to unlock.                                  
 * @retval true The mutex is unlocked.                                
 * @retval false The mutex could not be unlocked.                     
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)                       
ffc13c44:	90 01 00 14 	stw     r0,20(r1)                              
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_release (*mutex);            
ffc13c48:	4b ff 9d c1 	bl      ffc0da08 <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc13c4c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc13c50:	41 a2 00 3c 	beq+    ffc13c8c <rtems_rfs_mutex_unlock.isra.19+0x58><== ALWAYS TAKEN
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc13c54:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc13c58:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc13c5c:	48 00 05 ed 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
              rtems_status_text (sc));                                
#endif                                                                
    return EIO;                                                       
ffc13c60:	3b e0 00 05 	li      r31,5                                  <== NOT EXECUTED
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_release (*mutex);            
  if (sc != RTEMS_SUCCESSFUL)                                         
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc13c64:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc13c68:	41 be 00 24 	beq+    cr7,ffc13c8c <rtems_rfs_mutex_unlock.isra.19+0x58><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc13c6c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc13c70:	48 00 3c cd 	bl      ffc1793c <rtems_status_text>           <== NOT EXECUTED
ffc13c74:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc13c78:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc13c7c:	38 63 3e 04 	addi    r3,r3,15876                            <== NOT EXECUTED
ffc13c80:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc13c84:	48 00 ee ed 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc13c88:	48 00 00 04 	b       ffc13c8c <rtems_rfs_mutex_unlock.isra.19+0x58><== NOT EXECUTED
#endif                                                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
}                                                                     
ffc13c8c:	39 61 00 10 	addi    r11,r1,16                              
ffc13c90:	7f e3 fb 78 	mr      r3,r31                                 
ffc13c94:	4b fe d8 d4 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc1bb40 <rtems_rfs_release_chain>: static int rtems_rfs_release_chain (rtems_chain_control* chain, uint32_t* count, bool modified) {
ffc1bb40:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1bb44:	7c 08 02 a6 	mflr    r0                                     
ffc1bb48:	bf 41 00 08 	stmw    r26,8(r1)                              
ffc1bb4c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1bb50:	7c 9e 23 78 	mr      r30,r4                                 
  rtems_rfs_buffer* buffer;                                           
  int               rrc = 0;                                          
  int               rc;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
ffc1bb54:	38 60 00 00 	li      r3,0                                   
                                                                      
static int                                                            
rtems_rfs_release_chain (rtems_chain_control* chain,                  
                         uint32_t*            count,                  
                         bool                 modified)               
{                                                                     
ffc1bb58:	90 01 00 24 	stw     r0,36(r1)                              
  rtems_rfs_buffer* buffer;                                           
  int               rrc = 0;                                          
  int               rc;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
ffc1bb5c:	38 80 00 80 	li      r4,128                                 
                                                                      
static int                                                            
rtems_rfs_release_chain (rtems_chain_control* chain,                  
                         uint32_t*            count,                  
                         bool                 modified)               
{                                                                     
ffc1bb60:	7c bc 2b 78 	mr      r28,r5                                 
  rtems_rfs_buffer* buffer;                                           
  int               rrc = 0;                                          
  int               rc;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
ffc1bb64:	4b ff 86 e5 	bl      ffc14248 <rtems_rfs_trace>             
ffc1bb68:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1bb6c:	41 be 00 18 	beq+    cr7,ffc1bb84 <rtems_rfs_release_chain+0x44><== ALWAYS TAKEN
    printf ("rtems-rfs: release-chain: count=%" PRIu32 "\n", *count); 
ffc1bb70:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1bb74:	80 9e 00 00 	lwz     r4,0(r30)                              <== NOT EXECUTED
ffc1bb78:	38 63 49 14 	addi    r3,r3,18708                            <== NOT EXECUTED
ffc1bb7c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1bb80:	48 00 6f f1 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
    (*count)--;                                                       
                                                                      
    buffer->user = (void*) 0;                                         
                                                                      
    rc = rtems_rfs_buffer_io_release (buffer, modified);              
    if ((rc > 0) && (rrc == 0))                                       
ffc1bb84:	3b a0 00 00 	li      r29,0                                  
ffc1bb88:	3b 5f 00 04 	addi    r26,r31,4                              
  while (!rtems_chain_is_empty (chain))                               
  {                                                                   
    buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);             
    (*count)--;                                                       
                                                                      
    buffer->user = (void*) 0;                                         
ffc1bb8c:	3b 60 00 00 	li      r27,0                                  
ffc1bb90:	48 00 00 38 	b       ffc1bbc8 <rtems_rfs_release_chain+0x88>
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
ffc1bb94:	7f e3 fb 78 	mr      r3,r31                                 
ffc1bb98:	4b ff 28 41 	bl      ffc0e3d8 <_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)--;                                                       
ffc1bb9c:	81 3e 00 00 	lwz     r9,0(r30)                              
                                                                      
    buffer->user = (void*) 0;                                         
                                                                      
    rc = rtems_rfs_buffer_io_release (buffer, modified);              
ffc1bba0:	7f 84 e3 78 	mr      r4,r28                                 
    printf ("rtems-rfs: release-chain: count=%" PRIu32 "\n", *count); 
                                                                      
  while (!rtems_chain_is_empty (chain))                               
  {                                                                   
    buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);             
    (*count)--;                                                       
ffc1bba4:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1bba8:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
    buffer->user = (void*) 0;                                         
ffc1bbac:	93 63 00 34 	stw     r27,52(r3)                             
                                                                      
    rc = rtems_rfs_buffer_io_release (buffer, modified);              
ffc1bbb0:	48 00 52 49 	bl      ffc20df8 <rtems_rfs_buffer_bdbuf_release>
    if ((rc > 0) && (rrc == 0))                                       
ffc1bbb4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1bbb8:	40 81 00 10 	ble-    ffc1bbc8 <rtems_rfs_release_chain+0x88><== ALWAYS TAKEN
ffc1bbbc:	2f 9d 00 00 	cmpwi   cr7,r29,0                              <== NOT EXECUTED
ffc1bbc0:	40 9e 00 08 	bne-    cr7,ffc1bbc8 <rtems_rfs_release_chain+0x88><== NOT EXECUTED
ffc1bbc4:	7c 7d 1b 78 	mr      r29,r3                                 <== 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))                               
ffc1bbc8:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc1bbcc:	7f 89 d0 00 	cmpw    cr7,r9,r26                             
ffc1bbd0:	40 9e ff c4 	bne+    cr7,ffc1bb94 <rtems_rfs_release_chain+0x54>
    rc = rtems_rfs_buffer_io_release (buffer, modified);              
    if ((rc > 0) && (rrc == 0))                                       
      rrc = rc;                                                       
  }                                                                   
  return rrc;                                                         
}                                                                     
ffc1bbd4:	39 61 00 20 	addi    r11,r1,32                              
ffc1bbd8:	7f a3 eb 78 	mr      r3,r29                                 
ffc1bbdc:	4b fe 59 7c 	b       ffc01558 <_restgpr_26_x>               
                                                                      

ffc1357c <rtems_rfs_rtems_chown>: static int rtems_rfs_rtems_chown (const rtems_filesystem_location_info_t *pathloc, uid_t owner, gid_t group) {
ffc1357c:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc13580:	7c 08 02 a6 	mflr    r0                                     
ffc13584:	7c 69 1b 78 	mr      r9,r3                                  
ffc13588:	90 01 00 4c 	stw     r0,76(r1)                              
                                                                      
  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);                  
ffc1358c:	38 c0 00 01 	li      r6,1                                   
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);  
ffc13590:	81 43 00 14 	lwz     r10,20(r3)                             
                                                                      
static int                                                            
rtems_rfs_rtems_chown (const rtems_filesystem_location_info_t *pathloc,
                       uid_t                                   owner, 
                       gid_t                                   group) 
{                                                                     
ffc13594:	bf 81 00 38 	stmw    r28,56(r1)                             
ffc13598:	7c 9e 23 78 	mr      r30,r4                                 
ffc1359c:	7c bd 2b 78 	mr      r29,r5                                 
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
ffc135a0:	83 ea 00 08 	lwz     r31,8(r10)                             
                                                                      
  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);                  
ffc135a4:	38 a1 00 08 	addi    r5,r1,8                                
ffc135a8:	80 89 00 08 	lwz     r4,8(r9)                               
ffc135ac:	7f e3 fb 78 	mr      r3,r31                                 
ffc135b0:	4b ff f2 39 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc135b4:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc135b8:	40 81 00 10 	ble-    ffc135c8 <rtems_rfs_rtems_chown+0x4c>  <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("chown: opening inode", rc);        
ffc135bc:	48 00 dc 11 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc135c0:	93 83 00 00 	stw     r28,0(r3)                              <== NOT EXECUTED
ffc135c4:	48 00 00 60 	b       ffc13624 <rtems_rfs_rtems_chown+0xa8>  <== 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);
ffc135c8:	57 a5 80 1e 	rlwinm  r5,r29,16,0,15                         
ffc135cc:	81 21 00 14 	lwz     r9,20(r1)                              
ffc135d0:	7c a5 f3 78 	or      r5,r5,r30                              
ffc135d4:	54 aa 46 3e 	rlwinm  r10,r5,8,24,31                         
ffc135d8:	99 49 00 04 	stb     r10,4(r9)                              
ffc135dc:	54 aa 84 3e 	rlwinm  r10,r5,16,16,31                        
ffc135e0:	54 a5 c2 3e 	rlwinm  r5,r5,24,8,31                          
ffc135e4:	81 21 00 14 	lwz     r9,20(r1)                              
  }                                                                   
#endif                                                                
                                                                      
  rtems_rfs_inode_set_uid_gid (&inode, owner, group);                 
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc135e8:	7f e3 fb 78 	mr      r3,r31                                 
ffc135ec:	38 81 00 08 	addi    r4,r1,8                                
ffc135f0:	99 49 00 05 	stb     r10,5(r9)                              
ffc135f4:	81 21 00 14 	lwz     r9,20(r1)                              
ffc135f8:	98 a9 00 06 	stb     r5,6(r9)                               
ffc135fc:	81 21 00 14 	lwz     r9,20(r1)                              
ffc13600:	9b c9 00 07 	stb     r30,7(r9)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc13604:	39 20 00 01 	li      r9,1                                   
ffc13608:	99 21 00 18 	stb     r9,24(r1)                              
ffc1360c:	4b ff f3 d1 	bl      ffc129dc <rtems_rfs_inode_close>       
  if (rc)                                                             
ffc13610:	7c 7f 1b 79 	mr.     r31,r3                                 
  {                                                                   
    return rtems_rfs_rtems_error ("chown: closing inode", rc);        
  }                                                                   
                                                                      
  return 0;                                                           
ffc13614:	39 20 00 00 	li      r9,0                                   
#endif                                                                
                                                                      
  rtems_rfs_inode_set_uid_gid (&inode, owner, group);                 
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc)                                                             
ffc13618:	41 a2 00 10 	beq+    ffc13628 <rtems_rfs_rtems_chown+0xac>  <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("chown: closing inode", rc);        
ffc1361c:	48 00 db b1 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc13620:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc13624:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc13628:	39 61 00 48 	addi    r11,r1,72                              
ffc1362c:	7d 23 4b 78 	mr      r3,r9                                  
ffc13630:	4b fe df 30 	b       ffc01560 <_restgpr_28_x>               
                                                                      

ffc1faa4 <rtems_rfs_rtems_device_close>: 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);
ffc1faa4:	80 83 00 2c 	lwz     r4,44(r3)                              <== NOT EXECUTED
ffc1faa8:	80 a3 00 30 	lwz     r5,48(r3)                              <== NOT EXECUTED
ffc1faac:	48 00 0e a4 	b       ffc20950 <rtems_deviceio_close>        <== NOT EXECUTED
                                                                      

ffc1fa78 <rtems_rfs_rtems_device_ftruncate>: static int rtems_rfs_rtems_device_ftruncate (rtems_libio_t* iop, off_t length) { return 0; }
ffc1fa78:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1fa7c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc1fa80 <rtems_rfs_rtems_device_ioctl>: 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);
ffc1fa80:	80 c3 00 2c 	lwz     r6,44(r3)                              <== NOT EXECUTED
ffc1fa84:	80 e3 00 30 	lwz     r7,48(r3)                              <== NOT EXECUTED
ffc1fa88:	48 00 10 28 	b       ffc20ab0 <rtems_deviceio_control>      <== NOT EXECUTED
                                                                      

ffc1fb60 <rtems_rfs_rtems_device_open>: static int rtems_rfs_rtems_device_open ( rtems_libio_t *iop, const char *pathname, int oflag, mode_t mode) {
ffc1fb60:	94 21 ff a8 	stwu    r1,-88(r1)                             <== NOT EXECUTED
ffc1fb64:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc1fb68:	90 01 00 5c 	stw     r0,92(r1)                              <== NOT EXECUTED
  rtems_rfs_file_system*        fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc1fb6c:	81 23 00 28 	lwz     r9,40(r3)                              <== NOT EXECUTED
static int                                                            
rtems_rfs_rtems_device_open ( rtems_libio_t *iop,                     
                              const char    *pathname,                
                              int            oflag,                   
                              mode_t         mode)                    
{                                                                     
ffc1fb70:	bf 01 00 38 	stmw    r24,56(r1)                             <== NOT EXECUTED
ffc1fb74:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
ffc1fb78:	7c 99 23 78 	mr      r25,r4                                 <== NOT EXECUTED
  rtems_rfs_file_system*        fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc1fb7c:	83 e9 00 08 	lwz     r31,8(r9)                              <== NOT EXECUTED
static int                                                            
rtems_rfs_rtems_device_open ( rtems_libio_t *iop,                     
                              const char    *pathname,                
                              int            oflag,                   
                              mode_t         mode)                    
{                                                                     
ffc1fb80:	7c ba 2b 78 	mr      r26,r5                                 <== 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);
ffc1fb84:	83 a3 00 1c 	lwz     r29,28(r3)                             <== 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);
ffc1fb88:	38 80 00 00 	li      r4,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                       
};                                                                    
ffc1fb8c:	81 3f 00 80 	lwz     r9,128(r31)                            <== NOT EXECUTED
ffc1fb90:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
static int                                                            
rtems_rfs_rtems_device_open ( rtems_libio_t *iop,                     
                              const char    *pathname,                
                              int            oflag,                   
                              mode_t         mode)                    
{                                                                     
ffc1fb94:	7c db 33 78 	mr      r27,r6                                 <== NOT EXECUTED
ffc1fb98:	80 69 00 00 	lwz     r3,0(r9)                               <== NOT EXECUTED
ffc1fb9c:	4b fe dd 49 	bl      ffc0d8e4 <rtems_semaphore_obtain>      <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc1fba0:	7c 7c 1b 79 	mr.     r28,r3                                 <== NOT EXECUTED
ffc1fba4:	41 a2 00 34 	beq+    ffc1fbd8 <rtems_rfs_rtems_device_open+0x78><== NOT EXECUTED
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc1fba8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1fbac:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc1fbb0:	4b ff 46 99 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1fbb4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1fbb8:	41 be 00 20 	beq+    cr7,ffc1fbd8 <rtems_rfs_rtems_device_open+0x78><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc1fbbc:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc1fbc0:	4b ff 7d 7d 	bl      ffc1793c <rtems_status_text>           <== NOT EXECUTED
ffc1fbc4:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc1fbc8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1fbcc:	38 63 3e 2a 	addi    r3,r3,15914                            <== NOT EXECUTED
ffc1fbd0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1fbd4:	48 00 2f 9d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
  rtems_device_minor_number     minor;                                
  int                           rc;                                   
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc1fbd8:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc1fbdc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1fbe0:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc1fbe4:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc1fbe8:	4b ff 2c 01 	bl      ffc127e8 <rtems_rfs_inode_open>        <== NOT EXECUTED
  if (rc > 0)                                                         
ffc1fbec:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc1fbf0:	40 81 00 18 	ble-    ffc1fc08 <rtems_rfs_rtems_device_open+0xa8><== NOT EXECUTED
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
ffc1fbf4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1fbf8:	4b ff fe f5 	bl      ffc1faec <rtems_rfs_rtems_unlock>      <== NOT EXECUTED
    return rtems_rfs_rtems_error ("device_open: opening inode", rc);  
ffc1fbfc:	48 00 15 d1 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1fc00:	93 a3 00 00 	stw     r29,0(r3)                              <== NOT EXECUTED
ffc1fc04:	48 00 00 4c 	b       ffc1fc50 <rtems_rfs_rtems_device_open+0xf0><== NOT EXECUTED
  }                                                                   
                                                                      
  major = rtems_rfs_inode_get_block (&inode, 0);                      
ffc1fc08:	83 81 00 14 	lwz     r28,20(r1)                             <== NOT EXECUTED
ffc1fc0c:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1fc10:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc1fc14:	4b ff fe 9d 	bl      ffc1fab0 <rtems_rfs_inode_get_block.isra.0><== NOT EXECUTED
  minor = rtems_rfs_inode_get_block (&inode, 1);                      
ffc1fc18:	38 80 00 01 	li      r4,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);                      
ffc1fc1c:	7c 7d 1b 78 	mr      r29,r3                                 <== NOT EXECUTED
  minor = rtems_rfs_inode_get_block (&inode, 1);                      
ffc1fc20:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc1fc24:	4b ff fe 8d 	bl      ffc1fab0 <rtems_rfs_inode_get_block.isra.0><== NOT EXECUTED
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc1fc28:	38 81 00 08 	addi    r4,r1,8                                <== 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);                      
ffc1fc2c:	7c 7c 1b 78 	mr      r28,r3                                 <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc1fc30:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1fc34:	4b ff 2d a9 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
  if (rc > 0)                                                         
ffc1fc38:	7c 78 1b 79 	mr.     r24,r3                                 <== NOT EXECUTED
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
ffc1fc3c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
                                                                      
  major = rtems_rfs_inode_get_block (&inode, 0);                      
  minor = rtems_rfs_inode_get_block (&inode, 1);                      
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc > 0)                                                         
ffc1fc40:	40 81 00 18 	ble-    ffc1fc58 <rtems_rfs_rtems_device_open+0xf8><== NOT EXECUTED
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
ffc1fc44:	4b ff fe a9 	bl      ffc1faec <rtems_rfs_rtems_unlock>      <== NOT EXECUTED
    return rtems_rfs_rtems_error ("device_open: closing inode", rc);  
ffc1fc48:	48 00 15 85 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1fc4c:	93 03 00 00 	stw     r24,0(r3)                              <== NOT EXECUTED
ffc1fc50:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1fc54:	48 00 00 2c 	b       ffc1fc80 <rtems_rfs_rtems_device_open+0x120><== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
ffc1fc58:	4b ff fe 95 	bl      ffc1faec <rtems_rfs_rtems_unlock>      <== NOT EXECUTED
                                                                      
  iop->data0 = major;                                                 
ffc1fc5c:	93 be 00 2c 	stw     r29,44(r30)                            <== NOT EXECUTED
  iop->data1 = (void *) minor;                                        
                                                                      
  return rtems_deviceio_open (iop, pathname, oflag, mode, minor, major);
ffc1fc60:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
                                                                      
  iop->data0 = major;                                                 
  iop->data1 = (void *) minor;                                        
ffc1fc64:	93 9e 00 30 	stw     r28,48(r30)                            <== NOT EXECUTED
                                                                      
  return rtems_deviceio_open (iop, pathname, oflag, mode, minor, major);
ffc1fc68:	7f 24 cb 78 	mr      r4,r25                                 <== NOT EXECUTED
ffc1fc6c:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc1fc70:	7f 66 db 78 	mr      r6,r27                                 <== NOT EXECUTED
ffc1fc74:	7f 87 e3 78 	mr      r7,r28                                 <== NOT EXECUTED
ffc1fc78:	7f a8 eb 78 	mr      r8,r29                                 <== NOT EXECUTED
ffc1fc7c:	48 00 0c 95 	bl      ffc20910 <rtems_deviceio_open>         <== NOT EXECUTED
}                                                                     
ffc1fc80:	39 61 00 58 	addi    r11,r1,88                              <== NOT EXECUTED
ffc1fc84:	4b fe 18 cc 	b       ffc01550 <_restgpr_24_x>               <== NOT EXECUTED
                                                                      

ffc1fa98 <rtems_rfs_rtems_device_read>: 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);
ffc1fa98:	80 c3 00 2c 	lwz     r6,44(r3)                              <== NOT EXECUTED
ffc1fa9c:	80 e3 00 30 	lwz     r7,48(r3)                              <== NOT EXECUTED
ffc1faa0:	48 00 0e f0 	b       ffc20990 <rtems_deviceio_read>         <== NOT EXECUTED
                                                                      

ffc1fa8c <rtems_rfs_rtems_device_write>: 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);
ffc1fa8c:	80 c3 00 2c 	lwz     r6,44(r3)                              <== NOT EXECUTED
ffc1fa90:	80 e3 00 30 	lwz     r7,48(r3)                              <== NOT EXECUTED
ffc1fa94:	48 00 0f 8c 	b       ffc20a20 <rtems_deviceio_write>        <== NOT EXECUTED
                                                                      

ffc1fe84 <rtems_rfs_rtems_dir_open>: static int rtems_rfs_rtems_dir_open (rtems_libio_t* iop, const char* pathname, int oflag, mode_t mode) {
ffc1fe84:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc1fe88:	7c 08 02 a6 	mflr    r0                                     
ffc1fe8c:	90 01 00 4c 	stw     r0,76(r1)                              
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc1fe90:	81 23 00 28 	lwz     r9,40(r3)                              
static int                                                            
rtems_rfs_rtems_dir_open (rtems_libio_t* iop,                         
                          const char*    pathname,                    
                          int            oflag,                       
                          mode_t         mode)                        
{                                                                     
ffc1fe94:	bf a1 00 3c 	stmw    r29,60(r1)                             
ffc1fe98:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc1fe9c:	83 e9 00 08 	lwz     r31,8(r9)                              
  rtems_rfs_ino          ino = rtems_rfs_rtems_get_iop_ino (iop);     
ffc1fea0:	83 a3 00 1c 	lwz     r29,28(r3)                             
  .fstat_h     = rtems_rfs_rtems_fstat,                               
  .ftruncate_h = rtems_filesystem_default_ftruncate_directory,        
  .fsync_h     = rtems_filesystem_default_fsync_or_fdatasync,         
  .fdatasync_h = rtems_rfs_rtems_fdatasync,                           
  .fcntl_h     = rtems_filesystem_default_fcntl                       
};                                                                    
ffc1fea4:	81 3f 00 80 	lwz     r9,128(r31)                            
ffc1fea8:	80 69 00 00 	lwz     r3,0(r9)                               
ffc1feac:	4b ff fd e5 	bl      ffc1fc90 <rtems_rfs_mutex_lock.isra.1> 
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc1feb0:	7f a4 eb 78 	mr      r4,r29                                 
ffc1feb4:	7f e3 fb 78 	mr      r3,r31                                 
ffc1feb8:	38 a1 00 08 	addi    r5,r1,8                                
ffc1febc:	38 c0 00 01 	li      r6,1                                   
ffc1fec0:	4b ff 29 29 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc1fec4:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc1fec8:	41 a2 00 18 	beq+    ffc1fee0 <rtems_rfs_rtems_dir_open+0x5c><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
ffc1fecc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1fed0:	4b ff fe 2d 	bl      ffc1fcfc <rtems_rfs_rtems_unlock>      <== NOT EXECUTED
    return rtems_rfs_rtems_error ("dir_open: opening inode", rc);     
ffc1fed4:	48 00 12 f9 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1fed8:	93 a3 00 00 	stw     r29,0(r3)                              <== NOT EXECUTED
ffc1fedc:	48 00 00 38 	b       ffc1ff14 <rtems_rfs_rtems_dir_open+0x90><== 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);                    
ffc1fee0:	81 21 00 14 	lwz     r9,20(r1)                              
ffc1fee4:	89 29 00 02 	lbz     r9,2(r9)                               
  }                                                                   
                                                                      
  if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))         
ffc1fee8:	55 29 44 26 	rlwinm  r9,r9,8,16,19                          
ffc1feec:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
ffc1fef0:	41 be 00 2c 	beq+    cr7,ffc1ff1c <rtems_rfs_rtems_dir_open+0x98><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
ffc1fef4:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc1fef8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1fefc:	4b ff 2a e1 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
    rtems_rfs_rtems_unlock (fs);                                      
ffc1ff00:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1ff04:	4b ff fd f9 	bl      ffc1fcfc <rtems_rfs_rtems_unlock>      <== NOT EXECUTED
    return rtems_rfs_rtems_error ("dir_open: not dir", ENOTDIR);      
ffc1ff08:	48 00 12 c5 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1ff0c:	39 20 00 14 	li      r9,20                                  <== NOT EXECUTED
ffc1ff10:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1ff14:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1ff18:	48 00 00 2c 	b       ffc1ff44 <rtems_rfs_rtems_dir_open+0xc0><== NOT EXECUTED
  }                                                                   
                                                                      
  iop->offset = 0;                                                    
ffc1ff1c:	39 40 00 00 	li      r10,0                                  
ffc1ff20:	39 60 00 00 	li      r11,0                                  
ffc1ff24:	91 5e 00 08 	stw     r10,8(r30)                             
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
ffc1ff28:	38 81 00 08 	addi    r4,r1,8                                
    rtems_rfs_inode_close (fs, &inode);                               
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("dir_open: not dir", ENOTDIR);      
  }                                                                   
                                                                      
  iop->offset = 0;                                                    
ffc1ff2c:	91 7e 00 0c 	stw     r11,12(r30)                            
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
ffc1ff30:	7f e3 fb 78 	mr      r3,r31                                 
ffc1ff34:	4b ff 2a a9 	bl      ffc129dc <rtems_rfs_inode_close>       
  rtems_rfs_rtems_unlock (fs);                                        
ffc1ff38:	7f e3 fb 78 	mr      r3,r31                                 
ffc1ff3c:	4b ff fd c1 	bl      ffc1fcfc <rtems_rfs_rtems_unlock>      
  return 0;                                                           
ffc1ff40:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1ff44:	39 61 00 48 	addi    r11,r1,72                              
ffc1ff48:	4b fe 16 1c 	b       ffc01564 <_restgpr_29_x>               
                                                                      

ffc1fd70 <rtems_rfs_rtems_dir_read>: */ static ssize_t rtems_rfs_rtems_dir_read (rtems_libio_t* iop, void* buffer, size_t count) {
ffc1fd70:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc1fd74:	7c 08 02 a6 	mflr    r0                                     
ffc1fd78:	90 01 00 64 	stw     r0,100(r1)                             
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc1fd7c:	81 23 00 28 	lwz     r9,40(r3)                              
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,                         
                          void*          buffer,                      
                          size_t         count)                       
{                                                                     
ffc1fd80:	be c1 00 38 	stmw    r22,56(r1)                             
ffc1fd84:	7c 7c 1b 78 	mr      r28,r3                                 
ffc1fd88:	7c 98 23 78 	mr      r24,r4                                 
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc1fd8c:	83 a9 00 08 	lwz     r29,8(r9)                              
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,                         
                          void*          buffer,                      
                          size_t         count)                       
{                                                                     
ffc1fd90:	7c bb 2b 78 	mr      r27,r5                                 
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
  rtems_rfs_ino          ino = rtems_rfs_rtems_get_iop_ino (iop);     
ffc1fd94:	83 43 00 1c 	lwz     r26,28(r3)                             
  .fstat_h     = rtems_rfs_rtems_fstat,                               
  .ftruncate_h = rtems_filesystem_default_ftruncate_directory,        
  .fsync_h     = rtems_filesystem_default_fsync_or_fdatasync,         
  .fdatasync_h = rtems_rfs_rtems_fdatasync,                           
  .fcntl_h     = rtems_filesystem_default_fcntl                       
};                                                                    
ffc1fd98:	81 3d 00 80 	lwz     r9,128(r29)                            
 */                                                                   
static inline void                                                    
 rtems_rfs_rtems_lock (rtems_rfs_file_system* fs)                     
{                                                                     
  rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);            
  rtems_rfs_mutex_lock (&rtems->access);                              
ffc1fd9c:	80 69 00 00 	lwz     r3,0(r9)                               
ffc1fda0:	4b ff fe f1 	bl      ffc1fc90 <rtems_rfs_mutex_lock.isra.1> 
  count  = count / sizeof (struct dirent);                            
  dirent = buffer;                                                    
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc1fda4:	7f 44 d3 78 	mr      r4,r26                                 
ffc1fda8:	3b 41 00 08 	addi    r26,r1,8                               
ffc1fdac:	7f a3 eb 78 	mr      r3,r29                                 
ffc1fdb0:	7f 45 d3 78 	mr      r5,r26                                 
ffc1fdb4:	38 c0 00 01 	li      r6,1                                   
ffc1fdb8:	4b ff 2a 31 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc1fdbc:	7c 79 1b 79 	mr.     r25,r3                                 
ffc1fdc0:	41 a2 00 80 	beq+    ffc1fe40 <rtems_rfs_rtems_dir_read+0xd0><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
ffc1fdc4:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc1fdc8:	4b ff ff 35 	bl      ffc1fcfc <rtems_rfs_rtems_unlock>      <== NOT EXECUTED
    return rtems_rfs_rtems_error ("dir_read: read inode", rc);        
ffc1fdcc:	3b 40 ff ff 	li      r26,-1                                 <== NOT EXECUTED
ffc1fdd0:	48 00 13 fd 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1fdd4:	93 23 00 00 	stw     r25,0(r3)                              <== NOT EXECUTED
ffc1fdd8:	48 00 00 a0 	b       ffc1fe78 <rtems_rfs_rtems_dir_read+0x108><== 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); 
ffc1fddc:	80 bc 00 08 	lwz     r5,8(r28)                              
ffc1fde0:	7f a3 eb 78 	mr      r3,r29                                 
ffc1fde4:	80 dc 00 0c 	lwz     r6,12(r28)                             
ffc1fde8:	7e c4 b3 78 	mr      r4,r22                                 
ffc1fdec:	39 01 00 30 	addi    r8,r1,48                               
ffc1fdf0:	4b ff d4 cd 	bl      ffc1d2bc <rtems_rfs_dir_read>          
    if (rc == ENOENT)                                                 
ffc1fdf4:	2f 83 00 02 	cmpwi   cr7,r3,2                               
  bytes_transferred = 0;                                              
                                                                      
  for (d = 0; d < count; d++, dirent++)                               
  {                                                                   
    size_t size;                                                      
    rc = rtems_rfs_dir_read (fs, &inode, iop->offset, dirent, &size); 
ffc1fdf8:	7c 79 1b 78 	mr      r25,r3                                 
    if (rc == ENOENT)                                                 
ffc1fdfc:	41 9e 00 68 	beq-    cr7,ffc1fe64 <rtems_rfs_rtems_dir_read+0xf4>
    {                                                                 
      rc = 0;                                                         
      break;                                                          
    }                                                                 
    if (rc > 0)                                                       
ffc1fe00:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1fe04:	40 bd 00 14 	ble+    cr7,ffc1fe18 <rtems_rfs_rtems_dir_read+0xa8><== ALWAYS TAKEN
    {                                                                 
      bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
ffc1fe08:	48 00 13 c5 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1fe0c:	3b 40 ff ff 	li      r26,-1                                 <== NOT EXECUTED
ffc1fe10:	93 23 00 00 	stw     r25,0(r3)                              <== NOT EXECUTED
ffc1fe14:	48 00 00 50 	b       ffc1fe64 <rtems_rfs_rtems_dir_read+0xf4><== NOT EXECUTED
      break;                                                          
    }                                                                 
    iop->offset += size;                                              
ffc1fe18:	81 5c 00 08 	lwz     r10,8(r28)                             
ffc1fe1c:	3b c0 00 00 	li      r30,0                                  
ffc1fe20:	81 7c 00 0c 	lwz     r11,12(r28)                            
    return rtems_rfs_rtems_error ("dir_read: read inode", rc);        
  }                                                                   
                                                                      
  bytes_transferred = 0;                                              
                                                                      
  for (d = 0; d < count; d++, dirent++)                               
ffc1fe24:	3b 7b 00 01 	addi    r27,r27,1                              
    if (rc > 0)                                                       
    {                                                                 
      bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
      break;                                                          
    }                                                                 
    iop->offset += size;                                              
ffc1fe28:	83 e1 00 30 	lwz     r31,48(r1)                             
ffc1fe2c:	7d 6b f8 14 	addc    r11,r11,r31                            
ffc1fe30:	7d 4a f1 14 	adde    r10,r10,r30                            
ffc1fe34:	91 5c 00 08 	stw     r10,8(r28)                             
ffc1fe38:	91 7c 00 0c 	stw     r11,12(r28)                            
ffc1fe3c:	48 00 00 14 	b       ffc1fe50 <rtems_rfs_rtems_dir_read+0xe0>
  struct dirent*         dirent;                                      
  ssize_t                bytes_transferred;                           
  int                    d;                                           
  int                    rc;                                          
                                                                      
  count  = count / sizeof (struct dirent);                            
ffc1fe40:	3a e0 01 18 	li      r23,280                                
ffc1fe44:	7e fb bb 96 	divwu   r23,r27,r23                            
  bytes_transferred = 0;                                              
                                                                      
  for (d = 0; d < count; d++, dirent++)                               
  {                                                                   
    size_t size;                                                      
    rc = rtems_rfs_dir_read (fs, &inode, iop->offset, dirent, &size); 
ffc1fe48:	7f 56 d3 78 	mr      r22,r26                                
 * 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,                         
ffc1fe4c:	3b 60 00 00 	li      r27,0                                  
    return rtems_rfs_rtems_error ("dir_read: read inode", rc);        
  }                                                                   
                                                                      
  bytes_transferred = 0;                                              
                                                                      
  for (d = 0; d < count; d++, dirent++)                               
ffc1fe50:	7f 9b b8 00 	cmpw    cr7,r27,r23                            
 * 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,                         
ffc1fe54:	1d 3b 01 18 	mulli   r9,r27,280                             
ffc1fe58:	7c f8 4a 14 	add     r7,r24,r9                              
ffc1fe5c:	7d 3a 4b 78 	mr      r26,r9                                 
    return rtems_rfs_rtems_error ("dir_read: read inode", rc);        
  }                                                                   
                                                                      
  bytes_transferred = 0;                                              
                                                                      
  for (d = 0; d < count; d++, dirent++)                               
ffc1fe60:	40 9e ff 7c 	bne+    cr7,ffc1fddc <rtems_rfs_rtems_dir_read+0x6c>
    }                                                                 
    iop->offset += size;                                              
    bytes_transferred += sizeof (struct dirent);                      
  }                                                                   
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
ffc1fe64:	7f a3 eb 78 	mr      r3,r29                                 
ffc1fe68:	38 81 00 08 	addi    r4,r1,8                                
ffc1fe6c:	4b ff 2b 71 	bl      ffc129dc <rtems_rfs_inode_close>       
  rtems_rfs_rtems_unlock (fs);                                        
ffc1fe70:	7f a3 eb 78 	mr      r3,r29                                 
ffc1fe74:	4b ff fe 89 	bl      ffc1fcfc <rtems_rfs_rtems_unlock>      
                                                                      
  return bytes_transferred;                                           
}                                                                     
ffc1fe78:	39 61 00 60 	addi    r11,r1,96                              
ffc1fe7c:	7f 43 d3 78 	mr      r3,r26                                 
ffc1fe80:	4b fe 16 c8 	b       ffc01548 <_restgpr_22_x>               
                                                                      

ffc13884 <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) {
ffc13884:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc13888:	7c 08 02 a6 	mflr    r0                                     
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (currentloc);
  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);                  
ffc1388c:	38 c0 00 01 	li      r6,1                                   
  .eval_token = rtems_rfs_rtems_eval_token                            
};                                                                    
                                                                      
static void                                                           
rtems_rfs_rtems_eval_path (rtems_filesystem_eval_path_context_t *ctx) 
{                                                                     
ffc13890:	90 01 00 4c 	stw     r0,76(r1)                              
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (currentloc);
  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);                  
ffc13894:	38 a1 00 08 	addi    r5,r1,8                                
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);
ffc13898:	81 23 00 2c 	lwz     r9,44(r3)                              
  .eval_token = rtems_rfs_rtems_eval_token                            
};                                                                    
                                                                      
static void                                                           
rtems_rfs_rtems_eval_path (rtems_filesystem_eval_path_context_t *ctx) 
{                                                                     
ffc1389c:	bf a1 00 3c 	stmw    r29,60(r1)                             
ffc138a0:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_filesystem_location_info_t *currentloc =                      
    rtems_filesystem_eval_path_get_currentloc (ctx);                  
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (currentloc);
ffc138a4:	83 c9 00 08 	lwz     r30,8(r9)                              
  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);                  
ffc138a8:	80 9f 00 20 	lwz     r4,32(r31)                             
ffc138ac:	7f c3 f3 78 	mr      r3,r30                                 
ffc138b0:	4b ff ef 39 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc == 0) {                                                      
ffc138b4:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc138b8:	40 82 00 38 	bne-    ffc138f0 <rtems_rfs_rtems_eval_path+0x6c><== NEVER TAKEN
    rtems_filesystem_eval_path_generic (                              
ffc138bc:	3c a0 ff c3 	lis     r5,-61                                 
ffc138c0:	7f e3 fb 78 	mr      r3,r31                                 
ffc138c4:	38 81 00 08 	addi    r4,r1,8                                
ffc138c8:	38 a5 3d 7c 	addi    r5,r5,15740                            
ffc138cc:	48 00 49 49 	bl      ffc18214 <rtems_filesystem_eval_path_generic>
      ctx,                                                            
      &inode,                                                         
      &rtems_rfs_rtems_eval_config                                    
    );                                                                
    rc = rtems_rfs_inode_close (fs, &inode);                          
ffc138d0:	7f c3 f3 78 	mr      r3,r30                                 
ffc138d4:	38 81 00 08 	addi    r4,r1,8                                
ffc138d8:	4b ff f1 05 	bl      ffc129dc <rtems_rfs_inode_close>       
    if (rc != 0) {                                                    
ffc138dc:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc138e0:	41 a2 00 24 	beq+    ffc13904 <rtems_rfs_rtems_eval_path+0x80><== ALWAYS TAKEN
      rtems_filesystem_eval_path_error (                              
        ctx,                                                          
        rtems_rfs_rtems_error ("eval_path: closing inode", rc)        
ffc138e4:	48 00 d8 e9 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc138e8:	93 c3 00 00 	stw     r30,0(r3)                              <== NOT EXECUTED
ffc138ec:	48 00 00 0c 	b       ffc138f8 <rtems_rfs_rtems_eval_path+0x74><== NOT EXECUTED
      );                                                              
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error (                                
      ctx,                                                            
      rtems_rfs_rtems_error ("eval_path: opening inode", rc)          
ffc138f0:	48 00 d8 dd 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc138f4:	93 a3 00 00 	stw     r29,0(r3)                              <== NOT EXECUTED
        ctx,                                                          
        rtems_rfs_rtems_error ("eval_path: closing inode", rc)        
      );                                                              
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error (                                
ffc138f8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc138fc:	38 80 ff ff 	li      r4,-1                                  <== NOT EXECUTED
ffc13900:	4b ff 69 95 	bl      ffc0a294 <rtems_filesystem_eval_path_error><== NOT EXECUTED
      ctx,                                                            
      rtems_rfs_rtems_error ("eval_path: opening inode", rc)          
    );                                                                
  }                                                                   
}                                                                     
ffc13904:	39 61 00 48 	addi    r11,r1,72                              
ffc13908:	4b fe dc 5c 	b       ffc01564 <_restgpr_29_x>               
                                                                      

ffc13ef0 <rtems_rfs_rtems_eval_token>: rtems_filesystem_eval_path_context_t *ctx, void *arg, const char *token, size_t tokenlen ) {
ffc13ef0:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc13ef4:	7c 08 02 a6 	mflr    r0                                     
ffc13ef8:	90 01 00 34 	stw     r0,52(r1)                              
ffc13efc:	bf 61 00 1c 	stmw    r27,28(r1)                             
ffc13f00:	7c bb 2b 78 	mr      r27,r5                                 
ffc13f04:	7c dc 33 78 	mr      r28,r6                                 
  /* FIXME: Return value? */                                          
  rtems_rfs_fs_close(fs);                                             
                                                                      
  rtems_rfs_mutex_destroy (&rtems->access);                           
  free (rtems);                                                       
}                                                                     
ffc13f08:	81 24 00 0c 	lwz     r9,12(r4)                              
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
ffc13f0c:	7c 9e 23 78 	mr      r30,r4                                 
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(                     
ffc13f10:	38 80 00 01 	li      r4,1                                   
 * @return uint16_t The user id (uid).                                
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_uid (rtems_rfs_inode_handle* handle)              
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->owner) & 0xffff;          
ffc13f14:	89 49 00 06 	lbz     r10,6(r9)                              
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
ffc13f18:	7c 7f 1b 78 	mr      r31,r3                                 
ffc13f1c:	88 c9 00 07 	lbz     r6,7(r9)                               
 * @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);                    
ffc13f20:	88 a9 00 02 	lbz     r5,2(r9)                               
 * @return uint16_t The user id (uid).                                
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_uid (rtems_rfs_inode_handle* handle)              
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->owner) & 0xffff;          
ffc13f24:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
 * @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);                    
ffc13f28:	89 09 00 03 	lbz     r8,3(r9)                               
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(                     
ffc13f2c:	7c c6 53 78 	or      r6,r6,r10                              
 * @return uint16_t The group id (gid).                               
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_gid (rtems_rfs_inode_handle* handle)              
{                                                                     
  return (rtems_rfs_read_u32 (&handle->node->owner) >> 16) & 0xffff;  
ffc13f30:	88 e9 00 04 	lbz     r7,4(r9)                               
 * @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);                    
ffc13f34:	54 a5 40 2e 	rlwinm  r5,r5,8,0,23                           
 * @return uint16_t The group id (gid).                               
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_gid (rtems_rfs_inode_handle* handle)              
{                                                                     
  return (rtems_rfs_read_u32 (&handle->node->owner) >> 16) & 0xffff;  
ffc13f38:	89 29 00 05 	lbz     r9,5(r9)                               
ffc13f3c:	7c a5 43 78 	or      r5,r5,r8                               
ffc13f40:	54 e7 c0 0e 	rlwinm  r7,r7,24,0,7                           
ffc13f44:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc13f48:	7c e7 4b 78 	or      r7,r7,r9                               
ffc13f4c:	54 e7 84 3e 	rlwinm  r7,r7,16,16,31                         
ffc13f50:	48 00 42 7d 	bl      ffc181cc <rtems_filesystem_eval_path_check_access>
  rtems_filesystem_eval_path_generic_status status =                  
    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) {                                                    
ffc13f54:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13f58:	41 9e 01 88 	beq-    cr7,ffc140e0 <rtems_rfs_rtems_eval_token+0x1f0><== NEVER TAKEN
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
ffc13f5c:	2f 9c 00 01 	cmpwi   cr7,r28,1                              
ffc13f60:	39 20 00 00 	li      r9,0                                   
ffc13f64:	40 be 00 14 	bne+    cr7,ffc13f78 <rtems_rfs_rtems_eval_token+0x88>
ffc13f68:	89 3b 00 00 	lbz     r9,0(r27)                              
ffc13f6c:	69 29 00 2e 	xori    r9,r9,46                               
ffc13f70:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc13f74:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
    if (rtems_filesystem_is_current_directory (token, tokenlen)) {    
ffc13f78:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc13f7c:	41 9e 00 10 	beq-    cr7,ffc13f8c <rtems_rfs_rtems_eval_token+0x9c>
                                                                      
static inline void rtems_filesystem_eval_path_clear_token(            
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  ctx->tokenlen = 0;                                                  
ffc13f80:	39 20 00 00 	li      r9,0                                   
ffc13f84:	91 3f 00 0c 	stw     r9,12(r31)                             
ffc13f88:	48 00 01 58 	b       ffc140e0 <rtems_rfs_rtems_eval_token+0x1f0>
      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);
ffc13f8c:	81 3f 00 2c 	lwz     r9,44(r31)                             
      rtems_rfs_ino entry_ino;                                        
      uint32_t entry_doff;                                            
      int rc = rtems_rfs_dir_lookup_ino (                             
ffc13f90:	7f c4 f3 78 	mr      r4,r30                                 
ffc13f94:	7f 65 db 78 	mr      r5,r27                                 
    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);
ffc13f98:	83 a9 00 08 	lwz     r29,8(r9)                              
      rtems_rfs_ino entry_ino;                                        
      uint32_t entry_doff;                                            
      int rc = rtems_rfs_dir_lookup_ino (                             
ffc13f9c:	7f 86 e3 78 	mr      r6,r28                                 
ffc13fa0:	38 e1 00 10 	addi    r7,r1,16                               
ffc13fa4:	7f a3 eb 78 	mr      r3,r29                                 
ffc13fa8:	39 01 00 0c 	addi    r8,r1,12                               
ffc13fac:	48 00 86 85 	bl      ffc1c630 <rtems_rfs_dir_lookup_ino>    
           * rtems_rfs_rtems_eval_path().                             
           */                                                         
          memset (inode, 0, sizeof(*inode));                          
        }                                                             
      } else {                                                        
        status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;         
ffc13fb0:	39 20 00 02 	li      r9,2                                   
        tokenlen,                                                     
        &entry_ino,                                                   
        &entry_doff                                                   
      );                                                              
                                                                      
      if (rc == 0) {                                                  
ffc13fb4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13fb8:	40 be 01 44 	bne+    cr7,ffc140fc <rtems_rfs_rtems_eval_token+0x20c>
        rc = rtems_rfs_inode_close (fs, inode);                       
ffc13fbc:	7f a3 eb 78 	mr      r3,r29                                 
ffc13fc0:	7f c4 f3 78 	mr      r4,r30                                 
ffc13fc4:	4b ff ea 19 	bl      ffc129dc <rtems_rfs_inode_close>       
        if (rc == 0) {                                                
ffc13fc8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc13fcc:	41 9e 00 18 	beq-    cr7,ffc13fe4 <rtems_rfs_rtems_eval_token+0xf4><== ALWAYS TAKEN
        if (rc != 0) {                                                
          /*                                                          
           * This prevents the rtems_rfs_inode_close() from doing something in
           * rtems_rfs_rtems_eval_path().                             
           */                                                         
          memset (inode, 0, sizeof(*inode));                          
ffc13fd0:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc13fd4:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc13fd8:	38 a0 00 28 	li      r5,40                                  <== NOT EXECUTED
ffc13fdc:	48 00 e9 39 	bl      ffc22914 <memset>                      <== NOT EXECUTED
ffc13fe0:	48 00 01 00 	b       ffc140e0 <rtems_rfs_rtems_eval_token+0x1f0><== NOT EXECUTED
      );                                                              
                                                                      
      if (rc == 0) {                                                  
        rc = rtems_rfs_inode_close (fs, inode);                       
        if (rc == 0) {                                                
          rc = rtems_rfs_inode_open (fs, entry_ino, inode, true);     
ffc13fe4:	80 81 00 10 	lwz     r4,16(r1)                              
ffc13fe8:	7f a3 eb 78 	mr      r3,r29                                 
ffc13fec:	7f c5 f3 78 	mr      r5,r30                                 
ffc13ff0:	38 c0 00 01 	li      r6,1                                   
ffc13ff4:	4b ff e7 f5 	bl      ffc127e8 <rtems_rfs_inode_open>        
        }                                                             
                                                                      
        if (rc != 0) {                                                
ffc13ff8:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc13ffc:	41 a2 00 a0 	beq+    ffc1409c <rtems_rfs_rtems_eval_token+0x1ac><== ALWAYS TAKEN
ffc14000:	4b ff ff d0 	b       ffc13fd0 <rtems_rfs_rtems_eval_token+0xe0><== NOT EXECUTED
        bool follow_sym_link = (eval_flags & RTEMS_FS_FOLLOW_SYM_LINK) != 0;
        bool terminal = !rtems_filesystem_eval_path_has_path (ctx);   
                                                                      
        rtems_filesystem_eval_path_clear_token (ctx);                 
                                                                      
        if (is_sym_link && (follow_sym_link || !terminal)) {          
ffc14004:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc14008:	40 9e 00 0c 	bne-    cr7,ffc14014 <rtems_rfs_rtems_eval_token+0x124>
ffc1400c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc14010:	40 9e 00 74 	bne-    cr7,ffc14084 <rtems_rfs_rtems_eval_token+0x194>
  rtems_filesystem_eval_path_context_t* ctx,                          
  rtems_rfs_file_system* fs,                                          
  rtems_rfs_ino ino                                                   
)                                                                     
{                                                                     
  size_t len = MAXPATHLEN;                                            
ffc14014:	39 20 04 00 	li      r9,1024                                
        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);           
ffc14018:	83 81 00 10 	lwz     r28,16(r1)                             
  rtems_rfs_file_system* fs,                                          
  rtems_rfs_ino ino                                                   
)                                                                     
{                                                                     
  size_t len = MAXPATHLEN;                                            
  char *link = malloc(len + 1);                                       
ffc1401c:	38 60 04 01 	li      r3,1025                                
  rtems_filesystem_eval_path_context_t* ctx,                          
  rtems_rfs_file_system* fs,                                          
  rtems_rfs_ino ino                                                   
)                                                                     
{                                                                     
  size_t len = MAXPATHLEN;                                            
ffc14020:	91 21 00 08 	stw     r9,8(r1)                               
  char *link = malloc(len + 1);                                       
ffc14024:	4b ff 51 b9 	bl      ffc091dc <malloc>                      
                                                                      
  if (link != NULL) {                                                 
ffc14028:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1402c:	41 82 00 4c 	beq-    ffc14078 <rtems_rfs_rtems_eval_token+0x188><== NEVER TAKEN
    int rc = rtems_rfs_symlink_read (fs, ino, link, len, &len);       
ffc14030:	7f a3 eb 78 	mr      r3,r29                                 
ffc14034:	7f 84 e3 78 	mr      r4,r28                                 
ffc14038:	7f c5 f3 78 	mr      r5,r30                                 
ffc1403c:	38 c0 04 00 	li      r6,1024                                
ffc14040:	38 e1 00 08 	addi    r7,r1,8                                
ffc14044:	48 00 b7 75 	bl      ffc1f7b8 <rtems_rfs_symlink_read>      
                                                                      
    if (rc == 0) {                                                    
ffc14048:	2f 83 00 00 	cmpwi   cr7,r3,0                               
      rtems_filesystem_eval_path_recursive (ctx, link, len);          
ffc1404c:	7f e3 fb 78 	mr      r3,r31                                 
  char *link = malloc(len + 1);                                       
                                                                      
  if (link != NULL) {                                                 
    int rc = rtems_rfs_symlink_read (fs, ino, link, len, &len);       
                                                                      
    if (rc == 0) {                                                    
ffc14050:	40 9e 00 14 	bne-    cr7,ffc14064 <rtems_rfs_rtems_eval_token+0x174><== NEVER TAKEN
      rtems_filesystem_eval_path_recursive (ctx, link, len);          
ffc14054:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc14058:	7f c4 f3 78 	mr      r4,r30                                 
ffc1405c:	4b ff 67 99 	bl      ffc0a7f4 <rtems_filesystem_eval_path_recursive>
ffc14060:	48 00 00 0c 	b       ffc1406c <rtems_rfs_rtems_eval_token+0x17c>
    } else {                                                          
      rtems_filesystem_eval_path_error (ctx, 0);                      
ffc14064:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc14068:	4b ff 62 2d 	bl      ffc0a294 <rtems_filesystem_eval_path_error><== NOT EXECUTED
    }                                                                 
                                                                      
    free(link);                                                       
ffc1406c:	7f c3 f3 78 	mr      r3,r30                                 
ffc14070:	4b ff 4a a5 	bl      ffc08b14 <free>                        
ffc14074:	48 00 00 6c 	b       ffc140e0 <rtems_rfs_rtems_eval_token+0x1f0>
  } else {                                                            
    rtems_filesystem_eval_path_error (ctx, ENOMEM);                   
ffc14078:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1407c:	38 80 00 0c 	li      r4,12                                  <== NOT EXECUTED
ffc14080:	48 00 00 5c 	b       ffc140dc <rtems_rfs_rtems_eval_token+0x1ec><== 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;
ffc14084:	38 7f 00 18 	addi    r3,r31,24                              
ffc14088:	7f c4 f3 78 	mr      r4,r30                                 
ffc1408c:	48 00 00 f9 	bl      ffc14184 <rtems_rfs_rtems_set_handlers>
ffc14090:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc14094:	40 9e 00 54 	bne-    cr7,ffc140e8 <rtems_rfs_rtems_eval_token+0x1f8><== ALWAYS TAKEN
ffc14098:	48 00 00 30 	b       ffc140c8 <rtems_rfs_rtems_eval_token+0x1d8><== NOT EXECUTED
        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) 
ffc1409c:	7f c3 f3 78 	mr      r3,r30                                 
ffc140a0:	4b ff f0 c5 	bl      ffc13164 <rtems_rfs_rtems_node_type_by_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);   
ffc140a4:	83 9f 00 04 	lwz     r28,4(r31)                             
                                                                      
        rtems_filesystem_eval_path_clear_token (ctx);                 
                                                                      
        if (is_sym_link && (follow_sym_link || !terminal)) {          
ffc140a8:	2f 83 00 03 	cmpwi   cr7,r3,3                               
                                                                      
      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;
ffc140ac:	81 3f 00 10 	lwz     r9,16(r31)                             
        bool terminal = !rtems_filesystem_eval_path_has_path (ctx);   
ffc140b0:	7f 9c 00 34 	cntlzw  r28,r28                                
ffc140b4:	93 7f 00 0c 	stw     r27,12(r31)                            
                                                                      
      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;
ffc140b8:	55 29 06 f6 	rlwinm  r9,r9,0,27,27                          
        bool terminal = !rtems_filesystem_eval_path_has_path (ctx);   
ffc140bc:	57 9c d9 7e 	rlwinm  r28,r28,27,5,31                        
                                                                      
        rtems_filesystem_eval_path_clear_token (ctx);                 
                                                                      
        if (is_sym_link && (follow_sym_link || !terminal)) {          
ffc140c0:	40 be ff c4 	bne-    cr7,ffc14084 <rtems_rfs_rtems_eval_token+0x194>
ffc140c4:	4b ff ff 40 	b       ffc14004 <rtems_rfs_rtems_eval_token+0x114>
              status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;   
            }                                                         
          } else {                                                    
            rtems_filesystem_eval_path_error (                        
              ctx,                                                    
              rtems_rfs_rtems_error ("eval_path: set handlers", rc)   
ffc140c8:	48 00 d1 05 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc140cc:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc140d0:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
                                                                      
            if (!terminal) {                                          
              status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;   
            }                                                         
          } else {                                                    
            rtems_filesystem_eval_path_error (                        
ffc140d4:	38 80 ff ff 	li      r4,-1                                  <== NOT EXECUTED
ffc140d8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc140dc:	4b ff 61 b9 	bl      ffc0a294 <rtems_filesystem_eval_path_error><== NOT EXECUTED
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
ffc140e0:	39 20 00 01 	li      r9,1                                   
ffc140e4:	48 00 00 18 	b       ffc140fc <rtems_rfs_rtems_eval_token+0x20c>
        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);  
ffc140e8:	81 21 00 10 	lwz     r9,16(r1)                              
ffc140ec:	91 3f 00 20 	stw     r9,32(r31)                             
            rtems_rfs_rtems_set_pathloc_doff (currentloc, entry_doff);
ffc140f0:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc140f4:	91 3f 00 24 	stw     r9,36(r31)                             
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
ffc140f8:	7f 89 e3 78 	mr      r9,r28                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc140fc:	39 61 00 30 	addi    r11,r1,48                              
ffc14100:	7d 23 4b 78 	mr      r3,r9                                  
ffc14104:	4b fe d4 58 	b       ffc0155c <_restgpr_27_x>               
                                                                      

ffc13634 <rtems_rfs_rtems_fchmod>: } static int rtems_rfs_rtems_fchmod (const rtems_filesystem_location_info_t* pathloc, mode_t mode) {
ffc13634:	94 21 ff b8 	stwu    r1,-72(r1)                             <== NOT EXECUTED
ffc13638:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc1363c:	7c 69 1b 78 	mr      r9,r3                                  <== NOT EXECUTED
ffc13640:	90 01 00 4c 	stw     r0,76(r1)                              <== 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);                  
ffc13644:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc13648:	38 c0 00 01 	li      r6,1                                   <== 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); 
ffc1364c:	81 43 00 14 	lwz     r10,20(r3)                             <== NOT EXECUTED
}                                                                     
                                                                      
static int                                                            
rtems_rfs_rtems_fchmod (const rtems_filesystem_location_info_t* pathloc,
                        mode_t                                  mode) 
{                                                                     
ffc13650:	bf a1 00 3c 	stmw    r29,60(r1)                             <== NOT EXECUTED
ffc13654:	7c 9e 23 78 	mr      r30,r4                                 <== NOT EXECUTED
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (pathloc); 
ffc13658:	83 ea 00 08 	lwz     r31,8(r10)                             <== 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);                  
ffc1365c:	80 89 00 08 	lwz     r4,8(r9)                               <== NOT EXECUTED
ffc13660:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc13664:	4b ff f1 85 	bl      ffc127e8 <rtems_rfs_inode_open>        <== NOT EXECUTED
  if (rc)                                                             
ffc13668:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc1366c:	41 82 00 10 	beq-    ffc1367c <rtems_rfs_rtems_fchmod+0x48> <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("fchmod: opening inode", rc);       
ffc13670:	48 00 db 5d 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc13674:	93 a3 00 00 	stw     r29,0(r3)                              <== NOT EXECUTED
ffc13678:	48 00 00 50 	b       ffc136c8 <rtems_rfs_rtems_fchmod+0x94> <== NOT EXECUTED
  }                                                                   
                                                                      
  imode = rtems_rfs_inode_get_mode (&inode);                          
ffc1367c:	81 21 00 14 	lwz     r9,20(r1)                              <== 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);
ffc13680:	57 de 05 3e 	clrlwi  r30,r30,20                             <== NOT EXECUTED
                                                                      
  rtems_rfs_inode_set_mode (&inode, imode);                           
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc13684:	7f e3 fb 78 	mr      r3,r31                                 <== 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);                    
ffc13688:	88 89 00 02 	lbz     r4,2(r9)                               <== 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);
ffc1368c:	54 84 44 26 	rlwinm  r4,r4,8,16,19                          <== NOT EXECUTED
  imode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
ffc13690:	7c 84 f3 78 	or      r4,r4,r30                              <== 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);                    
ffc13694:	54 8a c2 3e 	rlwinm  r10,r4,24,8,31                         <== NOT EXECUTED
ffc13698:	99 49 00 02 	stb     r10,2(r9)                              <== NOT EXECUTED
ffc1369c:	81 21 00 14 	lwz     r9,20(r1)                              <== NOT EXECUTED
ffc136a0:	98 89 00 03 	stb     r4,3(r9)                               <== NOT EXECUTED
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc136a4:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
                                                                      
  rtems_rfs_inode_set_mode (&inode, imode);                           
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc136a8:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc136ac:	99 21 00 18 	stb     r9,24(r1)                              <== NOT EXECUTED
ffc136b0:	4b ff f3 2d 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
  if (rc > 0)                                                         
ffc136b4:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("fchmod: closing inode", rc);       
  }                                                                   
                                                                      
  return 0;                                                           
ffc136b8:	39 20 00 00 	li      r9,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)                                                         
ffc136bc:	40 81 00 10 	ble-    ffc136cc <rtems_rfs_rtems_fchmod+0x98> <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("fchmod: closing inode", rc);       
ffc136c0:	48 00 db 0d 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc136c4:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc136c8:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc136cc:	39 61 00 48 	addi    r11,r1,72                              <== NOT EXECUTED
ffc136d0:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc136d4:	4b fe de 90 	b       ffc01564 <_restgpr_29_x>               <== NOT EXECUTED
                                                                      

ffc14140 <rtems_rfs_rtems_fdatasync>: * @param iop * @return int */ int rtems_rfs_rtems_fdatasync (rtems_libio_t* iop) {
ffc14140:	7c 2b 0b 78 	mr      r11,r1                                 <== NOT EXECUTED
ffc14144:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc14148:	94 21 ff f0 	stwu    r1,-16(r1)                             <== NOT EXECUTED
ffc1414c:	90 01 00 14 	stw     r0,20(r1)                              <== NOT EXECUTED
ffc14150:	4b fe d3 d1 	bl      ffc01520 <_savegpr_31>                 <== NOT EXECUTED
  int rc;                                                             
                                                                      
  rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
ffc14154:	81 23 00 28 	lwz     r9,40(r3)                              <== NOT EXECUTED
ffc14158:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc1415c:	48 00 81 a5 	bl      ffc1c300 <rtems_rfs_buffer_sync>       <== NOT EXECUTED
  if (rc)                                                             
ffc14160:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc14164:	41 a2 00 14 	beq+    ffc14178 <rtems_rfs_rtems_fdatasync+0x38><== NOT EXECUTED
    return rtems_rfs_rtems_error ("fdatasync: sync", rc);             
ffc14168:	48 00 d0 65 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1416c:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc14170:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc14174:	48 00 00 08 	b       ffc1417c <rtems_rfs_rtems_fdatasync+0x3c><== NOT EXECUTED
                                                                      
  return 0;                                                           
ffc14178:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
}                                                                     
ffc1417c:	39 61 00 10 	addi    r11,r1,16                              <== NOT EXECUTED
ffc14180:	4b fe d3 ec 	b       ffc0156c <_restgpr_31_x>               <== NOT EXECUTED
                                                                      

ffc20164 <rtems_rfs_rtems_file_close>: * @param iop * @return int */ static int rtems_rfs_rtems_file_close (rtems_libio_t* iop) {
ffc20164:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc20168:	7c 08 02 a6 	mflr    r0                                     
ffc2016c:	90 01 00 14 	stw     r0,20(r1)                              
ffc20170:	bf c1 00 08 	stmw    r30,8(r1)                              
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
ffc20174:	83 c3 00 20 	lwz     r30,32(r3)                             
  rtems_rfs_file_system* fs = rtems_rfs_file_fs (file);               
ffc20178:	81 3e 00 1c 	lwz     r9,28(r30)                             
ffc2017c:	83 e9 00 98 	lwz     r31,152(r9)                            
  .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                       
};                                                                    
ffc20180:	81 3f 00 80 	lwz     r9,128(r31)                            
ffc20184:	80 69 00 00 	lwz     r3,0(r9)                               
ffc20188:	4b ff fd c5 	bl      ffc1ff4c <rtems_rfs_mutex_lock.isra.0> 
  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);                                          
                                                                      
  rc = rtems_rfs_file_close (fs, file);                               
ffc2018c:	7f c4 f3 78 	mr      r4,r30                                 
ffc20190:	7f e3 fb 78 	mr      r3,r31                                 
ffc20194:	4b ff d6 d9 	bl      ffc1d86c <rtems_rfs_file_close>        
  if (rc > 0)                                                         
ffc20198:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc2019c:	40 81 00 10 	ble-    ffc201ac <rtems_rfs_rtems_file_close+0x48><== ALWAYS TAKEN
    rc = rtems_rfs_rtems_error ("file-close: file close", rc);        
ffc201a0:	48 00 10 2d 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc201a4:	93 c3 00 00 	stw     r30,0(r3)                              <== NOT EXECUTED
ffc201a8:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
ffc201ac:	7f e3 fb 78 	mr      r3,r31                                 
ffc201b0:	4b ff fe 09 	bl      ffc1ffb8 <rtems_rfs_rtems_unlock>      
  return rc;                                                          
}                                                                     
ffc201b4:	39 61 00 10 	addi    r11,r1,16                              
ffc201b8:	7f c3 f3 78 	mr      r3,r30                                 
ffc201bc:	4b fe 13 ac 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc20238 <rtems_rfs_rtems_file_ftruncate>: * @return int */ static int rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop, off_t length) {
ffc20238:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc2023c:	7c 08 02 a6 	mflr    r0                                     
ffc20240:	90 01 00 1c 	stw     r0,28(r1)                              
ffc20244:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc20248:	7c df 33 78 	mr      r31,r6                                 
ffc2024c:	7c be 2b 78 	mr      r30,r5                                 
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
ffc20250:	83 a3 00 20 	lwz     r29,32(r3)                             
  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));                    
ffc20254:	81 3d 00 1c 	lwz     r9,28(r29)                             
  .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                       
};                                                                    
ffc20258:	81 29 00 98 	lwz     r9,152(r9)                             
ffc2025c:	81 29 00 80 	lwz     r9,128(r9)                             
ffc20260:	80 69 00 00 	lwz     r3,0(r9)                               
ffc20264:	4b ff fc e9 	bl      ffc1ff4c <rtems_rfs_mutex_lock.isra.0> 
  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));                    
                                                                      
  rc = rtems_rfs_file_set_size (file, length);                        
ffc20268:	7f e6 fb 78 	mr      r6,r31                                 
ffc2026c:	7f a3 eb 78 	mr      r3,r29                                 
ffc20270:	7f c5 f3 78 	mr      r5,r30                                 
ffc20274:	4b ff de 81 	bl      ffc1e0f4 <rtems_rfs_file_set_size>     
  if (rc)                                                             
ffc20278:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc2027c:	41 a2 00 10 	beq+    ffc2028c <rtems_rfs_rtems_file_ftruncate+0x54><== ALWAYS TAKEN
    rc = rtems_rfs_rtems_error ("file_ftruncate: set size", rc);      
ffc20280:	48 00 0f 4d 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc20284:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc20288:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
ffc2028c:	81 3d 00 1c 	lwz     r9,28(r29)                             
ffc20290:	80 69 00 98 	lwz     r3,152(r9)                             
ffc20294:	4b ff fd 25 	bl      ffc1ffb8 <rtems_rfs_rtems_unlock>      
                                                                      
  return rc;                                                          
}                                                                     
ffc20298:	39 61 00 18 	addi    r11,r1,24                              
ffc2029c:	7f e3 fb 78 	mr      r3,r31                                 
ffc202a0:	4b fe 12 c4 	b       ffc01564 <_restgpr_29_x>               
                                                                      

ffc202a4 <rtems_rfs_rtems_file_lseek>: */ static off_t rtems_rfs_rtems_file_lseek (rtems_libio_t* iop, off_t offset, int whence) {
ffc202a4:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc202a8:	7c 08 02 a6 	mflr    r0                                     
ffc202ac:	90 01 00 44 	stw     r0,68(r1)                              
ffc202b0:	bf 21 00 24 	stmw    r25,36(r1)                             
ffc202b4:	7c 7b 1b 78 	mr      r27,r3                                 
ffc202b8:	7c df 33 78 	mr      r31,r6                                 
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
ffc202bc:	83 43 00 20 	lwz     r26,32(r3)                             
 */                                                                   
static off_t                                                          
rtems_rfs_rtems_file_lseek (rtems_libio_t* iop,                       
                            off_t          offset,                    
                            int            whence)                    
{                                                                     
ffc202c0:	7c be 2b 78 	mr      r30,r5                                 
  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));                    
ffc202c4:	81 3a 00 1c 	lwz     r9,28(r26)                             
  .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                       
};                                                                    
ffc202c8:	81 29 00 98 	lwz     r9,152(r9)                             
ffc202cc:	81 29 00 80 	lwz     r9,128(r9)                             
ffc202d0:	80 69 00 00 	lwz     r3,0(r9)                               
ffc202d4:	90 e1 00 18 	stw     r7,24(r1)                              
ffc202d8:	4b ff fc 75 	bl      ffc1ff4c <rtems_rfs_mutex_lock.isra.0> 
    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;                                           
  new_offset = rtems_filesystem_default_lseek_file (iop, offset, whence);
ffc202dc:	7f c5 f3 78 	mr      r5,r30                                 
ffc202e0:	80 e1 00 18 	lwz     r7,24(r1)                              
ffc202e4:	7f e6 fb 78 	mr      r6,r31                                 
ffc202e8:	7f 63 db 78 	mr      r3,r27                                 
  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;                                           
ffc202ec:	83 9b 00 08 	lwz     r28,8(r27)                             
ffc202f0:	83 bb 00 0c 	lwz     r29,12(r27)                            
  new_offset = rtems_filesystem_default_lseek_file (iop, offset, whence);
ffc202f4:	48 00 02 ed 	bl      ffc205e0 <rtems_filesystem_default_lseek_file>
ffc202f8:	7c 7e 1b 78 	mr      r30,r3                                 
  if (new_offset != -1)                                               
ffc202fc:	2f 9e ff ff 	cmpwi   cr7,r30,-1                             
    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;                                           
  new_offset = rtems_filesystem_default_lseek_file (iop, offset, whence);
ffc20300:	7c 9f 23 78 	mr      r31,r4                                 
  if (new_offset != -1)                                               
ffc20304:	40 be 00 0c 	bne+    cr7,ffc20310 <rtems_rfs_rtems_file_lseek+0x6c>
ffc20308:	2f 84 ff ff 	cmpwi   cr7,r4,-1                              
ffc2030c:	41 9e 00 40 	beq-    cr7,ffc2034c <rtems_rfs_rtems_file_lseek+0xa8><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_pos pos = iop->offset;                                  
ffc20310:	80 bb 00 08 	lwz     r5,8(r27)                              
ffc20314:	7c 27 0b 78 	mr      r7,r1                                  
ffc20318:	80 db 00 0c 	lwz     r6,12(r27)                             
    int           rc = rtems_rfs_file_seek (file, pos, &pos);         
ffc2031c:	7f 43 d3 78 	mr      r3,r26                                 
                                                                      
  old_offset = iop->offset;                                           
  new_offset = rtems_filesystem_default_lseek_file (iop, offset, whence);
  if (new_offset != -1)                                               
  {                                                                   
    rtems_rfs_pos pos = iop->offset;                                  
ffc20320:	94 a7 00 08 	stwu    r5,8(r7)                               
ffc20324:	90 c7 00 04 	stw     r6,4(r7)                               
    int           rc = rtems_rfs_file_seek (file, pos, &pos);         
ffc20328:	4b ff dc c9 	bl      ffc1dff0 <rtems_rfs_file_seek>         
                                                                      
    if (rc)                                                           
ffc2032c:	7c 79 1b 79 	mr.     r25,r3                                 
ffc20330:	41 a2 00 1c 	beq+    ffc2034c <rtems_rfs_rtems_file_lseek+0xa8><== ALWAYS TAKEN
    {                                                                 
      rtems_rfs_rtems_error ("file_lseek: lseek", rc);                
ffc20334:	48 00 0e 99 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
      iop->offset = old_offset;                                       
      new_offset = -1;                                                
ffc20338:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
    rtems_rfs_pos pos = iop->offset;                                  
    int           rc = rtems_rfs_file_seek (file, pos, &pos);         
                                                                      
    if (rc)                                                           
    {                                                                 
      rtems_rfs_rtems_error ("file_lseek: lseek", rc);                
ffc2033c:	93 23 00 00 	stw     r25,0(r3)                              <== NOT EXECUTED
      iop->offset = old_offset;                                       
      new_offset = -1;                                                
ffc20340:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
    int           rc = rtems_rfs_file_seek (file, pos, &pos);         
                                                                      
    if (rc)                                                           
    {                                                                 
      rtems_rfs_rtems_error ("file_lseek: lseek", rc);                
      iop->offset = old_offset;                                       
ffc20344:	93 9b 00 08 	stw     r28,8(r27)                             <== NOT EXECUTED
ffc20348:	93 bb 00 0c 	stw     r29,12(r27)                            <== NOT EXECUTED
      new_offset = -1;                                                
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
ffc2034c:	81 3a 00 1c 	lwz     r9,28(r26)                             
ffc20350:	80 69 00 98 	lwz     r3,152(r9)                             
ffc20354:	4b ff fc 65 	bl      ffc1ffb8 <rtems_rfs_rtems_unlock>      
                                                                      
  return new_offset;                                                  
}                                                                     
ffc20358:	39 61 00 40 	addi    r11,r1,64                              
ffc2035c:	7f c3 f3 78 	mr      r3,r30                                 
ffc20360:	7f e4 fb 78 	mr      r4,r31                                 
ffc20364:	4b fe 11 f0 	b       ffc01554 <_restgpr_25_x>               
                                                                      

ffc201c0 <rtems_rfs_rtems_file_open>: static int rtems_rfs_rtems_file_open (rtems_libio_t* iop, const char* pathname, int oflag, mode_t mode) {
ffc201c0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc201c4:	7c 08 02 a6 	mflr    r0                                     
ffc201c8:	90 01 00 2c 	stw     r0,44(r1)                              
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc201cc:	81 23 00 28 	lwz     r9,40(r3)                              
static int                                                            
rtems_rfs_rtems_file_open (rtems_libio_t* iop,                        
                           const char*    pathname,                   
                           int            oflag,                      
                           mode_t         mode)                       
{                                                                     
ffc201d0:	bf a1 00 1c 	stmw    r29,28(r1)                             
ffc201d4:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc201d8:	83 e9 00 08 	lwz     r31,8(r9)                              
  .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                       
};                                                                    
ffc201dc:	81 3f 00 80 	lwz     r9,128(r31)                            
ffc201e0:	80 69 00 00 	lwz     r3,0(r9)                               
ffc201e4:	4b ff fd 69 	bl      ffc1ff4c <rtems_rfs_mutex_lock.isra.0> 
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  ino = rtems_rfs_rtems_get_iop_ino (iop);                            
                                                                      
  rc = rtems_rfs_file_open (fs, ino, flags, &file);                   
ffc201e8:	80 9e 00 1c 	lwz     r4,28(r30)                             
ffc201ec:	7f e3 fb 78 	mr      r3,r31                                 
ffc201f0:	38 a0 00 00 	li      r5,0                                   
ffc201f4:	38 c1 00 08 	addi    r6,r1,8                                
ffc201f8:	4b ff e2 31 	bl      ffc1e428 <rtems_rfs_file_open>         
  if (rc > 0)                                                         
ffc201fc:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc20200:	40 81 00 1c 	ble-    ffc2021c <rtems_rfs_rtems_file_open+0x5c><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
ffc20204:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc20208:	4b ff fd b1 	bl      ffc1ffb8 <rtems_rfs_rtems_unlock>      <== NOT EXECUTED
    return rtems_rfs_rtems_error ("file-open: open", rc);             
ffc2020c:	48 00 0f c1 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc20210:	93 a3 00 00 	stw     r29,0(r3)                              <== NOT EXECUTED
ffc20214:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc20218:	48 00 00 18 	b       ffc20230 <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);                    
ffc2021c:	81 21 00 08 	lwz     r9,8(r1)                               
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
ffc20220:	7f e3 fb 78 	mr      r3,r31                                 
  }                                                                   
                                                                      
  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);                    
ffc20224:	91 3e 00 20 	stw     r9,32(r30)                             
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
ffc20228:	4b ff fd 91 	bl      ffc1ffb8 <rtems_rfs_rtems_unlock>      
  return 0;                                                           
ffc2022c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc20230:	39 61 00 28 	addi    r11,r1,40                              
ffc20234:	4b fe 13 30 	b       ffc01564 <_restgpr_29_x>               
                                                                      

ffc2002c <rtems_rfs_rtems_file_read>: */ static ssize_t rtems_rfs_rtems_file_read (rtems_libio_t* iop, void* buffer, size_t count) {
ffc2002c:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc20030:	7c 08 02 a6 	mflr    r0                                     
ffc20034:	90 01 00 3c 	stw     r0,60(r1)                              
ffc20038:	bf 01 00 18 	stmw    r24,24(r1)                             
ffc2003c:	7c 79 1b 78 	mr      r25,r3                                 
ffc20040:	7c 98 23 78 	mr      r24,r4                                 
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
ffc20044:	83 83 00 20 	lwz     r28,32(r3)                             
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_read (rtems_libio_t* iop,                        
                           void*          buffer,                     
                           size_t         count)                      
{                                                                     
ffc20048:	7c bb 2b 78 	mr      r27,r5                                 
  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));                    
ffc2004c:	81 3c 00 1c 	lwz     r9,28(r28)                             
  .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                       
};                                                                    
ffc20050:	81 29 00 98 	lwz     r9,152(r9)                             
ffc20054:	81 29 00 80 	lwz     r9,128(r9)                             
 */                                                                   
static inline void                                                    
 rtems_rfs_rtems_lock (rtems_rfs_file_system* fs)                     
{                                                                     
  rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);            
  rtems_rfs_mutex_lock (&rtems->access);                              
ffc20058:	80 69 00 00 	lwz     r3,0(r9)                               
ffc2005c:	4b ff fe f1 	bl      ffc1ff4c <rtems_rfs_mutex_lock.isra.0> 
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
                                                                      
  pos = iop->offset;                                                  
                                                                      
  if (pos < rtems_rfs_file_size (file))                               
ffc20060:	80 9c 00 1c 	lwz     r4,28(r28)                             
  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;                                                  
ffc20064:	83 d9 00 08 	lwz     r30,8(r25)                             
ffc20068:	80 64 00 98 	lwz     r3,152(r4)                             
ffc2006c:	38 84 00 84 	addi    r4,r4,132                              
ffc20070:	83 f9 00 0c 	lwz     r31,12(r25)                            
ffc20074:	4b ff ad f5 	bl      ffc1ae68 <rtems_rfs_block_get_size>    
                                                                      
  if (pos < rtems_rfs_file_size (file))                               
ffc20078:	7f 83 f0 40 	cmplw   cr7,r3,r30                             
ffc2007c:	41 9d 00 a4 	bgt-    cr7,ffc20120 <rtems_rfs_rtems_file_read+0xf4><== NEVER TAKEN
ffc20080:	7f 83 f0 00 	cmpw    cr7,r3,r30                             
ffc20084:	40 9e 00 0c 	bne-    cr7,ffc20090 <rtems_rfs_rtems_file_read+0x64><== NEVER TAKEN
ffc20088:	7f 84 f8 40 	cmplw   cr7,r4,r31                             
ffc2008c:	41 9d 00 94 	bgt-    cr7,ffc20120 <rtems_rfs_rtems_file_read+0xf4>
                           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;                                    
ffc20090:	3b a0 00 00 	li      r29,0                                  
ffc20094:	48 00 00 a0 	b       ffc20134 <rtems_rfs_rtems_file_read+0x108>
  {                                                                   
    while (count)                                                     
    {                                                                 
      size_t size;                                                    
                                                                      
      rc = rtems_rfs_file_io_start (file, &size, true);               
ffc20098:	7f 83 e3 78 	mr      r3,r28                                 
ffc2009c:	38 81 00 08 	addi    r4,r1,8                                
ffc200a0:	38 a0 00 01 	li      r5,1                                   
ffc200a4:	4b ff da 89 	bl      ffc1db2c <rtems_rfs_file_io_start>     
      if (rc > 0)                                                     
ffc200a8:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc200ac:	40 a1 00 08 	ble+    ffc200b4 <rtems_rfs_rtems_file_read+0x88><== ALWAYS TAKEN
ffc200b0:	48 00 00 60 	b       ffc20110 <rtems_rfs_rtems_file_read+0xe4><== NOT EXECUTED
      {                                                               
        read = rtems_rfs_rtems_error ("file-read: read: io-start", rc);
        break;                                                        
      }                                                               
                                                                      
      if (size == 0)                                                  
ffc200b4:	81 21 00 08 	lwz     r9,8(r1)                               
ffc200b8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc200bc:	41 9e 00 70 	beq-    cr7,ffc2012c <rtems_rfs_rtems_file_read+0x100>
        break;                                                        
                                                                      
      if (size > count)                                               
ffc200c0:	7f 89 d8 40 	cmplw   cr7,r9,r27                             
ffc200c4:	40 9d 00 08 	ble-    cr7,ffc200cc <rtems_rfs_rtems_file_read+0xa0>
        size = count;                                                 
ffc200c8:	93 61 00 08 	stw     r27,8(r1)                              
                                                                      
      memcpy (data, rtems_rfs_file_data (file), size);                
ffc200cc:	81 3c 00 0c 	lwz     r9,12(r28)                             
ffc200d0:	7f 03 c3 78 	mr      r3,r24                                 
ffc200d4:	83 41 00 08 	lwz     r26,8(r1)                              
ffc200d8:	80 89 00 1c 	lwz     r4,28(r9)                              
ffc200dc:	81 3c 00 14 	lwz     r9,20(r28)                             
ffc200e0:	7f 45 d3 78 	mr      r5,r26                                 
                                                                      
      data  += size;                                                  
ffc200e4:	7f 18 d2 14 	add     r24,r24,r26                            
        break;                                                        
                                                                      
      if (size > count)                                               
        size = count;                                                 
                                                                      
      memcpy (data, rtems_rfs_file_data (file), size);                
ffc200e8:	7c 84 4a 14 	add     r4,r4,r9                               
ffc200ec:	48 00 25 f9 	bl      ffc226e4 <memcpy>                      
                                                                      
      data  += size;                                                  
      count -= size;                                                  
      read  += size;                                                  
                                                                      
      rc = rtems_rfs_file_io_end (file, size, true);                  
ffc200f0:	7f 44 d3 78 	mr      r4,r26                                 
ffc200f4:	7f 83 e3 78 	mr      r3,r28                                 
ffc200f8:	38 a0 00 01 	li      r5,1                                   
ffc200fc:	4b ff dc 51 	bl      ffc1dd4c <rtems_rfs_file_io_end>       
        size = count;                                                 
                                                                      
      memcpy (data, rtems_rfs_file_data (file), size);                
                                                                      
      data  += size;                                                  
      count -= size;                                                  
ffc20100:	7f 7a d8 50 	subf    r27,r26,r27                            
      read  += size;                                                  
ffc20104:	7f bd d2 14 	add     r29,r29,r26                            
                                                                      
      rc = rtems_rfs_file_io_end (file, size, true);                  
      if (rc > 0)                                                     
ffc20108:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc2010c:	40 a1 00 18 	ble+    ffc20124 <rtems_rfs_rtems_file_read+0xf8><== ALWAYS TAKEN
      {                                                               
        read = rtems_rfs_rtems_error ("file-read: read: io-end", rc); 
ffc20110:	48 00 10 bd 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc20114:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
ffc20118:	93 43 00 00 	stw     r26,0(r3)                              <== NOT EXECUTED
ffc2011c:	48 00 00 30 	b       ffc2014c <rtems_rfs_rtems_file_read+0x120><== NOT EXECUTED
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
                                                                      
  pos = iop->offset;                                                  
                                                                      
  if (pos < rtems_rfs_file_size (file))                               
ffc20120:	3b a0 00 00 	li      r29,0                                  
  {                                                                   
    while (count)                                                     
ffc20124:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc20128:	40 9e ff 70 	bne+    cr7,ffc20098 <rtems_rfs_rtems_file_read+0x6c>
        break;                                                        
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (read >= 0)                                                      
ffc2012c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc20130:	41 9c 00 1c 	blt-    cr7,ffc2014c <rtems_rfs_rtems_file_read+0x120><== NEVER TAKEN
    iop->offset = pos + read;                                         
ffc20134:	7f ab eb 78 	mr      r11,r29                                
ffc20138:	7f aa fe 70 	srawi   r10,r29,31                             
ffc2013c:	7f ff 58 14 	addc    r31,r31,r11                            
ffc20140:	7f de 51 14 	adde    r30,r30,r10                            
ffc20144:	93 d9 00 08 	stw     r30,8(r25)                             
ffc20148:	93 f9 00 0c 	stw     r31,12(r25)                            
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
ffc2014c:	81 3c 00 1c 	lwz     r9,28(r28)                             
ffc20150:	80 69 00 98 	lwz     r3,152(r9)                             
ffc20154:	4b ff fe 65 	bl      ffc1ffb8 <rtems_rfs_rtems_unlock>      
                                                                      
  return read;                                                        
}                                                                     
ffc20158:	39 61 00 38 	addi    r11,r1,56                              
ffc2015c:	7f a3 eb 78 	mr      r3,r29                                 
ffc20160:	4b fe 13 f0 	b       ffc01550 <_restgpr_24_x>               
                                                                      

ffc20368 <rtems_rfs_rtems_file_write>: */ static ssize_t rtems_rfs_rtems_file_write (rtems_libio_t* iop, const void* buffer, size_t count) {
ffc20368:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc2036c:	7c 08 02 a6 	mflr    r0                                     
ffc20370:	90 01 00 34 	stw     r0,52(r1)                              
ffc20374:	bf 41 00 18 	stmw    r26,24(r1)                             
ffc20378:	7c 7c 1b 78 	mr      r28,r3                                 
ffc2037c:	7c bd 2b 78 	mr      r29,r5                                 
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
ffc20380:	83 e3 00 20 	lwz     r31,32(r3)                             
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_write (rtems_libio_t* iop,                       
                            const void*    buffer,                    
                            size_t         count)                     
{                                                                     
ffc20384:	7c 9b 23 78 	mr      r27,r4                                 
  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));                    
ffc20388:	81 3f 00 1c 	lwz     r9,28(r31)                             
  .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                       
};                                                                    
ffc2038c:	81 29 00 98 	lwz     r9,152(r9)                             
ffc20390:	81 29 00 80 	lwz     r9,128(r9)                             
ffc20394:	80 69 00 00 	lwz     r3,0(r9)                               
ffc20398:	4b ff fb b5 	bl      ffc1ff4c <rtems_rfs_mutex_lock.isra.0> 
    printf("rtems-rfs: file-write: handle:%p count:%zd\n", file, count);
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
                                                                      
  pos = iop->offset;                                                  
  file_size = rtems_rfs_file_size (file);                             
ffc2039c:	80 9f 00 1c 	lwz     r4,28(r31)                             
  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;                                                  
ffc203a0:	81 3c 00 08 	lwz     r9,8(r28)                              
ffc203a4:	81 5c 00 0c 	lwz     r10,12(r28)                            
ffc203a8:	80 64 00 98 	lwz     r3,152(r4)                             
ffc203ac:	38 84 00 84 	addi    r4,r4,132                              
ffc203b0:	91 21 00 08 	stw     r9,8(r1)                               
ffc203b4:	91 41 00 0c 	stw     r10,12(r1)                             
ffc203b8:	4b ff aa b1 	bl      ffc1ae68 <rtems_rfs_block_get_size>    
ffc203bc:	7c 69 1b 78 	mr      r9,r3                                  
  file_size = rtems_rfs_file_size (file);                             
  if (pos > file_size)                                                
ffc203c0:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc203c4:	80 c1 00 0c 	lwz     r6,12(r1)                              
ffc203c8:	7f 85 48 40 	cmplw   cr7,r5,r9                              
ffc203cc:	41 9d 00 14 	bgt-    cr7,ffc203e0 <rtems_rfs_rtems_file_write+0x78><== NEVER TAKEN
ffc203d0:	7f 85 48 00 	cmpw    cr7,r5,r9                              
ffc203d4:	40 be 00 40 	bne+    cr7,ffc20414 <rtems_rfs_rtems_file_write+0xac><== NEVER TAKEN
ffc203d8:	7f 86 20 40 	cmplw   cr7,r6,r4                              
ffc203dc:	40 bd 00 38 	ble+    cr7,ffc20414 <rtems_rfs_rtems_file_write+0xac>
    /*                                                                
     * 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);                         
ffc203e0:	7f e3 fb 78 	mr      r3,r31                                 
ffc203e4:	4b ff dd 11 	bl      ffc1e0f4 <rtems_rfs_file_set_size>     
ffc203e8:	81 3f 00 1c 	lwz     r9,28(r31)                             
    if (rc)                                                           
ffc203ec:	7c 7e 1b 79 	mr.     r30,r3                                 
    {                                                                 
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
ffc203f0:	80 69 00 98 	lwz     r3,152(r9)                             
     * 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);                         
    if (rc)                                                           
ffc203f4:	41 82 00 08 	beq-    ffc203fc <rtems_rfs_rtems_file_write+0x94><== ALWAYS TAKEN
ffc203f8:	48 00 00 6c 	b       ffc20464 <rtems_rfs_rtems_file_write+0xfc><== NOT EXECUTED
    {                                                                 
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
      return rtems_rfs_rtems_error ("file-write: write extend", rc);  
    }                                                                 
                                                                      
    rtems_rfs_file_set_bpos (file, pos);                              
ffc203fc:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc20400:	38 ff 00 10 	addi    r7,r31,16                              
ffc20404:	80 c1 00 0c 	lwz     r6,12(r1)                              
ffc20408:	4b ff a9 7d 	bl      ffc1ad84 <rtems_rfs_block_get_bpos>    
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_write (rtems_libio_t* iop,                       
                            const void*    buffer,                    
                            size_t         count)                     
{                                                                     
ffc2040c:	3b c0 00 00 	li      r30,0                                  
ffc20410:	48 00 00 e8 	b       ffc204f8 <rtems_rfs_rtems_file_write+0x190>
      return rtems_rfs_rtems_error ("file-write: write extend", rc);  
    }                                                                 
                                                                      
    rtems_rfs_file_set_bpos (file, pos);                              
  }                                                                   
  else if (pos < file_size && (iop->flags & LIBIO_FLAGS_APPEND) != 0) 
ffc20414:	7f 89 28 40 	cmplw   cr7,r9,r5                              
ffc20418:	41 9d 00 14 	bgt-    cr7,ffc2042c <rtems_rfs_rtems_file_write+0xc4><== NEVER TAKEN
ffc2041c:	7f 89 28 00 	cmpw    cr7,r9,r5                              
ffc20420:	40 be ff ec 	bne-    cr7,ffc2040c <rtems_rfs_rtems_file_write+0xa4><== NEVER TAKEN
ffc20424:	7f 84 30 40 	cmplw   cr7,r4,r6                              
ffc20428:	40 bd ff e4 	ble-    cr7,ffc2040c <rtems_rfs_rtems_file_write+0xa4>
ffc2042c:	81 1c 00 10 	lwz     r8,16(r28)                             
ffc20430:	71 0a 02 00 	andi.   r10,r8,512                             
ffc20434:	41 82 ff d8 	beq+    ffc2040c <rtems_rfs_rtems_file_write+0xa4>
  {                                                                   
    pos = file_size;                                                  
    rc = rtems_rfs_file_seek (file, pos, &pos);                       
ffc20438:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
    rtems_rfs_file_set_bpos (file, pos);                              
  }                                                                   
  else if (pos < file_size && (iop->flags & LIBIO_FLAGS_APPEND) != 0) 
  {                                                                   
    pos = file_size;                                                  
ffc2043c:	91 21 00 08 	stw     r9,8(r1)                               
    rc = rtems_rfs_file_seek (file, pos, &pos);                       
ffc20440:	7d 25 4b 78 	mr      r5,r9                                  
ffc20444:	7c 86 23 78 	mr      r6,r4                                  
                                                                      
    rtems_rfs_file_set_bpos (file, pos);                              
  }                                                                   
  else if (pos < file_size && (iop->flags & LIBIO_FLAGS_APPEND) != 0) 
  {                                                                   
    pos = file_size;                                                  
ffc20448:	90 81 00 0c 	stw     r4,12(r1)                              
    rc = rtems_rfs_file_seek (file, pos, &pos);                       
ffc2044c:	38 e1 00 08 	addi    r7,r1,8                                
ffc20450:	4b ff db a1 	bl      ffc1dff0 <rtems_rfs_file_seek>         
    if (rc)                                                           
ffc20454:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc20458:	41 82 ff b4 	beq+    ffc2040c <rtems_rfs_rtems_file_write+0xa4><== ALWAYS TAKEN
    {                                                                 
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
ffc2045c:	81 3f 00 1c 	lwz     r9,28(r31)                             <== NOT EXECUTED
ffc20460:	80 69 00 98 	lwz     r3,152(r9)                             <== NOT EXECUTED
ffc20464:	4b ff fb 55 	bl      ffc1ffb8 <rtems_rfs_rtems_unlock>      <== NOT EXECUTED
      return rtems_rfs_rtems_error ("file-write: write append seek", rc);
ffc20468:	48 00 0d 65 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc2046c:	93 c3 00 00 	stw     r30,0(r3)                              <== NOT EXECUTED
ffc20470:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc20474:	48 00 00 c0 	b       ffc20534 <rtems_rfs_rtems_file_write+0x1cc><== NOT EXECUTED
                                                                      
  while (count)                                                       
  {                                                                   
    size_t size = count;                                              
                                                                      
    rc = rtems_rfs_file_io_start (file, &size, false);                
ffc20478:	7f e3 fb 78 	mr      r3,r31                                 
    }                                                                 
  }                                                                   
                                                                      
  while (count)                                                       
  {                                                                   
    size_t size = count;                                              
ffc2047c:	93 a1 00 10 	stw     r29,16(r1)                             
                                                                      
    rc = rtems_rfs_file_io_start (file, &size, false);                
ffc20480:	38 81 00 10 	addi    r4,r1,16                               
ffc20484:	38 a0 00 00 	li      r5,0                                   
ffc20488:	4b ff d6 a5 	bl      ffc1db2c <rtems_rfs_file_io_start>     
    if (rc)                                                           
ffc2048c:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc20490:	41 a2 00 08 	beq+    ffc20498 <rtems_rfs_rtems_file_write+0x130>
ffc20494:	48 00 00 54 	b       ffc204e8 <rtems_rfs_rtems_file_write+0x180>
    {                                                                 
      write = rtems_rfs_rtems_error ("file-write: write open", rc);   
      break;                                                          
    }                                                                 
                                                                      
    if (size > count)                                                 
ffc20498:	81 21 00 10 	lwz     r9,16(r1)                              
ffc2049c:	7f 89 e8 40 	cmplw   cr7,r9,r29                             
ffc204a0:	40 9d 00 08 	ble-    cr7,ffc204a8 <rtems_rfs_rtems_file_write+0x140>
      size = count;                                                   
ffc204a4:	93 a1 00 10 	stw     r29,16(r1)                             
                                                                      
    memcpy (rtems_rfs_file_data (file), data, size);                  
ffc204a8:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc204ac:	7f 64 db 78 	mr      r4,r27                                 
ffc204b0:	80 a1 00 10 	lwz     r5,16(r1)                              
ffc204b4:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc204b8:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc204bc:	7c 63 4a 14 	add     r3,r3,r9                               
ffc204c0:	48 00 22 25 	bl      ffc226e4 <memcpy>                      
                                                                      
    data  += size;                                                    
ffc204c4:	80 81 00 10 	lwz     r4,16(r1)                              
    count -= size;                                                    
    write  += size;                                                   
                                                                      
    rc = rtems_rfs_file_io_end (file, size, false);                   
ffc204c8:	7f e3 fb 78 	mr      r3,r31                                 
ffc204cc:	38 a0 00 00 	li      r5,0                                   
    if (size > count)                                                 
      size = count;                                                   
                                                                      
    memcpy (rtems_rfs_file_data (file), data, size);                  
                                                                      
    data  += size;                                                    
ffc204d0:	7f 7b 22 14 	add     r27,r27,r4                             
    count -= size;                                                    
ffc204d4:	7f a4 e8 50 	subf    r29,r4,r29                             
    write  += size;                                                   
ffc204d8:	7f de 22 14 	add     r30,r30,r4                             
                                                                      
    rc = rtems_rfs_file_io_end (file, size, false);                   
ffc204dc:	4b ff d8 71 	bl      ffc1dd4c <rtems_rfs_file_io_end>       
    if (rc)                                                           
ffc204e0:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc204e4:	41 a2 00 14 	beq+    ffc204f8 <rtems_rfs_rtems_file_write+0x190><== ALWAYS TAKEN
    {                                                                 
      write = rtems_rfs_rtems_error ("file-write: write close", rc);  
ffc204e8:	48 00 0c e5 	bl      ffc211cc <__errno>                     
ffc204ec:	3b c0 ff ff 	li      r30,-1                                 
ffc204f0:	93 43 00 00 	stw     r26,0(r3)                              
ffc204f4:	48 00 00 34 	b       ffc20528 <rtems_rfs_rtems_file_write+0x1c0>
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
      return rtems_rfs_rtems_error ("file-write: write append seek", rc);
    }                                                                 
  }                                                                   
                                                                      
  while (count)                                                       
ffc204f8:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc204fc:	40 9e ff 7c 	bne+    cr7,ffc20478 <rtems_rfs_rtems_file_write+0x110>
      write = rtems_rfs_rtems_error ("file-write: write close", rc);  
      break;                                                          
    }                                                                 
  }                                                                   
                                                                      
  if (write >= 0)                                                     
ffc20500:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc20504:	41 9c 00 24 	blt-    cr7,ffc20528 <rtems_rfs_rtems_file_write+0x1c0><== NEVER TAKEN
    iop->offset = pos + write;                                        
ffc20508:	81 01 00 08 	lwz     r8,8(r1)                               
ffc2050c:	7f cb f3 78 	mr      r11,r30                                
ffc20510:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc20514:	7f ca fe 70 	srawi   r10,r30,31                             
ffc20518:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc2051c:	7d 4a 41 14 	adde    r10,r10,r8                             
ffc20520:	91 5c 00 08 	stw     r10,8(r28)                             
ffc20524:	91 7c 00 0c 	stw     r11,12(r28)                            
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
ffc20528:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc2052c:	80 69 00 98 	lwz     r3,152(r9)                             
ffc20530:	4b ff fa 89 	bl      ffc1ffb8 <rtems_rfs_rtems_unlock>      
                                                                      
  return write;                                                       
}                                                                     
ffc20534:	39 61 00 30 	addi    r11,r1,48                              
ffc20538:	7f c3 f3 78 	mr      r3,r30                                 
ffc2053c:	4b fe 10 1c 	b       ffc01558 <_restgpr_26_x>               
                                                                      

ffc13988 <rtems_rfs_rtems_fstat>: } int rtems_rfs_rtems_fstat (const rtems_filesystem_location_info_t* pathloc, struct stat* buf) {
ffc13988:	94 21 ff b0 	stwu    r1,-80(r1)                             
ffc1398c:	7c 08 02 a6 	mflr    r0                                     
ffc13990:	7c 69 1b 78 	mr      r9,r3                                  
ffc13994:	90 01 00 54 	stw     r0,84(r1)                              
  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);                  
ffc13998:	38 a1 00 08 	addi    r5,r1,8                                
ffc1399c:	38 c0 00 01 	li      r6,1                                   
                                                                      
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);  
ffc139a0:	81 43 00 14 	lwz     r10,20(r3)                             
}                                                                     
                                                                      
int                                                                   
rtems_rfs_rtems_fstat (const rtems_filesystem_location_info_t* pathloc,
                       struct stat*                            buf)   
{                                                                     
ffc139a4:	bf 61 00 3c 	stmw    r27,60(r1)                             
ffc139a8:	7c 9f 23 78 	mr      r31,r4                                 
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
ffc139ac:	83 ca 00 08 	lwz     r30,8(r10)                             
  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);                  
ffc139b0:	80 89 00 08 	lwz     r4,8(r9)                               
ffc139b4:	7f c3 f3 78 	mr      r3,r30                                 
ffc139b8:	4b ff ee 31 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc139bc:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc139c0:	41 a2 00 10 	beq+    ffc139d0 <rtems_rfs_rtems_fstat+0x48>  <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("stat: opening inode", rc);         
ffc139c4:	48 00 d8 09 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc139c8:	93 a3 00 00 	stw     r29,0(r3)                              <== NOT EXECUTED
ffc139cc:	48 00 02 58 	b       ffc13c24 <rtems_rfs_rtems_fstat+0x29c> <== NOT EXECUTED
  }                                                                   
                                                                      
  mode = rtems_rfs_inode_get_mode (&inode);                           
ffc139d0:	83 a1 00 14 	lwz     r29,20(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);                    
ffc139d4:	8b 9d 00 02 	lbz     r28,2(r29)                             
ffc139d8:	89 3d 00 03 	lbz     r9,3(r29)                              
ffc139dc:	57 9c 40 2e 	rlwinm  r28,r28,8,0,23                         
ffc139e0:	7f 9c 4b 78 	or      r28,r28,r9                             
                                                                      
  if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK (mode))           
ffc139e4:	57 89 04 26 	rlwinm  r9,r28,0,16,19                         
ffc139e8:	2f 89 20 00 	cmpwi   cr7,r9,8192                            
ffc139ec:	41 9e 00 0c 	beq-    cr7,ffc139f8 <rtems_rfs_rtems_fstat+0x70><== NEVER TAKEN
ffc139f0:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc139f4:	40 be 00 28 	bne+    cr7,ffc13a1c <rtems_rfs_rtems_fstat+0x94><== ALWAYS TAKEN
  {                                                                   
    buf->st_rdev =                                                    
      rtems_filesystem_make_dev_t (rtems_rfs_inode_get_block (&inode, 0),
ffc139f8:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc139fc:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc13a00:	4b ff ff 4d 	bl      ffc1394c <rtems_rfs_inode_get_block.isra.12><== NOT EXECUTED
ffc13a04:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc13a08:	7c 7b 1b 78 	mr      r27,r3                                 <== NOT EXECUTED
ffc13a0c:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc13a10:	4b ff ff 3d 	bl      ffc1394c <rtems_rfs_inode_get_block.isra.12><== NOT EXECUTED
                                                                      
  mode = rtems_rfs_inode_get_mode (&inode);                           
                                                                      
  if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK (mode))           
  {                                                                   
    buf->st_rdev =                                                    
ffc13a14:	93 7f 00 18 	stw     r27,24(r31)                            <== NOT EXECUTED
ffc13a18:	90 7f 00 1c 	stw     r3,28(r31)                             <== 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);                         
ffc13a1c:	81 3e 00 10 	lwz     r9,16(r30)                             
  buf->st_ino     = rtems_rfs_inode_ino (&inode);                     
  buf->st_mode    = rtems_rfs_rtems_mode (mode);                      
ffc13a20:	7f 83 e3 78 	mr      r3,r28                                 
    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);                         
ffc13a24:	91 3f 00 04 	stw     r9,4(r31)                              
ffc13a28:	7d 29 fe 70 	srawi   r9,r9,31                               
ffc13a2c:	91 3f 00 00 	stw     r9,0(r31)                              
  buf->st_ino     = rtems_rfs_inode_ino (&inode);                     
ffc13a30:	81 21 00 10 	lwz     r9,16(r1)                              
ffc13a34:	91 3f 00 08 	stw     r9,8(r31)                              
  buf->st_mode    = rtems_rfs_rtems_mode (mode);                      
ffc13a38:	48 00 08 0d 	bl      ffc14244 <rtems_rfs_rtems_mode>        
  buf->st_nlink   = rtems_rfs_inode_get_links (&inode);               
ffc13a3c:	81 21 00 14 	lwz     r9,20(r1)                              
                                   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);                      
ffc13a40:	90 7f 00 0c 	stw     r3,12(r31)                             
 */                                                                   
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);                  
ffc13a44:	89 49 00 00 	lbz     r10,0(r9)                              
ffc13a48:	89 09 00 01 	lbz     r8,1(r9)                               
ffc13a4c:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc13a50:	7d 4a 43 78 	or      r10,r10,r8                             
  if (links == 0xffff)                                                
ffc13a54:	6d 48 ff ff 	xoris   r8,r10,65535                           
ffc13a58:	2f 88 ff ff 	cmpwi   cr7,r8,-1                              
ffc13a5c:	40 9e 00 08 	bne-    cr7,ffc13a64 <rtems_rfs_rtems_fstat+0xdc><== ALWAYS TAKEN
    links = 0;                                                        
ffc13a60:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  buf->st_nlink   = rtems_rfs_inode_get_links (&inode);               
ffc13a64:	b1 5f 00 10 	sth     r10,16(r31)                            
                                                                      
  /*                                                                  
   * 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));
ffc13a68:	7f c3 f3 78 	mr      r3,r30                                 
 * @return uint16_t The user id (uid).                                
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_uid (rtems_rfs_inode_handle* handle)              
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->owner) & 0xffff;          
ffc13a6c:	89 49 00 06 	lbz     r10,6(r9)                              
ffc13a70:	89 09 00 07 	lbz     r8,7(r9)                               
ffc13a74:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc13a78:	80 81 00 10 	lwz     r4,16(r1)                              
ffc13a7c:	7d 4a 43 78 	or      r10,r10,r8                             
                                                                      
  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);                 
ffc13a80:	b1 5f 00 12 	sth     r10,18(r31)                            
 * @return uint16_t The group id (gid).                               
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_gid (rtems_rfs_inode_handle* handle)              
{                                                                     
  return (rtems_rfs_read_u32 (&handle->node->owner) >> 16) & 0xffff;  
ffc13a84:	89 49 00 04 	lbz     r10,4(r9)                              
ffc13a88:	89 29 00 05 	lbz     r9,5(r9)                               
ffc13a8c:	55 4a c0 0e 	rlwinm  r10,r10,24,0,7                         
ffc13a90:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc13a94:	7d 49 4b 78 	or      r9,r10,r9                              
ffc13a98:	55 29 84 3e 	rlwinm  r9,r9,16,16,31                         
ffc13a9c:	b1 3f 00 14 	sth     r9,20(r31)                             
                                                                      
  /*                                                                  
   * 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));
ffc13aa0:	48 00 a9 55 	bl      ffc1e3f4 <rtems_rfs_file_get_shared>   
                                                                      
  if (shared)                                                         
ffc13aa4:	7c 64 1b 79 	mr.     r4,r3                                  
ffc13aa8:	41 82 00 5c 	beq-    ffc13b04 <rtems_rfs_rtems_fstat+0x17c> 
  {                                                                   
    buf->st_atime   = rtems_rfs_file_shared_get_atime (shared);       
ffc13aac:	81 24 00 8c 	lwz     r9,140(r4)                             
ffc13ab0:	91 3f 00 28 	stw     r9,40(r31)                             
    buf->st_mtime   = rtems_rfs_file_shared_get_mtime (shared);       
ffc13ab4:	81 24 00 90 	lwz     r9,144(r4)                             
ffc13ab8:	91 3f 00 30 	stw     r9,48(r31)                             
    buf->st_ctime   = rtems_rfs_file_shared_get_ctime (shared);       
ffc13abc:	81 24 00 94 	lwz     r9,148(r4)                             
ffc13ac0:	91 3f 00 38 	stw     r9,56(r31)                             
    buf->st_blocks  = rtems_rfs_file_shared_get_block_count (shared); 
ffc13ac4:	81 24 00 84 	lwz     r9,132(r4)                             
ffc13ac8:	91 3f 00 44 	stw     r9,68(r31)                             
                                                                      
    if (S_ISLNK (buf->st_mode))                                       
ffc13acc:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc13ad0:	55 2a 04 26 	rlwinm  r10,r9,0,16,19                         
ffc13ad4:	6d 49 ff ff 	xoris   r9,r10,65535                           
ffc13ad8:	2f 89 a0 00 	cmpwi   cr7,r9,-24576                          
ffc13adc:	40 9e 00 18 	bne-    cr7,ffc13af4 <rtems_rfs_rtems_fstat+0x16c><== ALWAYS TAKEN
      buf->st_size = rtems_rfs_file_shared_get_block_offset (shared); 
ffc13ae0:	a1 24 00 8a 	lhz     r9,138(r4)                             <== NOT EXECUTED
ffc13ae4:	91 3f 00 24 	stw     r9,36(r31)                             <== NOT EXECUTED
ffc13ae8:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc13aec:	91 3f 00 20 	stw     r9,32(r31)                             <== NOT EXECUTED
ffc13af0:	48 00 01 0c 	b       ffc13bfc <rtems_rfs_rtems_fstat+0x274> <== 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);                
ffc13af4:	7f c3 f3 78 	mr      r3,r30                                 
ffc13af8:	38 84 00 84 	addi    r4,r4,132                              
ffc13afc:	48 00 73 6d 	bl      ffc1ae68 <rtems_rfs_block_get_size>    
ffc13b00:	48 00 00 f4 	b       ffc13bf4 <rtems_rfs_rtems_fstat+0x26c> 
    else                                                              
      buf->st_size = rtems_rfs_file_shared_get_size (fs, shared);     
  }                                                                   
  else                                                                
  {                                                                   
    buf->st_atime   = rtems_rfs_inode_get_atime (&inode);             
ffc13b04:	81 21 00 14 	lwz     r9,20(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);                   
ffc13b08:	89 09 00 10 	lbz     r8,16(r9)                              
ffc13b0c:	89 49 00 11 	lbz     r10,17(r9)                             
ffc13b10:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           
ffc13b14:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc13b18:	7d 0a 53 78 	or      r10,r8,r10                             
ffc13b1c:	89 09 00 13 	lbz     r8,19(r9)                              
ffc13b20:	7d 4a 43 78 	or      r10,r10,r8                             
ffc13b24:	89 09 00 12 	lbz     r8,18(r9)                              
ffc13b28:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc13b2c:	7d 4a 43 78 	or      r10,r10,r8                             
ffc13b30:	91 5f 00 28 	stw     r10,40(r31)                            
 * @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);                   
ffc13b34:	89 09 00 14 	lbz     r8,20(r9)                              
ffc13b38:	89 49 00 15 	lbz     r10,21(r9)                             
ffc13b3c:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           
ffc13b40:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc13b44:	7d 0a 53 78 	or      r10,r8,r10                             
ffc13b48:	89 09 00 17 	lbz     r8,23(r9)                              
ffc13b4c:	7d 4a 43 78 	or      r10,r10,r8                             
ffc13b50:	89 09 00 16 	lbz     r8,22(r9)                              
ffc13b54:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc13b58:	7d 4a 43 78 	or      r10,r10,r8                             
    buf->st_mtime   = rtems_rfs_inode_get_mtime (&inode);             
ffc13b5c:	91 5f 00 30 	stw     r10,48(r31)                            
 * @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);                   
ffc13b60:	89 09 00 18 	lbz     r8,24(r9)                              
ffc13b64:	89 49 00 19 	lbz     r10,25(r9)                             
ffc13b68:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           
ffc13b6c:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc13b70:	7d 0a 53 78 	or      r10,r8,r10                             
ffc13b74:	89 09 00 1b 	lbz     r8,27(r9)                              
ffc13b78:	7d 4a 43 78 	or      r10,r10,r8                             
ffc13b7c:	89 09 00 1a 	lbz     r8,26(r9)                              
ffc13b80:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc13b84:	7d 4a 43 78 	or      r10,r10,r8                             
    buf->st_ctime   = rtems_rfs_inode_get_ctime (&inode);             
ffc13b88:	91 5f 00 38 	stw     r10,56(r31)                            
 * @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);             
ffc13b8c:	89 09 00 0c 	lbz     r8,12(r9)                              
ffc13b90:	89 49 00 0d 	lbz     r10,13(r9)                             
ffc13b94:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           
ffc13b98:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc13b9c:	7d 0a 53 78 	or      r10,r8,r10                             
ffc13ba0:	89 09 00 0f 	lbz     r8,15(r9)                              
ffc13ba4:	7d 4a 43 78 	or      r10,r10,r8                             
ffc13ba8:	89 09 00 0e 	lbz     r8,14(r9)                              
ffc13bac:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc13bb0:	7d 4a 43 78 	or      r10,r10,r8                             
    buf->st_blocks  = rtems_rfs_inode_get_block_count (&inode);       
ffc13bb4:	91 5f 00 44 	stw     r10,68(r31)                            
                                                                      
    if (S_ISLNK (buf->st_mode))                                       
ffc13bb8:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc13bbc:	55 48 04 26 	rlwinm  r8,r10,0,16,19                         
ffc13bc0:	6d 0a ff ff 	xoris   r10,r8,65535                           
ffc13bc4:	2f 8a a0 00 	cmpwi   cr7,r10,-24576                         
ffc13bc8:	40 9e 00 20 	bne-    cr7,ffc13be8 <rtems_rfs_rtems_fstat+0x260>
 * @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);            
ffc13bcc:	89 09 00 0a 	lbz     r8,10(r9)                              
ffc13bd0:	89 49 00 0b 	lbz     r10,11(r9)                             
ffc13bd4:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
      buf->st_size = rtems_rfs_inode_get_block_offset (&inode);       
ffc13bd8:	90 9f 00 20 	stw     r4,32(r31)                             
ffc13bdc:	7d 09 53 78 	or      r9,r8,r10                              
ffc13be0:	91 3f 00 24 	stw     r9,36(r31)                             
ffc13be4:	48 00 00 18 	b       ffc13bfc <rtems_rfs_rtems_fstat+0x274> 
    else                                                              
      buf->st_size = rtems_rfs_inode_get_size (fs, &inode);           
ffc13be8:	7f c3 f3 78 	mr      r3,r30                                 
ffc13bec:	38 81 00 08 	addi    r4,r1,8                                
ffc13bf0:	4b ff f4 bd 	bl      ffc130ac <rtems_rfs_inode_get_size>    
ffc13bf4:	90 7f 00 20 	stw     r3,32(r31)                             
ffc13bf8:	90 9f 00 24 	stw     r4,36(r31)                             
  }                                                                   
                                                                      
  buf->st_blksize = rtems_rfs_fs_block_size (fs);                     
ffc13bfc:	81 3e 00 08 	lwz     r9,8(r30)                              
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc13c00:	7f c3 f3 78 	mr      r3,r30                                 
ffc13c04:	38 81 00 08 	addi    r4,r1,8                                
      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);                     
ffc13c08:	91 3f 00 40 	stw     r9,64(r31)                             
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc13c0c:	4b ff ed d1 	bl      ffc129dc <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
  {                                                                   
    return rtems_rfs_rtems_error ("stat: closing inode", rc);         
  }                                                                   
                                                                      
  return 0;                                                           
ffc13c10:	39 20 00 00 	li      r9,0                                   
  }                                                                   
                                                                      
  buf->st_blksize = rtems_rfs_fs_block_size (fs);                     
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc > 0)                                                         
ffc13c14:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc13c18:	40 81 00 10 	ble-    ffc13c28 <rtems_rfs_rtems_fstat+0x2a0> <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("stat: closing inode", rc);         
ffc13c1c:	48 00 d5 b1 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc13c20:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc13c24:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc13c28:	39 61 00 50 	addi    r11,r1,80                              
ffc13c2c:	7d 23 4b 78 	mr      r3,r9                                  
ffc13c30:	4b fe d9 2c 	b       ffc0155c <_restgpr_27_x>               
                                                                      

ffc13d04 <rtems_rfs_rtems_initialise>: */ int rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry, const void* data) {
ffc13d04:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc13d08:	7c 08 02 a6 	mflr    r0                                     
ffc13d0c:	bf 01 00 18 	stmw    r24,24(r1)                             
  /*                                                                  
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
  {                                                                   
    printf ("options=%s\n", options);                                 
ffc13d10:	3f c0 ff c3 	lis     r30,-61                                
    if (strncmp (options, "hold-bitmaps",                             
ffc13d14:	3f 40 ff c3 	lis     r26,-61                                
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
    else if (strncmp (options, "no-local-cache",                      
ffc13d18:	3f 20 ff c3 	lis     r25,-61                                
 */                                                                   
                                                                      
int                                                                   
rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry,
                            const void*                           data)
{                                                                     
ffc13d1c:	90 01 00 3c 	stw     r0,60(r1)                              
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
    else if (strncmp (options, "no-local-cache",                      
                      sizeof ("no-local-cache") - 1) == 0)            
      flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;                           
    else if (strncmp (options, "max-held-bufs",                       
ffc13d20:	3f 00 ff c3 	lis     r24,-61                                
 */                                                                   
                                                                      
int                                                                   
rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry,
                            const void*                           data)
{                                                                     
ffc13d24:	7c 7c 1b 78 	mr      r28,r3                                 
ffc13d28:	7c 9f 23 78 	mr      r31,r4                                 
  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;
ffc13d2c:	3b 60 00 05 	li      r27,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;                                 
ffc13d30:	3b a0 00 00 	li      r29,0                                  
  /*                                                                  
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
  {                                                                   
    printf ("options=%s\n", options);                                 
ffc13d34:	3b de 3e 4f 	addi    r30,r30,15951                          
    if (strncmp (options, "hold-bitmaps",                             
ffc13d38:	3b 5a 3e 5b 	addi    r26,r26,15963                          
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
    else if (strncmp (options, "no-local-cache",                      
ffc13d3c:	3b 39 3e 68 	addi    r25,r25,15976                          
                      sizeof ("no-local-cache") - 1) == 0)            
      flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;                           
    else if (strncmp (options, "max-held-bufs",                       
ffc13d40:	3b 18 3e 77 	addi    r24,r24,15991                          
  int                      rc;                                        
                                                                      
  /*                                                                  
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
ffc13d44:	48 00 00 c0 	b       ffc13e04 <rtems_rfs_rtems_initialise+0x100>
  {                                                                   
    printf ("options=%s\n", options);                                 
ffc13d48:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc13d4c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc13d50:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc13d54:	48 00 ee 1d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
    if (strncmp (options, "hold-bitmaps",                             
ffc13d58:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc13d5c:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc13d60:	38 a0 00 0c 	li      r5,12                                  <== NOT EXECUTED
ffc13d64:	48 01 01 11 	bl      ffc23e74 <strncmp>                     <== NOT EXECUTED
ffc13d68:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc13d6c:	40 9e 00 0c 	bne-    cr7,ffc13d78 <rtems_rfs_rtems_initialise+0x74><== NOT EXECUTED
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
ffc13d70:	63 bd 00 01 	ori     r29,r29,1                              <== NOT EXECUTED
ffc13d74:	48 00 00 60 	b       ffc13dd4 <rtems_rfs_rtems_initialise+0xd0><== NOT EXECUTED
    else if (strncmp (options, "no-local-cache",                      
ffc13d78:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc13d7c:	7f 24 cb 78 	mr      r4,r25                                 <== NOT EXECUTED
ffc13d80:	38 a0 00 0e 	li      r5,14                                  <== NOT EXECUTED
ffc13d84:	48 01 00 f1 	bl      ffc23e74 <strncmp>                     <== NOT EXECUTED
ffc13d88:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc13d8c:	40 9e 00 0c 	bne-    cr7,ffc13d98 <rtems_rfs_rtems_initialise+0x94><== NOT EXECUTED
                      sizeof ("no-local-cache") - 1) == 0)            
      flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;                           
ffc13d90:	63 bd 00 02 	ori     r29,r29,2                              <== NOT EXECUTED
ffc13d94:	48 00 00 40 	b       ffc13dd4 <rtems_rfs_rtems_initialise+0xd0><== NOT EXECUTED
    else if (strncmp (options, "max-held-bufs",                       
ffc13d98:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc13d9c:	7f 04 c3 78 	mr      r4,r24                                 <== NOT EXECUTED
ffc13da0:	38 a0 00 0d 	li      r5,13                                  <== NOT EXECUTED
ffc13da4:	48 01 00 d1 	bl      ffc23e74 <strncmp>                     <== NOT EXECUTED
ffc13da8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc13dac:	40 9e 00 1c 	bne-    cr7,ffc13dc8 <rtems_rfs_rtems_initialise+0xc4><== NOT EXECUTED
                      sizeof ("max-held-bufs") - 1) == 0)             
    {                                                                 
      max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
ffc13db0:	38 7f 00 0e 	addi    r3,r31,14                              <== NOT EXECUTED
ffc13db4:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc13db8:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc13dbc:	48 01 04 51 	bl      ffc2420c <strtoul>                     <== NOT EXECUTED
ffc13dc0:	7c 7b 1b 78 	mr      r27,r3                                 <== NOT EXECUTED
ffc13dc4:	48 00 00 10 	b       ffc13dd4 <rtems_rfs_rtems_initialise+0xd0><== NOT EXECUTED
    }                                                                 
    else                                                              
      return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
ffc13dc8:	48 00 d4 05 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc13dcc:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc13dd0:	48 00 00 54 	b       ffc13e24 <rtems_rfs_rtems_initialise+0x120><== NOT EXECUTED
                                                                      
    options = strchr (options, ',');                                  
ffc13dd4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc13dd8:	38 80 00 2c 	li      r4,44                                  <== NOT EXECUTED
ffc13ddc:	48 00 f8 8d 	bl      ffc23668 <strchr>                      <== NOT EXECUTED
    if (options)                                                      
ffc13de0:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc13de4:	41 82 00 28 	beq-    ffc13e0c <rtems_rfs_rtems_initialise+0x108><== NOT EXECUTED
    {                                                                 
      ++options;                                                      
      if (*options == '\0')                                           
ffc13de8:	89 3f 00 01 	lbz     r9,1(r31)                              <== NOT EXECUTED
ffc13dec:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc13df0:	41 9e 00 0c 	beq-    cr7,ffc13dfc <rtems_rfs_rtems_initialise+0xf8><== NOT EXECUTED
      return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
                                                                      
    options = strchr (options, ',');                                  
    if (options)                                                      
    {                                                                 
      ++options;                                                      
ffc13df4:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
ffc13df8:	48 00 00 0c 	b       ffc13e04 <rtems_rfs_rtems_initialise+0x100><== NOT EXECUTED
      if (*options == '\0')                                           
        options = NULL;                                               
ffc13dfc:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
ffc13e00:	48 00 00 0c 	b       ffc13e0c <rtems_rfs_rtems_initialise+0x108><== NOT EXECUTED
  int                      rc;                                        
                                                                      
  /*                                                                  
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
ffc13e04:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc13e08:	40 9e ff 40 	bne+    cr7,ffc13d48 <rtems_rfs_rtems_initialise+0x44><== NEVER TAKEN
      if (*options == '\0')                                           
        options = NULL;                                               
    }                                                                 
  }                                                                   
                                                                      
  rtems = malloc (sizeof (rtems_rfs_rtems_private));                  
ffc13e0c:	38 60 00 04 	li      r3,4                                   
ffc13e10:	4b ff 53 cd 	bl      ffc091dc <malloc>                      
  if (!rtems)                                                         
ffc13e14:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc13e18:	40 a2 00 18 	bne+    ffc13e30 <rtems_rfs_rtems_initialise+0x12c><== ALWAYS TAKEN
    return rtems_rfs_rtems_error ("initialise: local data", ENOMEM);  
ffc13e1c:	48 00 d3 b1 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc13e20:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc13e24:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc13e28:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc13e2c:	48 00 00 ac 	b       ffc13ed8 <rtems_rfs_rtems_initialise+0x1d4><== NOT EXECUTED
                                                                      
  memset (rtems, 0, sizeof (rtems_rfs_rtems_private));                
ffc13e30:	93 fe 00 00 	stw     r31,0(r30)                             
                                                                      
  rc = rtems_rfs_mutex_create (&rtems->access);                       
ffc13e34:	48 00 bb 61 	bl      ffc1f994 <rtems_rfs_mutex_create>      
  if (rc > 0)                                                         
ffc13e38:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc13e3c:	40 81 00 08 	ble-    ffc13e44 <rtems_rfs_rtems_initialise+0x140><== ALWAYS TAKEN
ffc13e40:	48 00 00 40 	b       ffc13e80 <rtems_rfs_rtems_initialise+0x17c><== NOT EXECUTED
  {                                                                   
    free (rtems);                                                     
    return rtems_rfs_rtems_error ("initialise: cannot create mutex", rc);
  }                                                                   
                                                                      
  rc = rtems_rfs_mutex_lock (&rtems->access);                         
ffc13e44:	80 7e 00 00 	lwz     r3,0(r30)                              
ffc13e48:	4b ff fe 51 	bl      ffc13c98 <rtems_rfs_mutex_lock.isra.20>
  if (rc > 0)                                                         
ffc13e4c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc13e50:	40 81 00 10 	ble-    ffc13e60 <rtems_rfs_rtems_initialise+0x15c><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_mutex_destroy (&rtems->access);                         
ffc13e54:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc13e58:	48 00 bb b9 	bl      ffc1fa10 <rtems_rfs_mutex_destroy>     <== NOT EXECUTED
ffc13e5c:	48 00 00 24 	b       ffc13e80 <rtems_rfs_rtems_initialise+0x17c><== 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);
ffc13e60:	80 7c 00 38 	lwz     r3,56(r28)                             
ffc13e64:	7f c4 f3 78 	mr      r4,r30                                 
ffc13e68:	7f a5 eb 78 	mr      r5,r29                                 
ffc13e6c:	7f 66 db 78 	mr      r6,r27                                 
ffc13e70:	38 e1 00 08 	addi    r7,r1,8                                
ffc13e74:	48 00 a9 39 	bl      ffc1e7ac <rtems_rfs_fs_open>           
  if (rc)                                                             
ffc13e78:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc13e7c:	41 82 00 18 	beq-    ffc13e94 <rtems_rfs_rtems_initialise+0x190><== ALWAYS TAKEN
  {                                                                   
    free (rtems);                                                     
ffc13e80:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc13e84:	4b ff 4c 91 	bl      ffc08b14 <free>                        <== NOT EXECUTED
    return rtems_rfs_rtems_error ("initialise: open", rc);            
ffc13e88:	48 00 d3 45 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc13e8c:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc13e90:	4b ff ff 98 	b       ffc13e28 <rtems_rfs_rtems_initialise+0x124><== NOT EXECUTED
  }                                                                   
                                                                      
  mt_entry->fs_info                          = fs;                    
  mt_entry->ops                              = &rtems_rfs_ops;        
ffc13e94:	3d 20 ff c3 	lis     r9,-61                                 
  {                                                                   
    free (rtems);                                                     
    return rtems_rfs_rtems_error ("initialise: open", rc);            
  }                                                                   
                                                                      
  mt_entry->fs_info                          = fs;                    
ffc13e98:	80 61 00 08 	lwz     r3,8(r1)                               
  mt_entry->ops                              = &rtems_rfs_ops;        
ffc13e9c:	39 29 3d 7c 	addi    r9,r9,15740                            
ffc13ea0:	39 29 00 08 	addi    r9,r9,8                                
  {                                                                   
    free (rtems);                                                     
    return rtems_rfs_rtems_error ("initialise: open", rc);            
  }                                                                   
                                                                      
  mt_entry->fs_info                          = fs;                    
ffc13ea4:	90 7c 00 08 	stw     r3,8(r28)                              
  mt_entry->ops                              = &rtems_rfs_ops;        
  mt_entry->mt_fs_root->location.node_access = (void*) RTEMS_RFS_ROOT_INO;
ffc13ea8:	39 40 00 01 	li      r10,1                                  
    free (rtems);                                                     
    return rtems_rfs_rtems_error ("initialise: open", rc);            
  }                                                                   
                                                                      
  mt_entry->fs_info                          = fs;                    
  mt_entry->ops                              = &rtems_rfs_ops;        
ffc13eac:	91 3c 00 0c 	stw     r9,12(r28)                             
  mt_entry->mt_fs_root->location.node_access = (void*) RTEMS_RFS_ROOT_INO;
ffc13eb0:	81 3c 00 24 	lwz     r9,36(r28)                             
 * Unlock the RFS file system.                                        
 */                                                                   
static inline void                                                    
 rtems_rfs_rtems_unlock (rtems_rfs_file_system* fs)                   
{                                                                     
  rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);            
ffc13eb4:	83 e3 00 80 	lwz     r31,128(r3)                            
ffc13eb8:	91 49 00 08 	stw     r10,8(r9)                              
  mt_entry->mt_fs_root->location.handlers    = &rtems_rfs_rtems_dir_handlers;
ffc13ebc:	3d 40 ff c3 	lis     r10,-61                                
ffc13ec0:	39 4a 5d 6c 	addi    r10,r10,23916                          
ffc13ec4:	91 49 00 10 	stw     r10,16(r9)                             
  rtems_rfs_buffers_release (fs);                                     
ffc13ec8:	48 00 84 c9 	bl      ffc1c390 <rtems_rfs_buffers_release>   
  rtems_rfs_mutex_unlock (&rtems->access);                            
ffc13ecc:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc13ed0:	4b ff fd 65 	bl      ffc13c34 <rtems_rfs_mutex_unlock.isra.19>
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
                                                                      
  return 0;                                                           
ffc13ed4:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc13ed8:	39 61 00 38 	addi    r11,r1,56                              
ffc13edc:	4b fe d6 74 	b       ffc01550 <_restgpr_24_x>               
                                                                      

ffc1328c <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) {
ffc1328c:	7c 2b 0b 78 	mr      r11,r1                                 
ffc13290:	7c 08 02 a6 	mflr    r0                                     
ffc13294:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc13298:	7c 89 23 78 	mr      r9,r4                                  
ffc1329c:	90 01 00 14 	stw     r0,20(r1)                              
ffc132a0:	4b fe e2 81 	bl      ffc01520 <_savegpr_31>                 
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (targetloc);
ffc132a4:	81 44 00 14 	lwz     r10,20(r4)                             
                                                                      
  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);     
ffc132a8:	7c a4 2b 78 	mr      r4,r5                                  
ffc132ac:	81 03 00 08 	lwz     r8,8(r3)                               
ffc132b0:	7c c5 33 78 	mr      r5,r6                                  
ffc132b4:	80 6a 00 08 	lwz     r3,8(r10)                              
ffc132b8:	80 e9 00 08 	lwz     r7,8(r9)                               
ffc132bc:	7d 06 43 78 	mr      r6,r8                                  
ffc132c0:	39 00 00 00 	li      r8,0                                   
ffc132c4:	48 00 bc f9 	bl      ffc1efbc <rtems_rfs_link>              
  if (rc)                                                             
ffc132c8:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc132cc:	41 a2 00 14 	beq+    ffc132e0 <rtems_rfs_rtems_link+0x54>   <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("link: linking", rc);               
ffc132d0:	48 00 de fd 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc132d4:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc132d8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc132dc:	48 00 00 08 	b       ffc132e4 <rtems_rfs_rtems_link+0x58>   <== NOT EXECUTED
	}                                                                    
                                                                      
                                                                      
	return 0;                                                            
ffc132e0:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc132e4:	39 61 00 10 	addi    r11,r1,16                              
ffc132e8:	4b fe e2 84 	b       ffc0156c <_restgpr_31_x>               
                                                                      

ffc13754 <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) {
ffc13754:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc13758:	7c 08 02 a6 	mflr    r0                                     
ffc1375c:	90 01 00 64 	stw     r0,100(r1)                             
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (parentloc);
ffc13760:	81 23 00 14 	lwz     r9,20(r3)                              
rtems_rfs_rtems_mknod (const rtems_filesystem_location_info_t *parentloc,
                       const char                             *name,  
                       size_t                                  namelen,
                       mode_t                                  mode,  
                       dev_t                                   dev)   
{                                                                     
ffc13764:	bf 21 00 44 	stmw    r25,68(r1)                             
ffc13768:	7c bb 2b 78 	mr      r27,r5                                 
ffc1376c:	7c 9a 23 78 	mr      r26,r4                                 
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (parentloc);
  rtems_rfs_ino           parent = rtems_rfs_rtems_get_pathloc_ino (parentloc);
ffc13770:	83 23 00 08 	lwz     r25,8(r3)                              
#else                                                                 
  uid = 0;                                                            
  gid = 0;                                                            
#endif                                                                
                                                                      
  rc = rtems_rfs_inode_create (fs, parent, name, namelen,             
ffc13774:	7c c3 33 78 	mr      r3,r6                                  
                       const char                             *name,  
                       size_t                                  namelen,
                       mode_t                                  mode,  
                       dev_t                                   dev)   
{                                                                     
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (parentloc);
ffc13778:	83 e9 00 08 	lwz     r31,8(r9)                              
rtems_rfs_rtems_mknod (const rtems_filesystem_location_info_t *parentloc,
                       const char                             *name,  
                       size_t                                  namelen,
                       mode_t                                  mode,  
                       dev_t                                   dev)   
{                                                                     
ffc1377c:	7c de 33 78 	mr      r30,r6                                 
ffc13780:	7c fc 3b 78 	mr      r28,r7                                 
ffc13784:	7d 1d 43 78 	mr      r29,r8                                 
#else                                                                 
  uid = 0;                                                            
  gid = 0;                                                            
#endif                                                                
                                                                      
  rc = rtems_rfs_inode_create (fs, parent, name, namelen,             
ffc13788:	48 00 0a b5 	bl      ffc1423c <rtems_rfs_rtems_imode>       
ffc1378c:	39 21 00 38 	addi    r9,r1,56                               
ffc13790:	91 21 00 08 	stw     r9,8(r1)                               
ffc13794:	7c 67 1b 78 	mr      r7,r3                                  
ffc13798:	7f 66 db 78 	mr      r6,r27                                 
ffc1379c:	7f e3 fb 78 	mr      r3,r31                                 
ffc137a0:	7f 24 cb 78 	mr      r4,r25                                 
ffc137a4:	7f 45 d3 78 	mr      r5,r26                                 
ffc137a8:	39 00 00 01 	li      r8,1                                   
ffc137ac:	39 20 00 00 	li      r9,0                                   
ffc137b0:	39 40 00 00 	li      r10,0                                  
ffc137b4:	4b ff f5 d1 	bl      ffc12d84 <rtems_rfs_inode_create>      
                               rtems_rfs_rtems_imode (mode),          
                               1, uid, gid, &ino);                    
  if (rc > 0)                                                         
ffc137b8:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc137bc:	40 81 00 08 	ble-    ffc137c4 <rtems_rfs_rtems_mknod+0x70>  
ffc137c0:	48 00 00 20 	b       ffc137e0 <rtems_rfs_rtems_mknod+0x8c>  
  {                                                                   
    return rtems_rfs_rtems_error ("mknod: inode create", rc);         
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc137c4:	80 81 00 38 	lwz     r4,56(r1)                              
ffc137c8:	7f e3 fb 78 	mr      r3,r31                                 
ffc137cc:	38 a1 00 10 	addi    r5,r1,16                               
ffc137d0:	38 c0 00 01 	li      r6,1                                   
ffc137d4:	4b ff f0 15 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc137d8:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc137dc:	40 81 00 10 	ble-    ffc137ec <rtems_rfs_rtems_mknod+0x98>  <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("mknod: inode open", rc);           
ffc137e0:	48 00 d9 ed 	bl      ffc211cc <__errno>                     
ffc137e4:	93 63 00 00 	stw     r27,0(r3)                              
ffc137e8:	48 00 00 8c 	b       ffc13874 <rtems_rfs_rtems_mknod+0x120> 
  }                                                                   
                                                                      
  if (S_ISDIR(mode) || S_ISREG(mode))                                 
ffc137ec:	57 c6 04 26 	rlwinm  r6,r30,0,16,19                         
ffc137f0:	2f 86 40 00 	cmpwi   cr7,r6,16384                           
ffc137f4:	41 9e 00 60 	beq-    cr7,ffc13854 <rtems_rfs_rtems_mknod+0x100>
ffc137f8:	6c c9 ff ff 	xoris   r9,r6,65535                            
ffc137fc:	2f 89 80 00 	cmpwi   cr7,r9,-32768                          
ffc13800:	41 9e 00 54 	beq-    cr7,ffc13854 <rtems_rfs_rtems_mknod+0x100><== ALWAYS TAKEN
  {                                                                   
  }                                                                   
  else if (S_ISCHR (mode) || S_ISBLK (mode))                          
ffc13804:	2f 86 20 00 	cmpwi   cr7,r6,8192                            <== NOT EXECUTED
ffc13808:	41 9e 00 0c 	beq-    cr7,ffc13814 <rtems_rfs_rtems_mknod+0xc0><== NOT EXECUTED
ffc1380c:	2f 86 60 00 	cmpwi   cr7,r6,24576                           <== NOT EXECUTED
ffc13810:	40 9e 00 28 	bne-    cr7,ffc13838 <rtems_rfs_rtems_mknod+0xe4><== NOT EXECUTED
  {                                                                   
    int major;                                                        
    int minor;                                                        
    rtems_filesystem_split_dev_t (dev, major, minor);                 
    rtems_rfs_inode_set_block (&inode, 0, major);                     
ffc13814:	38 61 00 10 	addi    r3,r1,16                               <== NOT EXECUTED
ffc13818:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc1381c:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc13820:	4b ff f8 f5 	bl      ffc13114 <rtems_rfs_inode_set_block>   <== NOT EXECUTED
    rtems_rfs_inode_set_block (&inode, 1, minor);                     
ffc13824:	38 61 00 10 	addi    r3,r1,16                               <== NOT EXECUTED
ffc13828:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1382c:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc13830:	4b ff f8 e5 	bl      ffc13114 <rtems_rfs_inode_set_block>   <== NOT EXECUTED
                                                                      
  if (S_ISDIR(mode) || S_ISREG(mode))                                 
  {                                                                   
  }                                                                   
  else if (S_ISCHR (mode) || S_ISBLK (mode))                          
  {                                                                   
ffc13834:	48 00 00 20 	b       ffc13854 <rtems_rfs_rtems_mknod+0x100> <== NOT EXECUTED
    rtems_rfs_inode_set_block (&inode, 0, major);                     
    rtems_rfs_inode_set_block (&inode, 1, minor);                     
  }                                                                   
  else                                                                
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
ffc13838:	38 81 00 10 	addi    r4,r1,16                               <== NOT EXECUTED
ffc1383c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc13840:	4b ff f1 9d 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
    return rtems_rfs_rtems_error ("mknod: bad mode", EINVAL);         
ffc13844:	48 00 d9 89 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc13848:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc1384c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc13850:	48 00 00 24 	b       ffc13874 <rtems_rfs_rtems_mknod+0x120> <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc13854:	7f e3 fb 78 	mr      r3,r31                                 
ffc13858:	38 81 00 10 	addi    r4,r1,16                               
ffc1385c:	4b ff f1 81 	bl      ffc129dc <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
  {                                                                   
    return rtems_rfs_rtems_error ("mknod: closing inode", rc);        
  }                                                                   
                                                                      
  return 0;                                                           
ffc13860:	39 20 00 00 	li      r9,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)                                                         
ffc13864:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc13868:	40 81 00 10 	ble-    ffc13878 <rtems_rfs_rtems_mknod+0x124> <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("mknod: closing inode", rc);        
ffc1386c:	48 00 d9 61 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc13870:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc13874:	39 20 ff ff 	li      r9,-1                                  
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc13878:	39 61 00 60 	addi    r11,r1,96                              
ffc1387c:	7d 23 4b 78 	mr      r3,r9                                  
ffc13880:	4b fe dc d4 	b       ffc01554 <_restgpr_25_x>               
                                                                      

ffc136d8 <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) {
ffc136d8:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc136dc:	7c 08 02 a6 	mflr    r0                                     
ffc136e0:	7c 69 1b 78 	mr      r9,r3                                  
ffc136e4:	90 01 00 44 	stw     r0,68(r1)                              
  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);                  
ffc136e8:	38 a1 00 08 	addi    r5,r1,8                                
ffc136ec:	38 c0 00 01 	li      r6,1                                   
 */                                                                   
                                                                      
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);
ffc136f0:	81 43 00 14 	lwz     r10,20(r3)                             
 * @return rtems_filesystem_node_types_t                              
 */                                                                   
                                                                      
static rtems_filesystem_node_types_t                                  
rtems_rfs_rtems_node_type (const rtems_filesystem_location_info_t* pathloc)
{                                                                     
ffc136f4:	bf c1 00 38 	stmw    r30,56(r1)                             
  rtems_rfs_file_system*        fs = rtems_rfs_rtems_pathloc_dev (pathloc);
ffc136f8:	83 ca 00 08 	lwz     r30,8(r10)                             
  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);                  
ffc136fc:	80 89 00 08 	lwz     r4,8(r9)                               
ffc13700:	7f c3 f3 78 	mr      r3,r30                                 
ffc13704:	4b ff f0 e5 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc13708:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1370c:	40 81 00 10 	ble-    ffc1371c <rtems_rfs_rtems_node_type+0x44><== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("node_type: opening inode", rc);    
ffc13710:	48 00 da bd 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc13714:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc13718:	48 00 00 2c 	b       ffc13744 <rtems_rfs_rtems_node_type+0x6c><== NOT EXECUTED
  }                                                                   
                                                                      
  type = rtems_rfs_rtems_node_type_by_inode (&inode);                 
ffc1371c:	38 61 00 08 	addi    r3,r1,8                                
ffc13720:	4b ff fa 45 	bl      ffc13164 <rtems_rfs_rtems_node_type_by_inode>
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc13724:	38 81 00 08 	addi    r4,r1,8                                
  if (rc > 0)                                                         
  {                                                                   
    return rtems_rfs_rtems_error ("node_type: opening inode", rc);    
  }                                                                   
                                                                      
  type = rtems_rfs_rtems_node_type_by_inode (&inode);                 
ffc13728:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc1372c:	7f c3 f3 78 	mr      r3,r30                                 
ffc13730:	4b ff f2 ad 	bl      ffc129dc <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
ffc13734:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc13738:	40 81 00 10 	ble-    ffc13748 <rtems_rfs_rtems_node_type+0x70><== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("node_type: closing inode", rc);    
ffc1373c:	48 00 da 91 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc13740:	93 c3 00 00 	stw     r30,0(r3)                              <== NOT EXECUTED
ffc13744:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
ffc13748:	39 61 00 40 	addi    r11,r1,64                              
ffc1374c:	7f e3 fb 78 	mr      r3,r31                                 
ffc13750:	4b fe de 18 	b       ffc01568 <_restgpr_30_x>               
                                                                      

ffc13164 <rtems_rfs_rtems_node_type_by_inode>: /* FIXME: Return value? */ rtems_rfs_fs_close(fs); rtems_rfs_mutex_destroy (&rtems->access); free (rtems); }
ffc13164:	81 23 00 0c 	lwz     r9,12(r3)                              
 * @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);                    
ffc13168:	89 29 00 02 	lbz     r9,2(r9)                               
   * link is actually the normal path to a regular file, directory, device
   * etc's inode. Links to inodes can be considered "the real" one, yet they
   * are all links.                                                   
   */                                                                 
  uint16_t mode = rtems_rfs_inode_get_mode (inode);                   
  if (RTEMS_RFS_S_ISDIR (mode))                                       
ffc1316c:	55 29 44 26 	rlwinm  r9,r9,8,16,19                          
ffc13170:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
ffc13174:	41 9e 00 38 	beq-    cr7,ffc131ac <rtems_rfs_rtems_node_type_by_inode+0x48>
    return RTEMS_FILESYSTEM_DIRECTORY;                                
  else if (RTEMS_RFS_S_ISLNK (mode))                                  
ffc13178:	39 40 00 00 	li      r10,0                                  
ffc1317c:	61 4a a0 00 	ori     r10,r10,40960                          
ffc13180:	7f 89 50 00 	cmpw    cr7,r9,r10                             
    return RTEMS_FILESYSTEM_SYM_LINK;                                 
ffc13184:	38 60 00 03 	li      r3,3                                   
   * are all links.                                                   
   */                                                                 
  uint16_t mode = rtems_rfs_inode_get_mode (inode);                   
  if (RTEMS_RFS_S_ISDIR (mode))                                       
    return RTEMS_FILESYSTEM_DIRECTORY;                                
  else if (RTEMS_RFS_S_ISLNK (mode))                                  
ffc13188:	4d 9e 00 20 	beqlr   cr7                                    
    return RTEMS_FILESYSTEM_SYM_LINK;                                 
  else if (RTEMS_RFS_S_ISBLK (mode) || RTEMS_RFS_S_ISCHR (mode))      
ffc1318c:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc13190:	40 be 00 0c 	bne+    cr7,ffc1319c <rtems_rfs_rtems_node_type_by_inode+0x38><== ALWAYS TAKEN
    return RTEMS_FILESYSTEM_DEVICE;                                   
ffc13194:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc13198:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  uint16_t mode = rtems_rfs_inode_get_mode (inode);                   
  if (RTEMS_RFS_S_ISDIR (mode))                                       
    return RTEMS_FILESYSTEM_DIRECTORY;                                
  else if (RTEMS_RFS_S_ISLNK (mode))                                  
    return RTEMS_FILESYSTEM_SYM_LINK;                                 
  else if (RTEMS_RFS_S_ISBLK (mode) || RTEMS_RFS_S_ISCHR (mode))      
ffc1319c:	2f 89 20 00 	cmpwi   cr7,r9,8192                            
ffc131a0:	41 be ff f4 	beq-    cr7,ffc13194 <rtems_rfs_rtems_node_type_by_inode+0x30><== NEVER TAKEN
    return RTEMS_FILESYSTEM_DEVICE;                                   
  else                                                                
    return RTEMS_FILESYSTEM_MEMORY_FILE;                              
ffc131a4:	38 60 00 04 	li      r3,4                                   
ffc131a8:	4e 80 00 20 	blr                                            
   * etc's inode. Links to inodes can be considered "the real" one, yet they
   * are all links.                                                   
   */                                                                 
  uint16_t mode = rtems_rfs_inode_get_mode (inode);                   
  if (RTEMS_RFS_S_ISDIR (mode))                                       
    return RTEMS_FILESYSTEM_DIRECTORY;                                
ffc131ac:	38 60 00 00 	li      r3,0                                   
    return RTEMS_FILESYSTEM_SYM_LINK;                                 
  else if (RTEMS_RFS_S_ISBLK (mode) || RTEMS_RFS_S_ISCHR (mode))      
    return RTEMS_FILESYSTEM_DEVICE;                                   
  else                                                                
    return RTEMS_FILESYSTEM_MEMORY_FILE;                              
}                                                                     
ffc131b0:	4e 80 00 20 	blr                                            
                                                                      

ffc133d8 <rtems_rfs_rtems_readlink>: static ssize_t rtems_rfs_rtems_readlink (const rtems_filesystem_location_info_t* pathloc, char* buf, size_t bufsize) {
ffc133d8:	7c 2b 0b 78 	mr      r11,r1                                 
ffc133dc:	7c 08 02 a6 	mflr    r0                                     
ffc133e0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc133e4:	7c 69 1b 78 	mr      r9,r3                                  
ffc133e8:	7c 8a 23 78 	mr      r10,r4                                 
ffc133ec:	90 01 00 24 	stw     r0,36(r1)                              
ffc133f0:	7c a6 2b 78 	mr      r6,r5                                  
  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);       
ffc133f4:	38 e1 00 08 	addi    r7,r1,8                                
                                                                      
static ssize_t                                                        
rtems_rfs_rtems_readlink (const rtems_filesystem_location_info_t* pathloc,
                          char*                                   buf,
                          size_t                                  bufsize)
{                                                                     
ffc133f8:	4b fe e1 29 	bl      ffc01520 <_savegpr_31>                 
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (pathloc); 
ffc133fc:	81 03 00 14 	lwz     r8,20(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);       
ffc13400:	7d 45 53 78 	mr      r5,r10                                 
ffc13404:	80 89 00 08 	lwz     r4,8(r9)                               
ffc13408:	80 68 00 08 	lwz     r3,8(r8)                               
ffc1340c:	48 00 c3 ad 	bl      ffc1f7b8 <rtems_rfs_symlink_read>      
  if (rc)                                                             
ffc13410:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc13414:	41 a2 00 14 	beq+    ffc13428 <rtems_rfs_rtems_readlink+0x50><== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("readlink: reading link", rc);      
ffc13418:	48 00 dd b5 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1341c:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc13420:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc13424:	48 00 00 08 	b       ffc1342c <rtems_rfs_rtems_readlink+0x54><== NOT EXECUTED
  }                                                                   
                                                                      
  return (ssize_t) length;                                            
ffc13428:	80 61 00 08 	lwz     r3,8(r1)                               
}                                                                     
ffc1342c:	39 61 00 20 	addi    r11,r1,32                              
ffc13430:	4b fe e1 3c 	b       ffc0156c <_restgpr_31_x>               
                                                                      

ffc132ec <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) {
ffc132ec:	94 21 ff e0 	stwu    r1,-32(r1)                             <== NOT EXECUTED
ffc132f0:	7c 08 02 a6 	mflr    r0                                     <== 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);
ffc132f4:	39 00 00 01 	li      r8,1                                   <== NOT EXECUTED
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)
{                                                                     
ffc132f8:	90 01 00 24 	stw     r0,36(r1)                              <== NOT EXECUTED
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (old_loc); 
ffc132fc:	81 44 00 14 	lwz     r10,20(r4)                             <== NOT EXECUTED
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)
{                                                                     
ffc13300:	bf 61 00 0c 	stmw    r27,12(r1)                             <== 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);
ffc13304:	81 25 00 08 	lwz     r9,8(r5)                               <== NOT EXECUTED
ffc13308:	7c e5 3b 78 	mr      r5,r7                                  <== 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);                   
ffc1330c:	83 e4 00 08 	lwz     r31,8(r4)                              <== 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); 
ffc13310:	83 ca 00 08 	lwz     r30,8(r10)                             <== 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);      
ffc13314:	83 83 00 08 	lwz     r28,8(r3)                              <== 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);
ffc13318:	7f e7 fb 78 	mr      r7,r31                                 <== 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);                  
ffc1331c:	83 a4 00 0c 	lwz     r29,12(r4)                             <== 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);
ffc13320:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc13324:	7c c4 33 78 	mr      r4,r6                                  <== NOT EXECUTED
ffc13328:	7d 26 4b 78 	mr      r6,r9                                  <== NOT EXECUTED
ffc1332c:	48 00 bc 91 	bl      ffc1efbc <rtems_rfs_link>              <== NOT EXECUTED
  if (rc)                                                             
ffc13330:	7c 7b 1b 79 	mr.     r27,r3                                 <== NOT EXECUTED
ffc13334:	41 82 00 10 	beq-    ffc13344 <rtems_rfs_rtems_rename+0x58> <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("rename: linking", rc);             
ffc13338:	48 00 de 95 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1333c:	93 63 00 00 	stw     r27,0(r3)                              <== NOT EXECUTED
ffc13340:	48 00 00 30 	b       ffc13370 <rtems_rfs_rtems_rename+0x84> <== 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,                   
ffc13344:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc13348:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1334c:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc13350:	7f a6 eb 78 	mr      r6,r29                                 <== NOT EXECUTED
ffc13354:	38 e0 00 02 	li      r7,2                                   <== NOT EXECUTED
ffc13358:	48 00 be 1d 	bl      ffc1f174 <rtems_rfs_unlink>            <== NOT EXECUTED
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("rename: unlinking", rc);           
  }                                                                   
                                                                      
  return 0;                                                           
ffc1335c:	39 20 00 00 	li      r9,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)                                                             
ffc13360:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc13364:	41 a2 00 10 	beq+    ffc13374 <rtems_rfs_rtems_rename+0x88> <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("rename: unlinking", rc);           
ffc13368:	48 00 de 65 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc1336c:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc13370:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc13374:	39 61 00 20 	addi    r11,r1,32                              <== NOT EXECUTED
ffc13378:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc1337c:	4b fe e1 e0 	b       ffc0155c <_restgpr_27_x>               <== NOT EXECUTED
                                                                      

ffc14184 <rtems_rfs_rtems_set_handlers>: { /* * Mapping matches RTEMS so no need to change. */ return imode; }
ffc14184:	81 24 00 0c 	lwz     r9,12(r4)                              
 * @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);                    
ffc14188:	88 89 00 02 	lbz     r4,2(r9)                               
ffc1418c:	89 29 00 03 	lbz     r9,3(r9)                               
ffc14190:	54 84 40 2e 	rlwinm  r4,r4,8,0,23                           
ffc14194:	7c 84 4b 78 	or      r4,r4,r9                               
bool                                                                  
rtems_rfs_rtems_set_handlers (rtems_filesystem_location_info_t* loc,  
                              rtems_rfs_inode_handle*           inode)
{                                                                     
  uint16_t mode = rtems_rfs_inode_get_mode (inode);                   
  loc->handlers = NULL;                                               
ffc14198:	39 20 00 00 	li      r9,0                                   
ffc1419c:	91 23 00 10 	stw     r9,16(r3)                              
  if (RTEMS_RFS_S_ISDIR (mode))                                       
ffc141a0:	54 89 04 26 	rlwinm  r9,r4,0,16,19                          
ffc141a4:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
ffc141a8:	40 be 00 10 	bne+    cr7,ffc141b8 <rtems_rfs_rtems_set_handlers+0x34>
    loc->handlers = rtems_rfs_rtems_handlers (dir);                   
ffc141ac:	3d 20 ff c3 	lis     r9,-61                                 
ffc141b0:	39 29 5d 6c 	addi    r9,r9,23916                            
ffc141b4:	48 00 00 4c 	b       ffc14200 <rtems_rfs_rtems_set_handlers+0x7c>
  else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))       
ffc141b8:	2f 89 20 00 	cmpwi   cr7,r9,8192                            
ffc141bc:	41 9e 00 0c 	beq-    cr7,ffc141c8 <rtems_rfs_rtems_set_handlers+0x44><== NEVER TAKEN
ffc141c0:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc141c4:	40 be 00 10 	bne+    cr7,ffc141d4 <rtems_rfs_rtems_set_handlers+0x50><== ALWAYS TAKEN
    loc->handlers = rtems_rfs_rtems_handlers (device);                
ffc141c8:	3d 20 ff c3 	lis     r9,-61                                 <== NOT EXECUTED
ffc141cc:	39 29 5d 40 	addi    r9,r9,23872                            <== NOT EXECUTED
ffc141d0:	48 00 00 30 	b       ffc14200 <rtems_rfs_rtems_set_handlers+0x7c><== NOT EXECUTED
  else if (RTEMS_RFS_S_ISLNK (mode))                                  
ffc141d4:	6d 2a ff ff 	xoris   r10,r9,65535                           
ffc141d8:	2f 8a a0 00 	cmpwi   cr7,r10,-24576                         
ffc141dc:	40 9e 00 10 	bne-    cr7,ffc141ec <rtems_rfs_rtems_set_handlers+0x68>
    loc->handlers = rtems_rfs_rtems_handlers (link);                  
ffc141e0:	3d 20 ff c3 	lis     r9,-61                                 
ffc141e4:	39 29 3d d8 	addi    r9,r9,15832                            
ffc141e8:	48 00 00 18 	b       ffc14200 <rtems_rfs_rtems_set_handlers+0x7c>
  else if (RTEMS_RFS_S_ISREG (mode))                                  
ffc141ec:	6d 2a ff ff 	xoris   r10,r9,65535                           
ffc141f0:	2f 8a 80 00 	cmpwi   cr7,r10,-32768                         
ffc141f4:	40 9e 00 18 	bne-    cr7,ffc1420c <rtems_rfs_rtems_set_handlers+0x88><== NEVER TAKEN
    loc->handlers = rtems_rfs_rtems_handlers (file);                  
ffc141f8:	3d 20 ff c3 	lis     r9,-61                                 
ffc141fc:	39 29 5d 98 	addi    r9,r9,23960                            
ffc14200:	91 23 00 10 	stw     r9,16(r3)                              
  else                                                                
  {                                                                   
    printf ("rtems-rfs: mode type unknown: %04x\n", mode);            
    return false;                                                     
  }                                                                   
  return true;                                                        
ffc14204:	38 60 00 01 	li      r3,1                                   
ffc14208:	4e 80 00 20 	blr                                            
 */                                                                   
                                                                      
bool                                                                  
rtems_rfs_rtems_set_handlers (rtems_filesystem_location_info_t* loc,  
                              rtems_rfs_inode_handle*           inode)
{                                                                     
ffc1420c:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc14210:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
    loc->handlers = rtems_rfs_rtems_handlers (link);                  
  else if (RTEMS_RFS_S_ISREG (mode))                                  
    loc->handlers = rtems_rfs_rtems_handlers (file);                  
  else                                                                
  {                                                                   
    printf ("rtems-rfs: mode type unknown: %04x\n", mode);            
ffc14214:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc14218:	38 63 3e 85 	addi    r3,r3,16005                            <== NOT EXECUTED
 */                                                                   
                                                                      
bool                                                                  
rtems_rfs_rtems_set_handlers (rtems_filesystem_location_info_t* loc,  
                              rtems_rfs_inode_handle*           inode)
{                                                                     
ffc1421c:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
    loc->handlers = rtems_rfs_rtems_handlers (link);                  
  else if (RTEMS_RFS_S_ISREG (mode))                                  
    loc->handlers = rtems_rfs_rtems_handlers (file);                  
  else                                                                
  {                                                                   
    printf ("rtems-rfs: mode type unknown: %04x\n", mode);            
ffc14220:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14224:	48 00 e9 4d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
    return false;                                                     
ffc14228:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
  }                                                                   
  return true;                                                        
}                                                                     
ffc1422c:	80 01 00 0c 	lwz     r0,12(r1)                              <== NOT EXECUTED
ffc14230:	38 21 00 08 	addi    r1,r1,8                                <== NOT EXECUTED
ffc14234:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc14238:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc131e0 <rtems_rfs_rtems_statvfs>: * @return int */ static int rtems_rfs_rtems_statvfs (const rtems_filesystem_location_info_t* pathloc, struct statvfs* sb) {
ffc131e0:	94 21 ff e0 	stwu    r1,-32(r1)                             <== NOT EXECUTED
ffc131e4:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc131e8:	90 01 00 24 	stw     r0,36(r1)                              <== 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);                       
ffc131ec:	38 a1 00 08 	addi    r5,r1,8                                <== 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);  
ffc131f0:	81 23 00 14 	lwz     r9,20(r3)                              <== NOT EXECUTED
 * @return int                                                        
 */                                                                   
static int                                                            
rtems_rfs_rtems_statvfs (const rtems_filesystem_location_info_t* pathloc,
                         struct statvfs*                         sb)  
{                                                                     
ffc131f4:	bf c1 00 18 	stmw    r30,24(r1)                             <== NOT EXECUTED
ffc131f8:	7c 9f 23 78 	mr      r31,r4                                 <== 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);                       
ffc131fc:	38 81 00 0c 	addi    r4,r1,12                               <== 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);  
ffc13200:	83 c9 00 08 	lwz     r30,8(r9)                              <== NOT EXECUTED
  size_t                 blocks;                                      
  size_t                 inodes;                                      
                                                                      
  rtems_rfs_group_usage (fs, &blocks, &inodes);                       
ffc13204:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc13208:	4b ff f4 51 	bl      ffc12658 <rtems_rfs_group_usage>       <== NOT EXECUTED
                                                                      
  sb->f_bsize   = rtems_rfs_fs_block_size (fs);                       
ffc1320c:	81 3e 00 08 	lwz     r9,8(r30)                              <== 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;                  
ffc13210:	81 1e 00 04 	lwz     r8,4(r30)                              <== NOT EXECUTED
  sb->f_fsid    = RTEMS_RFS_SB_MAGIC;                                 
  sb->f_flag    = rtems_rfs_fs_flags (fs);                            
  sb->f_namemax = rtems_rfs_fs_max_name (fs);                         
                                                                      
  return 0;                                                           
}                                                                     
ffc13214:	39 61 00 20 	addi    r11,r1,32                              <== NOT EXECUTED
  size_t                 blocks;                                      
  size_t                 inodes;                                      
                                                                      
  rtems_rfs_group_usage (fs, &blocks, &inodes);                       
                                                                      
  sb->f_bsize   = rtems_rfs_fs_block_size (fs);                       
ffc13218:	91 3f 00 00 	stw     r9,0(r31)                              <== NOT EXECUTED
  sb->f_fsid    = RTEMS_RFS_SB_MAGIC;                                 
  sb->f_flag    = rtems_rfs_fs_flags (fs);                            
  sb->f_namemax = rtems_rfs_fs_max_name (fs);                         
                                                                      
  return 0;                                                           
}                                                                     
ffc1321c:	38 60 00 00 	li      r3,0                                   <== 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);                 
ffc13220:	81 3e 00 10 	lwz     r9,16(r30)                             <== NOT EXECUTED
ffc13224:	81 49 00 20 	lwz     r10,32(r9)                             <== NOT EXECUTED
  sb->f_blocks  = rtems_rfs_fs_media_blocks (fs);                     
ffc13228:	81 29 00 1c 	lwz     r9,28(r9)                              <== 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);                 
ffc1322c:	91 5f 00 04 	stw     r10,4(r31)                             <== NOT EXECUTED
  sb->f_blocks  = rtems_rfs_fs_media_blocks (fs);                     
  sb->f_bfree   = rtems_rfs_fs_blocks (fs) - blocks;                  
ffc13230:	81 41 00 0c 	lwz     r10,12(r1)                             <== 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);                     
ffc13234:	91 3f 00 0c 	stw     r9,12(r31)                             <== NOT EXECUTED
ffc13238:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
  sb->f_bfree   = rtems_rfs_fs_blocks (fs) - blocks;                  
ffc1323c:	7d 4a 40 50 	subf    r10,r10,r8                             <== 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);                     
ffc13240:	91 3f 00 08 	stw     r9,8(r31)                              <== NOT EXECUTED
  sb->f_bfree   = rtems_rfs_fs_blocks (fs) - blocks;                  
ffc13244:	91 3f 00 10 	stw     r9,16(r31)                             <== NOT EXECUTED
ffc13248:	91 5f 00 14 	stw     r10,20(r31)                            <== NOT EXECUTED
  sb->f_bavail  = sb->f_bfree;                                        
ffc1324c:	91 3f 00 18 	stw     r9,24(r31)                             <== NOT EXECUTED
ffc13250:	91 5f 00 1c 	stw     r10,28(r31)                            <== NOT EXECUTED
  sb->f_files   = rtems_rfs_fs_inodes (fs);                           
ffc13254:	81 3e 00 14 	lwz     r9,20(r30)                             <== NOT EXECUTED
  sb->f_ffree   = rtems_rfs_fs_inodes (fs) - inodes;                  
ffc13258:	81 41 00 08 	lwz     r10,8(r1)                              <== 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;                                        
  sb->f_files   = rtems_rfs_fs_inodes (fs);                           
ffc1325c:	91 3f 00 20 	stw     r9,32(r31)                             <== NOT EXECUTED
  sb->f_ffree   = rtems_rfs_fs_inodes (fs) - inodes;                  
ffc13260:	7d 2a 48 50 	subf    r9,r10,r9                              <== NOT EXECUTED
ffc13264:	91 3f 00 24 	stw     r9,36(r31)                             <== NOT EXECUTED
  sb->f_favail  = sb->f_ffree;                                        
ffc13268:	91 3f 00 28 	stw     r9,40(r31)                             <== NOT EXECUTED
  sb->f_fsid    = RTEMS_RFS_SB_MAGIC;                                 
ffc1326c:	3d 20 28 09 	lis     r9,10249                               <== NOT EXECUTED
ffc13270:	61 29 20 01 	ori     r9,r9,8193                             <== NOT EXECUTED
ffc13274:	91 3f 00 2c 	stw     r9,44(r31)                             <== NOT EXECUTED
  sb->f_flag    = rtems_rfs_fs_flags (fs);                            
ffc13278:	81 3e 00 00 	lwz     r9,0(r30)                              <== NOT EXECUTED
ffc1327c:	91 3f 00 30 	stw     r9,48(r31)                             <== NOT EXECUTED
  sb->f_namemax = rtems_rfs_fs_max_name (fs);                         
ffc13280:	81 3e 00 1c 	lwz     r9,28(r30)                             <== NOT EXECUTED
ffc13284:	91 3f 00 34 	stw     r9,52(r31)                             <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
ffc13288:	4b fe e2 e0 	b       ffc01568 <_restgpr_30_x>               <== NOT EXECUTED
                                                                      

ffc13434 <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) {
ffc13434:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc13438:	7c 08 02 a6 	mflr    r0                                     
ffc1343c:	90 01 00 2c 	stw     r0,44(r1)                              
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
ffc13440:	81 43 00 14 	lwz     r10,20(r3)                             
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)
{                                                                     
ffc13444:	bf 81 00 18 	stmw    r28,24(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);
ffc13448:	83 e3 00 08 	lwz     r31,8(r3)                              
  int                    rc;                                          
                                                                      
  rc = rtems_rfs_symlink (fs, node_name, node_name_len,               
                          target, strlen (target),                    
ffc1344c:	7c c3 33 78 	mr      r3,r6                                  
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);
ffc13450:	83 8a 00 08 	lwz     r28,8(r10)                             
  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),                    
ffc13454:	90 81 00 08 	stw     r4,8(r1)                               
ffc13458:	90 a1 00 0c 	stw     r5,12(r1)                              
ffc1345c:	90 c1 00 10 	stw     r6,16(r1)                              
ffc13460:	48 01 09 79 	bl      ffc23dd8 <strlen>                      
ffc13464:	7c 7d 1b 78 	mr      r29,r3                                 
{                                                                     
  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,               
ffc13468:	48 00 48 ed 	bl      ffc17d54 <geteuid>                     
ffc1346c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc13470:	48 00 48 d5 	bl      ffc17d44 <getegid>                     
ffc13474:	80 81 00 08 	lwz     r4,8(r1)                               
ffc13478:	7c 69 1b 78 	mr      r9,r3                                  
ffc1347c:	80 a1 00 0c 	lwz     r5,12(r1)                              
ffc13480:	7f ea fb 78 	mr      r10,r31                                
ffc13484:	80 c1 00 10 	lwz     r6,16(r1)                              
ffc13488:	7f 83 e3 78 	mr      r3,r28                                 
ffc1348c:	7f a7 eb 78 	mr      r7,r29                                 
ffc13490:	7f c8 f3 78 	mr      r8,r30                                 
ffc13494:	48 00 c0 a1 	bl      ffc1f534 <rtems_rfs_symlink>           
                          target, strlen (target),                    
                          geteuid(), getegid(), parent);              
  if (rc)                                                             
ffc13498:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1349c:	41 a2 00 14 	beq+    ffc134b0 <rtems_rfs_rtems_symlink+0x7c><== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("symlink: linking", rc);            
ffc134a0:	48 00 dd 2d 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc134a4:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc134a8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc134ac:	48 00 00 08 	b       ffc134b4 <rtems_rfs_rtems_symlink+0x80><== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
ffc134b0:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc134b4:	39 61 00 28 	addi    r11,r1,40                              
ffc134b8:	4b fe e0 a8 	b       ffc01560 <_restgpr_28_x>               
                                                                      

ffc1faec <rtems_rfs_rtems_unlock>: /** * Unlock the RFS file system. */ static inline void rtems_rfs_rtems_unlock (rtems_rfs_file_system* fs) {
ffc1faec:	7c 2b 0b 78 	mr      r11,r1                                 
ffc1faf0:	7c 08 02 a6 	mflr    r0                                     
ffc1faf4:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1faf8:	90 01 00 14 	stw     r0,20(r1)                              
ffc1fafc:	4b fe 1a 25 	bl      ffc01520 <_savegpr_31>                 
  rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);            
ffc1fb00:	83 e3 00 80 	lwz     r31,128(r3)                            
  rtems_rfs_buffers_release (fs);                                     
ffc1fb04:	4b ff c8 8d 	bl      ffc1c390 <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);            
ffc1fb08:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc1fb0c:	4b fe de fd 	bl      ffc0da08 <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc1fb10:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1fb14:	41 a2 00 44 	beq+    ffc1fb58 <rtems_rfs_rtems_unlock+0x6c> <== ALWAYS TAKEN
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc1fb18:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1fb1c:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc1fb20:	4b ff 47 29 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1fb24:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1fb28:	41 be 00 30 	beq+    cr7,ffc1fb58 <rtems_rfs_rtems_unlock+0x6c><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc1fb2c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1fb30:	4b ff 7e 0d 	bl      ffc1793c <rtems_status_text>           <== NOT EXECUTED
  rtems_rfs_mutex_unlock (&rtems->access);                            
}                                                                     
ffc1fb34:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc1fb38:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc1fb3c:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc1fb40:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc1fb44:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1fb48:	38 63 3e 04 	addi    r3,r3,15876                            <== NOT EXECUTED
ffc1fb4c:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc1fb50:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1fb54:	48 00 30 1c 	b       ffc22b70 <printf>                      <== NOT EXECUTED
ffc1fb58:	39 61 00 10 	addi    r11,r1,16                              
ffc1fb5c:	4b fe 1a 10 	b       ffc0156c <_restgpr_31_x>               
                                                                      

ffc134bc <rtems_rfs_rtems_utime>: static int rtems_rfs_rtems_utime(const rtems_filesystem_location_info_t* pathloc, time_t atime, time_t mtime) {
ffc134bc:	94 21 ff b8 	stwu    r1,-72(r1)                             <== NOT EXECUTED
ffc134c0:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc134c4:	7c 69 1b 78 	mr      r9,r3                                  <== NOT EXECUTED
ffc134c8:	90 01 00 4c 	stw     r0,76(r1)                              <== 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);                  
ffc134cc:	38 c0 00 01 	li      r6,1                                   <== 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);  
ffc134d0:	81 43 00 14 	lwz     r10,20(r3)                             <== NOT EXECUTED
                                                                      
static int                                                            
rtems_rfs_rtems_utime(const rtems_filesystem_location_info_t* pathloc,
                      time_t                                  atime,  
                      time_t                                  mtime)  
{                                                                     
ffc134d4:	bf 81 00 38 	stmw    r28,56(r1)                             <== NOT EXECUTED
ffc134d8:	7c 9e 23 78 	mr      r30,r4                                 <== NOT EXECUTED
ffc134dc:	7c bf 2b 78 	mr      r31,r5                                 <== NOT EXECUTED
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
ffc134e0:	83 aa 00 08 	lwz     r29,8(r10)                             <== 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);                  
ffc134e4:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc134e8:	80 89 00 08 	lwz     r4,8(r9)                               <== NOT EXECUTED
ffc134ec:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc134f0:	4b ff f2 f9 	bl      ffc127e8 <rtems_rfs_inode_open>        <== NOT EXECUTED
  if (rc)                                                             
ffc134f4:	7c 7c 1b 79 	mr.     r28,r3                                 <== NOT EXECUTED
ffc134f8:	41 82 00 10 	beq-    ffc13508 <rtems_rfs_rtems_utime+0x4c>  <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("utime: read inode", rc);           
ffc134fc:	48 00 dc d1 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc13500:	93 83 00 00 	stw     r28,0(r3)                              <== NOT EXECUTED
ffc13504:	48 00 00 68 	b       ffc1356c <rtems_rfs_rtems_utime+0xb0>  <== 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);                  
ffc13508:	81 21 00 14 	lwz     r9,20(r1)                              <== NOT EXECUTED
ffc1350c:	57 ca 46 3e 	rlwinm  r10,r30,8,24,31                        <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_rfs_inode_set_atime (&inode, atime);                          
  rtems_rfs_inode_set_mtime (&inode, mtime);                          
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc13510:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc13514:	99 49 00 10 	stb     r10,16(r9)                             <== NOT EXECUTED
ffc13518:	57 ca 84 3e 	rlwinm  r10,r30,16,16,31                       <== NOT EXECUTED
ffc1351c:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc13520:	99 49 00 11 	stb     r10,17(r9)                             <== NOT EXECUTED
ffc13524:	57 ca c2 3e 	rlwinm  r10,r30,24,8,31                        <== NOT EXECUTED
ffc13528:	99 49 00 12 	stb     r10,18(r9)                             <== NOT EXECUTED
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1352c:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc13530:	99 41 00 18 	stb     r10,24(r1)                             <== 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);                  
ffc13534:	57 ea 46 3e 	rlwinm  r10,r31,8,24,31                        <== NOT EXECUTED
ffc13538:	99 49 00 14 	stb     r10,20(r9)                             <== NOT EXECUTED
ffc1353c:	57 ea 84 3e 	rlwinm  r10,r31,16,16,31                       <== NOT EXECUTED
ffc13540:	99 49 00 15 	stb     r10,21(r9)                             <== NOT EXECUTED
ffc13544:	57 ea c2 3e 	rlwinm  r10,r31,24,8,31                        <== NOT EXECUTED
ffc13548:	9b e9 00 17 	stb     r31,23(r9)                             <== 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);                  
ffc1354c:	9b c9 00 13 	stb     r30,19(r9)                             <== 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);                  
ffc13550:	99 49 00 16 	stb     r10,22(r9)                             <== NOT EXECUTED
ffc13554:	4b ff f4 89 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("utime: closing inode", rc);        
  }                                                                   
                                                                      
  return 0;                                                           
ffc13558:	39 20 00 00 	li      r9,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)                                                             
ffc1355c:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc13560:	41 a2 00 10 	beq+    ffc13570 <rtems_rfs_rtems_utime+0xb4>  <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("utime: closing inode", rc);        
ffc13564:	48 00 dc 69 	bl      ffc211cc <__errno>                     <== NOT EXECUTED
ffc13568:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc1356c:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc13570:	39 61 00 48 	addi    r11,r1,72                              <== NOT EXECUTED
ffc13574:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc13578:	4b fe df e8 	b       ffc01560 <_restgpr_28_x>               <== NOT EXECUTED
                                                                      

ffc1bbe0 <rtems_rfs_scan_chain>: */ static rtems_rfs_buffer* rtems_rfs_scan_chain (rtems_chain_control* chain, uint32_t* count, rtems_rfs_buffer_block block) {
ffc1bbe0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1bbe4:	7c 08 02 a6 	mflr    r0                                     
ffc1bbe8:	90 01 00 24 	stw     r0,36(r1)                              
ffc1bbec:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc1bbf0:	7c 7d 1b 78 	mr      r29,r3                                 
ffc1bbf4:	7c 9e 23 78 	mr      r30,r4                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Tail( the_chain )->previous;                          
ffc1bbf8:	83 e3 00 08 	lwz     r31,8(r3)                              
  rtems_rfs_buffer* buffer;                                           
  rtems_chain_node* node;                                             
                                                                      
  node = rtems_chain_last (chain);                                    
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
ffc1bbfc:	38 80 00 80 	li      r4,128                                 
ffc1bc00:	38 60 00 00 	li      r3,0                                   
 */                                                                   
static rtems_rfs_buffer*                                              
rtems_rfs_scan_chain (rtems_chain_control*   chain,                   
                      uint32_t*              count,                   
                      rtems_rfs_buffer_block block)                   
{                                                                     
ffc1bc04:	7c bc 2b 78 	mr      r28,r5                                 
  rtems_rfs_buffer* buffer;                                           
  rtems_chain_node* node;                                             
                                                                      
  node = rtems_chain_last (chain);                                    
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
ffc1bc08:	4b ff 86 41 	bl      ffc14248 <rtems_rfs_trace>             
ffc1bc0c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1bc10:	41 be 00 9c 	beq+    cr7,ffc1bcac <rtems_rfs_scan_chain+0xcc><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-scan: count=%" PRIu32 ", block=%" PRIu32 ": ", *count, block);
ffc1bc14:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1bc18:	80 9e 00 00 	lwz     r4,0(r30)                              <== NOT EXECUTED
ffc1bc1c:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc1bc20:	38 63 49 39 	addi    r3,r3,18745                            <== NOT EXECUTED
ffc1bc24:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1bc28:	48 00 6f 49 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc1bc2c:	48 00 00 80 	b       ffc1bcac <rtems_rfs_scan_chain+0xcc>   <== NOT EXECUTED
                                                                      
  while (!rtems_chain_is_head (chain, node))                          
  {                                                                   
    buffer = (rtems_rfs_buffer*) node;                                
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))              
ffc1bc30:	4b ff 86 19 	bl      ffc14248 <rtems_rfs_trace>             
ffc1bc34:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1bc38:	41 be 00 14 	beq+    cr7,ffc1bc4c <rtems_rfs_scan_chain+0x6c><== ALWAYS TAKEN
      printf ("%" PRIuPTR " ", ((intptr_t) buffer->user));            
ffc1bc3c:	80 9f 00 34 	lwz     r4,52(r31)                             <== NOT EXECUTED
ffc1bc40:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc1bc44:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1bc48:	48 00 6f 29 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
    if (((rtems_rfs_buffer_block) ((intptr_t)(buffer->user))) == block)
ffc1bc4c:	81 3f 00 34 	lwz     r9,52(r31)                             
ffc1bc50:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
ffc1bc54:	40 be 00 50 	bne+    cr7,ffc1bca4 <rtems_rfs_scan_chain+0xc4>
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))            
ffc1bc58:	38 60 00 00 	li      r3,0                                   
ffc1bc5c:	38 80 00 80 	li      r4,128                                 
ffc1bc60:	4b ff 85 e9 	bl      ffc14248 <rtems_rfs_trace>             
ffc1bc64:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1bc68:	41 be 00 18 	beq+    cr7,ffc1bc80 <rtems_rfs_scan_chain+0xa0><== ALWAYS TAKEN
        printf (": found block=%" PRIuPTR "\n",                       
ffc1bc6c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1bc70:	80 9f 00 34 	lwz     r4,52(r31)                             <== NOT EXECUTED
ffc1bc74:	38 63 49 6c 	addi    r3,r3,18796                            <== NOT EXECUTED
ffc1bc78:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1bc7c:	48 00 6e f5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                ((intptr_t)(buffer->user)));                          
                                                                      
      (*count)--;                                                     
ffc1bc80:	81 3e 00 00 	lwz     r9,0(r30)                              
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
ffc1bc84:	7f e3 fb 78 	mr      r3,r31                                 
ffc1bc88:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1bc8c:	91 3e 00 00 	stw     r9,0(r30)                              
ffc1bc90:	4b ff cf 55 	bl      ffc18be4 <_Chain_Extract>              
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc1bc94:	39 20 00 00 	li      r9,0                                   
ffc1bc98:	91 3f 00 04 	stw     r9,4(r31)                              
ffc1bc9c:	91 3f 00 00 	stw     r9,0(r31)                              
      rtems_chain_extract (node);                                     
      rtems_chain_set_off_chain (node);                               
      return buffer;                                                  
ffc1bca0:	48 00 00 40 	b       ffc1bce0 <rtems_rfs_scan_chain+0x100>  
                                true);                                
  if ((rc > 0) && (rrc == 0))                                         
    rrc = rc;                                                         
                                                                      
  return rrc;                                                         
}                                                                     
ffc1bca4:	83 ff 00 04 	lwz     r31,4(r31)                             
ffc1bca8:	48 00 00 0c 	b       ffc1bcb4 <rtems_rfs_scan_chain+0xd4>   
  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));            
ffc1bcac:	3f 60 ff c3 	lis     r27,-61                                
ffc1bcb0:	3b 7b 49 68 	addi    r27,r27,18792                          
  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))                          
ffc1bcb4:	7f 9f e8 00 	cmpw    cr7,r31,r29                            
  {                                                                   
    buffer = (rtems_rfs_buffer*) node;                                
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))              
ffc1bcb8:	38 60 00 00 	li      r3,0                                   
ffc1bcbc:	38 80 00 80 	li      r4,128                                 
  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))                          
ffc1bcc0:	40 9e ff 70 	bne+    cr7,ffc1bc30 <rtems_rfs_scan_chain+0x50>
      return buffer;                                                  
    }                                                                 
    node = rtems_chain_previous (node);                               
  }                                                                   
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
ffc1bcc4:	4b ff 85 85 	bl      ffc14248 <rtems_rfs_trace>             
    printf (": not found\n");                                         
                                                                      
  return NULL;                                                        
ffc1bcc8:	3b e0 00 00 	li      r31,0                                  
      return buffer;                                                  
    }                                                                 
    node = rtems_chain_previous (node);                               
  }                                                                   
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
ffc1bccc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1bcd0:	41 be 00 10 	beq+    cr7,ffc1bce0 <rtems_rfs_scan_chain+0x100><== ALWAYS TAKEN
    printf (": not found\n");                                         
ffc1bcd4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1bcd8:	38 63 49 7e 	addi    r3,r3,18814                            <== NOT EXECUTED
ffc1bcdc:	48 00 71 fd 	bl      ffc22ed8 <puts>                        <== NOT EXECUTED
                                                                      
  return NULL;                                                        
}                                                                     
ffc1bce0:	39 61 00 20 	addi    r11,r1,32                              
ffc1bce4:	7f e3 fb 78 	mr      r3,r31                                 
ffc1bce8:	4b fe 58 74 	b       ffc0155c <_restgpr_27_x>               
                                                                      

ffc1a29c <rtems_rfs_search_map_for_clear_bit.constprop.1>: return 0; } static int rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
ffc1a29c:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc1a2a0:	7c 08 02 a6 	mflr    r0                                     
  rtems_rfs_bitmap_element* map_bits;                                 
  int                       map_index;                                
  int                       map_offset;                               
  int                       rc;                                       
                                                                      
  *found = false;                                                     
ffc1a2a4:	39 20 00 00 	li      r9,0                                   
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
ffc1a2a8:	be c1 00 18 	stmw    r22,24(r1)                             
ffc1a2ac:	7c 9d 23 78 	mr      r29,r4                                 
  *found = false;                                                     
                                                                      
  /*                                                                  
   * Load the bitmap.                                                 
   */                                                                 
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc1a2b0:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
ffc1a2b4:	90 01 00 44 	stw     r0,68(r1)                              
ffc1a2b8:	7c 7e 1b 78 	mr      r30,r3                                 
ffc1a2bc:	7c bc 2b 78 	mr      r28,r5                                 
  rtems_rfs_bitmap_element* map_bits;                                 
  int                       map_index;                                
  int                       map_offset;                               
  int                       rc;                                       
                                                                      
  *found = false;                                                     
ffc1a2c0:	99 25 00 00 	stb     r9,0(r5)                               
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
ffc1a2c4:	7c df 33 78 	mr      r31,r6                                 
  *found = false;                                                     
                                                                      
  /*                                                                  
   * Load the bitmap.                                                 
   */                                                                 
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc1a2c8:	4b ff ff 6d 	bl      ffc1a234 <rtems_rfs_bitmap_load_map>   
  if (rc > 0)                                                         
ffc1a2cc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1a2d0:	41 a1 01 cc 	bgt+    ffc1a49c <rtems_rfs_search_map_for_clear_bit.constprop.1+0x200><== NEVER TAKEN
    return rc;                                                        
                                                                      
  /*                                                                  
   * Calculate the bit we are testing plus the end point we search over.
   */                                                                 
  test_bit = *bit;                                                    
ffc1a2d4:	81 3d 00 00 	lwz     r9,0(r29)                              
  end_bit  = test_bit + (window * direction);                         
ffc1a2d8:	57 ea 58 28 	rlwinm  r10,r31,11,0,20                        
                                                                      
  if (end_bit < 0)                                                    
ffc1a2dc:	7d 4a 4a 15 	add.    r10,r10,r9                             
ffc1a2e0:	41 80 00 18 	blt-    ffc1a2f8 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x5c>
    end_bit = 0;                                                      
  else if (end_bit >= control->size)                                  
ffc1a2e4:	81 1e 00 0c 	lwz     r8,12(r30)                             
ffc1a2e8:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
ffc1a2ec:	41 9c 00 10 	blt-    cr7,ffc1a2fc <rtems_rfs_search_map_for_clear_bit.constprop.1+0x60>
    end_bit = control->size - 1;                                      
ffc1a2f0:	39 48 ff ff 	addi    r10,r8,-1                              
ffc1a2f4:	48 00 00 08 	b       ffc1a2fc <rtems_rfs_search_map_for_clear_bit.constprop.1+0x60>
   */                                                                 
  test_bit = *bit;                                                    
  end_bit  = test_bit + (window * direction);                         
                                                                      
  if (end_bit < 0)                                                    
    end_bit = 0;                                                      
ffc1a2f8:	39 40 00 00 	li      r10,0                                  
ffc1a2fc:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
  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);             
  search_offset = rtems_rfs_bitmap_map_offset (map_index);            
                                                                      
  search_bits = &control->search_bits[search_index];                  
ffc1a300:	81 1e 00 14 	lwz     r8,20(r30)                             
  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);             
ffc1a304:	7d 23 56 70 	srawi   r3,r9,10                               
  search_offset = rtems_rfs_bitmap_map_offset (map_index);            
                                                                      
  search_bits = &control->search_bits[search_index];                  
ffc1a308:	54 63 10 3a 	rlwinm  r3,r3,2,0,29                           
  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);              
ffc1a30c:	7d 27 2e 70 	srawi   r7,r9,5                                
  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];                  
ffc1a310:	7c 68 1a 14 	add     r3,r8,r3                               
  map_bits    = &map[map_index];                                      
ffc1a314:	81 01 00 08 	lwz     r8,8(r1)                               
ffc1a318:	54 e5 10 3a 	rlwinm  r5,r7,2,0,29                           
ffc1a31c:	7d 08 2a 14 	add     r8,r8,r5                               
    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);             
ffc1a320:	55 26 06 fe 	clrlwi  r6,r9,27                               
  search_index  = rtems_rfs_bitmap_map_index (map_index);             
  search_offset = rtems_rfs_bitmap_map_offset (map_index);            
ffc1a324:	54 eb 06 fe 	clrlwi  r11,r7,27                              
            map_offset += direction;                                  
            test_bit   += direction;                                  
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
ffc1a328:	57 e5 10 3a 	rlwinm  r5,r31,2,0,29                          
ffc1a32c:	38 00 00 1f 	li      r0,31                                  
ffc1a330:	40 9d 00 08 	ble-    cr7,ffc1a338 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x9c>
ffc1a334:	38 00 00 00 	li      r0,0                                   
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
ffc1a338:	57 f7 28 34 	rlwinm  r23,r31,5,0,26                         
       * 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);       
      if (direction > 0)                                              
ffc1a33c:	2f 9f 00 00 	cmpwi   cr7,r31,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);                     
ffc1a340:	38 80 00 01 	li      r4,1                                   
ffc1a344:	48 00 00 10 	b       ffc1a354 <rtems_rfs_search_map_for_clear_bit.constprop.1+0xb8>
      map_bits += direction * bits_skipped;                           
      map_index += direction * bits_skipped;                          
    }                                                                 
                                                                      
    search_bits  += direction;                                        
    search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
ffc1a348:	39 60 00 1f 	li      r11,31                                 
ffc1a34c:	48 00 00 08 	b       ffc1a354 <rtems_rfs_search_map_for_clear_bit.constprop.1+0xb8>
ffc1a350:	39 60 00 00 	li      r11,0                                  
    /*                                                                
     * 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))
ffc1a354:	83 43 00 00 	lwz     r26,0(r3)                              
ffc1a358:	2f 1a 00 00 	cmpwi   cr6,r26,0                              
ffc1a35c:	41 9a 00 d4 	beq-    cr6,ffc1a430 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x194>
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
ffc1a360:	7d 87 fa 14 	add     r12,r7,r31                             
ffc1a364:	55 8c 28 34 	rlwinm  r12,r12,5,0,26                         
ffc1a368:	7d 8c 02 14 	add     r12,r12,r0                             
ffc1a36c:	7d 67 58 50 	subf    r11,r7,r11                             
ffc1a370:	48 00 00 b0 	b       ffc1a420 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x184>
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
ffc1a374:	7c 9b d8 30 	slw     r27,r4,r27                             
    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))     
ffc1a378:	7f 76 d0 39 	and.    r22,r27,r26                            
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
ffc1a37c:	7c c9 30 50 	subf    r6,r9,r6                               
    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))     
ffc1a380:	40 82 00 64 	bne-    ffc1a3e4 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x148>
ffc1a384:	48 00 00 6c 	b       ffc1a3f0 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x154>
           * 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))       
ffc1a388:	83 08 00 00 	lwz     r24,0(r8)                              
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
ffc1a38c:	7c 99 c8 30 	slw     r25,r4,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))       
ffc1a390:	7f 36 c0 39 	and.    r22,r25,r24                            
ffc1a394:	41 a2 00 44 	beq+    ffc1a3d8 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x13c>
 */                                                                   
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);                    
ffc1a398:	7f 19 c8 78 	andc    r25,r24,r25                            
                 && (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);
              if (rtems_rfs_bitmap_match(*map_bits,                   
ffc1a39c:	2f 99 00 00 	cmpwi   cr7,r25,0                              
          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);
ffc1a3a0:	93 28 00 00 	stw     r25,0(r8)                              
              if (rtems_rfs_bitmap_match(*map_bits,                   
ffc1a3a4:	40 9e 00 10 	bne-    cr7,ffc1a3b4 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x118>
 */                                                                   
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);                    
ffc1a3a8:	81 43 00 00 	lwz     r10,0(r3)                              
ffc1a3ac:	7d 5b d8 78 	andc    r27,r10,r27                            
            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,    
ffc1a3b0:	93 63 00 00 	stw     r27,0(r3)                              
                                                     1 << search_offset);
              control->free--;                                        
ffc1a3b4:	81 5e 00 10 	lwz     r10,16(r30)                            
ffc1a3b8:	39 4a ff ff 	addi    r10,r10,-1                             
ffc1a3bc:	91 5e 00 10 	stw     r10,16(r30)                            
              *bit = test_bit;                                        
              *found = true;                                          
              rtems_rfs_buffer_mark_dirty (control->buffer);          
ffc1a3c0:	81 5e 00 00 	lwz     r10,0(r30)                             
              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--;                                        
              *bit = test_bit;                                        
ffc1a3c4:	91 3d 00 00 	stw     r9,0(r29)                              
              *found = true;                                          
ffc1a3c8:	39 20 00 01 	li      r9,1                                   
ffc1a3cc:	99 3c 00 00 	stb     r9,0(r28)                              
              rtems_rfs_buffer_mark_dirty (control->buffer);          
ffc1a3d0:	99 2a 00 00 	stb     r9,0(r10)                              
ffc1a3d4:	48 00 00 c4 	b       ffc1a498 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1fc>
              return 0;                                               
            }                                                         
                                                                      
            if (test_bit == end_bit)                                  
ffc1a3d8:	7f 09 50 00 	cmpw    cr6,r9,r10                             
ffc1a3dc:	41 9a 00 14 	beq-    cr6,ffc1a3f0 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x154>
              break;                                                  
                                                                      
            map_offset += direction;                                  
            test_bit   += direction;                                  
ffc1a3e0:	7d 29 fa 14 	add     r9,r9,r31                              
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
ffc1a3e4:	7f 26 4a 14 	add     r25,r6,r9                              
        {                                                             
          /*                                                          
           * 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)                                    
ffc1a3e8:	2b 19 00 1f 	cmplwi  cr6,r25,31                             
ffc1a3ec:	40 99 ff 9c 	ble+    cr6,ffc1a388 <rtems_rfs_search_map_for_clear_bit.constprop.1+0xec><== ALWAYS TAKEN
            map_offset += direction;                                  
            test_bit   += direction;                                  
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
ffc1a3f0:	7d 08 2a 14 	add     r8,r8,r5                               
        map_index += direction;                                       
ffc1a3f4:	7c e7 fa 14 	add     r7,r7,r31                              
        map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
                                                                      
        test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
ffc1a3f8:	7d 89 63 78 	mr      r9,r12                                 
                                                                      
        search_offset += direction;                                   
                                                                      
        if (((direction < 0) && (test_bit <= end_bit))                
ffc1a3fc:	40 bc 00 10 	bge+    cr7,ffc1a40c <rtems_rfs_search_map_for_clear_bit.constprop.1+0x170>
ffc1a400:	7f 0c 50 00 	cmpw    cr6,r12,r10                            
ffc1a404:	41 b9 00 14 	bgt+    cr6,ffc1a418 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x17c>
ffc1a408:	48 00 00 6c 	b       ffc1a474 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1d8>
            || ((direction > 0) && (test_bit >= end_bit)))            
ffc1a40c:	41 9e 00 0c 	beq-    cr7,ffc1a418 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x17c><== NEVER TAKEN
ffc1a410:	7f 0c 50 00 	cmpw    cr6,r12,r10                            
ffc1a414:	40 98 00 60 	bge-    cr6,ffc1a474 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1d8>
ffc1a418:	7d 8c ba 14 	add     r12,r12,r23                            
    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))     
ffc1a41c:	7c 06 03 78 	mr      r6,r0                                  
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
ffc1a420:	7f 6b 3a 14 	add     r27,r11,r7                             
     * 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)                                     
ffc1a424:	2b 1b 00 1f 	cmplwi  cr6,r27,31                             
ffc1a428:	40 99 ff 4c 	ble+    cr6,ffc1a374 <rtems_rfs_search_map_for_clear_bit.constprop.1+0xd8>
ffc1a42c:	48 00 00 4c 	b       ffc1a478 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1dc>
       *                                                              
       * 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);       
ffc1a430:	55 29 00 34 	rlwinm  r9,r9,0,0,26                           
      if (direction > 0)                                              
ffc1a434:	40 9d 00 18 	ble-    cr7,ffc1a44c <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1b0>
      {                                                               
        bits_skipped = rtems_rfs_bitmap_element_bits () - search_offset;
ffc1a438:	21 8b 00 20 	subfic  r12,r11,32                             
        test_bit += bits_skipped * rtems_rfs_bitmap_element_bits ();  
ffc1a43c:	55 86 28 34 	rlwinm  r6,r12,5,0,26                          
ffc1a440:	7d 26 4a 14 	add     r9,r6,r9                               
        map_offset = 0;                                               
ffc1a444:	38 c0 00 00 	li      r6,0                                   
ffc1a448:	48 00 00 18 	b       ffc1a460 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1c4>
      }                                                               
      else                                                            
      {                                                               
        bits_skipped = search_offset + 1;                             
ffc1a44c:	39 8b 00 01 	addi    r12,r11,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;
ffc1a450:	55 6b 28 34 	rlwinm  r11,r11,5,0,26                         
ffc1a454:	7d 6b 58 f8 	not     r11,r11                                
ffc1a458:	7d 2b 4a 14 	add     r9,r11,r9                              
        map_offset = rtems_rfs_bitmap_element_bits () - 1;            
ffc1a45c:	38 c0 00 1f 	li      r6,31                                  
      }                                                               
      map_bits += direction * bits_skipped;                           
ffc1a460:	7d 9f 61 d6 	mullw   r12,r31,r12                            
ffc1a464:	55 8b 10 3a 	rlwinm  r11,r12,2,0,29                         
ffc1a468:	7d 08 5a 14 	add     r8,r8,r11                              
      map_index += direction * bits_skipped;                          
ffc1a46c:	7c e7 62 14 	add     r7,r7,r12                              
ffc1a470:	48 00 00 08 	b       ffc1a478 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1dc>
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
        map_index += direction;                                       
        map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
ffc1a474:	7c 06 03 78 	mr      r6,r0                                  
      }                                                               
      map_bits += direction * bits_skipped;                           
      map_index += direction * bits_skipped;                          
    }                                                                 
                                                                      
    search_bits  += direction;                                        
ffc1a478:	7c 63 2a 14 	add     r3,r3,r5                               
    search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
ffc1a47c:	41 bd 00 14 	bgt+    cr7,ffc1a490 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1f4>
  }                                                                   
  while (((direction < 0) && (test_bit >= end_bit))                   
         || ((direction > 0) && (test_bit <= end_bit)));              
ffc1a480:	41 9e 00 18 	beq-    cr7,ffc1a498 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1fc><== NEVER TAKEN
    }                                                                 
                                                                      
    search_bits  += direction;                                        
    search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
  }                                                                   
  while (((direction < 0) && (test_bit >= end_bit))                   
ffc1a484:	7f 09 50 00 	cmpw    cr6,r9,r10                             
ffc1a488:	40 b8 fe c0 	bge-    cr6,ffc1a348 <rtems_rfs_search_map_for_clear_bit.constprop.1+0xac>
ffc1a48c:	48 00 00 0c 	b       ffc1a498 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1fc>
         || ((direction > 0) && (test_bit <= end_bit)));              
ffc1a490:	7f 09 50 00 	cmpw    cr6,r9,r10                             
ffc1a494:	40 99 fe bc 	ble+    cr6,ffc1a350 <rtems_rfs_search_map_for_clear_bit.constprop.1+0xb4>
                                                                      
  return 0;                                                           
ffc1a498:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1a49c:	39 61 00 40 	addi    r11,r1,64                              
ffc1a4a0:	4b fe 70 a8 	b       ffc01548 <_restgpr_22_x>               
                                                                      

ffc1f534 <rtems_rfs_symlink>: const char* link, int link_length, uid_t uid, gid_t gid, rtems_rfs_ino parent) {
ffc1f534:	94 21 ff 38 	stwu    r1,-200(r1)                            
ffc1f538:	7c 08 02 a6 	mflr    r0                                     
ffc1f53c:	be e1 00 a4 	stmw    r23,164(r1)                            
ffc1f540:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1f544:	7c 9c 23 78 	mr      r28,r4                                 
  rtems_rfs_inode_handle inode;                                       
  rtems_rfs_ino          ino;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))                      
ffc1f548:	38 60 00 02 	li      r3,2                                   
                   const char*            link,                       
                   int                    link_length,                
                   uid_t                  uid,                        
                   gid_t                  gid,                        
                   rtems_rfs_ino          parent)                     
{                                                                     
ffc1f54c:	90 01 00 cc 	stw     r0,204(r1)                             
  rtems_rfs_inode_handle inode;                                       
  rtems_rfs_ino          ino;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))                      
ffc1f550:	38 80 00 00 	li      r4,0                                   
                   const char*            link,                       
                   int                    link_length,                
                   uid_t                  uid,                        
                   gid_t                  gid,                        
                   rtems_rfs_ino          parent)                     
{                                                                     
ffc1f554:	7c b7 2b 78 	mr      r23,r5                                 
ffc1f558:	7c db 33 78 	mr      r27,r6                                 
ffc1f55c:	7c fd 3b 78 	mr      r29,r7                                 
ffc1f560:	7d 18 43 78 	mr      r24,r8                                 
ffc1f564:	7d 39 4b 78 	mr      r25,r9                                 
ffc1f568:	7d 5a 53 78 	mr      r26,r10                                
  rtems_rfs_inode_handle inode;                                       
  rtems_rfs_ino          ino;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))                      
ffc1f56c:	4b ff 4c dd 	bl      ffc14248 <rtems_rfs_trace>             
ffc1f570:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1f574:	40 9e 00 18 	bne-    cr7,ffc1f58c <rtems_rfs_symlink+0x58>  <== NEVER TAKEN
    printf (" link:");                                                
    for (c = 0; c < link_length; c++)                                 
      printf ("%c", link[c]);                                         
  }                                                                   
                                                                      
  if (link_length >= rtems_rfs_fs_block_size (fs))                    
ffc1f578:	81 3f 00 08 	lwz     r9,8(r31)                              
    return ENAMETOOLONG;                                              
ffc1f57c:	3b c0 00 5b 	li      r30,91                                 
    printf (" link:");                                                
    for (c = 0; c < link_length; c++)                                 
      printf ("%c", link[c]);                                         
  }                                                                   
                                                                      
  if (link_length >= rtems_rfs_fs_block_size (fs))                    
ffc1f580:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc1f584:	40 bc 02 28 	bge+    cr7,ffc1f7ac <rtems_rfs_symlink+0x278> <== NEVER TAKEN
ffc1f588:	48 00 00 64 	b       ffc1f5ec <rtems_rfs_symlink+0xb8>      
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))                      
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: symlink: parent:%" PRIu32 " name:", parent);  
ffc1f58c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f590:	38 63 5c aa 	addi    r3,r3,23722                            <== NOT EXECUTED
ffc1f594:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc1f598:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1f59c:	48 00 35 d5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
    for (c = 0; c < length; c++)                                      
ffc1f5a0:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
ffc1f5a4:	48 00 00 10 	b       ffc1f5b4 <rtems_rfs_symlink+0x80>      <== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc1f5a8:	7c 7c f0 ae 	lbzx    r3,r28,r30                             <== 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++)                                      
ffc1f5ac:	3b de 00 01 	addi    r30,r30,1                              <== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc1f5b0:	48 00 38 4d 	bl      ffc22dfc <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++)                                      
ffc1f5b4:	7f 9e b8 00 	cmpw    cr7,r30,r23                            <== NOT EXECUTED
ffc1f5b8:	41 9c ff f0 	blt+    cr7,ffc1f5a8 <rtems_rfs_symlink+0x74>  <== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf (" link:");                                                
ffc1f5bc:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f5c0:	38 63 5c cf 	addi    r3,r3,23759                            <== NOT EXECUTED
ffc1f5c4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1f5c8:	48 00 35 a9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
    for (c = 0; c < link_length; c++)                                 
ffc1f5cc:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
ffc1f5d0:	48 00 00 10 	b       ffc1f5e0 <rtems_rfs_symlink+0xac>      <== NOT EXECUTED
      printf ("%c", link[c]);                                         
ffc1f5d4:	7c 7b f0 ae 	lbzx    r3,r27,r30                             <== 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++)                                 
ffc1f5d8:	3b de 00 01 	addi    r30,r30,1                              <== NOT EXECUTED
      printf ("%c", link[c]);                                         
ffc1f5dc:	48 00 38 21 	bl      ffc22dfc <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++)                                 
ffc1f5e0:	7f 9e e8 00 	cmpw    cr7,r30,r29                            <== NOT EXECUTED
ffc1f5e4:	41 9c ff f0 	blt+    cr7,ffc1f5d4 <rtems_rfs_symlink+0xa0>  <== NOT EXECUTED
ffc1f5e8:	4b ff ff 90 	b       ffc1f578 <rtems_rfs_symlink+0x44>      <== NOT EXECUTED
  }                                                                   
                                                                      
  if (link_length >= rtems_rfs_fs_block_size (fs))                    
    return ENAMETOOLONG;                                              
                                                                      
  rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),       
ffc1f5ec:	7f 83 e3 78 	mr      r3,r28                                 
ffc1f5f0:	48 00 47 e9 	bl      ffc23dd8 <strlen>                      
ffc1f5f4:	39 21 00 98 	addi    r9,r1,152                              
ffc1f5f8:	91 21 00 08 	stw     r9,8(r1)                               
ffc1f5fc:	38 e0 00 00 	li      r7,0                                   
ffc1f600:	7c 66 1b 78 	mr      r6,r3                                  
ffc1f604:	7f 44 d3 78 	mr      r4,r26                                 
ffc1f608:	7f e3 fb 78 	mr      r3,r31                                 
ffc1f60c:	7f 85 e3 78 	mr      r5,r28                                 
ffc1f610:	60 e7 a1 ff 	ori     r7,r7,41471                            
ffc1f614:	39 00 00 01 	li      r8,1                                   
ffc1f618:	7f 09 c3 78 	mr      r9,r24                                 
ffc1f61c:	7f 2a cb 78 	mr      r10,r25                                
ffc1f620:	4b ff 37 65 	bl      ffc12d84 <rtems_rfs_inode_create>      
                               RTEMS_RFS_S_SYMLINK,                   
                               1, uid, gid, &ino);                    
  if (rc > 0)                                                         
ffc1f624:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1f628:	41 a1 01 84 	bgt+    ffc1f7ac <rtems_rfs_symlink+0x278>     <== NEVER TAKEN
    return rc;                                                        
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc1f62c:	80 81 00 98 	lwz     r4,152(r1)                             
ffc1f630:	7f e3 fb 78 	mr      r3,r31                                 
ffc1f634:	38 a1 00 60 	addi    r5,r1,96                               
ffc1f638:	38 c0 00 01 	li      r6,1                                   
ffc1f63c:	4b ff 31 ad 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc1f640:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1f644:	41 a1 01 68 	bgt+    ffc1f7ac <rtems_rfs_symlink+0x278>     <== 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)                   
ffc1f648:	2b 9d 00 13 	cmplwi  cr7,r29,19                             
ffc1f64c:	41 9d 00 54 	bgt-    cr7,ffc1f6a0 <rtems_rfs_symlink+0x16c> <== NEVER TAKEN
  {                                                                   
    memset (inode.node->data.name, 0, RTEMS_RFS_INODE_DATA_NAME_SIZE);
ffc1f650:	80 61 00 6c 	lwz     r3,108(r1)                             
ffc1f654:	38 80 00 00 	li      r4,0                                   
ffc1f658:	38 a0 00 14 	li      r5,20                                  
ffc1f65c:	38 63 00 1c 	addi    r3,r3,28                               
ffc1f660:	48 00 32 b5 	bl      ffc22914 <memset>                      
    memcpy (inode.node->data.name, link, link_length);                
ffc1f664:	80 61 00 6c 	lwz     r3,108(r1)                             
ffc1f668:	7f 64 db 78 	mr      r4,r27                                 
ffc1f66c:	38 63 00 1c 	addi    r3,r3,28                               
ffc1f670:	7f a5 eb 78 	mr      r5,r29                                 
ffc1f674:	48 00 30 71 	bl      ffc226e4 <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);      
ffc1f678:	81 41 00 6c 	lwz     r10,108(r1)                            
ffc1f67c:	39 20 00 00 	li      r9,0                                   
ffc1f680:	99 2a 00 0c 	stb     r9,12(r10)                             
ffc1f684:	81 41 00 6c 	lwz     r10,108(r1)                            
ffc1f688:	99 2a 00 0d 	stb     r9,13(r10)                             
ffc1f68c:	81 41 00 6c 	lwz     r10,108(r1)                            
ffc1f690:	99 2a 00 0e 	stb     r9,14(r10)                             
ffc1f694:	81 41 00 6c 	lwz     r10,108(r1)                            
ffc1f698:	99 2a 00 0f 	stb     r9,15(r10)                             
ffc1f69c:	48 00 00 e4 	b       ffc1f780 <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);                 
ffc1f6a0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f6a4:	38 81 00 60 	addi    r4,r1,96                               <== NOT EXECUTED
ffc1f6a8:	38 a1 00 10 	addi    r5,r1,16                               <== NOT EXECUTED
ffc1f6ac:	4b ff b8 11 	bl      ffc1aebc <rtems_rfs_block_map_open>    <== NOT EXECUTED
    if (rc > 0)                                                       
ffc1f6b0:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
ffc1f6b4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
    rtems_rfs_block_no      block;                                    
    rtems_rfs_buffer_handle buffer;                                   
    uint8_t*                data;                                     
                                                                      
    rc = rtems_rfs_block_map_open (fs, &inode, &map);                 
    if (rc > 0)                                                       
ffc1f6b8:	40 81 00 08 	ble-    ffc1f6c0 <rtems_rfs_symlink+0x18c>     <== NOT EXECUTED
ffc1f6bc:	48 00 00 b8 	b       ffc1f774 <rtems_rfs_symlink+0x240>     <== NOT EXECUTED
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);              
ffc1f6c0:	38 81 00 10 	addi    r4,r1,16                               <== NOT EXECUTED
ffc1f6c4:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc1f6c8:	38 c1 00 94 	addi    r6,r1,148                              <== NOT EXECUTED
ffc1f6cc:	4b ff bd c5 	bl      ffc1b490 <rtems_rfs_block_map_grow>    <== NOT EXECUTED
    if (rc > 0)                                                       
ffc1f6d0:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc1f6d4:	40 81 00 08 	ble-    ffc1f6dc <rtems_rfs_symlink+0x1a8>     <== NOT EXECUTED
ffc1f6d8:	48 00 00 34 	b       ffc1f70c <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); 
ffc1f6dc:	80 a1 00 94 	lwz     r5,148(r1)                             <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc1f6e0:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc1f6e4:	3b 80 00 00 	li      r28,0                                  <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc1f6e8:	99 21 00 88 	stb     r9,136(r1)                             <== NOT EXECUTED
ffc1f6ec:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f6f0:	38 81 00 88 	addi    r4,r1,136                              <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc1f6f4:	93 81 00 8c 	stw     r28,140(r1)                            <== NOT EXECUTED
ffc1f6f8:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc1f6fc:	93 81 00 90 	stw     r28,144(r1)                            <== NOT EXECUTED
ffc1f700:	4b ff c7 d1 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
    if (rc > 0)                                                       
ffc1f704:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc1f708:	40 81 00 14 	ble-    ffc1f71c <rtems_rfs_symlink+0x1e8>     <== NOT EXECUTED
    {                                                                 
      rtems_rfs_block_map_close (fs, &map);                           
ffc1f70c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f710:	38 81 00 10 	addi    r4,r1,16                               <== NOT EXECUTED
ffc1f714:	4b ff b9 61 	bl      ffc1b074 <rtems_rfs_block_map_close>   <== NOT EXECUTED
ffc1f718:	48 00 00 58 	b       ffc1f770 <rtems_rfs_symlink+0x23c>     <== NOT EXECUTED
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    data = rtems_rfs_buffer_data (&buffer);                           
ffc1f71c:	81 21 00 90 	lwz     r9,144(r1)                             <== NOT EXECUTED
                                                                      
    memset (data, 0xff, rtems_rfs_fs_block_size (fs));                
ffc1f720:	38 80 00 ff 	li      r4,255                                 <== NOT EXECUTED
ffc1f724:	80 bf 00 08 	lwz     r5,8(r31)                              <== NOT EXECUTED
      rtems_rfs_block_map_close (fs, &map);                           
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    data = rtems_rfs_buffer_data (&buffer);                           
ffc1f728:	83 c9 00 1c 	lwz     r30,28(r9)                             <== NOT EXECUTED
                                                                      
    memset (data, 0xff, rtems_rfs_fs_block_size (fs));                
ffc1f72c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1f730:	48 00 31 e5 	bl      ffc22914 <memset>                      <== NOT EXECUTED
    memcpy (data, link, link_length);                                 
ffc1f734:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc1f738:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1f73c:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc1f740:	48 00 2f a5 	bl      ffc226e4 <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);                       
ffc1f744:	38 81 00 88 	addi    r4,r1,136                              <== NOT EXECUTED
ffc1f748:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f74c:	4b ff c5 a1 	bl      ffc1bcec <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);                        
ffc1f750:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f754:	38 81 00 10 	addi    r4,r1,16                               <== NOT EXECUTED
  handle->dirty = false;                                              
ffc1f758:	9b 81 00 88 	stb     r28,136(r1)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc1f75c:	93 81 00 8c 	stw     r28,140(r1)                            <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc1f760:	93 81 00 90 	stw     r28,144(r1)                            <== NOT EXECUTED
ffc1f764:	4b ff b9 11 	bl      ffc1b074 <rtems_rfs_block_map_close>   <== NOT EXECUTED
    if (rc > 0)                                                       
ffc1f768:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc1f76c:	40 81 00 14 	ble-    ffc1f780 <rtems_rfs_symlink+0x24c>     <== NOT EXECUTED
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
ffc1f770:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f774:	38 81 00 60 	addi    r4,r1,96                               <== NOT EXECUTED
ffc1f778:	4b ff 32 65 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
ffc1f77c:	48 00 00 30 	b       ffc1f7ac <rtems_rfs_symlink+0x278>     <== NOT EXECUTED
 */                                                                   
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);    
ffc1f780:	81 21 00 6c 	lwz     r9,108(r1)                             
ffc1f784:	57 aa c6 3e 	rlwinm  r10,r29,24,24,31                       
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_inode_set_block_offset (&inode, link_length);             
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc1f788:	7f e3 fb 78 	mr      r3,r31                                 
ffc1f78c:	99 49 00 0a 	stb     r10,10(r9)                             
ffc1f790:	38 81 00 60 	addi    r4,r1,96                               
ffc1f794:	81 21 00 6c 	lwz     r9,108(r1)                             
ffc1f798:	9b a9 00 0b 	stb     r29,11(r9)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1f79c:	39 20 00 01 	li      r9,1                                   
ffc1f7a0:	99 21 00 70 	stb     r9,112(r1)                             
ffc1f7a4:	4b ff 32 39 	bl      ffc129dc <rtems_rfs_inode_close>       
ffc1f7a8:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  return rc;                                                          
}                                                                     
ffc1f7ac:	39 61 00 c8 	addi    r11,r1,200                             
ffc1f7b0:	7f c3 f3 78 	mr      r3,r30                                 
ffc1f7b4:	4b fe 1d 98 	b       ffc0154c <_restgpr_23_x>               
                                                                      

ffc1f7b8 <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) {
ffc1f7b8:	94 21 ff 50 	stwu    r1,-176(r1)                            
ffc1f7bc:	7c 08 02 a6 	mflr    r0                                     
ffc1f7c0:	bf 61 00 9c 	stmw    r27,156(r1)                            
ffc1f7c4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1f7c8:	7c 9e 23 78 	mr      r30,r4                                 
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ))                 
ffc1f7cc:	38 60 00 04 	li      r3,4                                   
rtems_rfs_symlink_read (rtems_rfs_file_system* fs,                    
                        rtems_rfs_ino          link,                  
                        char*                  path,                  
                        size_t                 size,                  
                        size_t*                length)                
{                                                                     
ffc1f7d0:	90 01 00 b4 	stw     r0,180(r1)                             
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ))                 
ffc1f7d4:	38 80 00 00 	li      r4,0                                   
rtems_rfs_symlink_read (rtems_rfs_file_system* fs,                    
                        rtems_rfs_ino          link,                  
                        char*                  path,                  
                        size_t                 size,                  
                        size_t*                length)                
{                                                                     
ffc1f7d8:	7c bb 2b 78 	mr      r27,r5                                 
ffc1f7dc:	7c dd 33 78 	mr      r29,r6                                 
ffc1f7e0:	7c fc 3b 78 	mr      r28,r7                                 
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ))                 
ffc1f7e4:	4b ff 4a 65 	bl      ffc14248 <rtems_rfs_trace>             
ffc1f7e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1f7ec:	41 be 00 18 	beq+    cr7,ffc1f804 <rtems_rfs_symlink_read+0x4c><== ALWAYS TAKEN
    printf ("rtems-rfs: symlink-read: link:%" PRIu32 "\n", link);     
ffc1f7f0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f7f4:	38 63 5c d6 	addi    r3,r3,23766                            <== NOT EXECUTED
ffc1f7f8:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc1f7fc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1f800:	48 00 33 71 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_inode_open (fs, link, &inode, true);                 
ffc1f804:	7f c4 f3 78 	mr      r4,r30                                 
ffc1f808:	7f e3 fb 78 	mr      r3,r31                                 
ffc1f80c:	38 a1 00 58 	addi    r5,r1,88                               
ffc1f810:	38 c0 00 01 	li      r6,1                                   
ffc1f814:	4b ff 2f d5 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc1f818:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1f81c:	40 82 01 6c 	bne-    ffc1f988 <rtems_rfs_symlink_read+0x1d0><== NEVER TAKEN
    return rc;                                                        
                                                                      
  if (!RTEMS_RFS_S_ISLNK (rtems_rfs_inode_get_mode (&inode)))         
ffc1f820:	80 81 00 64 	lwz     r4,100(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);                    
ffc1f824:	89 44 00 02 	lbz     r10,2(r4)                              
ffc1f828:	55 4a 44 26 	rlwinm  r10,r10,8,16,19                        
ffc1f82c:	6d 49 ff ff 	xoris   r9,r10,65535                           
ffc1f830:	2f 89 a0 00 	cmpwi   cr7,r9,-24576                          
ffc1f834:	41 9e 00 18 	beq-    cr7,ffc1f84c <rtems_rfs_symlink_read+0x94><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
ffc1f838:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f83c:	38 81 00 58 	addi    r4,r1,88                               <== NOT EXECUTED
ffc1f840:	4b ff 31 9d 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
    return EINVAL;                                                    
ffc1f844:	3b c0 00 16 	li      r30,22                                 <== NOT EXECUTED
ffc1f848:	48 00 01 40 	b       ffc1f988 <rtems_rfs_symlink_read+0x1d0><== 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);            
ffc1f84c:	88 a4 00 0a 	lbz     r5,10(r4)                              
ffc1f850:	89 24 00 0b 	lbz     r9,11(r4)                              
ffc1f854:	54 a5 40 2e 	rlwinm  r5,r5,8,0,23                           
  }                                                                   
                                                                      
  *length = rtems_rfs_inode_get_block_offset (&inode);                
ffc1f858:	7c a5 4b 78 	or      r5,r5,r9                               
ffc1f85c:	7f 85 e8 40 	cmplw   cr7,r5,r29                             
ffc1f860:	40 9d 00 08 	ble-    cr7,ffc1f868 <rtems_rfs_symlink_read+0xb0>
ffc1f864:	7f a5 eb 78 	mr      r5,r29                                 
ffc1f868:	90 bc 00 00 	stw     r5,0(r28)                              
 * @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);             
ffc1f86c:	89 44 00 0c 	lbz     r10,12(r4)                             
ffc1f870:	89 24 00 0d 	lbz     r9,13(r4)                              
ffc1f874:	55 4a c0 0e 	rlwinm  r10,r10,24,0,7                         
ffc1f878:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc1f87c:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc1f880:	89 24 00 0f 	lbz     r9,15(r4)                              
ffc1f884:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc1f888:	89 24 00 0e 	lbz     r9,14(r4)                              
ffc1f88c:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
  if (size < *length)                                                 
  {                                                                   
    *length = size;                                                   
  }                                                                   
                                                                      
  if (rtems_rfs_inode_get_block_count (&inode) == 0)                  
ffc1f890:	7d 48 4b 79 	or.     r8,r10,r9                              
ffc1f894:	40 82 00 14 	bne-    ffc1f8a8 <rtems_rfs_symlink_read+0xf0> <== NEVER TAKEN
  {                                                                   
    memcpy (path, inode.node->data.name, *length);                    
ffc1f898:	7f 63 db 78 	mr      r3,r27                                 
ffc1f89c:	38 84 00 1c 	addi    r4,r4,28                               
ffc1f8a0:	48 00 2e 45 	bl      ffc226e4 <memcpy>                      
ffc1f8a4:	48 00 00 d4 	b       ffc1f978 <rtems_rfs_symlink_read+0x1c0>
    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);                 
ffc1f8a8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f8ac:	38 81 00 58 	addi    r4,r1,88                               <== NOT EXECUTED
ffc1f8b0:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc1f8b4:	4b ff b6 09 	bl      ffc1aebc <rtems_rfs_block_map_open>    <== NOT EXECUTED
    if (rc > 0)                                                       
ffc1f8b8:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
ffc1f8bc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
    rtems_rfs_block_no      block;                                    
    rtems_rfs_buffer_handle buffer;                                   
    char*                   data;                                     
                                                                      
    rc = rtems_rfs_block_map_open (fs, &inode, &map);                 
    if (rc > 0)                                                       
ffc1f8c0:	40 81 00 08 	ble-    ffc1f8c8 <rtems_rfs_symlink_read+0x110><== NOT EXECUTED
ffc1f8c4:	48 00 00 a8 	b       ffc1f96c <rtems_rfs_symlink_read+0x1b4><== NOT EXECUTED
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);              
ffc1f8c8:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc1f8cc:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc1f8d0:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
ffc1f8d4:	38 e1 00 8c 	addi    r7,r1,140                              <== NOT EXECUTED
ffc1f8d8:	4b ff ba e9 	bl      ffc1b3c0 <rtems_rfs_block_map_seek>    <== NOT EXECUTED
    if (rc > 0)                                                       
ffc1f8dc:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc1f8e0:	40 81 00 08 	ble-    ffc1f8e8 <rtems_rfs_symlink_read+0x130><== NOT EXECUTED
ffc1f8e4:	48 00 00 34 	b       ffc1f918 <rtems_rfs_symlink_read+0x160><== 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); 
ffc1f8e8:	80 a1 00 8c 	lwz     r5,140(r1)                             <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc1f8ec:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc1f8f0:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc1f8f4:	99 21 00 80 	stb     r9,128(r1)                             <== NOT EXECUTED
ffc1f8f8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f8fc:	38 81 00 80 	addi    r4,r1,128                              <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc1f900:	93 a1 00 84 	stw     r29,132(r1)                            <== NOT EXECUTED
ffc1f904:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc1f908:	93 a1 00 88 	stw     r29,136(r1)                            <== NOT EXECUTED
ffc1f90c:	4b ff c5 c5 	bl      ffc1bed0 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
    if (rc > 0)                                                       
ffc1f910:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc1f914:	40 81 00 14 	ble-    ffc1f928 <rtems_rfs_symlink_read+0x170><== NOT EXECUTED
    {                                                                 
      rtems_rfs_block_map_close (fs, &map);                           
ffc1f918:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f91c:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc1f920:	4b ff b7 55 	bl      ffc1b074 <rtems_rfs_block_map_close>   <== NOT EXECUTED
ffc1f924:	48 00 00 44 	b       ffc1f968 <rtems_rfs_symlink_read+0x1b0><== NOT EXECUTED
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    data = rtems_rfs_buffer_data (&buffer);                           
    memcpy (path, data, *length);                                     
ffc1f928:	81 21 00 88 	lwz     r9,136(r1)                             <== NOT EXECUTED
ffc1f92c:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc1f930:	80 bc 00 00 	lwz     r5,0(r28)                              <== NOT EXECUTED
ffc1f934:	80 89 00 1c 	lwz     r4,28(r9)                              <== NOT EXECUTED
ffc1f938:	48 00 2d ad 	bl      ffc226e4 <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);                       
ffc1f93c:	38 81 00 80 	addi    r4,r1,128                              <== NOT EXECUTED
ffc1f940:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f944:	4b ff c3 a9 	bl      ffc1bcec <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);                        
ffc1f948:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f94c:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
  handle->dirty = false;                                              
ffc1f950:	9b a1 00 80 	stb     r29,128(r1)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc1f954:	93 a1 00 84 	stw     r29,132(r1)                            <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc1f958:	93 a1 00 88 	stw     r29,136(r1)                            <== NOT EXECUTED
ffc1f95c:	4b ff b7 19 	bl      ffc1b074 <rtems_rfs_block_map_close>   <== NOT EXECUTED
    if (rc > 0)                                                       
ffc1f960:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc1f964:	40 81 00 14 	ble-    ffc1f978 <rtems_rfs_symlink_read+0x1c0><== NOT EXECUTED
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
ffc1f968:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f96c:	38 81 00 58 	addi    r4,r1,88                               <== NOT EXECUTED
ffc1f970:	4b ff 30 6d 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
ffc1f974:	48 00 00 14 	b       ffc1f988 <rtems_rfs_symlink_read+0x1d0><== NOT EXECUTED
      return rc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc1f978:	7f e3 fb 78 	mr      r3,r31                                 
ffc1f97c:	38 81 00 58 	addi    r4,r1,88                               
ffc1f980:	4b ff 30 5d 	bl      ffc129dc <rtems_rfs_inode_close>       
ffc1f984:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  return rc;                                                          
}                                                                     
ffc1f988:	39 61 00 b0 	addi    r11,r1,176                             
ffc1f98c:	7f c3 f3 78 	mr      r3,r30                                 
ffc1f990:	4b fe 1b cc 	b       ffc0155c <_restgpr_27_x>               
                                                                      

ffc142a0 <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;
ffc142a0:	3d 20 00 01 	lis     r9,1                                   <== NOT EXECUTED
ffc142a4:	38 e9 2a 18 	addi    r7,r9,10776                            <== NOT EXECUTED
ffc142a8:	81 09 2a 18 	lwz     r8,10776(r9)                           <== NOT EXECUTED
ffc142ac:	81 47 00 04 	lwz     r10,4(r7)                              <== NOT EXECUTED
  rtems_rfs_trace_flags &= ~mask;                                     
ffc142b0:	7d 03 18 78 	andc    r3,r8,r3                               <== NOT EXECUTED
ffc142b4:	7d 44 20 78 	andc    r4,r10,r4                              <== NOT EXECUTED
ffc142b8:	90 69 2a 18 	stw     r3,10776(r9)                           <== NOT EXECUTED
  return state;                                                       
}                                                                     
ffc142bc:	7d 03 43 78 	mr      r3,r8                                  <== NOT EXECUTED
                                                                      
rtems_rfs_trace_mask                                                  
rtems_rfs_trace_clear_mask (rtems_rfs_trace_mask mask)                
{                                                                     
  rtems_rfs_trace_mask state = rtems_rfs_trace_flags;                 
  rtems_rfs_trace_flags &= ~mask;                                     
ffc142c0:	90 87 00 04 	stw     r4,4(r7)                               <== NOT EXECUTED
  return state;                                                       
}                                                                     
ffc142c4:	7d 44 53 78 	mr      r4,r10                                 <== NOT EXECUTED
ffc142c8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc14274 <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;
ffc14274:	3d 20 00 01 	lis     r9,1                                   <== NOT EXECUTED
ffc14278:	38 e9 2a 18 	addi    r7,r9,10776                            <== NOT EXECUTED
ffc1427c:	81 09 2a 18 	lwz     r8,10776(r9)                           <== NOT EXECUTED
ffc14280:	81 47 00 04 	lwz     r10,4(r7)                              <== NOT EXECUTED
  rtems_rfs_trace_flags |= mask;                                      
ffc14284:	7c 63 43 78 	or      r3,r3,r8                               <== NOT EXECUTED
ffc14288:	7c 84 53 78 	or      r4,r4,r10                              <== NOT EXECUTED
ffc1428c:	90 69 2a 18 	stw     r3,10776(r9)                           <== NOT EXECUTED
  return state;                                                       
}                                                                     
ffc14290:	7d 03 43 78 	mr      r3,r8                                  <== NOT EXECUTED
                                                                      
rtems_rfs_trace_mask                                                  
rtems_rfs_trace_set_mask (rtems_rfs_trace_mask mask)                  
{                                                                     
  rtems_rfs_trace_mask state = rtems_rfs_trace_flags;                 
  rtems_rfs_trace_flags |= mask;                                      
ffc14294:	90 87 00 04 	stw     r4,4(r7)                               <== NOT EXECUTED
  return state;                                                       
}                                                                     
ffc14298:	7d 44 53 78 	mr      r4,r10                                 <== NOT EXECUTED
ffc1429c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc142cc <rtems_rfs_trace_shell_command>: int rtems_rfs_trace_shell_command (int argc, char *argv[]) {
ffc142cc:	94 21 ff 18 	stwu    r1,-232(r1)                            <== NOT EXECUTED
ffc142d0:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
  const char* table[] =                                               
ffc142d4:	38 a0 00 9c 	li      r5,156                                 <== NOT EXECUTED
  return state;                                                       
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
{                                                                     
ffc142d8:	be 61 00 b4 	stmw    r19,180(r1)                            <== NOT EXECUTED
ffc142dc:	7c 98 23 78 	mr      r24,r4                                 <== NOT EXECUTED
  const char* table[] =                                               
ffc142e0:	3c 80 ff c3 	lis     r4,-61                                 <== NOT EXECUTED
  return state;                                                       
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
{                                                                     
ffc142e4:	7c 76 1b 78 	mr      r22,r3                                 <== NOT EXECUTED
ffc142e8:	90 01 00 ec 	stw     r0,236(r1)                             <== NOT EXECUTED
  const char* table[] =                                               
ffc142ec:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc142f0:	38 84 3e ac 	addi    r4,r4,16044                            <== NOT EXECUTED
          return 1;                                                   
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      if (strcmp (argv[arg], "set") == 0)                             
ffc142f4:	3e a0 ff c3 	lis     r21,-61                                <== NOT EXECUTED
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
{                                                                     
  const char* table[] =                                               
ffc142f8:	48 00 e3 ed 	bl      ffc226e4 <memcpy>                      <== NOT EXECUTED
    }                                                                 
    else                                                              
    {                                                                 
      if (strcmp (argv[arg], "set") == 0)                             
        set = true;                                                   
      if (strcmp (argv[arg], "clear") == 0)                           
ffc142fc:	3e 80 ff c3 	lis     r20,-61                                <== NOT EXECUTED
        set = false;                                                  
      else if (strcmp (argv[arg], "all") == 0)                        
ffc14300:	3e 60 ff c3 	lis     r19,-61                                <== NOT EXECUTED
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc14304:	3b 40 00 01 	li      r26,1                                  <== NOT EXECUTED
    "file-set"                                                        
  };                                                                  
                                                                      
  rtems_rfs_trace_mask set_value = 0;                                 
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
ffc14308:	3b 20 00 01 	li      r25,1                                  <== NOT EXECUTED
    "file-io",                                                        
    "file-set"                                                        
  };                                                                  
                                                                      
  rtems_rfs_trace_mask set_value = 0;                                 
  rtems_rfs_trace_mask clear_value = 0;                               
ffc1430c:	3b 80 00 00 	li      r28,0                                  <== NOT EXECUTED
ffc14310:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
    "file-close",                                                     
    "file-io",                                                        
    "file-set"                                                        
  };                                                                  
                                                                      
  rtems_rfs_trace_mask set_value = 0;                                 
ffc14314:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
ffc14318:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
          return 1;                                                   
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      if (strcmp (argv[arg], "set") == 0)                             
ffc1431c:	3a b5 41 8e 	addi    r21,r21,16782                          <== NOT EXECUTED
        set = true;                                                   
      if (strcmp (argv[arg], "clear") == 0)                           
ffc14320:	3a 94 3f af 	addi    r20,r20,16303                          <== NOT EXECUTED
        set = false;                                                  
      else if (strcmp (argv[arg], "all") == 0)                        
ffc14324:	3a 73 3f b5 	addi    r19,r19,16309                          <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_trace_flags |= set_value;                             
      rtems_rfs_trace_flags &= ~clear_value;                          
ffc14328:	3e e0 00 01 	lis     r23,1                                  <== NOT EXECUTED
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc1432c:	48 00 01 98 	b       ffc144c4 <rtems_rfs_trace_shell_command+0x1f8><== NOT EXECUTED
  rtems_rfs_trace_flags &= ~mask;                                     
  return state;                                                       
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
ffc14330:	57 49 10 3a 	rlwinm  r9,r26,2,0,29                          <== NOT EXECUTED
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
  {                                                                   
    if (argv[arg][0] == '-')                                          
ffc14334:	7f 78 48 2e 	lwzx    r27,r24,r9                             <== NOT EXECUTED
ffc14338:	89 3b 00 00 	lbz     r9,0(r27)                              <== NOT EXECUTED
ffc1433c:	2f 89 00 2d 	cmpwi   cr7,r9,45                              <== NOT EXECUTED
ffc14340:	40 be 00 90 	bne+    cr7,ffc143d0 <rtems_rfs_trace_shell_command+0x104><== NOT EXECUTED
    {                                                                 
      switch (argv[arg][1])                                           
ffc14344:	89 3b 00 01 	lbz     r9,1(r27)                              <== NOT EXECUTED
ffc14348:	2f 89 00 68 	cmpwi   cr7,r9,104                             <== NOT EXECUTED
ffc1434c:	41 9e 00 10 	beq-    cr7,ffc1435c <rtems_rfs_trace_shell_command+0x90><== NOT EXECUTED
ffc14350:	2f 89 00 6c 	cmpwi   cr7,r9,108                             <== NOT EXECUTED
ffc14354:	40 be 00 68 	bne+    cr7,ffc143bc <rtems_rfs_trace_shell_command+0xf0><== NOT EXECUTED
ffc14358:	48 00 00 1c 	b       ffc14374 <rtems_rfs_trace_shell_command+0xa8><== NOT EXECUTED
      {                                                               
        case 'h':                                                     
          printf ("usage: %s [-hl] [set/clear] [flags]\n", argv[0]);  
ffc1435c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc14360:	80 98 00 00 	lwz     r4,0(r24)                              <== NOT EXECUTED
ffc14364:	38 63 3f 48 	addi    r3,r3,16200                            <== NOT EXECUTED
ffc14368:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1436c:	48 00 e8 05 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
ffc14370:	48 00 00 44 	b       ffc143b4 <rtems_rfs_trace_shell_command+0xe8><== NOT EXECUTED
          return 0;                                                   
        case 'l':                                                     
          printf ("%s: valid flags to set or clear are:\n", argv[0]); 
ffc14374:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc14378:	80 98 00 00 	lwz     r4,0(r24)                              <== NOT EXECUTED
ffc1437c:	38 63 3f 6d 	addi    r3,r3,16237                            <== NOT EXECUTED
          for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++)
            printf ("  %s\n", table[t]);                              
ffc14380:	3f a0 ff c3 	lis     r29,-61                                <== 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]); 
ffc14384:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14388:	48 00 e7 e9 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
  rtems_rfs_trace_flags &= ~mask;                                     
  return state;                                                       
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
ffc1438c:	3b e1 00 04 	addi    r31,r1,4                               <== NOT EXECUTED
ffc14390:	3b c1 00 a0 	addi    r30,r1,160                             <== 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]);                              
ffc14394:	3b bd 3f 93 	addi    r29,r29,16275                          <== 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++)
ffc14398:	48 00 00 14 	b       ffc143ac <rtems_rfs_trace_shell_command+0xe0><== NOT EXECUTED
            printf ("  %s\n", table[t]);                              
ffc1439c:	84 9f 00 04 	lwzu    r4,4(r31)                              <== NOT EXECUTED
ffc143a0:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc143a4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc143a8:	48 00 e7 c9 	bl      ffc22b70 <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++)
ffc143ac:	7f 9f f0 00 	cmpw    cr7,r31,r30                            <== NOT EXECUTED
ffc143b0:	40 9e ff ec 	bne+    cr7,ffc1439c <rtems_rfs_trace_shell_command+0xd0><== NOT EXECUTED
            printf ("  %s\n", table[t]);                              
          return 0;                                                   
ffc143b4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc143b8:	48 00 01 18 	b       ffc144d0 <rtems_rfs_trace_shell_command+0x204><== NOT EXECUTED
        default:                                                      
          printf ("error: unknown option\n");                         
ffc143bc:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc143c0:	38 63 3f 99 	addi    r3,r3,16281                            <== NOT EXECUTED
ffc143c4:	48 00 eb 15 	bl      ffc22ed8 <puts>                        <== NOT EXECUTED
          return 1;                                                   
ffc143c8:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc143cc:	48 00 01 04 	b       ffc144d0 <rtems_rfs_trace_shell_command+0x204><== NOT EXECUTED
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      if (strcmp (argv[arg], "set") == 0)                             
ffc143d0:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc143d4:	7e a4 ab 78 	mr      r4,r21                                 <== NOT EXECUTED
ffc143d8:	48 00 f4 05 	bl      ffc237dc <strcmp>                      <== NOT EXECUTED
ffc143dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc143e0:	40 9e 00 08 	bne-    cr7,ffc143e8 <rtems_rfs_trace_shell_command+0x11c><== NOT EXECUTED
        set = true;                                                   
ffc143e4:	3b 20 00 01 	li      r25,1                                  <== NOT EXECUTED
      if (strcmp (argv[arg], "clear") == 0)                           
ffc143e8:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc143ec:	7e 84 a3 78 	mr      r4,r20                                 <== NOT EXECUTED
ffc143f0:	48 00 f3 ed 	bl      ffc237dc <strcmp>                      <== NOT EXECUTED
ffc143f4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc143f8:	41 9e 00 94 	beq-    cr7,ffc1448c <rtems_rfs_trace_shell_command+0x1c0><== NOT EXECUTED
        set = false;                                                  
      else if (strcmp (argv[arg], "all") == 0)                        
ffc143fc:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc14400:	7e 64 9b 78 	mr      r4,r19                                 <== NOT EXECUTED
ffc14404:	48 00 f3 d9 	bl      ffc237dc <strcmp>                      <== NOT EXECUTED
ffc14408:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1440c:	40 9e 00 18 	bne-    cr7,ffc14424 <rtems_rfs_trace_shell_command+0x158><== NOT EXECUTED
      {                                                               
        if (set)                                                      
ffc14410:	2f 99 00 00 	cmpwi   cr7,r25,0                              <== NOT EXECUTED
ffc14414:	41 9e 00 80 	beq-    cr7,ffc14494 <rtems_rfs_trace_shell_command+0x1c8><== NOT EXECUTED
          set_value = RTEMS_RFS_TRACE_ALL;                            
ffc14418:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc1441c:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
ffc14420:	48 00 00 7c 	b       ffc1449c <rtems_rfs_trace_shell_command+0x1d0><== NOT EXECUTED
    {                                                                 
      if (strcmp (argv[arg], "set") == 0)                             
        set = true;                                                   
      if (strcmp (argv[arg], "clear") == 0)                           
        set = false;                                                  
      else if (strcmp (argv[arg], "all") == 0)                        
ffc14424:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
  rtems_rfs_trace_flags &= ~mask;                                     
  return state;                                                       
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
ffc14428:	54 a9 10 3a 	rlwinm  r9,r5,2,0,29                           <== NOT EXECUTED
      }                                                               
      else                                                            
      {                                                               
        for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++) 
        {                                                             
          if (strcmp (argv[arg], table[t]) == 0)                      
ffc1442c:	39 41 00 08 	addi    r10,r1,8                               <== NOT EXECUTED
ffc14430:	7c 8a 48 2e 	lwzx    r4,r10,r9                              <== NOT EXECUTED
ffc14434:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc14438:	90 a1 00 a8 	stw     r5,168(r1)                             <== NOT EXECUTED
ffc1443c:	48 00 f3 a1 	bl      ffc237dc <strcmp>                      <== NOT EXECUTED
ffc14440:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc14444:	80 a1 00 a8 	lwz     r5,168(r1)                             <== NOT EXECUTED
ffc14448:	40 be 00 34 	bne+    cr7,ffc1447c <rtems_rfs_trace_shell_command+0x1b0><== NOT EXECUTED
          {                                                           
            if (set)                                                  
ffc1444c:	2f 99 00 00 	cmpwi   cr7,r25,0                              <== NOT EXECUTED
              set_value = 1ULL << t;                                  
ffc14450:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc14454:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
      {                                                               
        for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++) 
        {                                                             
          if (strcmp (argv[arg], table[t]) == 0)                      
          {                                                           
            if (set)                                                  
ffc14458:	41 9e 00 14 	beq-    cr7,ffc1446c <rtems_rfs_trace_shell_command+0x1a0><== NOT EXECUTED
              set_value = 1ULL << t;                                  
ffc1445c:	48 01 b8 59 	bl      ffc2fcb4 <__ashldi3>                   <== NOT EXECUTED
ffc14460:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
ffc14464:	7c 9f 23 78 	mr      r31,r4                                 <== NOT EXECUTED
ffc14468:	48 00 00 34 	b       ffc1449c <rtems_rfs_trace_shell_command+0x1d0><== NOT EXECUTED
            else                                                      
              clear_value = 1ULL << t;                                
ffc1446c:	48 01 b8 49 	bl      ffc2fcb4 <__ashldi3>                   <== NOT EXECUTED
ffc14470:	7c 7c 1b 78 	mr      r28,r3                                 <== NOT EXECUTED
ffc14474:	7c 9d 23 78 	mr      r29,r4                                 <== NOT EXECUTED
ffc14478:	48 00 00 24 	b       ffc1449c <rtems_rfs_trace_shell_command+0x1d0><== NOT EXECUTED
        else                                                          
          clear_value = RTEMS_RFS_TRACE_ALL;                          
      }                                                               
      else                                                            
      {                                                               
        for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++) 
ffc1447c:	2f 85 00 26 	cmpwi   cr7,r5,38                              <== NOT EXECUTED
ffc14480:	38 a5 00 01 	addi    r5,r5,1                                <== NOT EXECUTED
ffc14484:	40 9e ff a4 	bne+    cr7,ffc14428 <rtems_rfs_trace_shell_command+0x15c><== NOT EXECUTED
ffc14488:	48 00 00 14 	b       ffc1449c <rtems_rfs_trace_shell_command+0x1d0><== NOT EXECUTED
    else                                                              
    {                                                                 
      if (strcmp (argv[arg], "set") == 0)                             
        set = true;                                                   
      if (strcmp (argv[arg], "clear") == 0)                           
        set = false;                                                  
ffc1448c:	3b 20 00 00 	li      r25,0                                  <== NOT EXECUTED
ffc14490:	48 00 00 0c 	b       ffc1449c <rtems_rfs_trace_shell_command+0x1d0><== NOT EXECUTED
      else if (strcmp (argv[arg], "all") == 0)                        
      {                                                               
        if (set)                                                      
          set_value = RTEMS_RFS_TRACE_ALL;                            
        else                                                          
          clear_value = RTEMS_RFS_TRACE_ALL;                          
ffc14494:	3b 80 ff ff 	li      r28,-1                                 <== NOT EXECUTED
ffc14498:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
            break;                                                    
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_trace_flags |= set_value;                             
ffc1449c:	81 57 2a 18 	lwz     r10,10776(r23)                         <== NOT EXECUTED
      rtems_rfs_trace_flags &= ~clear_value;                          
ffc144a0:	39 37 2a 18 	addi    r9,r23,10776                           <== NOT EXECUTED
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc144a4:	3b 5a 00 01 	addi    r26,r26,1                              <== NOT EXECUTED
            break;                                                    
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_trace_flags |= set_value;                             
ffc144a8:	7d 48 f3 78 	or      r8,r10,r30                             <== NOT EXECUTED
ffc144ac:	81 49 00 04 	lwz     r10,4(r9)                              <== NOT EXECUTED
      rtems_rfs_trace_flags &= ~clear_value;                          
ffc144b0:	7d 08 e0 78 	andc    r8,r8,r28                              <== NOT EXECUTED
            break;                                                    
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_trace_flags |= set_value;                             
ffc144b4:	7d 4a fb 78 	or      r10,r10,r31                            <== NOT EXECUTED
      rtems_rfs_trace_flags &= ~clear_value;                          
ffc144b8:	91 17 2a 18 	stw     r8,10776(r23)                          <== NOT EXECUTED
ffc144bc:	7d 4a e8 78 	andc    r10,r10,r29                            <== NOT EXECUTED
ffc144c0:	91 49 00 04 	stw     r10,4(r9)                              <== NOT EXECUTED
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc144c4:	7f 9a b0 00 	cmpw    cr7,r26,r22                            <== NOT EXECUTED
ffc144c8:	41 9c fe 68 	blt+    cr7,ffc14330 <rtems_rfs_trace_shell_command+0x64><== NOT EXECUTED
ffc144cc:	4b ff fe e8 	b       ffc143b4 <rtems_rfs_trace_shell_command+0xe8><== NOT EXECUTED
      rtems_rfs_trace_flags &= ~clear_value;                          
    }                                                                 
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc144d0:	39 61 00 e8 	addi    r11,r1,232                             <== NOT EXECUTED
ffc144d4:	4b fe d0 68 	b       ffc0153c <_restgpr_19_x>               <== NOT EXECUTED
                                                                      

ffc1f174 <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) {
ffc1f174:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc1f178:	7c 08 02 a6 	mflr    r0                                     
ffc1f17c:	bf 21 00 5c 	stmw    r25,92(r1)                             
ffc1f180:	7c 7e 1b 78 	mr      r30,r3                                 
ffc1f184:	7c 9b 23 78 	mr      r27,r4                                 
  rtems_rfs_inode_handle target_inode;                                
  uint16_t               links;                                       
  bool                   dir;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                       
ffc1f188:	38 60 00 00 	li      r3,0                                   
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)                    
{                                                                     
ffc1f18c:	90 01 00 7c 	stw     r0,124(r1)                             
  rtems_rfs_inode_handle target_inode;                                
  uint16_t               links;                                       
  bool                   dir;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                       
ffc1f190:	3c 80 02 00 	lis     r4,512                                 
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)                    
{                                                                     
ffc1f194:	7c bc 2b 78 	mr      r28,r5                                 
ffc1f198:	7c d9 33 78 	mr      r25,r6                                 
ffc1f19c:	7c fa 3b 78 	mr      r26,r7                                 
  rtems_rfs_inode_handle target_inode;                                
  uint16_t               links;                                       
  bool                   dir;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                       
ffc1f1a0:	4b ff 50 a9 	bl      ffc14248 <rtems_rfs_trace>             
ffc1f1a4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1f1a8:	41 be 00 1c 	beq+    cr7,ffc1f1c4 <rtems_rfs_unlink+0x50>   <== ALWAYS TAKEN
    printf ("rtems-rfs: unlink: parent(%" PRIu32 ") -X-> (%" PRIu32 ")\n", parent, target);
ffc1f1ac:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f1b0:	38 63 5a fc 	addi    r3,r3,23292                            <== NOT EXECUTED
ffc1f1b4:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc1f1b8:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc1f1bc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1f1c0:	48 00 39 b1 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_inode_open (fs, target, &target_inode, true);        
ffc1f1c4:	7f c3 f3 78 	mr      r3,r30                                 
ffc1f1c8:	7f 84 e3 78 	mr      r4,r28                                 
ffc1f1cc:	38 a1 00 08 	addi    r5,r1,8                                
ffc1f1d0:	38 c0 00 01 	li      r6,1                                   
ffc1f1d4:	4b ff 36 15 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc1f1d8:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1f1dc:	40 82 03 4c 	bne-    ffc1f528 <rtems_rfs_unlink+0x3b4>      <== NEVER TAKEN
 * @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);                    
ffc1f1e0:	81 21 00 14 	lwz     r9,20(r1)                              
ffc1f1e4:	8b a9 00 02 	lbz     r29,2(r9)                              
                                                                      
  /*                                                                  
   * If a directory process the unlink mode.                          
   */                                                                 
                                                                      
  dir = RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&target_inode)); 
ffc1f1e8:	57 bd 44 26 	rlwinm  r29,r29,8,16,19                        
  if (dir)                                                            
ffc1f1ec:	6b bd 40 00 	xori    r29,r29,16384                          
ffc1f1f0:	7f bd 00 34 	cntlzw  r29,r29                                
ffc1f1f4:	57 bd d9 7f 	rlwinm. r29,r29,27,5,31                        
ffc1f1f8:	41 82 00 8c 	beq-    ffc1f284 <rtems_rfs_unlink+0x110>      
  {                                                                   
    switch (dir_mode)                                                 
ffc1f1fc:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc1f200:	41 9e 00 10 	beq-    cr7,ffc1f210 <rtems_rfs_unlink+0x9c>   <== NEVER TAKEN
ffc1f204:	2f 9a 00 01 	cmpwi   cr7,r26,1                              
ffc1f208:	40 be 00 7c 	bne+    cr7,ffc1f284 <rtems_rfs_unlink+0x110>  <== NEVER TAKEN
ffc1f20c:	48 00 00 38 	b       ffc1f244 <rtems_rfs_unlink+0xd0>       
    {                                                                 
      case rtems_rfs_unlink_dir_denied:                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                 
ffc1f210:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1f214:	3c 80 02 00 	lis     r4,512                                 <== NOT EXECUTED
ffc1f218:	4b ff 50 31 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1f21c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1f220:	41 be 00 10 	beq+    cr7,ffc1f230 <rtems_rfs_unlink+0xbc>   <== NOT EXECUTED
          printf ("rtems-rfs: link is a directory\n");                
ffc1f224:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f228:	38 63 5b 27 	addi    r3,r3,23335                            <== NOT EXECUTED
ffc1f22c:	48 00 3c ad 	bl      ffc22ed8 <puts>                        <== NOT EXECUTED
        rtems_rfs_inode_close (fs, &target_inode);                    
ffc1f230:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1f234:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc1f238:	4b ff 37 a5 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
        return EISDIR;                                                
ffc1f23c:	3b e0 00 15 	li      r31,21                                 <== NOT EXECUTED
ffc1f240:	48 00 02 e8 	b       ffc1f528 <rtems_rfs_unlink+0x3b4>      <== NOT EXECUTED
                                                                      
      case rtems_rfs_unlink_dir_if_empty:                             
        rc = rtems_rfs_dir_empty (fs, &target_inode);                 
ffc1f244:	7f c3 f3 78 	mr      r3,r30                                 
ffc1f248:	38 81 00 08 	addi    r4,r1,8                                
ffc1f24c:	4b ff e3 f1 	bl      ffc1d63c <rtems_rfs_dir_empty>         
        if (rc > 0)                                                   
ffc1f250:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1f254:	40 81 00 30 	ble-    ffc1f284 <rtems_rfs_unlink+0x110>      
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))               
ffc1f258:	38 60 00 00 	li      r3,0                                   
ffc1f25c:	3c 80 02 00 	lis     r4,512                                 
ffc1f260:	4b ff 4f e9 	bl      ffc14248 <rtems_rfs_trace>             
ffc1f264:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1f268:	41 be 02 68 	beq+    cr7,ffc1f4d0 <rtems_rfs_unlink+0x35c>  <== ALWAYS TAKEN
            printf ("rtems-rfs: dir-empty: %d: %s\n", rc, strerror (rc));
ffc1f26c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f270:	48 00 4a ed 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1f274:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1f278:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f27c:	38 63 5b 46 	addi    r3,r3,23366                            <== NOT EXECUTED
ffc1f280:	48 00 02 44 	b       ffc1f4c4 <rtems_rfs_unlink+0x350>      <== NOT EXECUTED
      default:                                                        
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);        
ffc1f284:	7f c3 f3 78 	mr      r3,r30                                 
ffc1f288:	7f 64 db 78 	mr      r4,r27                                 
ffc1f28c:	38 a1 00 30 	addi    r5,r1,48                               
ffc1f290:	38 c0 00 01 	li      r6,1                                   
ffc1f294:	4b ff 35 55 	bl      ffc127e8 <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc1f298:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1f29c:	41 82 00 30 	beq-    ffc1f2cc <rtems_rfs_unlink+0x158>      <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                     
ffc1f2a0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1f2a4:	3c 80 02 00 	lis     r4,512                                 <== NOT EXECUTED
ffc1f2a8:	4b ff 4f a1 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1f2ac:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1f2b0:	41 be 02 20 	beq+    cr7,ffc1f4d0 <rtems_rfs_unlink+0x35c>  <== NOT EXECUTED
      printf ("rtems-rfs: link: inode-open failed: %d: %s\n",         
ffc1f2b4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f2b8:	48 00 4a a5 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1f2bc:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1f2c0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f2c4:	38 63 5b 64 	addi    r3,r3,23396                            <== NOT EXECUTED
ffc1f2c8:	48 00 01 fc 	b       ffc1f4c4 <rtems_rfs_unlink+0x350>      <== 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);     
ffc1f2cc:	7f c3 f3 78 	mr      r3,r30                                 
ffc1f2d0:	38 81 00 30 	addi    r4,r1,48                               
ffc1f2d4:	7f 85 e3 78 	mr      r5,r28                                 
ffc1f2d8:	7f 26 cb 78 	mr      r6,r25                                 
ffc1f2dc:	4b ff db e9 	bl      ffc1cec4 <rtems_rfs_dir_del_entry>     
  if (rc > 0)                                                         
ffc1f2e0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1f2e4:	40 81 00 30 	ble-    ffc1f314 <rtems_rfs_unlink+0x1a0>      <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                     
ffc1f2e8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1f2ec:	3c 80 02 00 	lis     r4,512                                 <== NOT EXECUTED
ffc1f2f0:	4b ff 4f 59 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1f2f4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1f2f8:	41 be 01 80 	beq+    cr7,ffc1f478 <rtems_rfs_unlink+0x304>  <== NOT EXECUTED
      printf ("rtems-rfs: unlink: dir-del failed: %d: %s\n",          
ffc1f2fc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f300:	48 00 4a 5d 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1f304:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1f308:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f30c:	38 63 5b 90 	addi    r3,r3,23440                            <== NOT EXECUTED
ffc1f310:	48 00 01 5c 	b       ffc1f46c <rtems_rfs_unlink+0x2f8>      <== 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);                  
ffc1f314:	81 21 00 14 	lwz     r9,20(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);                  
ffc1f318:	8b e9 00 00 	lbz     r31,0(r9)                              
ffc1f31c:	89 29 00 01 	lbz     r9,1(r9)                               
ffc1f320:	57 ff 40 2e 	rlwinm  r31,r31,8,0,23                         
ffc1f324:	7f ff 4b 78 	or      r31,r31,r9                             
  if (links == 0xffff)                                                
ffc1f328:	6f e9 ff ff 	xoris   r9,r31,65535                           
ffc1f32c:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc1f330:	40 9e 00 08 	bne-    cr7,ffc1f338 <rtems_rfs_unlink+0x1c4>  <== ALWAYS TAKEN
    links = 0;                                                        
ffc1f334:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                       
ffc1f338:	38 60 00 00 	li      r3,0                                   
ffc1f33c:	3c 80 02 00 	lis     r4,512                                 
ffc1f340:	4b ff 4f 09 	bl      ffc14248 <rtems_rfs_trace>             
ffc1f344:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1f348:	41 be 00 1c 	beq+    cr7,ffc1f364 <rtems_rfs_unlink+0x1f0>  <== ALWAYS TAKEN
    printf ("rtems-rfs: unlink: target:%" PRIu32 " links:%u\n", target, links);
ffc1f34c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f350:	38 63 5b bb 	addi    r3,r3,23483                            <== NOT EXECUTED
ffc1f354:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc1f358:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc1f35c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1f360:	48 00 38 11 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
                                                                      
  if (links > 1)                                                      
ffc1f364:	2b 9f 00 01 	cmplwi  cr7,r31,1                              
ffc1f368:	40 9d 00 2c 	ble-    cr7,ffc1f394 <rtems_rfs_unlink+0x220>  
  {                                                                   
    links--;                                                          
ffc1f36c:	3b ff ff ff 	addi    r31,r31,-1                             
 * @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);                  
ffc1f370:	81 21 00 14 	lwz     r9,20(r1)                              
ffc1f374:	57 ff 04 3e 	clrlwi  r31,r31,16                             
ffc1f378:	57 ea c2 3e 	rlwinm  r10,r31,24,8,31                        
ffc1f37c:	99 49 00 00 	stb     r10,0(r9)                              
ffc1f380:	81 21 00 14 	lwz     r9,20(r1)                              
ffc1f384:	9b e9 00 01 	stb     r31,1(r9)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1f388:	39 20 00 01 	li      r9,1                                   
ffc1f38c:	99 21 00 18 	stb     r9,24(r1)                              
ffc1f390:	48 00 00 9c 	b       ffc1f42c <rtems_rfs_unlink+0x2b8>      
  else                                                                
  {                                                                   
    /*                                                                
     * Erasing the inode releases all blocks attached to it.          
     */                                                               
    rc = rtems_rfs_inode_delete (fs, &target_inode);                  
ffc1f394:	7f c3 f3 78 	mr      r3,r30                                 
ffc1f398:	38 81 00 08 	addi    r4,r1,8                                
ffc1f39c:	4b ff 36 e5 	bl      ffc12a80 <rtems_rfs_inode_delete>      
    if (rc > 0)                                                       
ffc1f3a0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1f3a4:	40 81 00 30 	ble-    ffc1f3d4 <rtems_rfs_unlink+0x260>      <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                   
ffc1f3a8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1f3ac:	3c 80 02 00 	lis     r4,512                                 <== NOT EXECUTED
ffc1f3b0:	4b ff 4e 99 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1f3b4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1f3b8:	41 be 00 c0 	beq+    cr7,ffc1f478 <rtems_rfs_unlink+0x304>  <== NOT EXECUTED
        printf ("rtems-rfs: unlink: inode-del failed: %d: %s\n",      
ffc1f3bc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f3c0:	48 00 49 9d 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1f3c4:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1f3c8:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f3cc:	38 63 5b e3 	addi    r3,r3,23523                            <== NOT EXECUTED
ffc1f3d0:	48 00 00 9c 	b       ffc1f46c <rtems_rfs_unlink+0x2f8>      <== NOT EXECUTED
      rtems_rfs_inode_close (fs, &parent_inode);                      
      rtems_rfs_inode_close (fs, &target_inode);                      
      return rc;                                                      
    }                                                                 
                                                                      
    if (dir)                                                          
ffc1f3d4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc1f3d8:	41 9e 00 54 	beq-    cr7,ffc1f42c <rtems_rfs_unlink+0x2b8>  
    {                                                                 
      links = rtems_rfs_inode_get_links (&parent_inode);              
ffc1f3dc:	81 41 00 3c 	lwz     r10,60(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);                  
ffc1f3e0:	89 2a 00 00 	lbz     r9,0(r10)                              
ffc1f3e4:	89 0a 00 01 	lbz     r8,1(r10)                              
ffc1f3e8:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc1f3ec:	7d 29 43 78 	or      r9,r9,r8                               
  if (links == 0xffff)                                                
ffc1f3f0:	6d 28 ff ff 	xoris   r8,r9,65535                            
ffc1f3f4:	2f 88 ff ff 	cmpwi   cr7,r8,-1                              
ffc1f3f8:	41 9e 00 18 	beq-    cr7,ffc1f410 <rtems_rfs_unlink+0x29c>  <== NEVER TAKEN
      if (links > 1)                                                  
ffc1f3fc:	2b 89 00 01 	cmplwi  cr7,r9,1                               
ffc1f400:	40 9d 00 14 	ble-    cr7,ffc1f414 <rtems_rfs_unlink+0x2a0>  
        links--;                                                      
ffc1f404:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1f408:	55 29 04 3e 	clrlwi  r9,r9,16                               
ffc1f40c:	48 00 00 08 	b       ffc1f414 <rtems_rfs_unlink+0x2a0>      
    links = 0;                                                        
ffc1f410:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
 * @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);                  
ffc1f414:	55 28 c2 3e 	rlwinm  r8,r9,24,8,31                          
ffc1f418:	99 0a 00 00 	stb     r8,0(r10)                              
ffc1f41c:	81 41 00 3c 	lwz     r10,60(r1)                             
ffc1f420:	99 2a 00 01 	stb     r9,1(r10)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1f424:	39 20 00 01 	li      r9,1                                   
ffc1f428:	99 21 00 40 	stb     r9,64(r1)                              
      rtems_rfs_inode_set_links (&parent_inode, links);               
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);    
ffc1f42c:	38 61 00 30 	addi    r3,r1,48                               
ffc1f430:	38 80 00 01 	li      r4,1                                   
ffc1f434:	38 a0 00 01 	li      r5,1                                   
ffc1f438:	4b ff 37 35 	bl      ffc12b6c <rtems_rfs_inode_time_stamp_now>
  if (rc > 0)                                                         
ffc1f43c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1f440:	40 81 00 48 	ble-    ffc1f488 <rtems_rfs_unlink+0x314>      <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                     
ffc1f444:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1f448:	3c 80 02 00 	lis     r4,512                                 <== NOT EXECUTED
ffc1f44c:	4b ff 4d fd 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1f450:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1f454:	41 be 00 24 	beq+    cr7,ffc1f478 <rtems_rfs_unlink+0x304>  <== NOT EXECUTED
      printf ("rtems-rfs: link: inode-time-stamp failed: %d: %s\n",   
ffc1f458:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f45c:	48 00 49 01 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1f460:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1f464:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f468:	38 63 5c 10 	addi    r3,r3,23568                            <== NOT EXECUTED
ffc1f46c:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1f470:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1f474:	48 00 36 fd 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
              rc, strerror (rc));                                     
    rtems_rfs_inode_close (fs, &parent_inode);                        
ffc1f478:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1f47c:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc1f480:	4b ff 35 5d 	bl      ffc129dc <rtems_rfs_inode_close>       <== NOT EXECUTED
ffc1f484:	48 00 00 4c 	b       ffc1f4d0 <rtems_rfs_unlink+0x35c>      <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &parent_inode);                     
ffc1f488:	7f c3 f3 78 	mr      r3,r30                                 
ffc1f48c:	38 81 00 30 	addi    r4,r1,48                               
ffc1f490:	4b ff 35 4d 	bl      ffc129dc <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
ffc1f494:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1f498:	40 81 00 48 	ble-    ffc1f4e0 <rtems_rfs_unlink+0x36c>      <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                     
ffc1f49c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1f4a0:	3c 80 02 00 	lis     r4,512                                 <== NOT EXECUTED
ffc1f4a4:	4b ff 4d a5 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1f4a8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1f4ac:	41 be 00 24 	beq+    cr7,ffc1f4d0 <rtems_rfs_unlink+0x35c>  <== NOT EXECUTED
      printf ("rtems-rfs: link: parent inode-close failed: %d: %s\n", 
ffc1f4b0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f4b4:	48 00 48 a9 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1f4b8:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1f4bc:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f4c0:	38 63 5c 42 	addi    r3,r3,23618                            <== NOT EXECUTED
ffc1f4c4:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1f4c8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1f4cc:	48 00 36 a5 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
              rc, strerror (rc));                                     
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc1f4d0:	7f c3 f3 78 	mr      r3,r30                                 
ffc1f4d4:	38 81 00 08 	addi    r4,r1,8                                
ffc1f4d8:	4b ff 35 05 	bl      ffc129dc <rtems_rfs_inode_close>       
ffc1f4dc:	48 00 00 4c 	b       ffc1f528 <rtems_rfs_unlink+0x3b4>      
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &target_inode);                     
ffc1f4e0:	7f c3 f3 78 	mr      r3,r30                                 
ffc1f4e4:	38 81 00 08 	addi    r4,r1,8                                
ffc1f4e8:	4b ff 34 f5 	bl      ffc129dc <rtems_rfs_inode_close>       
                                                                      
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))           
ffc1f4ec:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1f4f0:	40 81 00 38 	ble-    ffc1f528 <rtems_rfs_unlink+0x3b4>      <== ALWAYS TAKEN
ffc1f4f4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1f4f8:	3c 80 02 00 	lis     r4,512                                 <== NOT EXECUTED
ffc1f4fc:	4b ff 4d 4d 	bl      ffc14248 <rtems_rfs_trace>             <== NOT EXECUTED
ffc1f500:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1f504:	41 be 00 24 	beq+    cr7,ffc1f528 <rtems_rfs_unlink+0x3b4>  <== NOT EXECUTED
    printf ("rtems-rfs: link: target inode-close failed: %d: %s\n",   
ffc1f508:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f50c:	48 00 48 51 	bl      ffc23d5c <strerror>                    <== NOT EXECUTED
ffc1f510:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1f514:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1f518:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1f51c:	38 63 5c 76 	addi    r3,r3,23670                            <== NOT EXECUTED
ffc1f520:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1f524:	48 00 36 4d 	bl      ffc22b70 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  return rc;                                                          
}                                                                     
ffc1f528:	39 61 00 78 	addi    r11,r1,120                             
ffc1f52c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1f530:	4b fe 20 24 	b       ffc01554 <_restgpr_25_x>               
                                                                      

ffc21298 <rtems_shell_rfs_format>: int rtems_shell_rfs_format (int argc, char* argv[]) {
ffc21298:	94 21 ff c0 	stwu    r1,-64(r1)                             <== NOT EXECUTED
ffc2129c:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
  rtems_rfs_format_config config;                                     
  const char*             driver = NULL;                              
  int                     arg;                                        
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
ffc212a0:	38 a0 00 18 	li      r5,24                                  <== NOT EXECUTED
  return 1;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_shell_rfs_format (int argc, char* argv[])                       
{                                                                     
ffc212a4:	bf 61 00 2c 	stmw    r27,44(r1)                             <== NOT EXECUTED
ffc212a8:	7c 7d 1b 78 	mr      r29,r3                                 <== NOT EXECUTED
ffc212ac:	7c 9c 23 78 	mr      r28,r4                                 <== NOT EXECUTED
  rtems_rfs_format_config config;                                     
  const char*             driver = NULL;                              
  int                     arg;                                        
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
ffc212b0:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
  return 1;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_shell_rfs_format (int argc, char* argv[])                       
{                                                                     
ffc212b4:	90 01 00 44 	stw     r0,68(r1)                              <== NOT EXECUTED
  rtems_rfs_format_config config;                                     
  const char*             driver = NULL;                              
  int                     arg;                                        
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
ffc212b8:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc212bc:	48 01 a4 2d 	bl      ffc3b6e8 <memset>                      <== NOT EXECUTED
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc212c0:	3b e0 00 01 	li      r31,1                                  <== NOT EXECUTED
                                                                      
int                                                                   
rtems_shell_rfs_format (int argc, char* argv[])                       
{                                                                     
  rtems_rfs_format_config config;                                     
  const char*             driver = NULL;                              
ffc212c4:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
    if (argv[arg][0] == '-')                                          
    {                                                                 
      switch (argv[arg][1])                                           
      {                                                               
        case 'v':                                                     
          config.verbose = true;                                      
ffc212c8:	3b 60 00 01 	li      r27,1                                  <== NOT EXECUTED
  const char*             driver = NULL;                              
  int                     arg;                                        
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc212cc:	48 00 01 6c 	b       ffc21438 <rtems_shell_rfs_format+0x1a0><== NOT EXECUTED
  {                                                                   
    if (argv[arg][0] == '-')                                          
ffc212d0:	57 e9 10 3a 	rlwinm  r9,r31,2,0,29                          <== NOT EXECUTED
ffc212d4:	7c 9c 48 2e 	lwzx    r4,r28,r9                              <== NOT EXECUTED
ffc212d8:	89 24 00 00 	lbz     r9,0(r4)                               <== NOT EXECUTED
ffc212dc:	2f 89 00 2d 	cmpwi   cr7,r9,45                              <== NOT EXECUTED
ffc212e0:	40 be 01 34 	bne+    cr7,ffc21414 <rtems_shell_rfs_format+0x17c><== NOT EXECUTED
    {                                                                 
      switch (argv[arg][1])                                           
ffc212e4:	89 24 00 01 	lbz     r9,1(r4)                               <== NOT EXECUTED
ffc212e8:	2f 89 00 69 	cmpwi   cr7,r9,105                             <== NOT EXECUTED
ffc212ec:	41 9e 00 ac 	beq-    cr7,ffc21398 <rtems_shell_rfs_format+0x100><== NOT EXECUTED
ffc212f0:	2b 89 00 69 	cmplwi  cr7,r9,105                             <== NOT EXECUTED
ffc212f4:	41 9d 00 18 	bgt-    cr7,ffc2130c <rtems_shell_rfs_format+0x74><== NOT EXECUTED
ffc212f8:	2f 89 00 49 	cmpwi   cr7,r9,73                              <== NOT EXECUTED
ffc212fc:	41 9e 00 d0 	beq-    cr7,ffc213cc <rtems_shell_rfs_format+0x134><== NOT EXECUTED
ffc21300:	2f 89 00 62 	cmpwi   cr7,r9,98                              <== NOT EXECUTED
ffc21304:	40 be 01 04 	bne+    cr7,ffc21408 <rtems_shell_rfs_format+0x170><== NOT EXECUTED
ffc21308:	48 00 00 5c 	b       ffc21364 <rtems_shell_rfs_format+0xcc> <== NOT EXECUTED
ffc2130c:	2f 89 00 73 	cmpwi   cr7,r9,115                             <== NOT EXECUTED
ffc21310:	41 9e 00 20 	beq-    cr7,ffc21330 <rtems_shell_rfs_format+0x98><== NOT EXECUTED
ffc21314:	2f 89 00 76 	cmpwi   cr7,r9,118                             <== NOT EXECUTED
ffc21318:	41 9e 00 10 	beq-    cr7,ffc21328 <rtems_shell_rfs_format+0x90><== NOT EXECUTED
ffc2131c:	2f 89 00 6f 	cmpwi   cr7,r9,111                             <== NOT EXECUTED
ffc21320:	40 be 00 e8 	bne+    cr7,ffc21408 <rtems_shell_rfs_format+0x170><== NOT EXECUTED
ffc21324:	48 00 00 b0 	b       ffc213d4 <rtems_shell_rfs_format+0x13c><== NOT EXECUTED
      {                                                               
        case 'v':                                                     
          config.verbose = true;                                      
ffc21328:	9b 61 00 1d 	stb     r27,29(r1)                             <== NOT EXECUTED
          break;                                                      
ffc2132c:	48 00 01 08 	b       ffc21434 <rtems_shell_rfs_format+0x19c><== NOT EXECUTED
                                                                      
        case 's':                                                     
          arg++;                                                      
ffc21330:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
          if (arg >= argc)                                            
ffc21334:	7f 9f e8 00 	cmpw    cr7,r31,r29                            <== NOT EXECUTED
ffc21338:	41 bc 00 10 	blt+    cr7,ffc21348 <rtems_shell_rfs_format+0xb0><== NOT EXECUTED
          {                                                           
            printf ("error: block size needs an argument\n");         
ffc2133c:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc21340:	38 63 90 95 	addi    r3,r3,-28523                           <== NOT EXECUTED
ffc21344:	48 00 01 0c 	b       ffc21450 <rtems_shell_rfs_format+0x1b8><== NOT EXECUTED
            return 1;                                                 
          }                                                           
          config.block_size = strtoul (argv[arg], 0, 0);              
ffc21348:	57 e9 10 3a 	rlwinm  r9,r31,2,0,29                          <== NOT EXECUTED
ffc2134c:	7c 7c 48 2e 	lwzx    r3,r28,r9                              <== NOT EXECUTED
ffc21350:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc21354:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc21358:	48 01 fc a1 	bl      ffc40ff8 <strtoul>                     <== NOT EXECUTED
ffc2135c:	90 61 00 08 	stw     r3,8(r1)                               <== NOT EXECUTED
          break;                                                      
ffc21360:	48 00 00 d4 	b       ffc21434 <rtems_shell_rfs_format+0x19c><== NOT EXECUTED
                                                                      
        case 'b':                                                     
          arg++;                                                      
ffc21364:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
          if (arg >= argc)                                            
ffc21368:	7f 9f e8 00 	cmpw    cr7,r31,r29                            <== NOT EXECUTED
ffc2136c:	41 bc 00 10 	blt+    cr7,ffc2137c <rtems_shell_rfs_format+0xe4><== NOT EXECUTED
          {                                                           
            printf ("error: group block count needs an argument\n");  
ffc21370:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc21374:	38 63 90 b9 	addi    r3,r3,-28487                           <== NOT EXECUTED
ffc21378:	48 00 00 d8 	b       ffc21450 <rtems_shell_rfs_format+0x1b8><== NOT EXECUTED
            return 1;                                                 
          }                                                           
          config.group_blocks = strtoul (argv[arg], 0, 0);            
ffc2137c:	57 e9 10 3a 	rlwinm  r9,r31,2,0,29                          <== NOT EXECUTED
ffc21380:	7c 7c 48 2e 	lwzx    r3,r28,r9                              <== NOT EXECUTED
ffc21384:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc21388:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc2138c:	48 01 fc 6d 	bl      ffc40ff8 <strtoul>                     <== NOT EXECUTED
ffc21390:	90 61 00 0c 	stw     r3,12(r1)                              <== NOT EXECUTED
          break;                                                      
ffc21394:	48 00 00 a0 	b       ffc21434 <rtems_shell_rfs_format+0x19c><== NOT EXECUTED
                                                                      
        case 'i':                                                     
          arg++;                                                      
ffc21398:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
          if (arg >= argc)                                            
ffc2139c:	7f 9f e8 00 	cmpw    cr7,r31,r29                            <== NOT EXECUTED
ffc213a0:	41 bc 00 10 	blt+    cr7,ffc213b0 <rtems_shell_rfs_format+0x118><== NOT EXECUTED
          {                                                           
            printf ("error: group inode count needs an argument\n");  
ffc213a4:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc213a8:	38 63 90 e4 	addi    r3,r3,-28444                           <== NOT EXECUTED
ffc213ac:	48 00 00 a4 	b       ffc21450 <rtems_shell_rfs_format+0x1b8><== NOT EXECUTED
            return 1;                                                 
          }                                                           
          config.group_inodes = strtoul (argv[arg], 0, 0);            
ffc213b0:	57 e9 10 3a 	rlwinm  r9,r31,2,0,29                          <== NOT EXECUTED
ffc213b4:	7c 7c 48 2e 	lwzx    r3,r28,r9                              <== NOT EXECUTED
ffc213b8:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc213bc:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc213c0:	48 01 fc 39 	bl      ffc40ff8 <strtoul>                     <== NOT EXECUTED
ffc213c4:	90 61 00 10 	stw     r3,16(r1)                              <== NOT EXECUTED
          break;                                                      
ffc213c8:	48 00 00 6c 	b       ffc21434 <rtems_shell_rfs_format+0x19c><== NOT EXECUTED
                                                                      
        case 'I':                                                     
          config.initialise_inodes = true;                            
ffc213cc:	9b 61 00 1c 	stb     r27,28(r1)                             <== NOT EXECUTED
          break;                                                      
ffc213d0:	48 00 00 64 	b       ffc21434 <rtems_shell_rfs_format+0x19c><== NOT EXECUTED
                                                                      
        case 'o':                                                     
          arg++;                                                      
ffc213d4:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
          if (arg >= argc)                                            
ffc213d8:	7f 9f e8 00 	cmpw    cr7,r31,r29                            <== NOT EXECUTED
ffc213dc:	41 bc 00 10 	blt+    cr7,ffc213ec <rtems_shell_rfs_format+0x154><== NOT EXECUTED
          {                                                           
            printf ("error: inode percentage overhead needs an argument\n");
ffc213e0:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc213e4:	38 63 91 0f 	addi    r3,r3,-28401                           <== NOT EXECUTED
ffc213e8:	48 00 00 68 	b       ffc21450 <rtems_shell_rfs_format+0x1b8><== NOT EXECUTED
            return 1;                                                 
          }                                                           
          config.inode_overhead = strtoul (argv[arg], 0, 0);          
ffc213ec:	57 e9 10 3a 	rlwinm  r9,r31,2,0,29                          <== NOT EXECUTED
ffc213f0:	7c 7c 48 2e 	lwzx    r3,r28,r9                              <== NOT EXECUTED
ffc213f4:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc213f8:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc213fc:	48 01 fb fd 	bl      ffc40ff8 <strtoul>                     <== NOT EXECUTED
ffc21400:	90 61 00 14 	stw     r3,20(r1)                              <== NOT EXECUTED
          break;                                                      
ffc21404:	48 00 00 30 	b       ffc21434 <rtems_shell_rfs_format+0x19c><== NOT EXECUTED
                                                                      
        default:                                                      
          printf ("error: invalid option: %s\n", argv[arg]);          
ffc21408:	3c 60 ff c5 	lis     r3,-59                                 <== NOT EXECUTED
ffc2140c:	38 63 76 b3 	addi    r3,r3,30387                            <== NOT EXECUTED
ffc21410:	48 00 00 14 	b       ffc21424 <rtems_shell_rfs_format+0x18c><== NOT EXECUTED
          return 1;                                                   
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      if (!driver)                                                    
ffc21414:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc21418:	41 be 00 18 	beq+    cr7,ffc21430 <rtems_shell_rfs_format+0x198><== NOT EXECUTED
        driver = argv[arg];                                           
      else                                                            
      {                                                               
        printf ("error: only one driver name allowed: %s\n", argv[arg]);
ffc2141c:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc21420:	38 63 91 42 	addi    r3,r3,-28350                           <== NOT EXECUTED
ffc21424:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc21428:	48 01 b6 9d 	bl      ffc3cac4 <printf>                      <== NOT EXECUTED
ffc2142c:	48 00 00 68 	b       ffc21494 <rtems_shell_rfs_format+0x1fc><== NOT EXECUTED
          return 1;                                                   
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      if (!driver)                                                    
ffc21430:	7c 9e 23 78 	mr      r30,r4                                 <== NOT EXECUTED
  const char*             driver = NULL;                              
  int                     arg;                                        
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc21434:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
ffc21438:	7f 9f e8 00 	cmpw    cr7,r31,r29                            <== NOT EXECUTED
ffc2143c:	41 9c fe 94 	blt+    cr7,ffc212d0 <rtems_shell_rfs_format+0x38><== NOT EXECUTED
        return 1;                                                     
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (!driver) {                                                      
ffc21440:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc21444:	40 be 00 14 	bne+    cr7,ffc21458 <rtems_shell_rfs_format+0x1c0><== NOT EXECUTED
    printf ("error: no driver name provided\n");                      
ffc21448:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc2144c:	38 63 91 6b 	addi    r3,r3,-28309                           <== NOT EXECUTED
ffc21450:	48 01 b9 dd 	bl      ffc3ce2c <puts>                        <== NOT EXECUTED
ffc21454:	48 00 00 40 	b       ffc21494 <rtems_shell_rfs_format+0x1fc><== NOT EXECUTED
    return 1;                                                         
  }                                                                   
                                                                      
  if (rtems_rfs_format (driver, &config) < 0)                         
ffc21458:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc2145c:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc21460:	48 00 d5 d5 	bl      ffc2ea34 <rtems_rfs_format>            <== NOT EXECUTED
    printf ("error: format of %s failed: %s\n",                       
            driver, strerror (errno));                                
    return 1;                                                         
  }                                                                   
                                                                      
  return 0;                                                           
ffc21464:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
  if (!driver) {                                                      
    printf ("error: no driver name provided\n");                      
    return 1;                                                         
  }                                                                   
                                                                      
  if (rtems_rfs_format (driver, &config) < 0)                         
ffc21468:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc2146c:	40 bc 00 2c 	bge+    cr7,ffc21498 <rtems_shell_rfs_format+0x200><== NOT EXECUTED
  {                                                                   
    printf ("error: format of %s failed: %s\n",                       
            driver, strerror (errno));                                
ffc21470:	48 01 62 89 	bl      ffc376f8 <__errno>                     <== NOT EXECUTED
    return 1;                                                         
  }                                                                   
                                                                      
  if (rtems_rfs_format (driver, &config) < 0)                         
  {                                                                   
    printf ("error: format of %s failed: %s\n",                       
ffc21474:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc21478:	48 01 e1 f5 	bl      ffc3f66c <strerror>                    <== NOT EXECUTED
ffc2147c:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc21480:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc21484:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc21488:	38 63 91 8a 	addi    r3,r3,-28278                           <== NOT EXECUTED
ffc2148c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc21490:	48 01 b6 35 	bl      ffc3cac4 <printf>                      <== NOT EXECUTED
            driver, strerror (errno));                                
    return 1;                                                         
ffc21494:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc21498:	39 61 00 40 	addi    r11,r1,64                              <== NOT EXECUTED
ffc2149c:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc214a0:	48 03 23 4c 	b       ffc537ec <_restgpr_27_x>               <== NOT EXECUTED
                                                                      

ffc189f4 <rtems_signal_send>: rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) {
ffc189f4:	7c 2b 0b 78 	mr      r11,r1                                 
ffc189f8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc189fc:	7c 08 02 a6 	mflr    r0                                     
ffc18a00:	48 01 5b 01 	bl      ffc2e500 <_savegpr_31>                 
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
  RTEMS_API_Control       *api;                                       
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
ffc18a04:	7c 9f 23 79 	mr.     r31,r4                                 
                                                                      
rtems_status_code rtems_signal_send(                                  
  rtems_id          id,                                               
  rtems_signal_set  signal_set                                        
)                                                                     
{                                                                     
ffc18a08:	90 01 00 24 	stw     r0,36(r1)                              
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
  RTEMS_API_Control       *api;                                       
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
ffc18a0c:	41 a2 00 a8 	beq+    ffc18ab4 <rtems_signal_send+0xc0>      
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc18a10:	38 81 00 08 	addi    r4,r1,8                                
ffc18a14:	48 00 4b ed 	bl      ffc1d600 <_Thread_Get>                 
  switch ( location ) {                                               
ffc18a18:	81 21 00 08 	lwz     r9,8(r1)                               
ffc18a1c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc18a20:	40 9e 00 9c 	bne-    cr7,ffc18abc <rtems_signal_send+0xc8>  
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_RTEMS ];           
ffc18a24:	81 23 01 48 	lwz     r9,328(r3)                             
      asr = &api->Signal;                                             
                                                                      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
ffc18a28:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc18a2c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc18a30:	41 9e 00 78 	beq-    cr7,ffc18aa8 <rtems_signal_send+0xb4>  
        if ( asr->is_enabled ) {                                      
ffc18a34:	89 49 00 08 	lbz     r10,8(r9)                              
ffc18a38:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc18a3c:	7d 00 00 a6 	mfmsr   r8                                     
ffc18a40:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc18a44:	7d 0a 50 78 	andc    r10,r8,r10                             
ffc18a48:	7d 40 01 24 	mtmsr   r10                                    
ffc18a4c:	41 9e 00 40 	beq-    cr7,ffc18a8c <rtems_signal_send+0x98>  
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
    *signal_set |= signals;                                           
ffc18a50:	81 49 00 14 	lwz     r10,20(r9)                             
ffc18a54:	7d 5f fb 78 	or      r31,r10,r31                            
ffc18a58:	93 e9 00 14 	stw     r31,20(r9)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc18a5c:	7d 00 01 24 	mtmsr   r8                                     
          _ASR_Post_signals( signal_set, &asr->signals_posted );      
                                                                      
          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
ffc18a60:	3d 20 00 00 	lis     r9,0                                   
ffc18a64:	39 29 72 20 	addi    r9,r9,29216                            
ffc18a68:	81 49 00 08 	lwz     r10,8(r9)                              
ffc18a6c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc18a70:	41 9e 00 2c 	beq-    cr7,ffc18a9c <rtems_signal_send+0xa8>  
ffc18a74:	81 49 00 10 	lwz     r10,16(r9)                             
ffc18a78:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc18a7c:	40 be 00 20 	bne+    cr7,ffc18a9c <rtems_signal_send+0xa8>  <== NEVER TAKEN
            _Thread_Dispatch_necessary = true;                        
ffc18a80:	39 40 00 01 	li      r10,1                                  
ffc18a84:	99 49 00 0c 	stb     r10,12(r9)                             
ffc18a88:	48 00 00 14 	b       ffc18a9c <rtems_signal_send+0xa8>      
ffc18a8c:	81 49 00 18 	lwz     r10,24(r9)                             
ffc18a90:	7d 5f fb 78 	or      r31,r10,r31                            
ffc18a94:	93 e9 00 18 	stw     r31,24(r9)                             
ffc18a98:	7d 00 01 24 	mtmsr   r8                                     
        } else {                                                      
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
ffc18a9c:	48 00 4b 49 	bl      ffc1d5e4 <_Thread_Enable_dispatch>     
        return RTEMS_SUCCESSFUL;                                      
ffc18aa0:	38 60 00 00 	li      r3,0                                   
ffc18aa4:	48 00 00 1c 	b       ffc18ac0 <rtems_signal_send+0xcc>      
      }                                                               
      _Thread_Enable_dispatch();                                      
ffc18aa8:	48 00 4b 3d 	bl      ffc1d5e4 <_Thread_Enable_dispatch>     
      return RTEMS_NOT_DEFINED;                                       
ffc18aac:	38 60 00 0b 	li      r3,11                                  
ffc18ab0:	48 00 00 10 	b       ffc18ac0 <rtems_signal_send+0xcc>      
  Objects_Locations        location;                                  
  RTEMS_API_Control       *api;                                       
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
ffc18ab4:	38 60 00 0a 	li      r3,10                                  
ffc18ab8:	48 00 00 08 	b       ffc18ac0 <rtems_signal_send+0xcc>      
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc18abc:	38 60 00 04 	li      r3,4                                   
}                                                                     
ffc18ac0:	39 61 00 20 	addi    r11,r1,32                              
ffc18ac4:	4b ff 58 f8 	b       ffc0e3bc <_restgpr_31_x>               
                                                                      

ffc0f80c <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 ) {
ffc0f80c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0f810:	7c 08 02 a6 	mflr    r0                                     
ffc0f814:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc0f818:	7c 7b 1b 78 	mr      r27,r3                                 
ffc0f81c:	38 64 00 08 	addi    r3,r4,8                                
  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 )           
ffc0f820:	7c 63 29 d6 	mullw   r3,r3,r5                               
  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 )                                    
{                                                                     
ffc0f824:	90 01 00 24 	stw     r0,36(r1)                              
ffc0f828:	7c 9e 23 78 	mr      r30,r4                                 
                                * 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 )           
                                + key_table_size + data_size;         
                                                                      
  rtems_sparse_disk *const sd = (rtems_sparse_disk *) malloc(         
ffc0f82c:	38 63 00 1c 	addi    r3,r3,28                               
  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 )                                    
{                                                                     
ffc0f830:	7c bf 2b 78 	mr      r31,r5                                 
ffc0f834:	7c dc 33 78 	mr      r28,r6                                 
ffc0f838:	7c fd 3b 78 	mr      r29,r7                                 
                                * 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 )           
                                + key_table_size + data_size;         
                                                                      
  rtems_sparse_disk *const sd = (rtems_sparse_disk *) malloc(         
ffc0f83c:	4b ff 6a 51 	bl      ffc0628c <malloc>                      
  rtems_sparse_disk *sparse_disk = sparse_disk_allocate(              
    media_block_size,                                                 
    blocks_with_buffer                                                
  );                                                                  
                                                                      
  if ( sparse_disk != NULL ) {                                        
ffc0f840:	7c 64 1b 79 	mr.     r4,r3                                  
ffc0f844:	41 82 00 34 	beq-    ffc0f878 <rtems_sparse_disk_create_and_register+0x6c><== NEVER TAKEN
  } else {                                                            
    sc = RTEMS_NO_MEMORY;                                             
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0f848:	80 01 00 24 	lwz     r0,36(r1)                              
    media_block_size,                                                 
    blocks_with_buffer                                                
  );                                                                  
                                                                      
  if ( sparse_disk != NULL ) {                                        
    sc = rtems_sparse_disk_register(                                  
ffc0f84c:	7f 63 db 78 	mr      r3,r27                                 
ffc0f850:	7f c5 f3 78 	mr      r5,r30                                 
  } else {                                                            
    sc = RTEMS_NO_MEMORY;                                             
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0f854:	7c 08 03 a6 	mtlr    r0                                     
    media_block_size,                                                 
    blocks_with_buffer                                                
  );                                                                  
                                                                      
  if ( sparse_disk != NULL ) {                                        
    sc = rtems_sparse_disk_register(                                  
ffc0f858:	7f e6 fb 78 	mr      r6,r31                                 
ffc0f85c:	7f 87 e3 78 	mr      r7,r28                                 
ffc0f860:	7f a8 eb 78 	mr      r8,r29                                 
  } else {                                                            
    sc = RTEMS_NO_MEMORY;                                             
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0f864:	bb 61 00 0c 	lmw     r27,12(r1)                             
    media_block_size,                                                 
    blocks_with_buffer                                                
  );                                                                  
                                                                      
  if ( sparse_disk != NULL ) {                                        
    sc = rtems_sparse_disk_register(                                  
ffc0f868:	3d 20 ff c1 	lis     r9,-63                                 
ffc0f86c:	39 29 f4 80 	addi    r9,r9,-2944                            
  } else {                                                            
    sc = RTEMS_NO_MEMORY;                                             
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0f870:	38 21 00 20 	addi    r1,r1,32                               
    media_block_size,                                                 
    blocks_with_buffer                                                
  );                                                                  
                                                                      
  if ( sparse_disk != NULL ) {                                        
    sc = rtems_sparse_disk_register(                                  
ffc0f874:	4b ff fe 8c 	b       ffc0f700 <rtems_sparse_disk_register>  
  } else {                                                            
    sc = RTEMS_NO_MEMORY;                                             
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0f878:	39 61 00 20 	addi    r11,r1,32                              <== NOT EXECUTED
ffc0f87c:	38 60 00 1a 	li      r3,26                                  <== NOT EXECUTED
ffc0f880:	4b ff 1d 6c 	b       ffc015ec <_restgpr_27_x>               <== NOT EXECUTED
                                                                      

ffc0f700 <rtems_sparse_disk_register>: uint8_t fill_pattern, rtems_sparse_disk_delete_handler sparse_disk_delete ) { rtems_status_code sc; if ( blocks_with_buffer <= media_block_count ) {
ffc0f700:	7f 86 38 40 	cmplw   cr7,r6,r7                              
  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 )               
{                                                                     
ffc0f704:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0f708:	7c 08 02 a6 	mflr    r0                                     
ffc0f70c:	be e1 00 0c 	stmw    r23,12(r1)                             
ffc0f710:	7c de 33 78 	mr      r30,r6                                 
ffc0f714:	7c fc 3b 78 	mr      r28,r7                                 
ffc0f718:	90 01 00 34 	stw     r0,52(r1)                              
  rtems_status_code sc;                                               
                                                                      
  if ( blocks_with_buffer <= media_block_count ) {                    
ffc0f71c:	41 bd 00 dc 	bgt+    cr7,ffc0f7f8 <rtems_sparse_disk_register+0xf8><== NEVER TAKEN
  const uint8_t                                                     fill_pattern )
{                                                                     
  rtems_status_code sc;                                               
  rtems_blkdev_bnum i;                                                
                                                                      
  if ( NULL == sd )                                                   
ffc0f720:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0f724:	7c 9f 23 78 	mr      r31,r4                                 
ffc0f728:	41 9e 00 d8 	beq-    cr7,ffc0f800 <rtems_sparse_disk_register+0x100><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  uint8_t     *data           = (uint8_t *) sd;                       
  size_t const key_table_size = blocks_with_buffer                    
ffc0f72c:	54 db 18 38 	rlwinm  r27,r6,3,0,28                          
                                * 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 );    
ffc0f730:	3b 3b 00 1c 	addi    r25,r27,28                             
ffc0f734:	7c bd 2b 78 	mr      r29,r5                                 
ffc0f738:	7c 78 1b 78 	mr      r24,r3                                 
ffc0f73c:	7f 25 cb 78 	mr      r5,r25                                 
ffc0f740:	7c 83 23 78 	mr      r3,r4                                  
ffc0f744:	38 80 00 00 	li      r4,0                                   
ffc0f748:	7d 1a 43 78 	mr      r26,r8                                 
ffc0f74c:	7d 37 4b 78 	mr      r23,r9                                 
ffc0f750:	48 00 c9 f9 	bl      ffc1c148 <memset>                      
                                                                      
  sd->fill_pattern = fill_pattern;                                    
  memset( (uint8_t *) ( data + sizeof( rtems_sparse_disk ) + key_table_size ),
ffc0f754:	7c be e9 d6 	mullw   r5,r30,r29                             
                                * 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 );    
                                                                      
  sd->fill_pattern = fill_pattern;                                    
ffc0f758:	9b 5f 00 14 	stb     r26,20(r31)                            
  memset( (uint8_t *) ( data + sizeof( rtems_sparse_disk ) + key_table_size ),
ffc0f75c:	7f 44 d3 78 	mr      r4,r26                                 
ffc0f760:	7c 7f ca 14 	add     r3,r31,r25                             
ffc0f764:	48 00 c9 e5 	bl      ffc1c148 <memset>                      
          sd->fill_pattern,                                           
          data_size );                                                
                                                                      
  sd->delete_handler = sparse_disk_delete;                            
ffc0f768:	92 ff 00 10 	stw     r23,16(r31)                            
                                                                      
  sc                 = rtems_semaphore_create(                        
ffc0f76c:	3c 60 53 50 	lis     r3,21328                               
ffc0f770:	60 63 41 52 	ori     r3,r3,16722                            
ffc0f774:	38 80 00 01 	li      r4,1                                   
ffc0f778:	38 a0 00 54 	li      r5,84                                  
ffc0f77c:	38 c0 00 00 	li      r6,0                                   
ffc0f780:	7f e7 fb 78 	mr      r7,r31                                 
ffc0f784:	4b ff ab 51 	bl      ffc0a2d4 <rtems_semaphore_create>      
    RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY, 
    0,                                                                
    &sd->mutex                                                        
    );                                                                
                                                                      
  if ( sc != RTEMS_SUCCESSFUL ) {                                     
ffc0f788:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0f78c:	40 82 00 78 	bne-    ffc0f804 <rtems_sparse_disk_register+0x104><== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  data                  += sizeof( rtems_sparse_disk );               
ffc0f790:	39 5f 00 1c 	addi    r10,r31,28                             
                                                                      
  sd->blocks_with_buffer = blocks_with_buffer;                        
ffc0f794:	93 df 00 04 	stw     r30,4(r31)                             
  sd->key_table          = (rtems_sparse_disk_key *) data;            
                                                                      
  data                  += key_table_size;                            
                                                                      
  for ( i = 0; i < blocks_with_buffer; ++i, data += media_block_size ) {
ffc0f798:	3b de 00 01 	addi    r30,r30,1                              
  }                                                                   
                                                                      
  data                  += sizeof( rtems_sparse_disk );               
                                                                      
  sd->blocks_with_buffer = blocks_with_buffer;                        
  sd->key_table          = (rtems_sparse_disk_key *) data;            
ffc0f79c:	91 5f 00 18 	stw     r10,24(r31)                            
                                                                      
  data                  += key_table_size;                            
                                                                      
  for ( i = 0; i < blocks_with_buffer; ++i, data += media_block_size ) {
ffc0f7a0:	39 20 00 00 	li      r9,0                                   
  data                  += sizeof( rtems_sparse_disk );               
                                                                      
  sd->blocks_with_buffer = blocks_with_buffer;                        
  sd->key_table          = (rtems_sparse_disk_key *) data;            
                                                                      
  data                  += key_table_size;                            
ffc0f7a4:	7d 4a da 14 	add     r10,r10,r27                            
                                                                      
  for ( i = 0; i < blocks_with_buffer; ++i, data += media_block_size ) {
ffc0f7a8:	7f c9 03 a6 	mtctr   r30                                    
ffc0f7ac:	48 00 00 18 	b       ffc0f7c4 <rtems_sparse_disk_register+0xc4>
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
                                                                      
rtems_status_code rtems_sparse_disk_register(                         
ffc0f7b0:	55 28 18 38 	rlwinm  r8,r9,3,0,28                           
ffc0f7b4:	7d 1f 42 14 	add     r8,r31,r8                              
  sd->key_table          = (rtems_sparse_disk_key *) data;            
                                                                      
  data                  += key_table_size;                            
                                                                      
  for ( i = 0; i < blocks_with_buffer; ++i, data += media_block_size ) {
    sd->key_table[i].data = data;                                     
ffc0f7b8:	91 48 00 20 	stw     r10,32(r8)                             
  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 ) {
ffc0f7bc:	39 29 00 01 	addi    r9,r9,1                                
ffc0f7c0:	7d 4a ea 14 	add     r10,r10,r29                            
ffc0f7c4:	42 00 ff ec 	bdnz+   ffc0f7b0 <rtems_sparse_disk_register+0xb0>
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0f7c8:	80 01 00 34 	lwz     r0,52(r1)                              
      sparse_disk_delete,                                             
      fill_pattern                                                    
    );                                                                
                                                                      
    if ( RTEMS_SUCCESSFUL == sc ) {                                   
      sc = rtems_blkdev_create(                                       
ffc0f7cc:	7f 03 c3 78 	mr      r3,r24                                 
                                                                      
  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;                            
ffc0f7d0:	93 bf 00 0c 	stw     r29,12(r31)                            
      sparse_disk_delete,                                             
      fill_pattern                                                    
    );                                                                
                                                                      
    if ( RTEMS_SUCCESSFUL == sc ) {                                   
      sc = rtems_blkdev_create(                                       
ffc0f7d4:	7f a4 eb 78 	mr      r4,r29                                 
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0f7d8:	7c 08 03 a6 	mtlr    r0                                     
      sparse_disk_delete,                                             
      fill_pattern                                                    
    );                                                                
                                                                      
    if ( RTEMS_SUCCESSFUL == sc ) {                                   
      sc = rtems_blkdev_create(                                       
ffc0f7dc:	7f 85 e3 78 	mr      r5,r28                                 
ffc0f7e0:	3c c0 ff c1 	lis     r6,-63                                 
ffc0f7e4:	7f e7 fb 78 	mr      r7,r31                                 
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0f7e8:	ba e1 00 0c 	lmw     r23,12(r1)                             
      sparse_disk_delete,                                             
      fill_pattern                                                    
    );                                                                
                                                                      
    if ( RTEMS_SUCCESSFUL == sc ) {                                   
      sc = rtems_blkdev_create(                                       
ffc0f7ec:	38 c6 f4 84 	addi    r6,r6,-2940                            
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0f7f0:	38 21 00 30 	addi    r1,r1,48                               
      sparse_disk_delete,                                             
      fill_pattern                                                    
    );                                                                
                                                                      
    if ( RTEMS_SUCCESSFUL == sc ) {                                   
      sc = rtems_blkdev_create(                                       
ffc0f7f4:	48 00 2b c8 	b       ffc123bc <rtems_blkdev_create>         
        sparse_disk_ioctl,                                            
        sparse_disk                                                   
      );                                                              
    }                                                                 
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
ffc0f7f8:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc0f7fc:	48 00 00 08 	b       ffc0f804 <rtems_sparse_disk_register+0x104><== NOT EXECUTED
{                                                                     
  rtems_status_code sc;                                               
  rtems_blkdev_bnum i;                                                
                                                                      
  if ( NULL == sd )                                                   
    return RTEMS_INVALID_ADDRESS;                                     
ffc0f800:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0f804:	39 61 00 30 	addi    r11,r1,48                              <== NOT EXECUTED
ffc0f808:	4b ff 1d d4 	b       ffc015dc <_restgpr_23_x>               <== NOT EXECUTED
                                                                      

ffc22bc4 <rtems_stack_checker_create_extension>: static uint32_t pattern[ 4 ] = { 0xFEEDF00D, 0x0BAD0D06, /* FEED FOOD to BAD DOG */ 0xDEADF00D, 0x600D0D06 /* DEAD FOOD but GOOD DOG */ }; if ( Stack_check_Initialized )
ffc22bc4:	3d 20 00 00 	lis     r9,0                                   
ffc22bc8:	81 29 5c b8 	lwz     r9,23736(r9)                           
 */                                                                   
bool rtems_stack_checker_create_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc22bcc:	7c 8a 23 78 	mr      r10,r4                                 
  static    uint32_t pattern[ 4 ] = {                                 
    0xFEEDF00D, 0x0BAD0D06,  /* FEED FOOD to  BAD DOG */              
    0xDEADF00D, 0x600D0D06   /* DEAD FOOD but GOOD DOG */             
  };                                                                  
                                                                      
  if ( Stack_check_Initialized )                                      
ffc22bd0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc22bd4:	40 9e 00 40 	bne-    cr7,ffc22c14 <rtems_stack_checker_create_extension+0x50>
  /*                                                                  
   * Dope the pattern and fill areas                                  
   */                                                                 
  p = Stack_check_Pattern.pattern;                                    
  for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {                        
      p[i] = pattern[ i%4 ];                                          
ffc22bd8:	39 00 00 20 	li      r8,32                                  
ffc22bdc:	7d 09 03 a6 	mtctr   r8                                     
ffc22be0:	3c a0 ff c6 	lis     r5,-58                                 
ffc22be4:	3c 80 00 00 	lis     r4,0                                   
ffc22be8:	38 a5 99 e8 	addi    r5,r5,-26136                           
ffc22bec:	55 28 17 3a 	rlwinm  r8,r9,2,28,29                          
ffc22bf0:	7d 05 40 2e 	lwzx    r8,r5,r8                               
}                                                                     
                                                                      
/*                                                                    
 *  rtems_stack_checker_create_extension                              
 */                                                                   
bool rtems_stack_checker_create_extension(                            
ffc22bf4:	55 27 10 3a 	rlwinm  r7,r9,2,0,29                           
  /*                                                                  
   * Dope the pattern and fill areas                                  
   */                                                                 
  p = Stack_check_Pattern.pattern;                                    
  for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {                        
      p[i] = pattern[ i%4 ];                                          
ffc22bf8:	38 c4 66 e0 	addi    r6,r4,26336                            
ffc22bfc:	7d 06 39 2e 	stwx    r8,r6,r7                               
                                                                      
  /*                                                                  
   * Dope the pattern and fill areas                                  
   */                                                                 
  p = Stack_check_Pattern.pattern;                                    
  for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {                        
ffc22c00:	39 29 00 01 	addi    r9,r9,1                                
ffc22c04:	42 00 ff e8 	bdnz+   ffc22bec <rtems_stack_checker_create_extension+0x28>
                                  (char *) _CPU_Interrupt_stack_low;  
      Stack_check_Dope_stack(&Stack_check_Interrupt_stack);           
   }                                                                  
  #endif                                                              
                                                                      
  Stack_check_Initialized = 1;                                        
ffc22c08:	39 00 00 01 	li      r8,1                                   
ffc22c0c:	3d 20 00 00 	lis     r9,0                                   
ffc22c10:	91 09 5c b8 	stw     r8,23736(r9)                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  Stack_check_Initialize();                                           
                                                                      
  if (the_thread)                                                     
ffc22c14:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc22c18:	41 9e 00 34 	beq-    cr7,ffc22c4c <rtems_stack_checker_create_extension+0x88><== NEVER TAKEN
 */                                                                   
bool rtems_stack_checker_create_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc22c1c:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc22c20:	7c 08 02 a6 	mflr    r0                                     
  Stack_check_Initialize();                                           
                                                                      
  if (the_thread)                                                     
    Stack_check_Dope_stack(&the_thread->Start.Initial_stack);         
ffc22c24:	38 80 00 a5 	li      r4,165                                 
 */                                                                   
bool rtems_stack_checker_create_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc22c28:	90 01 00 0c 	stw     r0,12(r1)                              
  Stack_check_Initialize();                                           
                                                                      
  if (the_thread)                                                     
    Stack_check_Dope_stack(&the_thread->Start.Initial_stack);         
ffc22c2c:	80 6a 00 b4 	lwz     r3,180(r10)                            
ffc22c30:	80 aa 00 b0 	lwz     r5,176(r10)                            
ffc22c34:	48 01 8a b5 	bl      ffc3b6e8 <memset>                      
                                                                      
  return true;                                                        
}                                                                     
ffc22c38:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc22c3c:	38 60 00 01 	li      r3,1                                   
ffc22c40:	7c 08 03 a6 	mtlr    r0                                     
ffc22c44:	38 21 00 08 	addi    r1,r1,8                                
ffc22c48:	4e 80 00 20 	blr                                            
ffc22c4c:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc22c50:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc22de4 <rtems_stack_checker_is_blown>: /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) {
ffc22de4:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc22de8:	7c 08 02 a6 	mflr    r0                                     
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
ffc22dec:	3d 20 00 00 	lis     r9,0                                   
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
ffc22df0:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc22df4:	7c 3f 0b 78 	mr      r31,r1                                 
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
      return false;                                                   
ffc22df8:	3b a0 00 00 	li      r29,0                                  
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
ffc22dfc:	90 01 00 1c 	stw     r0,28(r1)                              
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
ffc22e00:	83 c9 65 70 	lwz     r30,25968(r9)                          
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
ffc22e04:	80 7e 00 b4 	lwz     r3,180(r30)                            
ffc22e08:	7f 9f 18 40 	cmplw   cr7,r31,r3                             
ffc22e0c:	41 9c 00 18 	blt-    cr7,ffc22e24 <rtems_stack_checker_is_blown+0x40><== NEVER TAKEN
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
ffc22e10:	83 be 00 b0 	lwz     r29,176(r30)                           
ffc22e14:	7f a3 ea 14 	add     r29,r3,r29                             
ffc22e18:	7f bf e8 10 	subfc   r29,r31,r29                            
ffc22e1c:	3b a0 00 00 	li      r29,0                                  
ffc22e20:	7f bd e9 14 	adde    r29,r29,r29                            
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
ffc22e24:	3d 20 00 00 	lis     r9,0                                   
ffc22e28:	81 29 5c b8 	lwz     r9,23736(r9)                           
ffc22e2c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc22e30:	41 9e 00 38 	beq-    cr7,ffc22e68 <rtems_stack_checker_is_blown+0x84><== NEVER TAKEN
    pattern_ok = (!memcmp(                                            
ffc22e34:	3c 80 00 00 	lis     r4,0                                   
ffc22e38:	38 84 66 e0 	addi    r4,r4,26336                            
ffc22e3c:	38 63 00 08 	addi    r3,r3,8                                
ffc22e40:	38 a0 00 80 	li      r5,128                                 
ffc22e44:	48 01 85 f1 	bl      ffc3b434 <memcmp>                      
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
ffc22e48:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
    pattern_ok = (!memcmp(                                            
ffc22e4c:	7c 64 00 34 	cntlzw  r4,r3                                  
ffc22e50:	54 84 d9 7e 	rlwinm  r4,r4,27,5,31                          
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
ffc22e54:	41 9e 00 0c 	beq-    cr7,ffc22e60 <rtems_stack_checker_is_blown+0x7c><== NEVER TAKEN
ffc22e58:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc22e5c:	40 be 00 18 	bne+    cr7,ffc22e74 <rtems_stack_checker_is_blown+0x90><== ALWAYS TAKEN
    Stack_check_report_blown_task( _Thread_Executing, pattern_ok );   
ffc22e60:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc22e64:	4b ff fe 31 	bl      ffc22c94 <Stack_check_report_blown_task><== NOT EXECUTED
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
ffc22e68:	2f 9d 00 00 	cmpwi   cr7,r29,0                              <== NOT EXECUTED
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
  bool           sp_ok;                                               
  bool           pattern_ok = true;                                   
ffc22e6c:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
ffc22e70:	41 be ff f0 	beq-    cr7,ffc22e60 <rtems_stack_checker_is_blown+0x7c><== NOT EXECUTED
                                                                      
  /*                                                                  
   * The Stack Pointer and the Pattern Area are OK so return false.   
   */                                                                 
  return false;                                                       
}                                                                     
ffc22e74:	39 7f 00 18 	addi    r11,r31,24                             
ffc22e78:	38 60 00 00 	li      r3,0                                   
ffc22e7c:	48 03 09 78 	b       ffc537f4 <_restgpr_29_x>               
                                                                      

ffc22e80 <rtems_stack_checker_report_usage_with_plugin>: void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) {
ffc22e80:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc22e84:	7c 08 02 a6 	mflr    r0                                     
ffc22e88:	bf 81 00 08 	stmw    r28,8(r1)                              
  if ( !print )                                                       
ffc22e8c:	7c 9e 23 79 	mr.     r30,r4                                 
                                                                      
void rtems_stack_checker_report_usage_with_plugin(                    
  void                  *context,                                     
  rtems_printk_plugin_t  print                                        
)                                                                     
{                                                                     
ffc22e90:	90 01 00 1c 	stw     r0,28(r1)                              
  if ( !print )                                                       
ffc22e94:	41 82 00 5c 	beq-    ffc22ef0 <rtems_stack_checker_report_usage_with_plugin+0x70><== NEVER TAKEN
    return;                                                           
                                                                      
  print_context = context;                                            
ffc22e98:	3f e0 00 00 	lis     r31,0                                  
  print_handler = print;                                              
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
ffc22e9c:	7f c9 03 a6 	mtctr   r30                                    
)                                                                     
{                                                                     
  if ( !print )                                                       
    return;                                                           
                                                                      
  print_context = context;                                            
ffc22ea0:	3b bf 5c b0 	addi    r29,r31,23728                          
  print_handler = print;                                              
ffc22ea4:	93 df 5c b0 	stw     r30,23728(r31)                         
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
ffc22ea8:	3c 80 ff c6 	lis     r4,-58                                 
ffc22eac:	38 84 9b 01 	addi    r4,r4,-25855                           
)                                                                     
{                                                                     
  if ( !print )                                                       
    return;                                                           
                                                                      
  print_context = context;                                            
ffc22eb0:	90 7d 00 04 	stw     r3,4(r29)                              
ffc22eb4:	7c 7c 1b 78 	mr      r28,r3                                 
  print_handler = print;                                              
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
ffc22eb8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc22ebc:	4e 80 04 21 	bctrl                                          
  (*print)( context,                                                  
ffc22ec0:	3c 80 ff c6 	lis     r4,-58                                 
ffc22ec4:	38 84 9b 18 	addi    r4,r4,-25832                           
ffc22ec8:	7f c9 03 a6 	mtctr   r30                                    
ffc22ecc:	7f 83 e3 78 	mr      r3,r28                                 
ffc22ed0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc22ed4:	4e 80 04 21 	bctrl                                          
"    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 );   
ffc22ed8:	3c 60 ff c2 	lis     r3,-62                                 
ffc22edc:	38 63 2a 84 	addi    r3,r3,10884                            
ffc22ee0:	48 00 46 f9 	bl      ffc275d8 <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);            
  #endif                                                              
                                                                      
  print_context = NULL;                                               
ffc22ee4:	39 20 00 00 	li      r9,0                                   
ffc22ee8:	91 3d 00 04 	stw     r9,4(r29)                              
  print_handler = NULL;                                               
ffc22eec:	91 3f 5c b0 	stw     r9,23728(r31)                          
}                                                                     
ffc22ef0:	39 61 00 18 	addi    r11,r1,24                              
ffc22ef4:	48 03 08 fc 	b       ffc537f0 <_restgpr_28_x>               
                                                                      

ffc22d6c <rtems_stack_checker_switch_extension>: */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) {
ffc22d6c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc22d70:	7c 08 02 a6 	mflr    r0                                     
ffc22d74:	90 01 00 1c 	stw     r0,28(r1)                              
  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);                  
ffc22d78:	81 23 00 b4 	lwz     r9,180(r3)                             
 */                                                                   
void rtems_stack_checker_switch_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *heir __attribute__((unused))                        
)                                                                     
{                                                                     
ffc22d7c:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc22d80:	7c 3f 0b 78 	mr      r31,r1                                 
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
ffc22d84:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
 */                                                                   
void rtems_stack_checker_switch_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *heir __attribute__((unused))                        
)                                                                     
{                                                                     
ffc22d88:	7c 7e 1b 78 	mr      r30,r3                                 
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
      return false;                                                   
ffc22d8c:	3b a0 00 00 	li      r29,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);                  
ffc22d90:	38 69 00 08 	addi    r3,r9,8                                
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
ffc22d94:	41 9c 00 18 	blt-    cr7,ffc22dac <rtems_stack_checker_switch_extension+0x40><== NEVER TAKEN
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
ffc22d98:	83 be 00 b0 	lwz     r29,176(r30)                           
ffc22d9c:	7f a9 ea 14 	add     r29,r9,r29                             
ffc22da0:	7f bf e8 10 	subfc   r29,r31,r29                            
ffc22da4:	3b a0 00 00 	li      r29,0                                  
ffc22da8:	7f bd e9 14 	adde    r29,r29,r29                            
  /*                                                                  
   *  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,                                     
ffc22dac:	3c 80 00 00 	lis     r4,0                                   
ffc22db0:	38 84 66 e0 	addi    r4,r4,26336                            
ffc22db4:	38 a0 00 80 	li      r5,128                                 
ffc22db8:	48 01 86 7d 	bl      ffc3b434 <memcmp>                      
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
ffc22dbc:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
  /*                                                                  
   *  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,                                     
ffc22dc0:	7c 64 00 34 	cntlzw  r4,r3                                  
ffc22dc4:	54 84 d9 7e 	rlwinm  r4,r4,27,5,31                          
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
ffc22dc8:	41 9e 00 0c 	beq-    cr7,ffc22dd4 <rtems_stack_checker_switch_extension+0x68><== NEVER TAKEN
ffc22dcc:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc22dd0:	40 be 00 0c 	bne+    cr7,ffc22ddc <rtems_stack_checker_switch_extension+0x70>
    Stack_check_report_blown_task( running, pattern_ok );             
ffc22dd4:	7f c3 f3 78 	mr      r3,r30                                 
ffc22dd8:	4b ff fe bd 	bl      ffc22c94 <Stack_check_report_blown_task>
  }                                                                   
}                                                                     
ffc22ddc:	39 7f 00 18 	addi    r11,r31,24                             
ffc22de0:	48 03 0a 14 	b       ffc537f4 <_restgpr_29_x>               
                                                                      

ffc0e69c <rtems_string_to_double>: rtems_status_code rtems_string_to_double ( const char *s, double *n, char **endptr ) {
ffc0e69c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0e6a0:	7c 08 02 a6 	mflr    r0                                     
ffc0e6a4:	bf a1 00 1c 	stmw    r29,28(r1)                             
  double result;                                                      
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0e6a8:	7c 9f 23 79 	mr.     r31,r4                                 
rtems_status_code rtems_string_to_double (                            
  const char *s,                                                      
  double *n,                                                          
  char **endptr                                                       
)                                                                     
{                                                                     
ffc0e6ac:	90 01 00 34 	stw     r0,52(r1)                              
ffc0e6b0:	db e1 00 28 	stfd    f31,40(r1)                             
  double result;                                                      
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0e6b4:	41 82 00 a0 	beq-    ffc0e754 <rtems_string_to_double+0xb8> 
ffc0e6b8:	7c bd 2b 78 	mr      r29,r5                                 
ffc0e6bc:	7c 7e 1b 78 	mr      r30,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0e6c0:	48 00 23 ad 	bl      ffc10a6c <__errno>                     
ffc0e6c4:	39 20 00 00 	li      r9,0                                   
ffc0e6c8:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
ffc0e6cc:	3d 20 ff c2 	lis     r9,-62                                 
                                                                      
  result = strtod( s, &end );                                         
ffc0e6d0:	7f c3 f3 78 	mr      r3,r30                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc0e6d4:	c8 09 e3 38 	lfd     f0,-7368(r9)                           
                                                                      
  result = strtod( s, &end );                                         
ffc0e6d8:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc0e6dc:	d8 1f 00 00 	stfd    f0,0(r31)                              
                                                                      
  result = strtod( s, &end );                                         
ffc0e6e0:	48 00 4e f1 	bl      ffc135d0 <strtod>                      
                                                                      
  if ( endptr )                                                       
ffc0e6e4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtod( s, &end );                                         
ffc0e6e8:	ff e0 08 90 	fmr     f31,f1                                 
ffc0e6ec:	81 41 00 08 	lwz     r10,8(r1)                              
                                                                      
  if ( endptr )                                                       
ffc0e6f0:	41 9e 00 08 	beq-    cr7,ffc0e6f8 <rtems_string_to_double+0x5c>
    *endptr = end;                                                    
ffc0e6f4:	91 5d 00 00 	stw     r10,0(r29)                             
                                                                      
  if ( end == s )                                                     
ffc0e6f8:	7f 8a f0 00 	cmpw    cr7,r10,r30                            
    return RTEMS_NOT_DEFINED;                                         
ffc0e6fc:	38 60 00 0b 	li      r3,11                                  
  result = strtod( s, &end );                                         
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc0e700:	41 9e 00 58 	beq-    cr7,ffc0e758 <rtems_string_to_double+0xbc>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0e704:	48 00 23 69 	bl      ffc10a6c <__errno>                     
ffc0e708:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0e70c:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc0e710:	40 be 00 38 	bne+    cr7,ffc0e748 <rtems_string_to_double+0xac>
ffc0e714:	3d 40 ff c2 	lis     r10,-62                                
ffc0e718:	c8 0a e3 38 	lfd     f0,-7368(r10)                          
    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
      return RTEMS_INVALID_NUMBER;                                    
ffc0e71c:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0e720:	ff 9f 00 00 	fcmpu   cr7,f31,f0                             
ffc0e724:	41 be 00 34 	beq+    cr7,ffc0e758 <rtems_string_to_double+0xbc><== NEVER TAKEN
    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
ffc0e728:	3d 40 ff c2 	lis     r10,-62                                
ffc0e72c:	c8 0a 09 20 	lfd     f0,2336(r10)                           
ffc0e730:	ff 9f 00 00 	fcmpu   cr7,f31,f0                             
ffc0e734:	41 bd 00 24 	bgt+    cr7,ffc0e758 <rtems_string_to_double+0xbc>
ffc0e738:	3d 40 ff c2 	lis     r10,-62                                
ffc0e73c:	c8 0a 09 28 	lfd     f0,2344(r10)                           
ffc0e740:	ff 9f 00 00 	fcmpu   cr7,f31,f0                             
ffc0e744:	41 bc 00 14 	blt+    cr7,ffc0e758 <rtems_string_to_double+0xbc><== ALWAYS TAKEN
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc0e748:	db ff 00 00 	stfd    f31,0(r31)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0e74c:	38 60 00 00 	li      r3,0                                   
ffc0e750:	48 00 00 08 	b       ffc0e758 <rtems_string_to_double+0xbc> 
{                                                                     
  double result;                                                      
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0e754:	38 60 00 09 	li      r3,9                                   
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0e758:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0e75c:	bb a1 00 1c 	lmw     r29,28(r1)                             
ffc0e760:	7c 08 03 a6 	mtlr    r0                                     
ffc0e764:	cb e1 00 28 	lfd     f31,40(r1)                             
ffc0e768:	38 21 00 30 	addi    r1,r1,48                               
ffc0e76c:	4e 80 00 20 	blr                                            
                                                                      

ffc0e770 <rtems_string_to_float>: rtems_status_code rtems_string_to_float ( const char *s, float *n, char **endptr ) {
ffc0e770:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0e774:	7c 08 02 a6 	mflr    r0                                     
ffc0e778:	bf a1 00 1c 	stmw    r29,28(r1)                             
  float result;                                                       
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0e77c:	7c 9f 23 79 	mr.     r31,r4                                 
rtems_status_code rtems_string_to_float (                             
  const char *s,                                                      
  float *n,                                                           
  char **endptr                                                       
)                                                                     
{                                                                     
ffc0e780:	90 01 00 34 	stw     r0,52(r1)                              
ffc0e784:	db e1 00 28 	stfd    f31,40(r1)                             
  float result;                                                       
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0e788:	41 82 00 9c 	beq-    ffc0e824 <rtems_string_to_float+0xb4>  
ffc0e78c:	7c bd 2b 78 	mr      r29,r5                                 
ffc0e790:	7c 7e 1b 78 	mr      r30,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0e794:	48 00 22 d9 	bl      ffc10a6c <__errno>                     
ffc0e798:	39 20 00 00 	li      r9,0                                   
ffc0e79c:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
ffc0e7a0:	39 20 00 00 	li      r9,0                                   
                                                                      
  result = strtof( s, &end );                                         
ffc0e7a4:	7f c3 f3 78 	mr      r3,r30                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc0e7a8:	91 3f 00 00 	stw     r9,0(r31)                              
                                                                      
  result = strtof( s, &end );                                         
ffc0e7ac:	38 81 00 08 	addi    r4,r1,8                                
ffc0e7b0:	48 00 4e 39 	bl      ffc135e8 <strtof>                      
                                                                      
  if ( endptr )                                                       
ffc0e7b4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtof( s, &end );                                         
ffc0e7b8:	ff e0 08 90 	fmr     f31,f1                                 
ffc0e7bc:	81 41 00 08 	lwz     r10,8(r1)                              
                                                                      
  if ( endptr )                                                       
ffc0e7c0:	41 9e 00 08 	beq-    cr7,ffc0e7c8 <rtems_string_to_float+0x58>
    *endptr = end;                                                    
ffc0e7c4:	91 5d 00 00 	stw     r10,0(r29)                             
                                                                      
  if ( end == s )                                                     
ffc0e7c8:	7f 8a f0 00 	cmpw    cr7,r10,r30                            
    return RTEMS_NOT_DEFINED;                                         
ffc0e7cc:	38 60 00 0b 	li      r3,11                                  
  result = strtof( s, &end );                                         
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc0e7d0:	41 9e 00 58 	beq-    cr7,ffc0e828 <rtems_string_to_float+0xb8>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0e7d4:	48 00 22 99 	bl      ffc10a6c <__errno>                     
ffc0e7d8:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0e7dc:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc0e7e0:	40 be 00 38 	bne+    cr7,ffc0e818 <rtems_string_to_float+0xa8>
ffc0e7e4:	3d 20 ff c2 	lis     r9,-62                                 
ffc0e7e8:	c0 09 09 38 	lfs     f0,2360(r9)                            
    (( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
      return RTEMS_INVALID_NUMBER;                                    
ffc0e7ec:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0e7f0:	ff 9f 00 00 	fcmpu   cr7,f31,f0                             
ffc0e7f4:	41 be 00 34 	beq+    cr7,ffc0e828 <rtems_string_to_float+0xb8><== NEVER TAKEN
    (( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
ffc0e7f8:	3d 40 ff c2 	lis     r10,-62                                
ffc0e7fc:	c0 0a 09 30 	lfs     f0,2352(r10)                           
ffc0e800:	ff 9f 00 00 	fcmpu   cr7,f31,f0                             
ffc0e804:	41 bd 00 24 	bgt+    cr7,ffc0e828 <rtems_string_to_float+0xb8>
ffc0e808:	3d 40 ff c2 	lis     r10,-62                                
ffc0e80c:	c0 0a 09 34 	lfs     f0,2356(r10)                           
ffc0e810:	ff 9f 00 00 	fcmpu   cr7,f31,f0                             
ffc0e814:	41 bc 00 14 	blt+    cr7,ffc0e828 <rtems_string_to_float+0xb8><== ALWAYS TAKEN
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc0e818:	d3 ff 00 00 	stfs    f31,0(r31)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0e81c:	38 60 00 00 	li      r3,0                                   
ffc0e820:	48 00 00 08 	b       ffc0e828 <rtems_string_to_float+0xb8>  
{                                                                     
  float result;                                                       
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0e824:	38 60 00 09 	li      r3,9                                   
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0e828:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0e82c:	bb a1 00 1c 	lmw     r29,28(r1)                             
ffc0e830:	7c 08 03 a6 	mtlr    r0                                     
ffc0e834:	cb e1 00 28 	lfd     f31,40(r1)                             
ffc0e838:	38 21 00 30 	addi    r1,r1,48                               
ffc0e83c:	4e 80 00 20 	blr                                            
                                                                      

ffc1db1c <rtems_string_to_int>: const char *s, int *n, char **endptr, int base ) {
ffc1db1c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc1db20:	7c 08 02 a6 	mflr    r0                                     
ffc1db24:	bf 81 00 18 	stmw    r28,24(r1)                             
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc1db28:	7c 9e 23 79 	mr.     r30,r4                                 
  const char *s,                                                      
  int *n,                                                             
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
ffc1db2c:	90 01 00 2c 	stw     r0,44(r1)                              
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc1db30:	41 82 00 90 	beq-    ffc1dbc0 <rtems_string_to_int+0xa4>    
ffc1db34:	7c df 33 78 	mr      r31,r6                                 
ffc1db38:	7c bc 2b 78 	mr      r28,r5                                 
ffc1db3c:	7c 7d 1b 78 	mr      r29,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc1db40:	48 01 9b b9 	bl      ffc376f8 <__errno>                     
ffc1db44:	39 20 00 00 	li      r9,0                                   
ffc1db48:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
ffc1db4c:	7f e5 fb 78 	mr      r5,r31                                 
ffc1db50:	7f a3 eb 78 	mr      r3,r29                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc1db54:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
  result = strtol( s, &end, base );                                   
ffc1db58:	38 81 00 08 	addi    r4,r1,8                                
ffc1db5c:	48 02 2e a5 	bl      ffc40a00 <strtol>                      
                                                                      
  if ( endptr )                                                       
ffc1db60:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
ffc1db64:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1db68:	81 41 00 08 	lwz     r10,8(r1)                              
                                                                      
  if ( endptr )                                                       
ffc1db6c:	41 9e 00 08 	beq-    cr7,ffc1db74 <rtems_string_to_int+0x58>
    *endptr = end;                                                    
ffc1db70:	91 5c 00 00 	stw     r10,0(r28)                             
                                                                      
  if ( end == s )                                                     
ffc1db74:	7f 8a e8 00 	cmpw    cr7,r10,r29                            
    return RTEMS_NOT_DEFINED;                                         
ffc1db78:	38 60 00 0b 	li      r3,11                                  
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc1db7c:	41 9e 00 48 	beq-    cr7,ffc1dbc4 <rtems_string_to_int+0xa8>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc1db80:	48 01 9b 79 	bl      ffc376f8 <__errno>                     
ffc1db84:	81 23 00 00 	lwz     r9,0(r3)                               
ffc1db88:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc1db8c:	40 be 00 28 	bne+    cr7,ffc1dbb4 <rtems_string_to_int+0x98>
ffc1db90:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
ffc1db94:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc1db98:	41 be 00 2c 	beq+    cr7,ffc1dbc4 <rtems_string_to_int+0xa8><== NEVER TAKEN
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
ffc1db9c:	6f ea 80 00 	xoris   r10,r31,32768                          
ffc1dba0:	2f 8a ff ff 	cmpwi   cr7,r10,-1                             
ffc1dba4:	41 9e 00 20 	beq-    cr7,ffc1dbc4 <rtems_string_to_int+0xa8>
ffc1dba8:	3d 40 80 00 	lis     r10,-32768                             
ffc1dbac:	7f 9f 50 00 	cmpw    cr7,r31,r10                            
ffc1dbb0:	41 9e 00 14 	beq-    cr7,ffc1dbc4 <rtems_string_to_int+0xa8><== ALWAYS TAKEN
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
ffc1dbb4:	93 fe 00 00 	stw     r31,0(r30)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc1dbb8:	38 60 00 00 	li      r3,0                                   
ffc1dbbc:	48 00 00 08 	b       ffc1dbc4 <rtems_string_to_int+0xa8>    
{                                                                     
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc1dbc0:	38 60 00 09 	li      r3,9                                   
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc1dbc4:	39 61 00 28 	addi    r11,r1,40                              
ffc1dbc8:	48 03 5c 28 	b       ffc537f0 <_restgpr_28_x>               
                                                                      

ffc0e9cc <rtems_string_to_long>: const char *s, long *n, char **endptr, int base ) {
ffc0e9cc:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0e9d0:	7c 08 02 a6 	mflr    r0                                     
ffc0e9d4:	bf 81 00 18 	stmw    r28,24(r1)                             
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0e9d8:	7c 9e 23 79 	mr.     r30,r4                                 
  const char *s,                                                      
  long *n,                                                            
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
ffc0e9dc:	90 01 00 2c 	stw     r0,44(r1)                              
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0e9e0:	41 82 00 90 	beq-    ffc0ea70 <rtems_string_to_long+0xa4>   
ffc0e9e4:	7c df 33 78 	mr      r31,r6                                 
ffc0e9e8:	7c bc 2b 78 	mr      r28,r5                                 
ffc0e9ec:	7c 7d 1b 78 	mr      r29,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0e9f0:	48 00 20 7d 	bl      ffc10a6c <__errno>                     
ffc0e9f4:	39 20 00 00 	li      r9,0                                   
ffc0e9f8:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
ffc0e9fc:	7f e5 fb 78 	mr      r5,r31                                 
ffc0ea00:	7f a3 eb 78 	mr      r3,r29                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc0ea04:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
  result = strtol( s, &end, base );                                   
ffc0ea08:	38 81 00 08 	addi    r4,r1,8                                
ffc0ea0c:	48 00 4e 85 	bl      ffc13890 <strtol>                      
                                                                      
  if ( endptr )                                                       
ffc0ea10:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
ffc0ea14:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0ea18:	81 41 00 08 	lwz     r10,8(r1)                              
                                                                      
  if ( endptr )                                                       
ffc0ea1c:	41 9e 00 08 	beq-    cr7,ffc0ea24 <rtems_string_to_long+0x58>
    *endptr = end;                                                    
ffc0ea20:	91 5c 00 00 	stw     r10,0(r28)                             
                                                                      
  if ( end == s )                                                     
ffc0ea24:	7f 8a e8 00 	cmpw    cr7,r10,r29                            
    return RTEMS_NOT_DEFINED;                                         
ffc0ea28:	38 60 00 0b 	li      r3,11                                  
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc0ea2c:	41 9e 00 48 	beq-    cr7,ffc0ea74 <rtems_string_to_long+0xa8>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0ea30:	48 00 20 3d 	bl      ffc10a6c <__errno>                     
ffc0ea34:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0ea38:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc0ea3c:	40 be 00 28 	bne+    cr7,ffc0ea64 <rtems_string_to_long+0x98>
ffc0ea40:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
ffc0ea44:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0ea48:	41 be 00 2c 	beq+    cr7,ffc0ea74 <rtems_string_to_long+0xa8><== NEVER TAKEN
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
ffc0ea4c:	6f ea 80 00 	xoris   r10,r31,32768                          
ffc0ea50:	2f 8a ff ff 	cmpwi   cr7,r10,-1                             
ffc0ea54:	41 9e 00 20 	beq-    cr7,ffc0ea74 <rtems_string_to_long+0xa8>
ffc0ea58:	3d 40 80 00 	lis     r10,-32768                             
ffc0ea5c:	7f 9f 50 00 	cmpw    cr7,r31,r10                            
ffc0ea60:	41 9e 00 14 	beq-    cr7,ffc0ea74 <rtems_string_to_long+0xa8><== ALWAYS TAKEN
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc0ea64:	93 fe 00 00 	stw     r31,0(r30)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0ea68:	38 60 00 00 	li      r3,0                                   
ffc0ea6c:	48 00 00 08 	b       ffc0ea74 <rtems_string_to_long+0xa8>   
{                                                                     
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0ea70:	38 60 00 09 	li      r3,9                                   
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0ea74:	39 61 00 28 	addi    r11,r1,40                              
ffc0ea78:	4b ff 47 5c 	b       ffc031d4 <_restgpr_28_x>               
                                                                      

ffc0e8f0 <rtems_string_to_long_long>: const char *s, long long *n, char **endptr, int base ) {
ffc0e8f0:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0e8f4:	7c 08 02 a6 	mflr    r0                                     
ffc0e8f8:	bf 61 00 1c 	stmw    r27,28(r1)                             
  long long result;                                                   
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0e8fc:	7c 9d 23 79 	mr.     r29,r4                                 
  const char *s,                                                      
  long long *n,                                                       
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
ffc0e900:	90 01 00 34 	stw     r0,52(r1)                              
  long long result;                                                   
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0e904:	41 82 00 b8 	beq-    ffc0e9bc <rtems_string_to_long_long+0xcc>
ffc0e908:	7c df 33 78 	mr      r31,r6                                 
ffc0e90c:	7c bb 2b 78 	mr      r27,r5                                 
ffc0e910:	7c 7c 1b 78 	mr      r28,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0e914:	48 00 21 59 	bl      ffc10a6c <__errno>                     
  *n = 0;                                                             
ffc0e918:	39 40 00 00 	li      r10,0                                  
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0e91c:	39 20 00 00 	li      r9,0                                   
  *n = 0;                                                             
ffc0e920:	39 60 00 00 	li      r11,0                                  
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0e924:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
                                                                      
  result = strtoll( s, &end, base );                                  
ffc0e928:	7f e5 fb 78 	mr      r5,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc0e92c:	91 5d 00 00 	stw     r10,0(r29)                             
                                                                      
  result = strtoll( s, &end, base );                                  
ffc0e930:	7f 83 e3 78 	mr      r3,r28                                 
ffc0e934:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc0e938:	91 7d 00 04 	stw     r11,4(r29)                             
                                                                      
  result = strtoll( s, &end, base );                                  
ffc0e93c:	48 00 4f 75 	bl      ffc138b0 <strtoll>                     
                                                                      
  if ( endptr )                                                       
ffc0e940:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoll( s, &end, base );                                  
ffc0e944:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0e948:	81 41 00 08 	lwz     r10,8(r1)                              
ffc0e94c:	7c 9e 23 78 	mr      r30,r4                                 
                                                                      
  if ( endptr )                                                       
ffc0e950:	41 9e 00 08 	beq-    cr7,ffc0e958 <rtems_string_to_long_long+0x68>
    *endptr = end;                                                    
ffc0e954:	91 5b 00 00 	stw     r10,0(r27)                             
                                                                      
  if ( end == s )                                                     
ffc0e958:	7f 8a e0 00 	cmpw    cr7,r10,r28                            
    return RTEMS_NOT_DEFINED;                                         
ffc0e95c:	38 60 00 0b 	li      r3,11                                  
  result = strtoll( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc0e960:	41 9e 00 64 	beq-    cr7,ffc0e9c4 <rtems_string_to_long_long+0xd4>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0e964:	48 00 21 09 	bl      ffc10a6c <__errno>                     
ffc0e968:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0e96c:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc0e970:	40 be 00 3c 	bne+    cr7,ffc0e9ac <rtems_string_to_long_long+0xbc>
ffc0e974:	7f e9 f3 79 	or.     r9,r31,r30                             
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
ffc0e978:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0e97c:	41 a2 00 48 	beq+    ffc0e9c4 <rtems_string_to_long_long+0xd4><== NEVER TAKEN
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
ffc0e980:	6f ea 80 00 	xoris   r10,r31,32768                          
ffc0e984:	2f 8a ff ff 	cmpwi   cr7,r10,-1                             
ffc0e988:	40 9e 00 0c 	bne-    cr7,ffc0e994 <rtems_string_to_long_long+0xa4>
ffc0e98c:	2f 9e ff ff 	cmpwi   cr7,r30,-1                             
ffc0e990:	41 9e 00 34 	beq-    cr7,ffc0e9c4 <rtems_string_to_long_long+0xd4><== ALWAYS TAKEN
ffc0e994:	3d 20 80 00 	lis     r9,-32768                              
ffc0e998:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc0e99c:	40 be 00 10 	bne+    cr7,ffc0e9ac <rtems_string_to_long_long+0xbc><== NEVER TAKEN
ffc0e9a0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
      return RTEMS_INVALID_NUMBER;                                    
ffc0e9a4:	38 60 00 0a 	li      r3,10                                  
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
ffc0e9a8:	41 9e 00 1c 	beq-    cr7,ffc0e9c4 <rtems_string_to_long_long+0xd4><== ALWAYS TAKEN
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc0e9ac:	93 fd 00 00 	stw     r31,0(r29)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0e9b0:	38 60 00 00 	li      r3,0                                   
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc0e9b4:	93 dd 00 04 	stw     r30,4(r29)                             
ffc0e9b8:	48 00 00 0c 	b       ffc0e9c4 <rtems_string_to_long_long+0xd4>
{                                                                     
  long long result;                                                   
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0e9bc:	38 60 00 09 	li      r3,9                                   
ffc0e9c0:	48 00 00 04 	b       ffc0e9c4 <rtems_string_to_long_long+0xd4>
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0e9c4:	39 61 00 30 	addi    r11,r1,48                              
ffc0e9c8:	4b ff 48 08 	b       ffc031d0 <_restgpr_27_x>               
                                                                      

ffc1dbd4 <rtems_string_to_unsigned_char>: const char *s, unsigned char *n, char **endptr, int base ) {
ffc1dbd4:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc1dbd8:	7c 08 02 a6 	mflr    r0                                     
ffc1dbdc:	bf 81 00 18 	stmw    r28,24(r1)                             
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc1dbe0:	7c 9e 23 79 	mr.     r30,r4                                 
  const char *s,                                                      
  unsigned char *n,                                                   
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
ffc1dbe4:	90 01 00 2c 	stw     r0,44(r1)                              
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc1dbe8:	41 82 00 9c 	beq-    ffc1dc84 <rtems_string_to_unsigned_char+0xb0>
ffc1dbec:	7c df 33 78 	mr      r31,r6                                 
ffc1dbf0:	7c bc 2b 78 	mr      r28,r5                                 
ffc1dbf4:	7c 7d 1b 78 	mr      r29,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc1dbf8:	48 01 9b 01 	bl      ffc376f8 <__errno>                     
ffc1dbfc:	39 20 00 00 	li      r9,0                                   
ffc1dc00:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
ffc1dc04:	7f e5 fb 78 	mr      r5,r31                                 
ffc1dc08:	7f a3 eb 78 	mr      r3,r29                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc1dc0c:	99 3e 00 00 	stb     r9,0(r30)                              
                                                                      
  result = strtoul( s, &end, base );                                  
ffc1dc10:	38 81 00 08 	addi    r4,r1,8                                
ffc1dc14:	48 02 33 e5 	bl      ffc40ff8 <strtoul>                     
                                                                      
  if ( endptr )                                                       
ffc1dc18:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
ffc1dc1c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1dc20:	81 41 00 08 	lwz     r10,8(r1)                              
                                                                      
  if ( endptr )                                                       
ffc1dc24:	41 9e 00 08 	beq-    cr7,ffc1dc2c <rtems_string_to_unsigned_char+0x58>
    *endptr = end;                                                    
ffc1dc28:	91 5c 00 00 	stw     r10,0(r28)                             
                                                                      
  if ( end == s )                                                     
ffc1dc2c:	7f 8a e8 00 	cmpw    cr7,r10,r29                            
    return RTEMS_NOT_DEFINED;                                         
ffc1dc30:	38 60 00 0b 	li      r3,11                                  
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc1dc34:	41 9e 00 54 	beq-    cr7,ffc1dc88 <rtems_string_to_unsigned_char+0xb4>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc1dc38:	48 01 9a c1 	bl      ffc376f8 <__errno>                     
ffc1dc3c:	81 23 00 00 	lwz     r9,0(r3)                               
ffc1dc40:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc1dc44:	40 be 00 18 	bne+    cr7,ffc1dc5c <rtems_string_to_unsigned_char+0x88>
    (( result == 0 ) || ( result == ULONG_MAX )))                     
ffc1dc48:	39 1f ff ff 	addi    r8,r31,-1                              
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc1dc4c:	39 40 ff fd 	li      r10,-3                                 
ffc1dc50:	7f 88 50 40 	cmplw   cr7,r8,r10                             
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
ffc1dc54:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc1dc58:	41 bd 00 30 	bgt+    cr7,ffc1dc88 <rtems_string_to_unsigned_char+0xb4><== ALWAYS TAKEN
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
#if (UCHAR_MAX < ULONG_MAX)                                           
  if ( result > UCHAR_MAX ) {                                         
ffc1dc5c:	2b 9f 00 ff 	cmplwi  cr7,r31,255                            
ffc1dc60:	40 9d 00 18 	ble-    cr7,ffc1dc78 <rtems_string_to_unsigned_char+0xa4>
    errno = ERANGE;                                                   
ffc1dc64:	48 01 9a 95 	bl      ffc376f8 <__errno>                     
ffc1dc68:	39 20 00 22 	li      r9,34                                  
ffc1dc6c:	91 23 00 00 	stw     r9,0(r3)                               
    return RTEMS_INVALID_NUMBER;                                      
ffc1dc70:	38 60 00 0a 	li      r3,10                                  
ffc1dc74:	48 00 00 14 	b       ffc1dc88 <rtems_string_to_unsigned_char+0xb4>
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
ffc1dc78:	9b fe 00 00 	stb     r31,0(r30)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc1dc7c:	38 60 00 00 	li      r3,0                                   
ffc1dc80:	48 00 00 08 	b       ffc1dc88 <rtems_string_to_unsigned_char+0xb4>
{                                                                     
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc1dc84:	38 60 00 09 	li      r3,9                                   
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc1dc88:	39 61 00 28 	addi    r11,r1,40                              
ffc1dc8c:	48 03 5b 64 	b       ffc537f0 <_restgpr_28_x>               
                                                                      

ffc0eb40 <rtems_string_to_unsigned_int>: const char *s, unsigned int *n, char **endptr, int base ) {
ffc0eb40:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0eb44:	7c 08 02 a6 	mflr    r0                                     
ffc0eb48:	bf 81 00 18 	stmw    r28,24(r1)                             
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0eb4c:	7c 9f 23 79 	mr.     r31,r4                                 
  const char *s,                                                      
  unsigned int *n,                                                    
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
ffc0eb50:	90 01 00 2c 	stw     r0,44(r1)                              
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0eb54:	41 82 00 80 	beq-    ffc0ebd4 <rtems_string_to_unsigned_int+0x94>
ffc0eb58:	7c dc 33 78 	mr      r28,r6                                 
ffc0eb5c:	7c bd 2b 78 	mr      r29,r5                                 
ffc0eb60:	7c 7e 1b 78 	mr      r30,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0eb64:	48 00 1f 09 	bl      ffc10a6c <__errno>                     
ffc0eb68:	39 20 00 00 	li      r9,0                                   
ffc0eb6c:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
ffc0eb70:	7f 85 e3 78 	mr      r5,r28                                 
ffc0eb74:	7f c3 f3 78 	mr      r3,r30                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc0eb78:	91 3f 00 00 	stw     r9,0(r31)                              
                                                                      
  result = strtoul( s, &end, base );                                  
ffc0eb7c:	38 81 00 08 	addi    r4,r1,8                                
ffc0eb80:	48 00 53 09 	bl      ffc13e88 <strtoul>                     
                                                                      
  if ( endptr )                                                       
ffc0eb84:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
ffc0eb88:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0eb8c:	81 41 00 08 	lwz     r10,8(r1)                              
                                                                      
  if ( endptr )                                                       
ffc0eb90:	41 9e 00 08 	beq-    cr7,ffc0eb98 <rtems_string_to_unsigned_int+0x58>
    *endptr = end;                                                    
ffc0eb94:	91 5d 00 00 	stw     r10,0(r29)                             
                                                                      
  if ( end == s )                                                     
ffc0eb98:	7f 8a f0 00 	cmpw    cr7,r10,r30                            
    return RTEMS_NOT_DEFINED;                                         
ffc0eb9c:	38 60 00 0b 	li      r3,11                                  
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc0eba0:	41 9e 00 38 	beq-    cr7,ffc0ebd8 <rtems_string_to_unsigned_int+0x98>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0eba4:	48 00 1e c9 	bl      ffc10a6c <__errno>                     
ffc0eba8:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0ebac:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc0ebb0:	40 be 00 18 	bne+    cr7,ffc0ebc8 <rtems_string_to_unsigned_int+0x88>
    (( result == 0 ) || ( result == ULONG_MAX )))                     
ffc0ebb4:	39 1c ff ff 	addi    r8,r28,-1                              
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0ebb8:	39 40 ff fd 	li      r10,-3                                 
ffc0ebbc:	7f 88 50 40 	cmplw   cr7,r8,r10                             
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
ffc0ebc0:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0ebc4:	41 bd 00 14 	bgt+    cr7,ffc0ebd8 <rtems_string_to_unsigned_int+0x98><== ALWAYS TAKEN
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
ffc0ebc8:	93 9f 00 00 	stw     r28,0(r31)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0ebcc:	38 60 00 00 	li      r3,0                                   
ffc0ebd0:	48 00 00 08 	b       ffc0ebd8 <rtems_string_to_unsigned_int+0x98>
{                                                                     
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0ebd4:	38 60 00 09 	li      r3,9                                   
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0ebd8:	39 61 00 28 	addi    r11,r1,40                              
ffc0ebdc:	4b ff 45 f8 	b       ffc031d4 <_restgpr_28_x>               
                                                                      

ffc0c500 <rtems_string_to_unsigned_long>: const char *s, unsigned long *n, char **endptr, int base ) {
ffc0c500:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0c504:	7c 08 02 a6 	mflr    r0                                     
ffc0c508:	bf 81 00 18 	stmw    r28,24(r1)                             
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0c50c:	7c 9f 23 79 	mr.     r31,r4                                 
  const char *s,                                                      
  unsigned long *n,                                                   
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
ffc0c510:	90 01 00 2c 	stw     r0,44(r1)                              
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0c514:	41 82 00 80 	beq-    ffc0c594 <rtems_string_to_unsigned_long+0x94>
ffc0c518:	7c dc 33 78 	mr      r28,r6                                 
ffc0c51c:	7c bd 2b 78 	mr      r29,r5                                 
ffc0c520:	7c 7e 1b 78 	mr      r30,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0c524:	48 02 b1 d5 	bl      ffc376f8 <__errno>                     
ffc0c528:	39 20 00 00 	li      r9,0                                   
ffc0c52c:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
ffc0c530:	7f 85 e3 78 	mr      r5,r28                                 
ffc0c534:	7f c3 f3 78 	mr      r3,r30                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc0c538:	91 3f 00 00 	stw     r9,0(r31)                              
                                                                      
  result = strtoul( s, &end, base );                                  
ffc0c53c:	38 81 00 08 	addi    r4,r1,8                                
ffc0c540:	48 03 4a b9 	bl      ffc40ff8 <strtoul>                     
                                                                      
  if ( endptr )                                                       
ffc0c544:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
ffc0c548:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0c54c:	81 41 00 08 	lwz     r10,8(r1)                              
                                                                      
  if ( endptr )                                                       
ffc0c550:	41 9e 00 08 	beq-    cr7,ffc0c558 <rtems_string_to_unsigned_long+0x58>
    *endptr = end;                                                    
ffc0c554:	91 5d 00 00 	stw     r10,0(r29)                             
                                                                      
  if ( end == s )                                                     
ffc0c558:	7f 8a f0 00 	cmpw    cr7,r10,r30                            
    return RTEMS_NOT_DEFINED;                                         
ffc0c55c:	38 60 00 0b 	li      r3,11                                  
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc0c560:	41 9e 00 38 	beq-    cr7,ffc0c598 <rtems_string_to_unsigned_long+0x98>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0c564:	48 02 b1 95 	bl      ffc376f8 <__errno>                     
ffc0c568:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0c56c:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc0c570:	40 be 00 18 	bne+    cr7,ffc0c588 <rtems_string_to_unsigned_long+0x88>
    (( result == 0 ) || ( result == ULONG_MAX )))                     
ffc0c574:	39 1c ff ff 	addi    r8,r28,-1                              
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0c578:	39 40 ff fd 	li      r10,-3                                 
ffc0c57c:	7f 88 50 40 	cmplw   cr7,r8,r10                             
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
ffc0c580:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0c584:	41 bd 00 14 	bgt+    cr7,ffc0c598 <rtems_string_to_unsigned_long+0x98><== ALWAYS TAKEN
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc0c588:	93 9f 00 00 	stw     r28,0(r31)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0c58c:	38 60 00 00 	li      r3,0                                   
ffc0c590:	48 00 00 08 	b       ffc0c598 <rtems_string_to_unsigned_long+0x98>
{                                                                     
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0c594:	38 60 00 09 	li      r3,9                                   
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0c598:	39 61 00 28 	addi    r11,r1,40                              
ffc0c59c:	48 04 72 54 	b       ffc537f0 <_restgpr_28_x>               
                                                                      

ffc0ebe0 <rtems_string_to_unsigned_long_long>: const char *s, unsigned long long *n, char **endptr, int base ) {
ffc0ebe0:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0ebe4:	7c 08 02 a6 	mflr    r0                                     
ffc0ebe8:	bf 61 00 1c 	stmw    r27,28(r1)                             
  unsigned long long result;                                          
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0ebec:	7c 9d 23 79 	mr.     r29,r4                                 
  const char *s,                                                      
  unsigned long long *n,                                              
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
ffc0ebf0:	90 01 00 34 	stw     r0,52(r1)                              
  unsigned long long result;                                          
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0ebf4:	41 82 00 a0 	beq-    ffc0ec94 <rtems_string_to_unsigned_long_long+0xb4>
ffc0ebf8:	7c df 33 78 	mr      r31,r6                                 
ffc0ebfc:	7c bb 2b 78 	mr      r27,r5                                 
ffc0ec00:	7c 7c 1b 78 	mr      r28,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0ec04:	48 00 1e 69 	bl      ffc10a6c <__errno>                     
  *n = 0;                                                             
ffc0ec08:	39 40 00 00 	li      r10,0                                  
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0ec0c:	39 20 00 00 	li      r9,0                                   
  *n = 0;                                                             
ffc0ec10:	39 60 00 00 	li      r11,0                                  
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0ec14:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
                                                                      
  result = strtoull( s, &end, base );                                 
ffc0ec18:	7f e5 fb 78 	mr      r5,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc0ec1c:	91 5d 00 00 	stw     r10,0(r29)                             
                                                                      
  result = strtoull( s, &end, base );                                 
ffc0ec20:	7f 83 e3 78 	mr      r3,r28                                 
ffc0ec24:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc0ec28:	91 7d 00 04 	stw     r11,4(r29)                             
                                                                      
  result = strtoull( s, &end, base );                                 
ffc0ec2c:	48 00 52 7d 	bl      ffc13ea8 <strtoull>                    
                                                                      
  if ( endptr )                                                       
ffc0ec30:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoull( s, &end, base );                                 
ffc0ec34:	7c 9f 23 78 	mr      r31,r4                                 
ffc0ec38:	81 41 00 08 	lwz     r10,8(r1)                              
ffc0ec3c:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  if ( endptr )                                                       
ffc0ec40:	41 9e 00 08 	beq-    cr7,ffc0ec48 <rtems_string_to_unsigned_long_long+0x68>
    *endptr = end;                                                    
ffc0ec44:	91 5b 00 00 	stw     r10,0(r27)                             
                                                                      
  if ( end == s )                                                     
ffc0ec48:	7f 8a e0 00 	cmpw    cr7,r10,r28                            
    return RTEMS_NOT_DEFINED;                                         
ffc0ec4c:	38 60 00 0b 	li      r3,11                                  
  result = strtoull( s, &end, base );                                 
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc0ec50:	41 9e 00 48 	beq-    cr7,ffc0ec98 <rtems_string_to_unsigned_long_long+0xb8>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0ec54:	48 00 1e 19 	bl      ffc10a6c <__errno>                     
ffc0ec58:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0ec5c:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc0ec60:	40 be 00 24 	bne+    cr7,ffc0ec84 <rtems_string_to_unsigned_long_long+0xa4>
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
ffc0ec64:	31 7f ff ff 	addic   r11,r31,-1                             
ffc0ec68:	7d 5e 01 d4 	addme   r10,r30                                
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0ec6c:	2f 8a ff ff 	cmpwi   cr7,r10,-1                             
ffc0ec70:	40 9e 00 14 	bne-    cr7,ffc0ec84 <rtems_string_to_unsigned_long_long+0xa4><== NEVER TAKEN
ffc0ec74:	39 40 ff fd 	li      r10,-3                                 
ffc0ec78:	7f 8b 50 40 	cmplw   cr7,r11,r10                            
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
ffc0ec7c:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0ec80:	41 bd 00 18 	bgt+    cr7,ffc0ec98 <rtems_string_to_unsigned_long_long+0xb8><== ALWAYS TAKEN
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc0ec84:	93 dd 00 00 	stw     r30,0(r29)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0ec88:	38 60 00 00 	li      r3,0                                   
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc0ec8c:	93 fd 00 04 	stw     r31,4(r29)                             
ffc0ec90:	48 00 00 08 	b       ffc0ec98 <rtems_string_to_unsigned_long_long+0xb8>
{                                                                     
  unsigned long long result;                                          
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0ec94:	38 60 00 09 	li      r3,9                                   
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0ec98:	39 61 00 30 	addi    r11,r1,48                              
ffc0ec9c:	4b ff 45 34 	b       ffc031d0 <_restgpr_27_x>               
                                                                      

ffc03c08 <rtems_tarfs_load>: int rtems_tarfs_load( const char *mountpoint, uint8_t *tar_image, size_t tar_size ) {
ffc03c08:	94 21 fd f8 	stwu    r1,-520(r1)                            
ffc03c0c:	7c 08 02 a6 	mflr    r0                                     
ffc03c10:	be 21 01 cc 	stmw    r17,460(r1)                            
ffc03c14:	7c 7b 1b 78 	mr      r27,r3                                 
ffc03c18:	7c 9a 23 78 	mr      r26,r4                                 
ffc03c1c:	7c b6 2b 78 	mr      r22,r5                                 
ffc03c20:	90 01 02 0c 	stw     r0,524(r1)                             
   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 =                     
ffc03c24:	7f 64 db 78 	mr      r4,r27                                 
ffc03c28:	38 a0 00 18 	li      r5,24                                  
ffc03c2c:	38 61 01 6c 	addi    r3,r1,364                              
ffc03c30:	48 00 22 41 	bl      ffc05e70 <rtems_filesystem_eval_path_start>
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(                          
ffc03c34:	38 81 01 84 	addi    r4,r1,388                              
ffc03c38:	7c 7d 1b 78 	mr      r29,r3                                 
ffc03c3c:	38 61 01 a4 	addi    r3,r1,420                              
ffc03c40:	48 00 27 6d 	bl      ffc063ac <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;                                                 
ffc03c44:	39 20 00 60 	li      r9,96                                  
ffc03c48:	91 21 01 7c 	stw     r9,380(r1)                             
   rtems_filesystem_eval_path_set_flags(                              
     &ctx,                                                            
     RTEMS_FS_MAKE | RTEMS_FS_EXCLUSIVE                               
   );                                                                 
                                                                      
   if (                                                               
ffc03c4c:	3d 40 ff c2 	lis     r10,-62                                
ffc03c50:	39 4a 02 ec 	addi    r10,r10,748                            
     rootloc.mt_entry->ops != &IMFS_ops                               
ffc03c54:	81 21 01 b8 	lwz     r9,440(r1)                             
ffc03c58:	81 29 00 0c 	lwz     r9,12(r9)                              
   rtems_filesystem_eval_path_set_flags(                              
     &ctx,                                                            
     RTEMS_FS_MAKE | RTEMS_FS_EXCLUSIVE                               
   );                                                                 
                                                                      
   if (                                                               
ffc03c5c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc03c60:	41 9e 00 14 	beq-    cr7,ffc03c74 <rtems_tarfs_load+0x6c>   
     rootloc.mt_entry->ops != &IMFS_ops                               
       && rootloc.mt_entry->ops != &fifoIMFS_ops                      
ffc03c64:	3d 40 ff c2 	lis     r10,-62                                
ffc03c68:	39 4a 0a 9c 	addi    r10,r10,2716                           
ffc03c6c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc03c70:	40 9e 01 88 	bne-    cr7,ffc03df8 <rtems_tarfs_load+0x1f0>  <== ALWAYS TAKEN
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
ffc03c74:	3e a0 ff c2 	lis     r21,-62                                
        filename,                                                     
        strlen( filename )                                            
      );                                                              
      rtems_filesystem_eval_path_continue( &ctx );                    
                                                                      
      if ( !rtems_filesystem_location_is_null( currentloc ) ) {       
ffc03c78:	3e 80 ff c2 	lis     r20,-62                                
     * - 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, "/");                                   
ffc03c7c:	3e 60 ff c2 	lis     r19,-62                                
   rtems_filesystem_eval_path_set_flags(                              
     &ctx,                                                            
     RTEMS_FS_MAKE | RTEMS_FS_EXCLUSIVE                               
   );                                                                 
                                                                      
   if (                                                               
ffc03c80:	3b e0 00 00 	li      r31,0                                  
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
ffc03c84:	3a b5 03 70 	addi    r21,r21,880                            
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
ffc03c88:	3b 81 01 08 	addi    r28,r1,264                             
        filename,                                                     
        strlen( filename )                                            
      );                                                              
      rtems_filesystem_eval_path_continue( &ctx );                    
                                                                      
      if ( !rtems_filesystem_location_is_null( currentloc ) ) {       
ffc03c8c:	3a 94 09 24 	addi    r20,r20,2340                           
     * - 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, "/");                                   
ffc03c90:	3a 73 cf 9d 	addi    r19,r19,-12387                         
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while ( rv == 0 ) {                                                
    if (offset + 512 > tar_size)                                      
ffc03c94:	3b df 02 00 	addi    r30,r31,512                            
ffc03c98:	7f 9e b0 40 	cmplw   cr7,r30,r22                            
ffc03c9c:	41 9d 01 64 	bgt-    cr7,ffc03e00 <rtems_tarfs_load+0x1f8>  <== NEVER TAKEN
      break;                                                          
                                                                      
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
ffc03ca0:	7f fa fa 14 	add     r31,r26,r31                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
ffc03ca4:	38 7f 01 01 	addi    r3,r31,257                             
ffc03ca8:	7e a4 ab 78 	mr      r4,r21                                 
ffc03cac:	38 a0 00 05 	li      r5,5                                   
ffc03cb0:	48 01 01 e1 	bl      ffc13e90 <strncmp>                     
ffc03cb4:	7c 78 1b 79 	mr.     r24,r3                                 
ffc03cb8:	40 82 01 48 	bne-    ffc03e00 <rtems_tarfs_load+0x1f8>      
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
ffc03cbc:	38 a0 00 63 	li      r5,99                                  
ffc03cc0:	7f e4 fb 78 	mr      r4,r31                                 
ffc03cc4:	7f 83 e3 78 	mr      r3,r28                                 
ffc03cc8:	48 01 03 01 	bl      ffc13fc8 <strncpy>                     
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
                                                                      
    linkflag   = hdr_ptr[156];                                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
ffc03ccc:	38 80 00 08 	li      r4,8                                   
ffc03cd0:	38 7f 00 64 	addi    r3,r31,100                             
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
ffc03cd4:	9b 01 01 6b 	stb     r24,363(r1)                            
                                                                      
    linkflag   = hdr_ptr[156];                                        
ffc03cd8:	8a ff 00 9c 	lbz     r23,156(r31)                           
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
ffc03cdc:	48 00 89 3d 	bl      ffc0c618 <_rtems_octal2ulong>          
ffc03ce0:	7c 72 1b 78 	mr      r18,r3                                 
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
ffc03ce4:	38 80 00 0c 	li      r4,12                                  
ffc03ce8:	38 7f 00 7c 	addi    r3,r31,124                             
ffc03cec:	48 00 89 2d 	bl      ffc0c618 <_rtems_octal2ulong>          
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
ffc03cf0:	38 80 00 08 	li      r4,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);               
ffc03cf4:	7c 79 1b 78 	mr      r25,r3                                 
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
ffc03cf8:	38 7f 00 94 	addi    r3,r31,148                             
ffc03cfc:	48 00 89 1d 	bl      ffc0c618 <_rtems_octal2ulong>          
ffc03d00:	7c 71 1b 78 	mr      r17,r3                                 
                                                                      
    if (_rtems_tar_header_checksum(hdr_ptr) != hdr_chksum)            
ffc03d04:	7f e3 fb 78 	mr      r3,r31                                 
ffc03d08:	48 00 89 51 	bl      ffc0c658 <_rtems_tar_header_checksum>  
ffc03d0c:	7f 83 88 00 	cmpw    cr7,r3,r17                             
ffc03d10:	40 9e 00 f0 	bne-    cr7,ffc03e00 <rtems_tarfs_load+0x1f8>  <== 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) {                                        
ffc03d14:	2f 97 00 35 	cmpwi   cr7,r23,53                             
ffc03d18:	40 be 00 54 	bne+    cr7,ffc03d6c <rtems_tarfs_load+0x164>  
      strcpy(full_filename, mountpoint);                              
ffc03d1c:	7f 64 db 78 	mr      r4,r27                                 
ffc03d20:	38 61 00 08 	addi    r3,r1,8                                
ffc03d24:	48 00 fb e1 	bl      ffc13904 <strcpy>                      
      if (full_filename[strlen(full_filename)-1] != '/')              
ffc03d28:	38 61 00 08 	addi    r3,r1,8                                
ffc03d2c:	48 01 00 c9 	bl      ffc13df4 <strlen>                      
ffc03d30:	39 21 00 08 	addi    r9,r1,8                                
ffc03d34:	7c 69 1a 14 	add     r3,r9,r3                               
ffc03d38:	89 23 ff ff 	lbz     r9,-1(r3)                              
ffc03d3c:	2f 89 00 2f 	cmpwi   cr7,r9,47                              
ffc03d40:	41 9e 00 10 	beq-    cr7,ffc03d50 <rtems_tarfs_load+0x148>  <== ALWAYS TAKEN
        strcat(full_filename, "/");                                   
ffc03d44:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc03d48:	7e 64 9b 78 	mr      r4,r19                                 <== NOT EXECUTED
ffc03d4c:	48 00 fa 81 	bl      ffc137cc <strcat>                      <== NOT EXECUTED
      strcat(full_filename, filename);                                
ffc03d50:	7f 84 e3 78 	mr      r4,r28                                 
ffc03d54:	38 61 00 08 	addi    r3,r1,8                                
ffc03d58:	48 00 fa 75 	bl      ffc137cc <strcat>                      
      mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);              
ffc03d5c:	38 61 00 08 	addi    r3,r1,8                                
ffc03d60:	38 80 01 ff 	li      r4,511                                 
ffc03d64:	48 00 11 b1 	bl      ffc04f14 <mkdir>                       
ffc03d68:	48 00 00 88 	b       ffc03df0 <rtems_tarfs_load+0x1e8>      
    }                                                                 
    /*                                                                
     * Create a LINEAR_FILE node                                      
     */                                                               
    else if (linkflag == REGTYPE) {                                   
ffc03d6c:	2f 97 00 30 	cmpwi   cr7,r23,48                             
ffc03d70:	40 be 00 80 	bne+    cr7,ffc03df0 <rtems_tarfs_load+0x1e8>  
      rtems_filesystem_location_free( currentloc );                   
ffc03d74:	7f a3 eb 78 	mr      r3,r29                                 
ffc03d78:	48 00 0a a9 	bl      ffc04820 <rtems_filesystem_location_free>
      rtems_filesystem_location_clone( currentloc, &rootloc );        
ffc03d7c:	38 81 01 a4 	addi    r4,r1,420                              
ffc03d80:	7f a3 eb 78 	mr      r3,r29                                 
ffc03d84:	48 00 06 ad 	bl      ffc04430 <rtems_filesystem_location_clone>
      rtems_filesystem_eval_path_set_path(                            
ffc03d88:	7f 83 e3 78 	mr      r3,r28                                 
ffc03d8c:	48 01 00 69 	bl      ffc13df4 <strlen>                      
  rtems_filesystem_eval_path_context_t *ctx,                          
  const char *path,                                                   
  size_t pathlen                                                      
)                                                                     
{                                                                     
  ctx->path = path;                                                   
ffc03d90:	93 81 01 6c 	stw     r28,364(r1)                            
  ctx->pathlen = pathlen;                                             
ffc03d94:	90 61 01 70 	stw     r3,368(r1)                             
        &ctx,                                                         
        filename,                                                     
        strlen( filename )                                            
      );                                                              
      rtems_filesystem_eval_path_continue( &ctx );                    
ffc03d98:	38 61 01 6c 	addi    r3,r1,364                              
ffc03d9c:	48 00 1e cd 	bl      ffc05c68 <rtems_filesystem_eval_path_continue>
                                                                      
      if ( !rtems_filesystem_location_is_null( currentloc ) ) {       
ffc03da0:	81 3d 00 10 	lwz     r9,16(r29)                             
ffc03da4:	7f 89 a0 00 	cmpw    cr7,r9,r20                             
ffc03da8:	41 9e 00 3c 	beq-    cr7,ffc03de4 <rtems_tarfs_load+0x1dc>  <== NEVER TAKEN
  size_t namelen,                                                     
  mode_t mode,                                                        
  const IMFS_types_union *info                                        
)                                                                     
{                                                                     
  const IMFS_fs_info_t *fs_info =                                     
ffc03dac:	81 3d 00 14 	lwz     r9,20(r29)                             
        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,      
ffc03db0:	56 47 05 fe 	clrlwi  r7,r18,23                              
    (const IMFS_fs_info_t *) parentloc->mt_entry->fs_info;            
                                                                      
  return IMFS_create_node_with_control(                               
ffc03db4:	80 a1 01 74 	lwz     r5,372(r1)                             
ffc03db8:	7f a3 eb 78 	mr      r3,r29                                 
ffc03dbc:	81 29 00 08 	lwz     r9,8(r9)                               
ffc03dc0:	60 e7 80 00 	ori     r7,r7,32768                            
ffc03dc4:	80 c1 01 78 	lwz     r6,376(r1)                             
ffc03dc8:	39 00 00 00 	li      r8,0                                   
ffc03dcc:	80 89 00 1c 	lwz     r4,28(r9)                              
ffc03dd0:	48 00 8f 2d 	bl      ffc0ccfc <IMFS_create_node_with_control>
          NULL                                                        
        );                                                            
        node->info.linearfile.size   = file_size;                     
        node->info.linearfile.direct = &tar_image[offset];            
ffc03dd4:	7d 5a f2 14 	add     r10,r26,r30                            
          rtems_filesystem_eval_path_get_token( &ctx ),               
          rtems_filesystem_eval_path_get_tokenlen( &ctx ),            
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
          NULL                                                        
        );                                                            
        node->info.linearfile.size   = file_size;                     
ffc03dd8:	93 23 00 54 	stw     r25,84(r3)                             
ffc03ddc:	93 03 00 50 	stw     r24,80(r3)                             
        node->info.linearfile.direct = &tar_image[offset];            
ffc03de0:	91 43 00 58 	stw     r10,88(r3)                             
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
ffc03de4:	3b 39 01 ff 	addi    r25,r25,511                            
      offset += 512 * nblocks;                                        
ffc03de8:	57 39 00 2c 	rlwinm  r25,r25,0,0,22                         
ffc03dec:	7f d9 f2 14 	add     r30,r25,r30                            
   rtems_filesystem_eval_path_set_flags(                              
     &ctx,                                                            
     RTEMS_FS_MAKE | RTEMS_FS_EXCLUSIVE                               
   );                                                                 
                                                                      
   if (                                                               
ffc03df0:	7f df f3 78 	mr      r31,r30                                
ffc03df4:	4b ff fe a0 	b       ffc03c94 <rtems_tarfs_load+0x8c>       
     rootloc.mt_entry->ops != &IMFS_ops                               
       && rootloc.mt_entry->ops != &fifoIMFS_ops                      
   ) {                                                                
     rv = -1;                                                         
ffc03df8:	3b e0 ff ff 	li      r31,-1                                 
ffc03dfc:	48 00 00 08 	b       ffc03e04 <rtems_tarfs_load+0x1fc>      
    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)            
ffc03e00:	3b e0 00 00 	li      r31,0                                  
      nblocks = (((file_size) + 511) & ~511) / 512;                   
      offset += 512 * nblocks;                                        
    }                                                                 
  }                                                                   
                                                                      
  rtems_filesystem_location_free( &rootloc );                         
ffc03e04:	38 61 01 a4 	addi    r3,r1,420                              
ffc03e08:	48 00 0a 19 	bl      ffc04820 <rtems_filesystem_location_free>
  rtems_filesystem_eval_path_cleanup( &ctx );                         
ffc03e0c:	38 61 01 6c 	addi    r3,r1,364                              
ffc03e10:	48 00 21 89 	bl      ffc05f98 <rtems_filesystem_eval_path_cleanup>
                                                                      
  return rv;                                                          
}                                                                     
ffc03e14:	39 61 02 08 	addi    r11,r1,520                             
ffc03e18:	7f e3 fb 78 	mr      r3,r31                                 
ffc03e1c:	4b ff c7 fc 	b       ffc00618 <_restgpr_17_x>               
                                                                      

ffc118a4 <rtems_task_mode>: ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set )
ffc118a4:	7c a6 2b 79 	mr.     r6,r5                                  
rtems_status_code rtems_task_mode(                                    
  rtems_mode  mode_set,                                               
  rtems_mode  mask,                                                   
  rtems_mode *previous_mode_set                                       
)                                                                     
{                                                                     
ffc118a8:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc118ac:	7c 08 02 a6 	mflr    r0                                     
ffc118b0:	90 01 00 0c 	stw     r0,12(r1)                              
  ASR_Information    *asr;                                            
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
ffc118b4:	41 82 01 7c 	beq-    ffc11a30 <rtems_task_mode+0x18c>       
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
ffc118b8:	3d 20 00 00 	lis     r9,0                                   
ffc118bc:	81 49 2e 50 	lwz     r10,11856(r9)                          
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
ffc118c0:	80 ea 00 78 	lwz     r7,120(r10)                            
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
ffc118c4:	89 0a 00 70 	lbz     r8,112(r10)                            
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
ffc118c8:	2f 87 00 00 	cmpwi   cr7,r7,0                               
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
ffc118cc:	81 2a 01 48 	lwz     r9,328(r10)                            
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
ffc118d0:	7d 08 00 34 	cntlzw  r8,r8                                  
ffc118d4:	55 08 d9 7e 	rlwinm  r8,r8,27,5,31                          
ffc118d8:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
ffc118dc:	41 9e 00 08 	beq-    cr7,ffc118e4 <rtems_task_mode+0x40>    
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
ffc118e0:	61 08 02 00 	ori     r8,r8,512                              
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
ffc118e4:	88 e9 00 08 	lbz     r7,8(r9)                               
ffc118e8:	7c e7 00 34 	cntlzw  r7,r7                                  
ffc118ec:	54 e7 d9 7e 	rlwinm  r7,r7,27,5,31                          
ffc118f0:	54 e7 50 2a 	rlwinm  r7,r7,10,0,21                          
ffc118f4:	7c e7 43 78 	or      r7,r7,r8                               
#ifndef ASM                                                           
                                                                      
static inline uint32_t   _CPU_ISR_Get_level( void )                   
{                                                                     
  register unsigned int msr;                                          
  _CPU_MSR_GET(msr);                                                  
ffc118f8:	39 00 00 00 	li      r8,0                                   
ffc118fc:	7d 00 00 a6 	mfmsr   r8                                     
  if (msr & MSR_EE) return 0;                                         
ffc11900:	69 08 80 00 	xori    r8,r8,32768                            
ffc11904:	55 05 8f fe 	rlwinm  r5,r8,17,31,31                         
  old_mode |= _ISR_Get_level();                                       
ffc11908:	7c e8 2b 78 	or      r8,r7,r5                               
                                                                      
  *previous_mode_set = old_mode;                                      
ffc1190c:	91 06 00 00 	stw     r8,0(r6)                               
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
ffc11910:	70 88 01 00 	andi.   r8,r4,256                              
ffc11914:	41 82 00 10 	beq-    ffc11924 <rtems_task_mode+0x80>        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt (                         
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
   return (mode_set & RTEMS_PREEMPT_MASK) == RTEMS_PREEMPT;           
ffc11918:	68 68 01 00 	xori    r8,r3,256                              
ffc1191c:	55 08 c7 fe 	rlwinm  r8,r8,24,31,31                         
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
ffc11920:	99 0a 00 70 	stb     r8,112(r10)                            
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
ffc11924:	70 88 02 00 	andi.   r8,r4,512                              
ffc11928:	41 82 00 28 	beq-    ffc11950 <rtems_task_mode+0xac>        
    if ( _Modes_Is_timeslice(mode_set) ) {                            
ffc1192c:	70 68 02 00 	andi.   r8,r3,512                              
ffc11930:	41 82 00 1c 	beq-    ffc1194c <rtems_task_mode+0xa8>        
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
ffc11934:	39 00 00 01 	li      r8,1                                   
ffc11938:	91 0a 00 78 	stw     r8,120(r10)                            
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
ffc1193c:	3d 00 00 00 	lis     r8,0                                   
ffc11940:	81 08 27 b8 	lwz     r8,10168(r8)                           
ffc11944:	91 0a 00 74 	stw     r8,116(r10)                            
ffc11948:	48 00 00 08 	b       ffc11950 <rtems_task_mode+0xac>        
    } else                                                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 
ffc1194c:	91 0a 00 78 	stw     r8,120(r10)                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
ffc11950:	70 8a 00 01 	andi.   r10,r4,1                               
ffc11954:	41 a2 00 28 	beq+    ffc1197c <rtems_task_mode+0xd8>        
}                                                                     
                                                                      
static inline void _CPU_ISR_Set_level( uint32_t   level )             
{                                                                     
  register unsigned int msr;                                          
  _CPU_MSR_GET(msr);                                                  
ffc11958:	39 40 00 00 	li      r10,0                                  
ffc1195c:	7d 40 00 a6 	mfmsr   r10                                    
  if (!(level & CPU_MODES_INTERRUPT_MASK)) {                          
ffc11960:	70 68 00 01 	andi.   r8,r3,1                                
                                                                      
static inline uint32_t ppc_interrupt_get_disable_mask( void )         
{                                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc11964:	7d 10 42 a6 	mfsprg  r8,0                                   
ffc11968:	40 a2 00 0c 	bne+    ffc11974 <rtems_task_mode+0xd0>        
    msr |= ppc_interrupt_get_disable_mask();                          
ffc1196c:	7d 0a 53 78 	or      r10,r8,r10                             
ffc11970:	48 00 00 08 	b       ffc11978 <rtems_task_mode+0xd4>        
  }                                                                   
  else {                                                              
    msr &= ~ppc_interrupt_get_disable_mask();                         
ffc11974:	7d 4a 40 78 	andc    r10,r10,r8                             
  }                                                                   
  _CPU_MSR_SET(msr);                                                  
ffc11978:	7d 40 01 24 	mtmsr   r10                                    
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
ffc1197c:	70 8a 04 00 	andi.   r10,r4,1024                            
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
ffc11980:	38 e0 00 00 	li      r7,0                                   
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
ffc11984:	41 82 00 50 	beq-    ffc119d4 <rtems_task_mode+0x130>       
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
ffc11988:	68 63 04 00 	xori    r3,r3,1024                             
    if ( is_asr_enabled != asr->is_enabled ) {                        
ffc1198c:	89 49 00 08 	lbz     r10,8(r9)                              
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
ffc11990:	54 63 b7 fe 	rlwinm  r3,r3,22,31,31                         
    if ( is_asr_enabled != asr->is_enabled ) {                        
ffc11994:	7f 8a 18 00 	cmpw    cr7,r10,r3                             
ffc11998:	41 9e 00 3c 	beq-    cr7,ffc119d4 <rtems_task_mode+0x130>   
      asr->is_enabled = is_asr_enabled;                               
ffc1199c:	98 69 00 08 	stb     r3,8(r9)                               
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc119a0:	7d 00 00 a6 	mfmsr   r8                                     
ffc119a4:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc119a8:	7d 0a 50 78 	andc    r10,r8,r10                             
ffc119ac:	7d 40 01 24 	mtmsr   r10                                    
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
ffc119b0:	80 e9 00 18 	lwz     r7,24(r9)                              
    information->signals_pending = information->signals_posted;       
ffc119b4:	81 49 00 14 	lwz     r10,20(r9)                             
    information->signals_posted  = _signals;                          
ffc119b8:	90 e9 00 14 	stw     r7,20(r9)                              
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
    information->signals_pending = information->signals_posted;       
ffc119bc:	91 49 00 18 	stw     r10,24(r9)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc119c0:	7d 00 01 24 	mtmsr   r8                                     
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
ffc119c4:	81 29 00 14 	lwz     r9,20(r9)                              
ffc119c8:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc119cc:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc119d0:	69 27 00 01 	xori    r7,r9,1                                
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
ffc119d4:	3d 20 00 00 	lis     r9,0                                   
ffc119d8:	81 29 27 e4 	lwz     r9,10212(r9)                           
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc119dc:	38 60 00 00 	li      r3,0                                   
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
ffc119e0:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc119e4:	40 be 00 50 	bne+    cr7,ffc11a34 <rtems_task_mode+0x190>   
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
                                                                      
  if ( are_signals_pending ||                                         
ffc119e8:	2f 87 00 00 	cmpwi   cr7,r7,0                               
  bool are_signals_pending                                            
)                                                                     
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
ffc119ec:	3d 00 00 00 	lis     r8,0                                   
ffc119f0:	39 08 2e 40 	addi    r8,r8,11840                            
ffc119f4:	81 48 00 10 	lwz     r10,16(r8)                             
                                                                      
  if ( are_signals_pending ||                                         
ffc119f8:	40 9e 00 1c 	bne-    cr7,ffc11a14 <rtems_task_mode+0x170>   
ffc119fc:	81 28 00 14 	lwz     r9,20(r8)                              
ffc11a00:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc11a04:	41 9e 00 30 	beq-    cr7,ffc11a34 <rtems_task_mode+0x190>   
       (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
ffc11a08:	89 2a 00 70 	lbz     r9,112(r10)                            
ffc11a0c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11a10:	41 9e 00 24 	beq-    cr7,ffc11a34 <rtems_task_mode+0x190>   <== NEVER TAKEN
    _Thread_Dispatch_necessary = true;                                
ffc11a14:	3d 20 00 00 	lis     r9,0                                   
ffc11a18:	39 40 00 01 	li      r10,1                                  
ffc11a1c:	39 29 2e 40 	addi    r9,r9,11840                            
ffc11a20:	99 49 00 0c 	stb     r10,12(r9)                             
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
ffc11a24:	4b ff a7 79 	bl      ffc0c19c <_Thread_Dispatch>            
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc11a28:	38 60 00 00 	li      r3,0                                   
ffc11a2c:	48 00 00 08 	b       ffc11a34 <rtems_task_mode+0x190>       
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc11a30:	38 60 00 09 	li      r3,9                                   
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc11a34:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc11a38:	38 21 00 08 	addi    r1,r1,8                                
ffc11a3c:	7c 08 03 a6 	mtlr    r0                                     
ffc11a40:	4e 80 00 20 	blr                                            
                                                                      

ffc0cfdc <rtems_task_set_priority>: rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) {
ffc0cfdc:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0cfe0:	7c 08 02 a6 	mflr    r0                                     
ffc0cfe4:	bf c1 00 18 	stmw    r30,24(r1)                             
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
ffc0cfe8:	7c 9f 23 79 	mr.     r31,r4                                 
rtems_status_code rtems_task_set_priority(                            
  rtems_id             id,                                            
  rtems_task_priority  new_priority,                                  
  rtems_task_priority *old_priority                                   
)                                                                     
{                                                                     
ffc0cfec:	7c be 2b 78 	mr      r30,r5                                 
ffc0cff0:	90 01 00 24 	stw     r0,36(r1)                              
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
ffc0cff4:	41 82 00 18 	beq-    ffc0d00c <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 ) );             
ffc0cff8:	3d 20 00 00 	lis     r9,0                                   
ffc0cffc:	89 49 27 04 	lbz     r10,9988(r9)                           
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
ffc0d000:	39 20 00 13 	li      r9,19                                  
)                                                                     
{                                                                     
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
ffc0d004:	7f 9f 50 40 	cmplw   cr7,r31,r10                            
ffc0d008:	41 bd 00 6c 	bgt+    cr7,ffc0d074 <rtems_task_set_priority+0x98>
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
ffc0d00c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    return RTEMS_INVALID_ADDRESS;                                     
ffc0d010:	39 20 00 09 	li      r9,9                                   
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
ffc0d014:	41 9e 00 60 	beq-    cr7,ffc0d074 <rtems_task_set_priority+0x98>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0d018:	38 81 00 08 	addi    r4,r1,8                                
ffc0d01c:	48 00 26 0d 	bl      ffc0f628 <_Thread_Get>                 
  switch ( location ) {                                               
ffc0d020:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0d024:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0d028:	40 9e 00 48 	bne-    cr7,ffc0d070 <rtems_task_set_priority+0x94>
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
ffc0d02c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
ffc0d030:	81 23 00 14 	lwz     r9,20(r3)                              
ffc0d034:	91 3e 00 00 	stw     r9,0(r30)                              
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
ffc0d038:	41 9e 00 2c 	beq-    cr7,ffc0d064 <rtems_task_set_priority+0x88>
        the_thread->real_priority = new_priority;                     
        if ( the_thread->resource_count == 0 ||                       
ffc0d03c:	81 23 00 1c 	lwz     r9,28(r3)                              
                                                                      
    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;                     
ffc0d040:	93 e3 00 18 	stw     r31,24(r3)                             
        if ( the_thread->resource_count == 0 ||                       
ffc0d044:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0d048:	41 9e 00 10 	beq-    cr7,ffc0d058 <rtems_task_set_priority+0x7c>
ffc0d04c:	81 23 00 14 	lwz     r9,20(r3)                              
ffc0d050:	7f 89 f8 40 	cmplw   cr7,r9,r31                             
ffc0d054:	40 9d 00 10 	ble-    cr7,ffc0d064 <rtems_task_set_priority+0x88><== ALWAYS TAKEN
             the_thread->current_priority > new_priority )            
          _Thread_Change_priority( the_thread, new_priority, false ); 
ffc0d058:	7f e4 fb 78 	mr      r4,r31                                 
ffc0d05c:	38 a0 00 00 	li      r5,0                                   
ffc0d060:	48 00 20 69 	bl      ffc0f0c8 <_Thread_Change_priority>     
      }                                                               
      _Thread_Enable_dispatch();                                      
ffc0d064:	48 00 25 a9 	bl      ffc0f60c <_Thread_Enable_dispatch>     
      return RTEMS_SUCCESSFUL;                                        
ffc0d068:	39 20 00 00 	li      r9,0                                   
ffc0d06c:	48 00 00 08 	b       ffc0d074 <rtems_task_set_priority+0x98>
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc0d070:	39 20 00 04 	li      r9,4                                   
}                                                                     
ffc0d074:	39 61 00 20 	addi    r11,r1,32                              
ffc0d078:	7d 23 4b 78 	mr      r3,r9                                  
ffc0d07c:	4b ff 40 d0 	b       ffc0114c <_restgpr_30_x>               
                                                                      

ffc067dc <rtems_termios_close>: rtems_interrupt_enable (level); } rtems_status_code rtems_termios_close (void *arg) {
ffc067dc:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc067e0:	7c 08 02 a6 	mflr    r0                                     
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
ffc067e4:	38 80 00 00 	li      r4,0                                   
  rtems_interrupt_enable (level);                                     
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
ffc067e8:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
ffc067ec:	38 a0 00 00 	li      r5,0                                   
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc067f0:	81 23 00 00 	lwz     r9,0(r3)                               
  rtems_interrupt_enable (level);                                     
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
ffc067f4:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc067f8:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc067fc:	83 e9 00 30 	lwz     r31,48(r9)                             
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
ffc06800:	3d 20 00 00 	lis     r9,0                                   
ffc06804:	80 69 28 14 	lwz     r3,10260(r9)                           
ffc06808:	48 00 20 a5 	bl      ffc088ac <rtems_semaphore_obtain>      
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0680c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06810:	41 be 00 08 	beq+    cr7,ffc06818 <rtems_termios_close+0x3c><== ALWAYS TAKEN
ffc06814:	48 00 00 b8 	b       ffc068cc <rtems_termios_close+0xf0>    <== NOT EXECUTED
    rtems_fatal_error_occurred (sc);                                  
  if (--tty->refcount == 0) {                                         
ffc06818:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0681c:	39 29 ff ff 	addi    r9,r9,-1                               
ffc06820:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06824:	91 3f 00 08 	stw     r9,8(r31)                              
ffc06828:	40 9e 01 78 	bne-    cr7,ffc069a0 <rtems_termios_close+0x1c4>
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
ffc0682c:	81 3f 00 cc 	lwz     r9,204(r31)                            
ffc06830:	3d 40 00 00 	lis     r10,0                                  
ffc06834:	39 4a 28 bc 	addi    r10,r10,10428                          
ffc06838:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc0683c:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc06840:	81 29 00 04 	lwz     r9,4(r9)                               
ffc06844:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06848:	41 9e 00 14 	beq-    cr7,ffc0685c <rtems_termios_close+0x80>
      /*                                                              
       * call discipline-specific close                               
       */                                                             
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
ffc0684c:	7f e3 fb 78 	mr      r3,r31                                 
ffc06850:	7d 29 03 a6 	mtctr   r9                                     
ffc06854:	4e 80 04 21 	bctrl                                          
ffc06858:	48 00 00 3c 	b       ffc06894 <rtems_termios_close+0xb8>    
    } else {                                                          
      /*                                                              
       * default: just flush output buffer                            
       */                                                             
      sc = rtems_semaphore_obtain(tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc0685c:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc06860:	38 80 00 00 	li      r4,0                                   
ffc06864:	38 a0 00 00 	li      r5,0                                   
ffc06868:	48 00 20 45 	bl      ffc088ac <rtems_semaphore_obtain>      
      if (sc != RTEMS_SUCCESSFUL) {                                   
ffc0686c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06870:	41 be 00 08 	beq+    cr7,ffc06878 <rtems_termios_close+0x9c><== ALWAYS TAKEN
ffc06874:	48 00 00 58 	b       ffc068cc <rtems_termios_close+0xf0>    <== NOT EXECUTED
drainOutput (struct rtems_termios_tty *tty)                           
{                                                                     
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
ffc06878:	81 3f 00 b4 	lwz     r9,180(r31)                            
ffc0687c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06880:	41 be 00 0c 	beq+    cr7,ffc0688c <rtems_termios_close+0xb0>
ffc06884:	7f e3 fb 78 	mr      r3,r31                                 
ffc06888:	4b ff fa b9 	bl      ffc06340 <drainOutput.part.0>          
      sc = rtems_semaphore_obtain(tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
      if (sc != RTEMS_SUCCESSFUL) {                                   
        rtems_fatal_error_occurred (sc);                              
      }                                                               
      drainOutput (tty);                                              
      rtems_semaphore_release (tty->osem);                            
ffc0688c:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc06890:	48 00 21 41 	bl      ffc089d0 <rtems_semaphore_release>     
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
ffc06894:	81 3f 00 b4 	lwz     r9,180(r31)                            
ffc06898:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc0689c:	40 be 00 34 	bne+    cr7,ffc068d0 <rtems_termios_close+0xf4>
      /*                                                              
       * send "terminate" to I/O tasks                                
       */                                                             
      sc = rtems_event_send( tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT );
ffc068a0:	80 7f 00 c4 	lwz     r3,196(r31)                            
ffc068a4:	38 80 00 01 	li      r4,1                                   
ffc068a8:	48 00 1b 51 	bl      ffc083f8 <rtems_event_send>            
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc068ac:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc068b0:	41 be 00 08 	beq+    cr7,ffc068b8 <rtems_termios_close+0xdc><== ALWAYS TAKEN
ffc068b4:	48 00 00 18 	b       ffc068cc <rtems_termios_close+0xf0>    <== NOT EXECUTED
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
ffc068b8:	80 7f 00 c8 	lwz     r3,200(r31)                            
ffc068bc:	38 80 00 01 	li      r4,1                                   
ffc068c0:	48 00 1b 39 	bl      ffc083f8 <rtems_event_send>            
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc068c4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc068c8:	41 be 00 08 	beq+    cr7,ffc068d0 <rtems_termios_close+0xf4><== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
ffc068cc:	48 00 27 a5 	bl      ffc09070 <rtems_fatal_error_occurred>  <== NOT EXECUTED
    }                                                                 
    if (tty->device.lastClose)                                        
ffc068d0:	81 3f 00 9c 	lwz     r9,156(r31)                            
ffc068d4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc068d8:	41 9e 00 18 	beq-    cr7,ffc068f0 <rtems_termios_close+0x114><== ALWAYS TAKEN
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
ffc068dc:	80 7f 00 0c 	lwz     r3,12(r31)                             <== NOT EXECUTED
ffc068e0:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc068e4:	80 9f 00 10 	lwz     r4,16(r31)                             <== NOT EXECUTED
ffc068e8:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc068ec:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
    if (tty->forw == NULL) {                                          
ffc068f0:	81 5f 00 00 	lwz     r10,0(r31)                             
ffc068f4:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc068f8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc068fc:	40 be 00 1c 	bne+    cr7,ffc06918 <rtems_termios_close+0x13c>
      rtems_termios_ttyTail = tty->back;                              
      if ( rtems_termios_ttyTail != NULL ) {                          
ffc06900:	2f 89 00 00 	cmpwi   cr7,r9,0                               
        rtems_fatal_error_occurred (sc);                              
    }                                                                 
    if (tty->device.lastClose)                                        
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
    if (tty->forw == NULL) {                                          
      rtems_termios_ttyTail = tty->back;                              
ffc06904:	3d 00 00 00 	lis     r8,0                                   
ffc06908:	91 28 28 18 	stw     r9,10264(r8)                           
      if ( rtems_termios_ttyTail != NULL ) {                          
ffc0690c:	41 9e 00 10 	beq-    cr7,ffc0691c <rtems_termios_close+0x140><== ALWAYS TAKEN
        rtems_termios_ttyTail->forw = NULL;                           
ffc06910:	91 49 00 00 	stw     r10,0(r9)                              <== NOT EXECUTED
ffc06914:	48 00 00 08 	b       ffc0691c <rtems_termios_close+0x140>   <== NOT EXECUTED
      }                                                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
ffc06918:	91 2a 00 04 	stw     r9,4(r10)                              
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
ffc0691c:	81 5f 00 04 	lwz     r10,4(r31)                             
ffc06920:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc06924:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc06928:	40 be 00 1c 	bne+    cr7,ffc06944 <rtems_termios_close+0x168><== NEVER TAKEN
      rtems_termios_ttyHead = tty->forw;                              
      if ( rtems_termios_ttyHead != NULL ) {                          
ffc0692c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
      rtems_termios_ttyHead = tty->forw;                              
ffc06930:	3d 00 00 00 	lis     r8,0                                   
ffc06934:	91 28 28 1c 	stw     r9,10268(r8)                           
      if ( rtems_termios_ttyHead != NULL ) {                          
ffc06938:	41 9e 00 10 	beq-    cr7,ffc06948 <rtems_termios_close+0x16c>
        rtems_termios_ttyHead->back = NULL;                           
ffc0693c:	91 49 00 04 	stw     r10,4(r9)                              
ffc06940:	48 00 00 08 	b       ffc06948 <rtems_termios_close+0x16c>   
      }                                                               
    } else {                                                          
      tty->back->forw = tty->forw;                                    
ffc06944:	91 2a 00 00 	stw     r9,0(r10)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    rtems_semaphore_delete (tty->isem);                               
ffc06948:	80 7f 00 14 	lwz     r3,20(r31)                             
ffc0694c:	48 00 1e a5 	bl      ffc087f0 <rtems_semaphore_delete>      
    rtems_semaphore_delete (tty->osem);                               
ffc06950:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc06954:	48 00 1e 9d 	bl      ffc087f0 <rtems_semaphore_delete>      
    rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                
ffc06958:	80 7f 00 8c 	lwz     r3,140(r31)                            
ffc0695c:	48 00 1e 95 	bl      ffc087f0 <rtems_semaphore_delete>      
    if ((tty->device.pollRead == NULL) ||                             
ffc06960:	81 3f 00 a0 	lwz     r9,160(r31)                            
ffc06964:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06968:	41 9e 00 10 	beq-    cr7,ffc06978 <rtems_termios_close+0x19c>
ffc0696c:	81 3f 00 b4 	lwz     r9,180(r31)                            
ffc06970:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc06974:	40 be 00 0c 	bne+    cr7,ffc06980 <rtems_termios_close+0x1a4>
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))    
      rtems_semaphore_delete (tty->rawInBuf.Semaphore);               
ffc06978:	80 7f 00 68 	lwz     r3,104(r31)                            
ffc0697c:	48 00 1e 75 	bl      ffc087f0 <rtems_semaphore_delete>      
    free (tty->rawInBuf.theBuf);                                      
ffc06980:	80 7f 00 58 	lwz     r3,88(r31)                             
ffc06984:	4b ff db d9 	bl      ffc0455c <free>                        
    free (tty->rawOutBuf.theBuf);                                     
ffc06988:	80 7f 00 7c 	lwz     r3,124(r31)                            
ffc0698c:	4b ff db d1 	bl      ffc0455c <free>                        
    free (tty->cbuf);                                                 
ffc06990:	80 7f 00 1c 	lwz     r3,28(r31)                             
ffc06994:	4b ff db c9 	bl      ffc0455c <free>                        
    free (tty);                                                       
ffc06998:	7f e3 fb 78 	mr      r3,r31                                 
ffc0699c:	4b ff db c1 	bl      ffc0455c <free>                        
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
ffc069a0:	3d 20 00 00 	lis     r9,0                                   
ffc069a4:	80 69 28 14 	lwz     r3,10260(r9)                           
ffc069a8:	48 00 20 29 	bl      ffc089d0 <rtems_semaphore_release>     
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc069ac:	39 61 00 10 	addi    r11,r1,16                              
ffc069b0:	38 60 00 00 	li      r3,0                                   
ffc069b4:	4b ff 9c 0c 	b       ffc005c0 <_restgpr_30_x>               
                                                                      

ffc07d54 <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) {
ffc07d54:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc07d58:	7c 08 02 a6 	mflr    r0                                     
ffc07d5c:	90 01 00 0c 	stw     r0,12(r1)                              
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
ffc07d60:	81 43 00 90 	lwz     r10,144(r3)                            
ffc07d64:	7c 8a 22 14 	add     r4,r10,r4                              
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
ffc07d68:	81 43 00 b4 	lwz     r10,180(r3)                            
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
ffc07d6c:	90 83 00 90 	stw     r4,144(r3)                             
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
ffc07d70:	2f 8a 00 02 	cmpwi   cr7,r10,2                              
ffc07d74:	40 be 00 1c 	bne+    cr7,ffc07d90 <rtems_termios_dequeue_characters+0x3c>
    /*                                                                
     * send wake up to transmitter task                               
     */                                                               
    sc = rtems_event_send(tty->txTaskId, TERMIOS_TX_START_EVENT);     
ffc07d78:	80 63 00 c8 	lwz     r3,200(r3)                             
ffc07d7c:	38 80 00 02 	li      r4,2                                   
ffc07d80:	48 00 06 79 	bl      ffc083f8 <rtems_event_send>            
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc07d84:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07d88:	41 be 00 40 	beq+    cr7,ffc07dc8 <rtems_termios_dequeue_characters+0x74><== ALWAYS TAKEN
      rtems_fatal_error_occurred (sc);                                
ffc07d8c:	48 00 12 e5 	bl      ffc09070 <rtems_fatal_error_occurred>  <== NOT EXECUTED
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  if (tty->t_line == PPPDISC ) {                                      
ffc07d90:	81 23 00 cc 	lwz     r9,204(r3)                             
ffc07d94:	2f 89 00 05 	cmpwi   cr7,r9,5                               
ffc07d98:	40 9e 00 20 	bne-    cr7,ffc07db8 <rtems_termios_dequeue_characters+0x64>
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
ffc07d9c:	3d 20 00 00 	lis     r9,0                                   
ffc07da0:	81 29 29 70 	lwz     r9,10608(r9)                           
ffc07da4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07da8:	41 9e 00 20 	beq-    cr7,ffc07dc8 <rtems_termios_dequeue_characters+0x74><== NEVER TAKEN
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
ffc07dac:	7d 29 03 a6 	mtctr   r9                                     
ffc07db0:	4e 80 04 21 	bctrl                                          
ffc07db4:	48 00 00 14 	b       ffc07dc8 <rtems_termios_dequeue_characters+0x74>
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
}                                                                     
ffc07db8:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc07dbc:	38 21 00 08 	addi    r1,r1,8                                
ffc07dc0:	7c 08 03 a6 	mtlr    r0                                     
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
ffc07dc4:	4b ff e3 1c 	b       ffc060e0 <rtems_termios_refill_transmitter>
}                                                                     
ffc07dc8:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc07dcc:	38 60 00 00 	li      r3,0                                   
ffc07dd0:	7c 08 03 a6 	mtlr    r0                                     
ffc07dd4:	38 21 00 08 	addi    r1,r1,8                                
ffc07dd8:	4e 80 00 20 	blr                                            
                                                                      

ffc079fc <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) {
ffc079fc:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc07a00:	7c 08 02 a6 	mflr    r0                                     
  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) {             
ffc07a04:	3d 20 00 00 	lis     r9,0                                   
 *       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)
{                                                                     
ffc07a08:	90 01 00 34 	stw     r0,52(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) {             
ffc07a0c:	39 29 28 bc 	addi    r9,r9,10428                            
ffc07a10:	81 43 00 cc 	lwz     r10,204(r3)                            
 *       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)
{                                                                     
ffc07a14:	be c1 00 08 	stmw    r22,8(r1)                              
ffc07a18:	7c 7f 1b 78 	mr      r31,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) {             
ffc07a1c:	55 4a 28 34 	rlwinm  r10,r10,5,0,26                         
ffc07a20:	7d 49 52 14 	add     r10,r9,r10                             
ffc07a24:	81 4a 00 10 	lwz     r10,16(r10)                            
 *       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)
{                                                                     
ffc07a28:	7c 9e 23 78 	mr      r30,r4                                 
  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);                
ffc07a2c:	7d 3d 4b 78 	mr      r29,r9                                 
  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) {             
ffc07a30:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc07a34:	7f 24 2a 14 	add     r25,r4,r5                              
ffc07a38:	40 be 00 3c 	bne+    cr7,ffc07a74 <rtems_termios_enqueue_raw_characters+0x78>
 * NOTE: This routine runs in the context of the                      
 *       device receive interrupt handler.                            
 * Returns the number of characters dropped because of overflow.      
 */                                                                   
int                                                                   
rtems_termios_enqueue_raw_characters (void *ttyp, const char *buf, int len)
ffc07a3c:	3b 40 00 00 	li      r26,0                                  
ffc07a40:	3b a0 00 00 	li      r29,0                                  
                                                                      
        /*                                                            
         * 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); 
ffc07a44:	3b 03 00 30 	addi    r24,r3,48                              
              (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,                          
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
ffc07a48:	3a e3 00 4a 	addi    r23,r3,74                              
ffc07a4c:	48 00 02 5c 	b       ffc07ca8 <rtems_termios_enqueue_raw_characters+0x2ac>
  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);                
ffc07a50:	81 3f 00 cc 	lwz     r9,204(r31)                            
ffc07a54:	7f e4 fb 78 	mr      r4,r31                                 
  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++;                                                     
ffc07a58:	88 7e 00 00 	lbz     r3,0(r30)                              
ffc07a5c:	3b de 00 01 	addi    r30,r30,1                              
      rtems_termios_linesw[tty->t_line].l_rint(c,tty);                
ffc07a60:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc07a64:	7d 3d 4a 14 	add     r9,r29,r9                              
ffc07a68:	81 29 00 10 	lwz     r9,16(r9)                              
ffc07a6c:	7d 29 03 a6 	mtctr   r9                                     
ffc07a70:	4e 80 04 21 	bctrl                                          
  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--) {                                                   
ffc07a74:	7f 9e c8 00 	cmpw    cr7,r30,r25                            
ffc07a78:	40 9e ff d8 	bne+    cr7,ffc07a50 <rtems_termios_enqueue_raw_characters+0x54>
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
ffc07a7c:	81 3f 00 e4 	lwz     r9,228(r31)                            
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
ffc07a80:	3b a0 00 00 	li      r29,0                                  
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
ffc07a84:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07a88:	40 9e 02 48 	bne-    cr7,ffc07cd0 <rtems_termios_enqueue_raw_characters+0x2d4><== NEVER TAKEN
ffc07a8c:	81 3f 00 dc 	lwz     r9,220(r31)                            
ffc07a90:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07a94:	41 9e 02 3c 	beq-    cr7,ffc07cd0 <rtems_termios_enqueue_raw_characters+0x2d4>
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
ffc07a98:	7d 29 03 a6 	mtctr   r9                                     
ffc07a9c:	38 7f 00 30 	addi    r3,r31,48                              
ffc07aa0:	80 9f 00 e0 	lwz     r4,224(r31)                            
ffc07aa4:	4e 80 04 21 	bctrl                                          
      tty->tty_rcvwakeup = 1;                                         
ffc07aa8:	39 20 00 01 	li      r9,1                                   
ffc07aac:	91 3f 00 e4 	stw     r9,228(r31)                            
ffc07ab0:	48 00 02 20 	b       ffc07cd0 <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) {                                  
ffc07ab4:	81 3f 00 b8 	lwz     r9,184(r31)                            
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
ffc07ab8:	8b 7e 00 00 	lbz     r27,0(r30)                             
ffc07abc:	3b de 00 01 	addi    r30,r30,1                              
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
ffc07ac0:	71 2a 02 00 	andi.   r10,r9,512                             
ffc07ac4:	41 82 00 4c 	beq-    ffc07b10 <rtems_termios_enqueue_raw_characters+0x114>
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
ffc07ac8:	89 5f 00 4a 	lbz     r10,74(r31)                            
ffc07acc:	89 3f 00 49 	lbz     r9,73(r31)                             
ffc07ad0:	7f 8a d8 00 	cmpw    cr7,r10,r27                            
        if (c == tty->termios.c_cc[VSTART]) {                         
ffc07ad4:	55 29 06 3e 	clrlwi  r9,r9,24                               
    c = *buf++;                                                       
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
ffc07ad8:	40 be 00 24 	bne+    cr7,ffc07afc <rtems_termios_enqueue_raw_characters+0x100>
        if (c == tty->termios.c_cc[VSTART]) {                         
ffc07adc:	7f 89 50 00 	cmpw    cr7,r9,r10                             
          /* received VSTOP and VSTART==VSTOP? */                     
          /* then toggle "stop output" status  */                     
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
ffc07ae0:	81 3f 00 b8 	lwz     r9,184(r31)                            
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
        if (c == tty->termios.c_cc[VSTART]) {                         
ffc07ae4:	40 be 00 0c 	bne+    cr7,ffc07af0 <rtems_termios_enqueue_raw_characters+0xf4><== ALWAYS TAKEN
          /* received VSTOP and VSTART==VSTOP? */                     
          /* then toggle "stop output" status  */                     
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
ffc07ae8:	69 29 00 10 	xori    r9,r9,16                               <== NOT EXECUTED
ffc07aec:	48 00 00 08 	b       ffc07af4 <rtems_termios_enqueue_raw_characters+0xf8><== NOT EXECUTED
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
ffc07af0:	61 29 00 10 	ori     r9,r9,16                               
ffc07af4:	91 3f 00 b8 	stw     r9,184(r31)                            
ffc07af8:	48 00 01 d0 	b       ffc07cc8 <rtems_termios_enqueue_raw_characters+0x2cc>
        }                                                             
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
ffc07afc:	7f 89 d8 00 	cmpw    cr7,r9,r27                             
ffc07b00:	40 be 00 10 	bne+    cr7,ffc07b10 <rtems_termios_enqueue_raw_characters+0x114><== ALWAYS TAKEN
        /* VSTART received */                                         
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
ffc07b04:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc07b08:	55 29 07 34 	rlwinm  r9,r9,0,28,26                          <== NOT EXECUTED
ffc07b0c:	4b ff ff e8 	b       ffc07af4 <rtems_termios_enqueue_raw_characters+0xf8><== NOT EXECUTED
        flow_rcv = true;                                              
      }                                                               
    }                                                                 
    if (flow_rcv) {                                                   
ffc07b10:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc07b14:	41 9e 00 5c 	beq-    cr7,ffc07b70 <rtems_termios_enqueue_raw_characters+0x174><== ALWAYS TAKEN
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
ffc07b18:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc07b1c:	55 29 06 b6 	rlwinm  r9,r9,0,26,27                          
ffc07b20:	2f 89 00 20 	cmpwi   cr7,r9,32                              
ffc07b24:	40 be 01 84 	bne+    cr7,ffc07ca8 <rtems_termios_enqueue_raw_characters+0x2ac><== ALWAYS TAKEN
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
ffc07b28:	4b ff e5 a5 	bl      ffc060cc <ppc_interrupt_disable>       <== NOT EXECUTED
ffc07b2c:	7c 7c 1b 78 	mr      r28,r3                                 <== NOT EXECUTED
        tty->flow_ctrl &= ~FL_OSTOP;                                  
ffc07b30:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc07b34:	55 29 06 f2 	rlwinm  r9,r9,0,27,25                          <== NOT EXECUTED
ffc07b38:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
ffc07b3c:	81 3f 00 94 	lwz     r9,148(r31)                            <== NOT EXECUTED
ffc07b40:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc07b44:	41 be 00 24 	beq+    cr7,ffc07b68 <rtems_termios_enqueue_raw_characters+0x16c><== NOT EXECUTED
          /* if chars available, call write function... */            
          (*tty->device.write)(                                       
            tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
ffc07b48:	80 9f 00 84 	lwz     r4,132(r31)                            <== 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)(                                       
ffc07b4c:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc07b50:	81 5f 00 7c 	lwz     r10,124(r31)                           <== NOT EXECUTED
ffc07b54:	81 3f 00 a4 	lwz     r9,164(r31)                            <== NOT EXECUTED
ffc07b58:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc07b5c:	7c 8a 22 14 	add     r4,r10,r4                              <== NOT EXECUTED
ffc07b60:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc07b64:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc07b68:	7f 80 01 24 	mtmsr   r28                                    <== NOT EXECUTED
ffc07b6c:	48 00 01 3c 	b       ffc07ca8 <rtems_termios_enqueue_raw_characters+0x2ac><== NOT EXECUTED
        }                                                             
        /* reenable interrupts */                                     
        rtems_interrupt_enable(level);                                
      }                                                               
    } else {                                                          
      newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;        
ffc07b70:	81 3f 00 60 	lwz     r9,96(r31)                             
ffc07b74:	81 5f 00 64 	lwz     r10,100(r31)                           
ffc07b78:	39 29 00 01 	addi    r9,r9,1                                
ffc07b7c:	7f 89 53 96 	divwu   r28,r9,r10                             
ffc07b80:	7f 9c 51 d6 	mullw   r28,r28,r10                            
ffc07b84:	7f 9c 48 50 	subf    r28,r28,r9                             
      /* if chars_in_buffer > highwater                */             
      rtems_interrupt_disable(level);                                 
ffc07b88:	4b ff e5 45 	bl      ffc060cc <ppc_interrupt_disable>       
ffc07b8c:	7c 76 1b 78 	mr      r22,r3                                 
      if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)       
ffc07b90:	81 3f 00 5c 	lwz     r9,92(r31)                             
ffc07b94:	81 1f 00 64 	lwz     r8,100(r31)                            
            % tty->rawInBuf.Size) > tty->highwater) &&                
ffc07b98:	81 5f 00 64 	lwz     r10,100(r31)                           
      }                                                               
    } 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)       
ffc07b9c:	7d 29 40 50 	subf    r9,r9,r8                               
ffc07ba0:	7d 29 e2 14 	add     r9,r9,r28                              
            % tty->rawInBuf.Size) > tty->highwater) &&                
ffc07ba4:	7d 09 53 96 	divwu   r8,r9,r10                              
ffc07ba8:	7d 48 51 d6 	mullw   r10,r8,r10                             
ffc07bac:	7d 4a 48 50 	subf    r10,r10,r9                             
      }                                                               
    } 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)       
ffc07bb0:	81 3f 00 c0 	lwz     r9,192(r31)                            
ffc07bb4:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc07bb8:	40 9d 00 9c 	ble-    cr7,ffc07c54 <rtems_termios_enqueue_raw_characters+0x258><== ALWAYS TAKEN
            % tty->rawInBuf.Size) > tty->highwater) &&                
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
ffc07bbc:	81 3f 00 b8 	lwz     r9,184(r31)                            <== 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) &&                
ffc07bc0:	71 2a 00 01 	andi.   r10,r9,1                               <== NOT EXECUTED
ffc07bc4:	40 82 00 90 	bne-    ffc07c54 <rtems_termios_enqueue_raw_characters+0x258><== NOT EXECUTED
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
ffc07bc8:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc07bcc:	61 29 00 01 	ori     r9,r9,1                                <== NOT EXECUTED
ffc07bd0:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
ffc07bd4:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc07bd8:	71 29 04 02 	andi.   r9,r9,1026                             <== NOT EXECUTED
ffc07bdc:	2f 89 04 00 	cmpwi   cr7,r9,1024                            <== NOT EXECUTED
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
ffc07be0:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
      if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)       
            % tty->rawInBuf.Size) > tty->highwater) &&                
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
ffc07be4:	40 be 00 40 	bne+    cr7,ffc07c24 <rtems_termios_enqueue_raw_characters+0x228><== NOT EXECUTED
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
ffc07be8:	71 2a 00 20 	andi.   r10,r9,32                              <== NOT EXECUTED
ffc07bec:	40 82 00 10 	bne-    ffc07bfc <rtems_termios_enqueue_raw_characters+0x200><== NOT EXECUTED
ffc07bf0:	81 3f 00 94 	lwz     r9,148(r31)                            <== NOT EXECUTED
ffc07bf4:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc07bf8:	40 9e 00 5c 	bne-    cr7,ffc07c54 <rtems_termios_enqueue_raw_characters+0x258><== 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;                             
ffc07bfc:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
ffc07c00:	7e e4 bb 78 	mr      r4,r23                                 <== NOT EXECUTED
ffc07c04:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc07c08:	38 a0 00 01 	li      r5,1                                   <== 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;                             
ffc07c0c:	61 29 00 02 	ori     r9,r9,2                                <== NOT EXECUTED
ffc07c10:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
ffc07c14:	81 3f 00 a4 	lwz     r9,164(r31)                            <== NOT EXECUTED
ffc07c18:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc07c1c:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc07c20:	48 00 00 34 	b       ffc07c54 <rtems_termios_enqueue_raw_characters+0x258><== NOT EXECUTED
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
ffc07c24:	71 29 01 04 	andi.   r9,r9,260                              <== NOT EXECUTED
ffc07c28:	2f 89 01 00 	cmpwi   cr7,r9,256                             <== NOT EXECUTED
ffc07c2c:	40 be 00 28 	bne+    cr7,ffc07c54 <rtems_termios_enqueue_raw_characters+0x258><== NOT EXECUTED
          tty->flow_ctrl |= FL_IRTSOFF;                               
ffc07c30:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc07c34:	61 29 00 04 	ori     r9,r9,4                                <== NOT EXECUTED
ffc07c38:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
ffc07c3c:	81 3f 00 ac 	lwz     r9,172(r31)                            <== NOT EXECUTED
ffc07c40:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc07c44:	41 9e 00 10 	beq-    cr7,ffc07c54 <rtems_termios_enqueue_raw_characters+0x258><== NOT EXECUTED
            tty->device.stopRemoteTx(tty->minor);                     
ffc07c48:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc07c4c:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc07c50:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc07c54:	7e c0 01 24 	mtmsr   r22                                    
      }                                                               
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
ffc07c58:	81 3f 00 5c 	lwz     r9,92(r31)                             
ffc07c5c:	7f 9c 48 00 	cmpw    cr7,r28,r9                             
ffc07c60:	40 be 00 0c 	bne+    cr7,ffc07c6c <rtems_termios_enqueue_raw_characters+0x270><== ALWAYS TAKEN
        dropped++;                                                    
ffc07c64:	3b bd 00 01 	addi    r29,r29,1                              <== NOT EXECUTED
ffc07c68:	48 00 00 40 	b       ffc07ca8 <rtems_termios_enqueue_raw_characters+0x2ac><== NOT EXECUTED
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
ffc07c6c:	81 3f 00 58 	lwz     r9,88(r31)                             
ffc07c70:	7f 69 e1 ae 	stbx    r27,r9,r28                             
        tty->rawInBuf.Tail = newTail;                                 
                                                                      
        /*                                                            
         * check to see if rcv wakeup callback was set                
         */                                                           
        if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
ffc07c74:	81 3f 00 e4 	lwz     r9,228(r31)                            
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
        tty->rawInBuf.Tail = newTail;                                 
ffc07c78:	93 9f 00 60 	stw     r28,96(r31)                            
                                                                      
        /*                                                            
         * check to see if rcv wakeup callback was set                
         */                                                           
        if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
ffc07c7c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07c80:	40 9e 00 28 	bne-    cr7,ffc07ca8 <rtems_termios_enqueue_raw_characters+0x2ac><== NEVER TAKEN
ffc07c84:	81 3f 00 dc 	lwz     r9,220(r31)                            
ffc07c88:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07c8c:	41 9e 00 1c 	beq-    cr7,ffc07ca8 <rtems_termios_enqueue_raw_characters+0x2ac><== ALWAYS TAKEN
          (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 
ffc07c90:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc07c94:	7f 03 c3 78 	mr      r3,r24                                 <== NOT EXECUTED
ffc07c98:	80 9f 00 e0 	lwz     r4,224(r31)                            <== NOT EXECUTED
ffc07c9c:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
          tty->tty_rcvwakeup = 1;                                     
ffc07ca0:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc07ca4:	91 3f 00 e4 	stw     r9,228(r31)                            <== NOT EXECUTED
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
ffc07ca8:	7f 9e c8 00 	cmpw    cr7,r30,r25                            
ffc07cac:	40 9e fe 08 	bne+    cr7,ffc07ab4 <rtems_termios_enqueue_raw_characters+0xb8>
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
ffc07cb0:	81 3f 00 78 	lwz     r9,120(r31)                            
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
ffc07cb4:	80 7f 00 68 	lwz     r3,104(r31)                            
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
ffc07cb8:	7d 29 ea 14 	add     r9,r9,r29                              
ffc07cbc:	91 3f 00 78 	stw     r9,120(r31)                            
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
ffc07cc0:	48 00 0d 11 	bl      ffc089d0 <rtems_semaphore_release>     
  return dropped;                                                     
ffc07cc4:	48 00 00 0c 	b       ffc07cd0 <rtems_termios_enqueue_raw_characters+0x2d4>
 *       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)
{                                                                     
ffc07cc8:	3b 40 00 01 	li      r26,1                                  
ffc07ccc:	4b ff fe 4c 	b       ffc07b18 <rtems_termios_enqueue_raw_characters+0x11c>
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
  return dropped;                                                     
}                                                                     
ffc07cd0:	39 61 00 30 	addi    r11,r1,48                              
ffc07cd4:	7f a3 eb 78 	mr      r3,r29                                 
ffc07cd8:	4b ff 88 c8 	b       ffc005a0 <_restgpr_22_x>               
                                                                      

ffc069d4 <rtems_termios_ioctl>: } } rtems_status_code rtems_termios_ioctl (void *arg) {
ffc069d4:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc069d8:	7c 08 02 a6 	mflr    r0                                     
  struct rtems_termios_tty *tty = args->iop->data1;                   
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
  rtems_status_code sc;                                               
                                                                      
  args->ioctl_return = 0;                                             
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc069dc:	38 80 00 00 	li      r4,0                                   
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
ffc069e0:	90 01 00 1c 	stw     r0,28(r1)                              
  struct rtems_termios_tty *tty = args->iop->data1;                   
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
  rtems_status_code sc;                                               
                                                                      
  args->ioctl_return = 0;                                             
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc069e4:	38 a0 00 00 	li      r5,0                                   
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc069e8:	81 23 00 00 	lwz     r9,0(r3)                               
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
ffc069ec:	bf 81 00 08 	stmw    r28,8(r1)                              
ffc069f0:	7c 7d 1b 78 	mr      r29,r3                                 
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc069f4:	83 e9 00 30 	lwz     r31,48(r9)                             
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
  rtems_status_code sc;                                               
                                                                      
  args->ioctl_return = 0;                                             
ffc069f8:	39 20 00 00 	li      r9,0                                   
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;
ffc069fc:	83 83 00 08 	lwz     r28,8(r3)                              
  rtems_status_code sc;                                               
                                                                      
  args->ioctl_return = 0;                                             
ffc06a00:	91 23 00 0c 	stw     r9,12(r3)                              
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc06a04:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc06a08:	48 00 1e a5 	bl      ffc088ac <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc06a0c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc06a10:	40 82 04 28 	bne-    ffc06e38 <rtems_termios_ioctl+0x464>   <== NEVER TAKEN
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
ffc06a14:	81 3d 00 04 	lwz     r9,4(r29)                              
ffc06a18:	2f 89 00 05 	cmpwi   cr7,r9,5                               
ffc06a1c:	41 9e 03 34 	beq-    cr7,ffc06d50 <rtems_termios_ioctl+0x37c>
ffc06a20:	2b 89 00 05 	cmplwi  cr7,r9,5                               
ffc06a24:	41 9d 00 34 	bgt-    cr7,ffc06a58 <rtems_termios_ioctl+0x84>
ffc06a28:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc06a2c:	41 9e 00 b4 	beq-    cr7,ffc06ae0 <rtems_termios_ioctl+0x10c>
ffc06a30:	2b 89 00 02 	cmplwi  cr7,r9,2                               
ffc06a34:	41 9d 00 10 	bgt-    cr7,ffc06a44 <rtems_termios_ioctl+0x70>
ffc06a38:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc06a3c:	40 be 00 58 	bne+    cr7,ffc06a94 <rtems_termios_ioctl+0xc0><== NEVER TAKEN
ffc06a40:	48 00 00 8c 	b       ffc06acc <rtems_termios_ioctl+0xf8>    
ffc06a44:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc06a48:	41 9e 02 84 	beq-    cr7,ffc06ccc <rtems_termios_ioctl+0x2f8>
ffc06a4c:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc06a50:	40 be 00 44 	bne+    cr7,ffc06a94 <rtems_termios_ioctl+0xc0><== NEVER TAKEN
ffc06a54:	48 00 03 10 	b       ffc06d64 <rtems_termios_ioctl+0x390>   
ffc06a58:	3d 40 40 04 	lis     r10,16388                              
ffc06a5c:	61 4a 66 7f 	ori     r10,r10,26239                          
ffc06a60:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc06a64:	41 9e 03 94 	beq-    cr7,ffc06df8 <rtems_termios_ioctl+0x424><== NEVER TAKEN
ffc06a68:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc06a6c:	41 9d 00 10 	bgt-    cr7,ffc06a7c <rtems_termios_ioctl+0xa8>
ffc06a70:	2f 89 00 06 	cmpwi   cr7,r9,6                               
ffc06a74:	40 be 00 20 	bne+    cr7,ffc06a94 <rtems_termios_ioctl+0xc0>
ffc06a78:	48 00 02 6c 	b       ffc06ce4 <rtems_termios_ioctl+0x310>   
ffc06a7c:	6d 2a 40 04 	xoris   r10,r9,16388                           
ffc06a80:	2f 8a 74 1a 	cmpwi   cr7,r10,29722                          
ffc06a84:	41 9e 03 64 	beq-    cr7,ffc06de8 <rtems_termios_ioctl+0x414>
ffc06a88:	6d 2a 80 04 	xoris   r10,r9,32772                           
ffc06a8c:	2f 8a 74 1b 	cmpwi   cr7,r10,29723                          
ffc06a90:	41 9e 02 e8 	beq-    cr7,ffc06d78 <rtems_termios_ioctl+0x3a4><== ALWAYS TAKEN
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
ffc06a94:	81 3f 00 cc 	lwz     r9,204(r31)                            
ffc06a98:	3d 40 00 00 	lis     r10,0                                  
ffc06a9c:	39 4a 28 bc 	addi    r10,r10,10428                          
ffc06aa0:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc06aa4:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc06aa8:	81 29 00 18 	lwz     r9,24(r9)                              
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
    }                                                                 
    else {                                                            
      sc = RTEMS_INVALID_NUMBER;                                      
ffc06aac:	3b c0 00 0a 	li      r30,10                                 
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
ffc06ab0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06ab4:	41 9e 03 7c 	beq-    cr7,ffc06e30 <rtems_termios_ioctl+0x45c>
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
ffc06ab8:	7f e3 fb 78 	mr      r3,r31                                 
ffc06abc:	7d 29 03 a6 	mtctr   r9                                     
ffc06ac0:	7f a4 eb 78 	mr      r4,r29                                 
ffc06ac4:	4e 80 04 21 	bctrl                                          
ffc06ac8:	48 00 03 18 	b       ffc06de0 <rtems_termios_ioctl+0x40c>   
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
    break;                                                            
                                                                      
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
ffc06acc:	80 7d 00 08 	lwz     r3,8(r29)                              
ffc06ad0:	38 9f 00 30 	addi    r4,r31,48                              
ffc06ad4:	38 a0 00 24 	li      r5,36                                  
ffc06ad8:	48 00 9a 65 	bl      ffc1053c <memcpy>                      
    break;                                                            
ffc06adc:	48 00 03 54 	b       ffc06e30 <rtems_termios_ioctl+0x45c>   
                                                                      
  case RTEMS_IO_SET_ATTRIBUTES:                                       
    tty->termios = *(struct termios *)args->buffer;                   
ffc06ae0:	80 9d 00 08 	lwz     r4,8(r29)                              
ffc06ae4:	38 7f 00 30 	addi    r3,r31,48                              
ffc06ae8:	38 a0 00 24 	li      r5,36                                  
ffc06aec:	48 00 9a 51 	bl      ffc1053c <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) &&                                 
ffc06af0:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc06af4:	71 28 02 00 	andi.   r8,r9,512                              
ffc06af8:	41 82 00 70 	beq-    ffc06b68 <rtems_termios_ioctl+0x194>   
      !(tty->termios.c_iflag & IXON)) {                               
ffc06afc:	81 3f 00 30 	lwz     r9,48(r31)                             
  /*                                                                  
   * check for flow control options to be switched off                
   */                                                                 
                                                                      
  /* check for outgoing XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXON) &&                                 
ffc06b00:	71 2a 04 00 	andi.   r10,r9,1024                            
ffc06b04:	40 82 00 64 	bne-    ffc06b68 <rtems_termios_ioctl+0x194>   
      !(tty->termios.c_iflag & IXON)) {                               
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);                       
ffc06b08:	81 5f 00 b8 	lwz     r10,184(r31)                           
ffc06b0c:	39 20 fd ef 	li      r9,-529                                
ffc06b10:	7d 49 48 38 	and     r9,r10,r9                              
ffc06b14:	91 3f 00 b8 	stw     r9,184(r31)                            
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
ffc06b18:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc06b1c:	71 28 00 20 	andi.   r8,r9,32                               
ffc06b20:	41 a2 00 48 	beq+    ffc06b68 <rtems_termios_ioctl+0x194>   <== ALWAYS TAKEN
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
ffc06b24:	4b ff f5 a9 	bl      ffc060cc <ppc_interrupt_disable>       <== NOT EXECUTED
ffc06b28:	7c 7d 1b 78 	mr      r29,r3                                 <== NOT EXECUTED
      tty->flow_ctrl &= ~FL_OSTOP;                                    
ffc06b2c:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc06b30:	55 29 06 f2 	rlwinm  r9,r9,0,27,25                          <== NOT EXECUTED
ffc06b34:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
ffc06b38:	81 3f 00 94 	lwz     r9,148(r31)                            <== NOT EXECUTED
ffc06b3c:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc06b40:	41 be 00 24 	beq+    cr7,ffc06b64 <rtems_termios_ioctl+0x190><== NOT EXECUTED
        /* if chars available, call write function... */              
        (*tty->device.write)(                                         
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
ffc06b44:	80 9f 00 84 	lwz     r4,132(r31)                            <== 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)(                                         
ffc06b48:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc06b4c:	81 5f 00 7c 	lwz     r10,124(r31)                           <== NOT EXECUTED
ffc06b50:	81 3f 00 a4 	lwz     r9,164(r31)                            <== NOT EXECUTED
ffc06b54:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc06b58:	7c 8a 22 14 	add     r4,r10,r4                              <== NOT EXECUTED
ffc06b5c:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc06b60:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc06b64:	7f a0 01 24 	mtmsr   r29                                    <== NOT EXECUTED
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
    }                                                                 
  }                                                                   
  /* check for incoming XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXOF) && !(tty->termios.c_iflag & IXOFF)) {
ffc06b68:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc06b6c:	71 28 04 00 	andi.   r8,r9,1024                             
ffc06b70:	41 82 00 28 	beq-    ffc06b98 <rtems_termios_ioctl+0x1c4>   
ffc06b74:	81 3f 00 30 	lwz     r9,48(r31)                             
ffc06b78:	71 2a 10 00 	andi.   r10,r9,4096                            
ffc06b7c:	40 82 00 1c 	bne-    ffc06b98 <rtems_termios_ioctl+0x1c4>   <== NEVER TAKEN
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXOF);                                    
ffc06b80:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc06b84:	55 29 05 a8 	rlwinm  r9,r9,0,22,20                          
ffc06b88:	91 3f 00 b8 	stw     r9,184(r31)                            
    /* FIXME: what happens, if we had sent XOFF but not yet XON? */   
    tty->flow_ctrl &= ~(FL_ISNTXOF);                                  
ffc06b8c:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc06b90:	55 29 07 fa 	rlwinm  r9,r9,0,31,29                          
ffc06b94:	91 3f 00 b8 	stw     r9,184(r31)                            
  }                                                                   
                                                                      
  /* check for incoming RTS/CTS flow control switched off */          
  if (( tty->flow_ctrl & FL_MDRTS) && !(tty->termios.c_cflag & CRTSCTS)) {
ffc06b98:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc06b9c:	71 28 01 00 	andi.   r8,r9,256                              
ffc06ba0:	41 82 00 4c 	beq-    ffc06bec <rtems_termios_ioctl+0x218>   <== ALWAYS TAKEN
ffc06ba4:	81 3f 00 38 	lwz     r9,56(r31)                             <== NOT EXECUTED
ffc06ba8:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc06bac:	41 9c 00 40 	blt-    cr7,ffc06bec <rtems_termios_ioctl+0x218><== NOT EXECUTED
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDRTS);                                    
ffc06bb0:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc06bb4:	55 29 06 2c 	rlwinm  r9,r9,0,24,22                          <== NOT EXECUTED
ffc06bb8:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
                                                                      
    /* restart remote Tx, if it was stopped */                        
    if ((tty->flow_ctrl & FL_IRTSOFF) && (tty->device.startRemoteTx != NULL)) {
ffc06bbc:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc06bc0:	71 2a 00 04 	andi.   r10,r9,4                               <== NOT EXECUTED
ffc06bc4:	41 82 00 1c 	beq-    ffc06be0 <rtems_termios_ioctl+0x20c>   <== NOT EXECUTED
ffc06bc8:	81 3f 00 b0 	lwz     r9,176(r31)                            <== NOT EXECUTED
ffc06bcc:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc06bd0:	41 9e 00 10 	beq-    cr7,ffc06be0 <rtems_termios_ioctl+0x20c><== NOT EXECUTED
      tty->device.startRemoteTx(tty->minor);                          
ffc06bd4:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc06bd8:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc06bdc:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
    }                                                                 
    tty->flow_ctrl &= ~(FL_IRTSOFF);                                  
ffc06be0:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc06be4:	55 29 07 b8 	rlwinm  r9,r9,0,30,28                          <== NOT EXECUTED
ffc06be8:	91 3f 00 b8 	stw     r9,184(r31)                            <== 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) {                               
ffc06bec:	81 3f 00 38 	lwz     r9,56(r31)                             
ffc06bf0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06bf4:	40 bc 00 10 	bge+    cr7,ffc06c04 <rtems_termios_ioctl+0x230><== ALWAYS TAKEN
    tty->flow_ctrl |= FL_MDRTS;                                       
ffc06bf8:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc06bfc:	61 29 01 00 	ori     r9,r9,256                              <== NOT EXECUTED
ffc06c00:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
  }                                                                   
  /* check for incoming XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXOFF) {                                 
ffc06c04:	81 3f 00 30 	lwz     r9,48(r31)                             
ffc06c08:	71 28 10 00 	andi.   r8,r9,4096                             
ffc06c0c:	41 82 00 10 	beq-    ffc06c1c <rtems_termios_ioctl+0x248>   
    tty->flow_ctrl |= FL_MDXOF;                                       
ffc06c10:	81 5f 00 b8 	lwz     r10,184(r31)                           
ffc06c14:	61 4a 04 00 	ori     r10,r10,1024                           
ffc06c18:	91 5f 00 b8 	stw     r10,184(r31)                           
  }                                                                   
  /* check for outgoing XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXON) {                                  
ffc06c1c:	71 2a 04 00 	andi.   r10,r9,1024                            
ffc06c20:	41 82 00 10 	beq-    ffc06c30 <rtems_termios_ioctl+0x25c>   
    tty->flow_ctrl |= FL_MDXON;                                       
ffc06c24:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc06c28:	61 29 02 00 	ori     r9,r9,512                              
ffc06c2c:	91 3f 00 b8 	stw     r9,184(r31)                            
    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) {                              
ffc06c30:	83 bf 00 3c 	lwz     r29,60(r31)                            
ffc06c34:	73 bd 00 02 	andi.   r29,r29,2                              
ffc06c38:	41 82 00 0c 	beq-    ffc06c44 <rtems_termios_ioctl+0x270>   
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
ffc06c3c:	39 20 00 00 	li      r9,0                                   
ffc06c40:	48 00 00 54 	b       ffc06c94 <rtems_termios_ioctl+0x2c0>   
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
ffc06c44:	8b 9f 00 46 	lbz     r28,70(r31)                            
                    rtems_clock_get_ticks_per_second() / 10;          
ffc06c48:	48 00 15 65 	bl      ffc081ac <rtems_clock_get_ticks_per_second>
ffc06c4c:	39 20 00 0a 	li      r9,10                                  
ffc06c50:	89 5f 00 47 	lbz     r10,71(r31)                            
    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] *                    
ffc06c54:	7c 63 e1 d6 	mullw   r3,r3,r28                              
                    rtems_clock_get_ticks_per_second() / 10;          
ffc06c58:	7c 63 4b 96 	divwu   r3,r3,r9                               
      if (tty->termios.c_cc[VTIME]) {                                 
ffc06c5c:	89 3f 00 46 	lbz     r9,70(r31)                             
ffc06c60:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    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] *                    
ffc06c64:	90 7f 00 54 	stw     r3,84(r31)                             
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
ffc06c68:	41 9e 00 24 	beq-    cr7,ffc06c8c <rtems_termios_ioctl+0x2b8>
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
        if (tty->termios.c_cc[VMIN])                                  
ffc06c6c:	71 48 00 ff 	andi.   r8,r10,255                             
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
ffc06c70:	93 bf 00 6c 	stw     r29,108(r31)                           
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
ffc06c74:	90 7f 00 70 	stw     r3,112(r31)                            
        if (tty->termios.c_cc[VMIN])                                  
ffc06c78:	41 82 00 0c 	beq-    ffc06c84 <rtems_termios_ioctl+0x2b0>   
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
ffc06c7c:	93 bf 00 74 	stw     r29,116(r31)                           
ffc06c80:	48 00 00 2c 	b       ffc06cac <rtems_termios_ioctl+0x2d8>   
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
ffc06c84:	90 7f 00 74 	stw     r3,116(r31)                            
ffc06c88:	48 00 00 24 	b       ffc06cac <rtems_termios_ioctl+0x2d8>   
      } else {                                                        
        if (tty->termios.c_cc[VMIN]) {                                
ffc06c8c:	71 48 00 ff 	andi.   r8,r10,255                             
ffc06c90:	41 82 00 14 	beq-    ffc06ca4 <rtems_termios_ioctl+0x2d0>   <== ALWAYS TAKEN
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
ffc06c94:	91 3f 00 6c 	stw     r9,108(r31)                            
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
ffc06c98:	91 3f 00 70 	stw     r9,112(r31)                            
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
ffc06c9c:	91 3f 00 74 	stw     r9,116(r31)                            
ffc06ca0:	48 00 00 0c 	b       ffc06cac <rtems_termios_ioctl+0x2d8>   
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
ffc06ca4:	39 20 00 01 	li      r9,1                                   
ffc06ca8:	91 3f 00 6c 	stw     r9,108(r31)                            
        }                                                             
      }                                                               
    }                                                                 
    if (tty->device.setAttributes)                                    
ffc06cac:	81 3f 00 a8 	lwz     r9,168(r31)                            
ffc06cb0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06cb4:	41 9e 01 7c 	beq-    cr7,ffc06e30 <rtems_termios_ioctl+0x45c>
      (*tty->device.setAttributes)(tty->minor, &tty->termios);        
ffc06cb8:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc06cbc:	38 9f 00 30 	addi    r4,r31,48                              
ffc06cc0:	7d 29 03 a6 	mtctr   r9                                     
ffc06cc4:	4e 80 04 21 	bctrl                                          
ffc06cc8:	48 00 01 68 	b       ffc06e30 <rtems_termios_ioctl+0x45c>   
drainOutput (struct rtems_termios_tty *tty)                           
{                                                                     
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
ffc06ccc:	81 3f 00 b4 	lwz     r9,180(r31)                            
ffc06cd0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06cd4:	41 be 01 5c 	beq+    cr7,ffc06e30 <rtems_termios_ioctl+0x45c><== ALWAYS TAKEN
ffc06cd8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc06cdc:	4b ff f6 65 	bl      ffc06340 <drainOutput.part.0>          <== NOT EXECUTED
ffc06ce0:	48 00 01 50 	b       ffc06e30 <rtems_termios_ioctl+0x45c>   <== NOT EXECUTED
  case RTEMS_IO_TCDRAIN:                                              
    drainOutput (tty);                                                
    break;                                                            
                                                                      
  case RTEMS_IO_TCFLUSH:                                              
    switch ((intptr_t) args->buffer) {                                
ffc06ce4:	81 3d 00 08 	lwz     r9,8(r29)                              
ffc06ce8:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc06cec:	41 9e 00 24 	beq-    cr7,ffc06d10 <rtems_termios_ioctl+0x33c>
ffc06cf0:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc06cf4:	41 9e 00 30 	beq-    cr7,ffc06d24 <rtems_termios_ioctl+0x350>
ffc06cf8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06cfc:	40 9e 01 30 	bne-    cr7,ffc06e2c <rtems_termios_ioctl+0x458>
static void                                                           
flushInput (struct rtems_termios_tty *tty)                            
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
ffc06d00:	4b ff f3 cd 	bl      ffc060cc <ppc_interrupt_disable>       
  tty->rawInBuf.Tail = 0;                                             
ffc06d04:	93 df 00 60 	stw     r30,96(r31)                            
  tty->rawInBuf.Head = 0;                                             
ffc06d08:	93 df 00 5c 	stw     r30,92(r31)                            
ffc06d0c:	48 00 00 3c 	b       ffc06d48 <rtems_termios_ioctl+0x374>   
static void                                                           
flushOutput (struct rtems_termios_tty *tty)                           
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
ffc06d10:	4b ff f3 bd 	bl      ffc060cc <ppc_interrupt_disable>       
  tty->rawOutBuf.Tail = 0;                                            
ffc06d14:	93 df 00 84 	stw     r30,132(r31)                           
  tty->rawOutBuf.Head = 0;                                            
  tty->rawOutBufState = rob_idle;                                     
ffc06d18:	93 df 00 94 	stw     r30,148(r31)                           
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
  tty->rawOutBuf.Tail = 0;                                            
  tty->rawOutBuf.Head = 0;                                            
ffc06d1c:	93 df 00 80 	stw     r30,128(r31)                           
ffc06d20:	48 00 00 28 	b       ffc06d48 <rtems_termios_ioctl+0x374>   
static void                                                           
flushOutput (struct rtems_termios_tty *tty)                           
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
ffc06d24:	4b ff f3 a9 	bl      ffc060cc <ppc_interrupt_disable>       
  tty->rawOutBuf.Tail = 0;                                            
ffc06d28:	93 df 00 84 	stw     r30,132(r31)                           
  tty->rawOutBuf.Head = 0;                                            
  tty->rawOutBufState = rob_idle;                                     
ffc06d2c:	93 df 00 94 	stw     r30,148(r31)                           
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
  tty->rawOutBuf.Tail = 0;                                            
  tty->rawOutBuf.Head = 0;                                            
ffc06d30:	93 df 00 80 	stw     r30,128(r31)                           
ffc06d34:	7c 60 01 24 	mtmsr   r3                                     
static void                                                           
flushInput (struct rtems_termios_tty *tty)                            
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
ffc06d38:	4b ff f3 95 	bl      ffc060cc <ppc_interrupt_disable>       
  tty->rawInBuf.Tail = 0;                                             
ffc06d3c:	39 20 00 00 	li      r9,0                                   
ffc06d40:	91 3f 00 60 	stw     r9,96(r31)                             
  tty->rawInBuf.Head = 0;                                             
ffc06d44:	91 3f 00 5c 	stw     r9,92(r31)                             
ffc06d48:	7c 60 01 24 	mtmsr   r3                                     
ffc06d4c:	48 00 00 e4 	b       ffc06e30 <rtems_termios_ioctl+0x45c>   
        break;                                                        
    }                                                                 
    break;                                                            
                                                                      
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
ffc06d50:	81 1c 00 00 	lwz     r8,0(r28)                              
ffc06d54:	81 3c 00 04 	lwz     r9,4(r28)                              
ffc06d58:	91 1f 00 d4 	stw     r8,212(r31)                            
ffc06d5c:	91 3f 00 d8 	stw     r9,216(r31)                            
    break;                                                            
ffc06d60:	48 00 00 d0 	b       ffc06e30 <rtems_termios_ioctl+0x45c>   
                                                                      
  case RTEMS_IO_RCVWAKEUP:                                            
    tty->tty_rcv = *wakeup;                                           
ffc06d64:	81 3c 00 00 	lwz     r9,0(r28)                              
ffc06d68:	81 5c 00 04 	lwz     r10,4(r28)                             
ffc06d6c:	91 3f 00 dc 	stw     r9,220(r31)                            
ffc06d70:	91 5f 00 e0 	stw     r10,224(r31)                           
    break;                                                            
ffc06d74:	48 00 00 bc 	b       ffc06e30 <rtems_termios_ioctl+0x45c>   
#if 1 /* FIXME */                                                     
  case TIOCSETD:                                                      
    /*                                                                
     * close old line discipline                                      
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
ffc06d78:	81 3f 00 cc 	lwz     r9,204(r31)                            
ffc06d7c:	3d 40 00 00 	lis     r10,0                                  
ffc06d80:	39 4a 28 bc 	addi    r10,r10,10428                          
ffc06d84:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc06d88:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc06d8c:	81 29 00 04 	lwz     r9,4(r9)                               
ffc06d90:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06d94:	41 9e 00 14 	beq-    cr7,ffc06da8 <rtems_termios_ioctl+0x3d4>
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
ffc06d98:	7f e3 fb 78 	mr      r3,r31                                 
ffc06d9c:	7d 29 03 a6 	mtctr   r9                                     
ffc06da0:	4e 80 04 21 	bctrl                                          
ffc06da4:	7c 7e 1b 78 	mr      r30,r3                                 
    }                                                                 
    tty->t_line=*(int*)(args->buffer);                                
ffc06da8:	81 3d 00 08 	lwz     r9,8(r29)                              
    tty->t_sc = NULL; /* ensure that no more valid data */            
ffc06dac:	39 40 00 00 	li      r10,0                                  
     * 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);                                
ffc06db0:	81 29 00 00 	lwz     r9,0(r9)                               
    tty->t_sc = NULL; /* ensure that no more valid data */            
ffc06db4:	91 5f 00 d0 	stw     r10,208(r31)                           
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
ffc06db8:	3d 40 00 00 	lis     r10,0                                  
ffc06dbc:	39 4a 28 bc 	addi    r10,r10,10428                          
     * 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);                                
ffc06dc0:	91 3f 00 cc 	stw     r9,204(r31)                            
    tty->t_sc = NULL; /* ensure that no more valid data */            
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
ffc06dc4:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc06dc8:	7d 2a 48 2e 	lwzx    r9,r10,r9                              
ffc06dcc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06dd0:	41 9e 00 60 	beq-    cr7,ffc06e30 <rtems_termios_ioctl+0x45c>
      sc = rtems_termios_linesw[tty->t_line].l_open(tty);             
ffc06dd4:	7f e3 fb 78 	mr      r3,r31                                 
ffc06dd8:	7d 29 03 a6 	mtctr   r9                                     
ffc06ddc:	4e 80 04 21 	bctrl                                          
ffc06de0:	7c 7e 1b 78 	mr      r30,r3                                 
ffc06de4:	48 00 00 4c 	b       ffc06e30 <rtems_termios_ioctl+0x45c>   
    }                                                                 
    break;                                                            
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
ffc06de8:	81 3f 00 cc 	lwz     r9,204(r31)                            
ffc06dec:	81 5d 00 08 	lwz     r10,8(r29)                             
ffc06df0:	91 2a 00 00 	stw     r9,0(r10)                              
    break;                                                            
ffc06df4:	48 00 00 3c 	b       ffc06e30 <rtems_termios_ioctl+0x45c>   
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
ffc06df8:	81 5f 00 60 	lwz     r10,96(r31)                            <== NOT EXECUTED
ffc06dfc:	81 3f 00 5c 	lwz     r9,92(r31)                             <== NOT EXECUTED
      if ( rawnc < 0 )                                                
ffc06e00:	7d 29 50 51 	subf.   r9,r9,r10                              <== NOT EXECUTED
ffc06e04:	40 a0 00 0c 	bge+    ffc06e10 <rtems_termios_ioctl+0x43c>   <== NOT EXECUTED
        rawnc += tty->rawInBuf.Size;                                  
ffc06e08:	81 5f 00 64 	lwz     r10,100(r31)                           <== NOT EXECUTED
ffc06e0c:	7d 29 52 14 	add     r9,r9,r10                              <== NOT EXECUTED
      /* Half guess that this is the right operation */               
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
ffc06e10:	81 1f 00 20 	lwz     r8,32(r31)                             <== NOT EXECUTED
ffc06e14:	81 5f 00 24 	lwz     r10,36(r31)                            <== NOT EXECUTED
ffc06e18:	80 fd 00 08 	lwz     r7,8(r29)                              <== NOT EXECUTED
ffc06e1c:	7d 4a 40 50 	subf    r10,r10,r8                             <== NOT EXECUTED
ffc06e20:	7d 2a 4a 14 	add     r9,r10,r9                              <== NOT EXECUTED
ffc06e24:	91 27 00 00 	stw     r9,0(r7)                               <== NOT EXECUTED
    }                                                                 
    break;                                                            
ffc06e28:	48 00 00 08 	b       ffc06e30 <rtems_termios_ioctl+0x45c>   <== NOT EXECUTED
      case TCIOFLUSH:                                                 
        flushOutput (tty);                                            
        flushInput (tty);                                             
        break;                                                        
      default:                                                        
        sc = RTEMS_INVALID_NAME;                                      
ffc06e2c:	3b c0 00 03 	li      r30,3                                  
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
    }                                                                 
    break;                                                            
  }                                                                   
                                                                      
  rtems_semaphore_release (tty->osem);                                
ffc06e30:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc06e34:	48 00 1b 9d 	bl      ffc089d0 <rtems_semaphore_release>     
  return sc;                                                          
}                                                                     
ffc06e38:	39 61 00 18 	addi    r11,r1,24                              
ffc06e3c:	7f c3 f3 78 	mr      r3,r30                                 
ffc06e40:	4b ff 97 78 	b       ffc005b8 <_restgpr_28_x>               
                                                                      

ffc063a4 <rtems_termios_open>: rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) {
ffc063a4:	94 21 ff d0 	stwu    r1,-48(r1)                             
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
ffc063a8:	3d 20 00 00 	lis     r9,0                                   
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
ffc063ac:	7c 08 02 a6 	mflr    r0                                     
ffc063b0:	be c1 00 08 	stmw    r22,8(r1)                              
ffc063b4:	7c 7b 1b 78 	mr      r27,r3                                 
ffc063b8:	7c 9a 23 78 	mr      r26,r4                                 
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
ffc063bc:	80 69 28 14 	lwz     r3,10260(r9)                           
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
ffc063c0:	7c b8 2b 78 	mr      r24,r5                                 
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
ffc063c4:	38 80 00 00 	li      r4,0                                   
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
ffc063c8:	90 01 00 34 	stw     r0,52(r1)                              
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
ffc063cc:	38 a0 00 00 	li      r5,0                                   
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
ffc063d0:	7c d6 33 78 	mr      r22,r6                                 
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
ffc063d4:	48 00 24 d9 	bl      ffc088ac <rtems_semaphore_obtain>      
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc063d8:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc063dc:	40 82 03 f4 	bne-    ffc067d0 <rtems_termios_open+0x42c>    <== NEVER TAKEN
    return sc;                                                        
                                                                      
  for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 
ffc063e0:	3d 20 00 00 	lis     r9,0                                   
ffc063e4:	83 a9 28 1c 	lwz     r29,10268(r9)                          
ffc063e8:	7f bf eb 78 	mr      r31,r29                                
ffc063ec:	48 00 00 20 	b       ffc0640c <rtems_termios_open+0x68>     
    if ((tty->major == major) && (tty->minor == minor))               
ffc063f0:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc063f4:	7f 89 d8 00 	cmpw    cr7,r9,r27                             
ffc063f8:	40 be 00 10 	bne+    cr7,ffc06408 <rtems_termios_open+0x64> 
ffc063fc:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc06400:	7f 89 d0 00 	cmpw    cr7,r9,r26                             
ffc06404:	41 9e 03 1c 	beq-    cr7,ffc06720 <rtems_termios_open+0x37c><== ALWAYS TAKEN
  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) { 
ffc06408:	83 ff 00 00 	lwz     r31,0(r31)                             
ffc0640c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc06410:	40 9e ff e0 	bne+    cr7,ffc063f0 <rtems_termios_open+0x4c> 
ffc06414:	48 00 03 a4 	b       ffc067b8 <rtems_termios_open+0x414>    
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
ffc06418:	3d 20 00 00 	lis     r9,0                                   
ffc0641c:	3a e9 21 5c 	addi    r23,r9,8540                            
ffc06420:	81 29 21 5c 	lwz     r9,8540(r9)                            
ffc06424:	91 3f 00 64 	stw     r9,100(r31)                            
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
ffc06428:	80 7f 00 64 	lwz     r3,100(r31)                            
ffc0642c:	4b ff e4 cd 	bl      ffc048f8 <malloc>                      
    if (tty->rawInBuf.theBuf == NULL) {                               
ffc06430:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    }                                                                 
    /*                                                                
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
ffc06434:	90 7f 00 58 	stw     r3,88(r31)                             
ffc06438:	7c 7c 1b 78 	mr      r28,r3                                 
    if (tty->rawInBuf.theBuf == NULL) {                               
ffc0643c:	40 be 00 08 	bne+    cr7,ffc06444 <rtems_termios_open+0xa0> 
ffc06440:	48 00 00 4c 	b       ffc0648c <rtems_termios_open+0xe8>     
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
ffc06444:	81 37 00 04 	lwz     r9,4(r23)                              
ffc06448:	91 3f 00 88 	stw     r9,136(r31)                            
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
ffc0644c:	80 7f 00 88 	lwz     r3,136(r31)                            
ffc06450:	4b ff e4 a9 	bl      ffc048f8 <malloc>                      
    if (tty->rawOutBuf.theBuf == NULL) {                              
ffc06454:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
ffc06458:	90 7f 00 7c 	stw     r3,124(r31)                            
ffc0645c:	7c 79 1b 78 	mr      r25,r3                                 
    if (tty->rawOutBuf.theBuf == NULL) {                              
ffc06460:	40 be 00 08 	bne+    cr7,ffc06468 <rtems_termios_open+0xc4> 
ffc06464:	48 00 00 20 	b       ffc06484 <rtems_termios_open+0xe0>     
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
ffc06468:	80 77 00 08 	lwz     r3,8(r23)                              
ffc0646c:	4b ff e4 8d 	bl      ffc048f8 <malloc>                      
    if (tty->cbuf == NULL) {                                          
ffc06470:	2f 83 00 00 	cmpwi   cr7,r3,0                               
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
ffc06474:	90 7f 00 1c 	stw     r3,28(r31)                             
    if (tty->cbuf == NULL) {                                          
ffc06478:	40 be 00 30 	bne+    cr7,ffc064a8 <rtems_termios_open+0x104>
            free((void *)(tty->rawOutBuf.theBuf));                    
ffc0647c:	7f 23 cb 78 	mr      r3,r25                                 
ffc06480:	4b ff e0 dd 	bl      ffc0455c <free>                        
            free((void *)(tty->rawInBuf.theBuf));                     
ffc06484:	7f 83 e3 78 	mr      r3,r28                                 
ffc06488:	4b ff e0 d5 	bl      ffc0455c <free>                        
            free(tty);                                                
ffc0648c:	7f e3 fb 78 	mr      r3,r31                                 
ffc06490:	4b ff e0 cd 	bl      ffc0455c <free>                        
      rtems_semaphore_release (rtems_termios_ttyMutex);               
ffc06494:	3d 20 00 00 	lis     r9,0                                   
ffc06498:	80 69 28 14 	lwz     r3,10260(r9)                           
      return RTEMS_NO_MEMORY;                                         
ffc0649c:	3b c0 00 1a 	li      r30,26                                 
    tty->cbuf  = malloc (CBUFSIZE);                                   
    if (tty->cbuf == NULL) {                                          
            free((void *)(tty->rawOutBuf.theBuf));                    
            free((void *)(tty->rawInBuf.theBuf));                     
            free(tty);                                                
      rtems_semaphore_release (rtems_termios_ttyMutex);               
ffc064a0:	48 00 25 31 	bl      ffc089d0 <rtems_semaphore_release>     
      return RTEMS_NO_MEMORY;                                         
ffc064a4:	48 00 03 2c 	b       ffc067d0 <rtems_termios_open+0x42c>    
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
ffc064a8:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
    tty->tty_rcvwakeup  = 0;                                          
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
ffc064ac:	93 bf 00 00 	stw     r29,0(r31)                             
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * Initialize wakeup callbacks                                    
     */                                                               
    tty->tty_snd.sw_pfn = NULL;                                       
ffc064b0:	39 20 00 00 	li      r9,0                                   
ffc064b4:	91 3f 00 d4 	stw     r9,212(r31)                            
    tty->tty_snd.sw_arg = NULL;                                       
ffc064b8:	91 3f 00 d8 	stw     r9,216(r31)                            
    tty->tty_rcv.sw_pfn = NULL;                                       
ffc064bc:	91 3f 00 dc 	stw     r9,220(r31)                            
    tty->tty_rcv.sw_arg = NULL;                                       
ffc064c0:	91 3f 00 e0 	stw     r9,224(r31)                            
    tty->tty_rcvwakeup  = 0;                                          
ffc064c4:	91 3f 00 e4 	stw     r9,228(r31)                            
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
ffc064c8:	91 3f 00 04 	stw     r9,4(r31)                              
    if (rtems_termios_ttyHead != NULL)                                
ffc064cc:	41 9e 00 08 	beq-    cr7,ffc064d4 <rtems_termios_open+0x130>
      rtems_termios_ttyHead->back = tty;                              
ffc064d0:	93 fd 00 04 	stw     r31,4(r29)                             
    rtems_termios_ttyHead = tty;                                      
ffc064d4:	3d 20 00 00 	lis     r9,0                                   
ffc064d8:	93 e9 28 1c 	stw     r31,10268(r9)                          
    if (rtems_termios_ttyTail == NULL)                                
ffc064dc:	3d 20 00 00 	lis     r9,0                                   
ffc064e0:	81 49 28 18 	lwz     r10,10264(r9)                          
ffc064e4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc064e8:	40 be 00 08 	bne+    cr7,ffc064f0 <rtems_termios_open+0x14c>
      rtems_termios_ttyTail = tty;                                    
ffc064ec:	93 e9 28 18 	stw     r31,10264(r9)                          
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'i', c),                            
ffc064f0:	3f a0 00 00 	lis     r29,0                                  
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
      rtems_termios_ttyTail = tty;                                    
                                                                      
    tty->minor = minor;                                               
ffc064f4:	93 5f 00 10 	stw     r26,16(r31)                            
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'i', c),                            
ffc064f8:	3b bd 21 5c 	addi    r29,r29,8540                           
ffc064fc:	88 7d 00 0c 	lbz     r3,12(r29)                             
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
ffc06500:	38 80 00 01 	li      r4,1                                   
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
      rtems_termios_ttyTail = tty;                                    
                                                                      
    tty->minor = minor;                                               
    tty->major = major;                                               
ffc06504:	93 7f 00 0c 	stw     r27,12(r31)                            
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
ffc06508:	38 a0 00 54 	li      r5,84                                  
ffc0650c:	64 63 54 52 	oris    r3,r3,21586                            
ffc06510:	60 63 69 00 	ori     r3,r3,26880                            
ffc06514:	38 c0 00 00 	li      r6,0                                   
ffc06518:	38 ff 00 14 	addi    r7,r31,20                              
ffc0651c:	48 00 21 0d 	bl      ffc08628 <rtems_semaphore_create>      
      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)                                       
ffc06520:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06524:	41 be 00 08 	beq+    cr7,ffc0652c <rtems_termios_open+0x188>
ffc06528:	48 00 02 7c 	b       ffc067a4 <rtems_termios_open+0x400>    
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'o', c),                            
ffc0652c:	88 7d 00 0c 	lbz     r3,12(r29)                             
      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 (                                     
ffc06530:	38 80 00 01 	li      r4,1                                   
ffc06534:	38 a0 00 54 	li      r5,84                                  
ffc06538:	64 63 54 52 	oris    r3,r3,21586                            
ffc0653c:	60 63 6f 00 	ori     r3,r3,28416                            
ffc06540:	38 c0 00 00 	li      r6,0                                   
ffc06544:	38 ff 00 18 	addi    r7,r31,24                              
ffc06548:	48 00 20 e1 	bl      ffc08628 <rtems_semaphore_create>      
      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)                                       
ffc0654c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06550:	41 be 00 08 	beq+    cr7,ffc06558 <rtems_termios_open+0x1b4>
ffc06554:	48 00 02 50 	b       ffc067a4 <rtems_termios_open+0x400>    
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'x', c),                            
ffc06558:	88 7d 00 0c 	lbz     r3,12(r29)                             
      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 (                                     
ffc0655c:	38 80 00 00 	li      r4,0                                   
ffc06560:	38 a0 00 20 	li      r5,32                                  
ffc06564:	64 63 54 52 	oris    r3,r3,21586                            
ffc06568:	60 63 78 00 	ori     r3,r3,30720                            
ffc0656c:	38 c0 00 00 	li      r6,0                                   
ffc06570:	38 ff 00 8c 	addi    r7,r31,140                             
ffc06574:	48 00 20 b5 	bl      ffc08628 <rtems_semaphore_create>      
      rtems_build_name ('T', 'R', 'x', c),                            
      0,                                                              
      RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO,                     
      RTEMS_NO_PRIORITY,                                              
      &tty->rawOutBuf.Semaphore);                                     
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc06578:	7c 69 1b 79 	mr.     r9,r3                                  
ffc0657c:	41 a2 00 08 	beq+    ffc06584 <rtems_termios_open+0x1e0>    
ffc06580:	48 00 02 24 	b       ffc067a4 <rtems_termios_open+0x400>    
    tty->rawOutBufState = rob_idle;                                   
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
ffc06584:	38 9f 00 98 	addi    r4,r31,152                             
      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;                                   
ffc06588:	91 3f 00 94 	stw     r9,148(r31)                            
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
ffc0658c:	7c b6 04 aa 	lswi    r5,r22,32                              
ffc06590:	7c a4 05 aa 	stswi   r5,r4,32                               
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
ffc06594:	81 3f 00 b4 	lwz     r9,180(r31)                            
ffc06598:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc0659c:	40 be 00 64 	bne+    cr7,ffc06600 <rtems_termios_open+0x25c>
      sc = rtems_task_create (                                        
                                   rtems_build_name ('T', 'x', 'T', c),
ffc065a0:	88 7d 00 0c 	lbz     r3,12(r29)                             
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_create (                                        
ffc065a4:	38 80 00 0a 	li      r4,10                                  
ffc065a8:	38 a0 04 00 	li      r5,1024                                
ffc065ac:	64 63 54 78 	oris    r3,r3,21624                            
ffc065b0:	60 63 54 00 	ori     r3,r3,21504                            
ffc065b4:	38 c0 05 00 	li      r6,1280                                
ffc065b8:	38 e0 00 00 	li      r7,0                                   
ffc065bc:	39 1f 00 c8 	addi    r8,r31,200                             
ffc065c0:	48 00 25 29 	bl      ffc08ae8 <rtems_task_create>           
           TERMIOS_TXTASK_STACKSIZE,                                  
           RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |                    
           RTEMS_NO_ASR,                                              
           RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,                     
           &tty->txTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc065c4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc065c8:	41 be 00 08 	beq+    cr7,ffc065d0 <rtems_termios_open+0x22c><== ALWAYS TAKEN
ffc065cc:	48 00 01 d8 	b       ffc067a4 <rtems_termios_open+0x400>    <== NOT EXECUTED
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
                                   rtems_build_name ('R', 'x', 'T', c),
ffc065d0:	88 7d 00 0c 	lbz     r3,12(r29)                             
           RTEMS_NO_ASR,                                              
           RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,                     
           &tty->txTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
ffc065d4:	38 80 00 09 	li      r4,9                                   
ffc065d8:	38 a0 04 00 	li      r5,1024                                
ffc065dc:	64 63 52 78 	oris    r3,r3,21112                            
ffc065e0:	60 63 54 00 	ori     r3,r3,21504                            
ffc065e4:	38 c0 05 00 	li      r6,1280                                
ffc065e8:	38 e0 00 00 	li      r7,0                                   
ffc065ec:	39 1f 00 c4 	addi    r8,r31,196                             
ffc065f0:	48 00 24 f9 	bl      ffc08ae8 <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)                                     
ffc065f4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc065f8:	41 be 00 08 	beq+    cr7,ffc06600 <rtems_termios_open+0x25c><== ALWAYS TAKEN
ffc065fc:	48 00 01 a8 	b       ffc067a4 <rtems_termios_open+0x400>    <== NOT EXECUTED
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
ffc06600:	81 3f 00 a0 	lwz     r9,160(r31)                            
ffc06604:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06608:	41 9e 00 10 	beq-    cr7,ffc06618 <rtems_termios_open+0x274>
ffc0660c:	81 3f 00 b4 	lwz     r9,180(r31)                            
ffc06610:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc06614:	40 be 00 34 	bne+    cr7,ffc06648 <rtems_termios_open+0x2a4>
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
        rtems_build_name ('T', 'R', 'r', c),                          
ffc06618:	3d 20 00 00 	lis     r9,0                                   
ffc0661c:	88 69 21 68 	lbz     r3,8552(r9)                            
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
ffc06620:	38 80 00 00 	li      r4,0                                   
ffc06624:	38 a0 00 24 	li      r5,36                                  
ffc06628:	64 63 54 52 	oris    r3,r3,21586                            
ffc0662c:	60 63 72 00 	ori     r3,r3,29184                            
ffc06630:	38 c0 00 00 	li      r6,0                                   
ffc06634:	38 ff 00 68 	addi    r7,r31,104                             
ffc06638:	48 00 1f f1 	bl      ffc08628 <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)                                     
ffc0663c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06640:	41 be 00 08 	beq+    cr7,ffc06648 <rtems_termios_open+0x2a4><== ALWAYS TAKEN
ffc06644:	48 00 01 60 	b       ffc067a4 <rtems_termios_open+0x400>    <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
ffc06648:	39 20 25 02 	li      r9,9474                                
ffc0664c:	91 3f 00 30 	stw     r9,48(r31)                             
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
ffc06650:	39 20 18 05 	li      r9,6149                                
ffc06654:	91 3f 00 34 	stw     r9,52(r31)                             
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
ffc06658:	39 20 08 bd 	li      r9,2237                                
ffc0665c:	91 3f 00 38 	stw     r9,56(r31)                             
    tty->termios.c_lflag =                                            
ffc06660:	39 20 00 00 	li      r9,0                                   
ffc06664:	61 29 82 3b 	ori     r9,r9,33339                            
ffc06668:	91 3f 00 3c 	stw     r9,60(r31)                             
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
ffc0666c:	39 20 00 03 	li      r9,3                                   
ffc06670:	99 3f 00 41 	stb     r9,65(r31)                             
    tty->termios.c_cc[VQUIT] = '\034';                                
ffc06674:	39 20 00 1c 	li      r9,28                                  
ffc06678:	99 3f 00 42 	stb     r9,66(r31)                             
    tty->termios.c_cc[VERASE] = '\177';                               
ffc0667c:	39 20 00 7f 	li      r9,127                                 
ffc06680:	99 3f 00 43 	stb     r9,67(r31)                             
    tty->termios.c_cc[VKILL] = '\025';                                
ffc06684:	39 20 00 15 	li      r9,21                                  
ffc06688:	99 3f 00 44 	stb     r9,68(r31)                             
    tty->termios.c_cc[VEOF] = '\004';                                 
ffc0668c:	39 20 00 04 	li      r9,4                                   
ffc06690:	99 3f 00 45 	stb     r9,69(r31)                             
    tty->termios.c_cc[VEOL] = '\000';                                 
ffc06694:	39 20 00 00 	li      r9,0                                   
ffc06698:	99 3f 00 4c 	stb     r9,76(r31)                             
    tty->termios.c_cc[VEOL2] = '\000';                                
ffc0669c:	99 3f 00 51 	stb     r9,81(r31)                             
    tty->termios.c_cc[VSTART] = '\021';                               
ffc066a0:	39 20 00 11 	li      r9,17                                  
ffc066a4:	99 3f 00 49 	stb     r9,73(r31)                             
    tty->termios.c_cc[VSTOP] = '\023';                                
ffc066a8:	39 20 00 13 	li      r9,19                                  
ffc066ac:	99 3f 00 4a 	stb     r9,74(r31)                             
    tty->termios.c_cc[VSUSP] = '\032';                                
ffc066b0:	39 20 00 1a 	li      r9,26                                  
ffc066b4:	99 3f 00 4b 	stb     r9,75(r31)                             
    tty->termios.c_cc[VREPRINT] = '\022';                             
ffc066b8:	39 20 00 12 	li      r9,18                                  
ffc066bc:	99 3f 00 4d 	stb     r9,77(r31)                             
    tty->termios.c_cc[VDISCARD] = '\017';                             
ffc066c0:	39 20 00 0f 	li      r9,15                                  
ffc066c4:	99 3f 00 4e 	stb     r9,78(r31)                             
    tty->termios.c_cc[VWERASE] = '\027';                              
ffc066c8:	39 20 00 17 	li      r9,23                                  
ffc066cc:	99 3f 00 4f 	stb     r9,79(r31)                             
    tty->termios.c_cc[VLNEXT] = '\026';                               
ffc066d0:	39 20 00 16 	li      r9,22                                  
ffc066d4:	99 3f 00 50 	stb     r9,80(r31)                             
                                                                      
    /* start with no flow control, clear flow control flags */        
    tty->flow_ctrl = 0;                                               
ffc066d8:	39 20 00 00 	li      r9,0                                   
ffc066dc:	91 3f 00 b8 	stw     r9,184(r31)                            
    /*                                                                
     * set low/highwater mark for XON/XOFF support                    
     */                                                               
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
ffc066e0:	81 3f 00 64 	lwz     r9,100(r31)                            
ffc066e4:	55 29 f8 7e 	rlwinm  r9,r9,31,1,31                          
ffc066e8:	91 3f 00 bc 	stw     r9,188(r31)                            
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
ffc066ec:	81 3f 00 64 	lwz     r9,100(r31)                            
ffc066f0:	1d 29 00 03 	mulli   r9,r9,3                                
ffc066f4:	55 29 f0 be 	rlwinm  r9,r9,30,2,31                          
ffc066f8:	91 3f 00 c0 	stw     r9,192(r31)                            
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
ffc066fc:	3d 20 00 00 	lis     r9,0                                   
ffc06700:	39 29 21 5c 	addi    r9,r9,8540                             
ffc06704:	89 49 00 0c 	lbz     r10,12(r9)                             
ffc06708:	2f 8a 00 7a 	cmpwi   cr7,r10,122                            
ffc0670c:	41 9e 00 0c 	beq-    cr7,ffc06718 <rtems_termios_open+0x374>
ffc06710:	39 4a 00 01 	addi    r10,r10,1                              
ffc06714:	48 00 00 08 	b       ffc0671c <rtems_termios_open+0x378>    
      c = 'a';                                                        
ffc06718:	39 40 00 61 	li      r10,97                                 
ffc0671c:	99 49 00 0c 	stb     r10,12(r9)                             
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
ffc06720:	81 38 00 00 	lwz     r9,0(r24)                              
ffc06724:	93 e9 00 30 	stw     r31,48(r9)                             
  if (!tty->refcount++) {                                             
ffc06728:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0672c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06730:	39 49 00 01 	addi    r10,r9,1                               
ffc06734:	91 5f 00 08 	stw     r10,8(r31)                             
ffc06738:	40 9e 00 70 	bne-    cr7,ffc067a8 <rtems_termios_open+0x404>
    if (tty->device.firstOpen)                                        
ffc0673c:	81 3f 00 98 	lwz     r9,152(r31)                            
ffc06740:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06744:	41 9e 00 18 	beq-    cr7,ffc0675c <rtems_termios_open+0x3b8><== ALWAYS TAKEN
      (*tty->device.firstOpen)(major, minor, arg);                    
ffc06748:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc0674c:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc06750:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc06754:	7f 05 c3 78 	mr      r5,r24                                 <== NOT EXECUTED
ffc06758:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
                                                                      
    /*                                                                
     * start I/O tasks, if needed                                     
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
ffc0675c:	81 3f 00 b4 	lwz     r9,180(r31)                            
ffc06760:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc06764:	40 be 00 44 	bne+    cr7,ffc067a8 <rtems_termios_open+0x404>
      sc = rtems_task_start(                                          
ffc06768:	80 7f 00 c4 	lwz     r3,196(r31)                            
ffc0676c:	3c 80 ff c0 	lis     r4,-64                                 
ffc06770:	38 84 7c dc 	addi    r4,r4,31964                            
ffc06774:	7f e5 fb 78 	mr      r5,r31                                 
ffc06778:	48 00 26 41 	bl      ffc08db8 <rtems_task_start>            
        tty->rxTaskId, rtems_termios_rxdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc0677c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06780:	41 be 00 08 	beq+    cr7,ffc06788 <rtems_termios_open+0x3e4><== ALWAYS TAKEN
ffc06784:	48 00 00 20 	b       ffc067a4 <rtems_termios_open+0x400>    <== NOT EXECUTED
        rtems_fatal_error_occurred (sc);                              
                                                                      
      sc = rtems_task_start(                                          
ffc06788:	80 7f 00 c8 	lwz     r3,200(r31)                            
ffc0678c:	3c 80 ff c0 	lis     r4,-64                                 
ffc06790:	38 84 62 c4 	addi    r4,r4,25284                            
ffc06794:	7f e5 fb 78 	mr      r5,r31                                 
ffc06798:	48 00 26 21 	bl      ffc08db8 <rtems_task_start>            
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc0679c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc067a0:	41 be 00 08 	beq+    cr7,ffc067a8 <rtems_termios_open+0x404><== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
ffc067a4:	48 00 28 cd 	bl      ffc09070 <rtems_fatal_error_occurred>  
    }                                                                 
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
ffc067a8:	3d 20 00 00 	lis     r9,0                                   
ffc067ac:	80 69 28 14 	lwz     r3,10260(r9)                           
ffc067b0:	48 00 22 21 	bl      ffc089d0 <rtems_semaphore_release>     
  return RTEMS_SUCCESSFUL;                                            
ffc067b4:	48 00 00 1c 	b       ffc067d0 <rtems_termios_open+0x42c>    
    static char c = 'a';                                              
                                                                      
    /*                                                                
     * Create a new device                                            
     */                                                               
    tty = calloc (1, sizeof (struct rtems_termios_tty));              
ffc067b8:	38 60 00 01 	li      r3,1                                   
ffc067bc:	38 80 00 e8 	li      r4,232                                 
ffc067c0:	4b ff da 41 	bl      ffc04200 <calloc>                      
    if (tty == NULL) {                                                
ffc067c4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc067c8:	40 82 fc 50 	bne+    ffc06418 <rtems_termios_open+0x74>     
ffc067cc:	4b ff fc c8 	b       ffc06494 <rtems_termios_open+0xf0>     
        rtems_fatal_error_occurred (sc);                              
    }                                                                 
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc067d0:	39 61 00 30 	addi    r11,r1,48                              
ffc067d4:	7f c3 f3 78 	mr      r3,r30                                 
ffc067d8:	4b ff 9d c8 	b       ffc005a0 <_restgpr_22_x>               
                                                                      

ffc06e44 <rtems_termios_puts>: * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, size_t len, struct rtems_termios_tty *tty) {
ffc06e44:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc06e48:	7c 08 02 a6 	mflr    r0                                     
ffc06e4c:	7c 89 23 78 	mr      r9,r4                                  
ffc06e50:	90 01 00 2c 	stw     r0,44(r1)                              
  const unsigned char *buf = _buf;                                    
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
ffc06e54:	81 45 00 b4 	lwz     r10,180(r5)                            
 * Send characters to device-specific code                            
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
  const void *_buf, size_t len, struct rtems_termios_tty *tty)        
{                                                                     
ffc06e58:	bf 21 00 0c 	stmw    r25,12(r1)                             
ffc06e5c:	7c 7e 1b 78 	mr      r30,r3                                 
  const unsigned char *buf = _buf;                                    
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
ffc06e60:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
 * Send characters to device-specific code                            
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
  const void *_buf, size_t len, struct rtems_termios_tty *tty)        
{                                                                     
ffc06e64:	7c bf 2b 78 	mr      r31,r5                                 
  const unsigned char *buf = _buf;                                    
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
ffc06e68:	40 be 00 2c 	bne+    cr7,ffc06e94 <rtems_termios_puts+0x50> 
    (*tty->device.write)(tty->minor, buf, len);                       
ffc06e6c:	81 45 00 a4 	lwz     r10,164(r5)                            
ffc06e70:	7f c4 f3 78 	mr      r4,r30                                 
      tty->rawOutBufState = rob_busy;                                 
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
  }                                                                   
}                                                                     
ffc06e74:	80 01 00 2c 	lwz     r0,44(r1)                              
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, buf, len);                       
ffc06e78:	7d 49 03 a6 	mtctr   r10                                    
ffc06e7c:	80 65 00 10 	lwz     r3,16(r5)                              
      tty->rawOutBufState = rob_busy;                                 
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
  }                                                                   
}                                                                     
ffc06e80:	7c 08 03 a6 	mtlr    r0                                     
ffc06e84:	bb 21 00 0c 	lmw     r25,12(r1)                             
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, buf, len);                       
ffc06e88:	7d 25 4b 78 	mr      r5,r9                                  
      tty->rawOutBufState = rob_busy;                                 
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
  }                                                                   
}                                                                     
ffc06e8c:	38 21 00 28 	addi    r1,r1,40                               
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, buf, len);                       
ffc06e90:	4e 80 04 20 	bctr                                           
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
ffc06e94:	83 a5 00 80 	lwz     r29,128(r5)                            
                                                                      
/*                                                                    
 * Send characters to device-specific code                            
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
ffc06e98:	7f 63 22 14 	add     r27,r3,r4                              
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
    rtems_interrupt_disable (level);                                  
    while (newHead == tty->rawOutBuf.Tail) {                          
      tty->rawOutBufState = rob_wait;                                 
ffc06e9c:	3b 40 00 02 	li      r26,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;                                 
ffc06ea0:	3b 20 00 01 	li      r25,1                                  
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, buf, len);                       
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
ffc06ea4:	48 00 00 bc 	b       ffc06f60 <rtems_termios_puts+0x11c>    
     *  len -= ncopy                                                  
     *                                                                
     * To minimize latency, the memcpy should be done                 
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
ffc06ea8:	81 5f 00 88 	lwz     r10,136(r31)                           
ffc06eac:	3b bd 00 01 	addi    r29,r29,1                              
ffc06eb0:	7d 3d 53 96 	divwu   r9,r29,r10                             
ffc06eb4:	7d 49 51 d6 	mullw   r10,r9,r10                             
ffc06eb8:	7f aa e8 50 	subf    r29,r10,r29                            
ffc06ebc:	48 00 00 28 	b       ffc06ee4 <rtems_termios_puts+0xa0>     
    rtems_interrupt_disable (level);                                  
    while (newHead == tty->rawOutBuf.Tail) {                          
      tty->rawOutBufState = rob_wait;                                 
ffc06ec0:	93 5f 00 94 	stw     r26,148(r31)                           
ffc06ec4:	7f 80 01 24 	mtmsr   r28                                    
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
ffc06ec8:	80 7f 00 8c 	lwz     r3,140(r31)                            
ffc06ecc:	38 80 00 00 	li      r4,0                                   
ffc06ed0:	38 a0 00 00 	li      r5,0                                   
ffc06ed4:	48 00 19 d9 	bl      ffc088ac <rtems_semaphore_obtain>      
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc06ed8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06edc:	41 be 00 08 	beq+    cr7,ffc06ee4 <rtems_termios_puts+0xa0> <== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
ffc06ee0:	48 00 21 91 	bl      ffc09070 <rtems_fatal_error_occurred>  <== NOT EXECUTED
      rtems_interrupt_disable (level);                                
ffc06ee4:	4b ff f1 e9 	bl      ffc060cc <ppc_interrupt_disable>       
ffc06ee8:	7c 7c 1b 78 	mr      r28,r3                                 
     * 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) {                          
ffc06eec:	81 3f 00 84 	lwz     r9,132(r31)                            
ffc06ef0:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc06ef4:	41 9e ff cc 	beq+    cr7,ffc06ec0 <rtems_termios_puts+0x7c> 
        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++;              
ffc06ef8:	89 1e 00 00 	lbz     r8,0(r30)                              
ffc06efc:	3b de 00 01 	addi    r30,r30,1                              
ffc06f00:	81 5f 00 80 	lwz     r10,128(r31)                           
ffc06f04:	81 3f 00 7c 	lwz     r9,124(r31)                            
ffc06f08:	7d 09 51 ae 	stbx    r8,r9,r10                              
    tty->rawOutBuf.Head = newHead;                                    
    if (tty->rawOutBufState == rob_idle) {                            
ffc06f0c:	81 3f 00 94 	lwz     r9,148(r31)                            
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
    }                                                                 
    tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;              
    tty->rawOutBuf.Head = newHead;                                    
ffc06f10:	93 bf 00 80 	stw     r29,128(r31)                           
    if (tty->rawOutBufState == rob_idle) {                            
ffc06f14:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06f18:	40 9e 00 44 	bne-    cr7,ffc06f5c <rtems_termios_puts+0x118>
      /* check, whether XOFF has been received */                     
      if (!(tty->flow_ctrl & FL_ORCVXOF)) {                           
ffc06f1c:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc06f20:	71 2a 00 10 	andi.   r10,r9,16                              
ffc06f24:	40 a2 00 28 	bne+    ffc06f4c <rtems_termios_puts+0x108>    <== NEVER TAKEN
        (*tty->device.write)(                                         
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
ffc06f28:	80 9f 00 84 	lwz     r4,132(r31)                            
    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)(                                         
ffc06f2c:	38 a0 00 01 	li      r5,1                                   
ffc06f30:	81 5f 00 7c 	lwz     r10,124(r31)                           
ffc06f34:	81 3f 00 a4 	lwz     r9,164(r31)                            
ffc06f38:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc06f3c:	7c 8a 22 14 	add     r4,r10,r4                              
ffc06f40:	7d 29 03 a6 	mtctr   r9                                     
ffc06f44:	4e 80 04 21 	bctrl                                          
ffc06f48:	48 00 00 10 	b       ffc06f58 <rtems_termios_puts+0x114>    
          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;                                   
ffc06f4c:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc06f50:	61 29 00 20 	ori     r9,r9,32                               <== NOT EXECUTED
ffc06f54:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
      }                                                               
      tty->rawOutBufState = rob_busy;                                 
ffc06f58:	93 3f 00 94 	stw     r25,148(r31)                           
ffc06f5c:	7f 80 01 24 	mtmsr   r28                                    
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, buf, len);                       
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
ffc06f60:	7f 9e d8 00 	cmpw    cr7,r30,r27                            
ffc06f64:	40 9e ff 44 	bne+    cr7,ffc06ea8 <rtems_termios_puts+0x64> 
      tty->rawOutBufState = rob_busy;                                 
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
  }                                                                   
}                                                                     
ffc06f68:	39 61 00 28 	addi    r11,r1,40                              
ffc06f6c:	4b ff 96 40 	b       ffc005ac <_restgpr_25_x>               
                                                                      

ffc07680 <rtems_termios_read>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) {
ffc07680:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc07684:	7c 08 02 a6 	mflr    r0                                     
  struct rtems_termios_tty *tty = args->iop->data1;                   
  uint32_t   count = args->count;                                     
  char      *buffer = args->buffer;                                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc07688:	38 80 00 00 	li      r4,0                                   
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
ffc0768c:	90 01 00 34 	stw     r0,52(r1)                              
  struct rtems_termios_tty *tty = args->iop->data1;                   
  uint32_t   count = args->count;                                     
  char      *buffer = args->buffer;                                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc07690:	38 a0 00 00 	li      r5,0                                   
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc07694:	81 23 00 00 	lwz     r9,0(r3)                               
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
ffc07698:	be e1 00 0c 	stmw    r23,12(r1)                             
ffc0769c:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc076a0:	83 e9 00 30 	lwz     r31,48(r9)                             
  uint32_t   count = args->count;                                     
ffc076a4:	83 83 00 14 	lwz     r28,20(r3)                             
  char      *buffer = args->buffer;                                   
ffc076a8:	83 23 00 10 	lwz     r25,16(r3)                             
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc076ac:	80 7f 00 14 	lwz     r3,20(r31)                             
ffc076b0:	48 00 11 fd 	bl      ffc088ac <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc076b4:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc076b8:	40 82 03 2c 	bne-    ffc079e4 <rtems_termios_read+0x364>    <== NEVER TAKEN
    return sc;                                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_read != NULL) {             
ffc076bc:	81 3f 00 cc 	lwz     r9,204(r31)                            
ffc076c0:	3d 40 00 00 	lis     r10,0                                  
ffc076c4:	39 4a 28 bc 	addi    r10,r10,10428                          
ffc076c8:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc076cc:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc076d0:	81 29 00 08 	lwz     r9,8(r9)                               
ffc076d4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc076d8:	41 9e 00 1c 	beq-    cr7,ffc076f4 <rtems_termios_read+0x74> 
    sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);          
ffc076dc:	7f e3 fb 78 	mr      r3,r31                                 
ffc076e0:	7d 29 03 a6 	mtctr   r9                                     
ffc076e4:	7f c4 f3 78 	mr      r4,r30                                 
ffc076e8:	4e 80 04 21 	bctrl                                          
ffc076ec:	7c 7d 1b 78 	mr      r29,r3                                 
ffc076f0:	48 00 02 e4 	b       ffc079d4 <rtems_termios_read+0x354>    
    tty->tty_rcvwakeup = 0;                                           
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
ffc076f4:	81 5f 00 24 	lwz     r10,36(r31)                            
ffc076f8:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc076fc:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc07700:	40 be 02 8c 	bne+    cr7,ffc0798c <rtems_termios_read+0x30c><== NEVER TAKEN
    tty->cindex = tty->ccount = 0;                                    
    tty->read_start_column = tty->column;                             
ffc07704:	81 3f 00 28 	lwz     r9,40(r31)                             
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
ffc07708:	93 bf 00 20 	stw     r29,32(r31)                            
    tty->read_start_column = tty->column;                             
ffc0770c:	91 3f 00 2c 	stw     r9,44(r31)                             
    if (tty->device.pollRead != NULL &&                               
ffc07710:	81 3f 00 a0 	lwz     r9,160(r31)                            
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
ffc07714:	93 bf 00 24 	stw     r29,36(r31)                            
    tty->read_start_column = tty->column;                             
    if (tty->device.pollRead != NULL &&                               
ffc07718:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0771c:	41 9e 00 fc 	beq-    cr7,ffc07818 <rtems_termios_read+0x198>
ffc07720:	81 3f 00 b4 	lwz     r9,180(r31)                            
ffc07724:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07728:	40 be 00 f0 	bne+    cr7,ffc07818 <rtems_termios_read+0x198>
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
ffc0772c:	81 3f 00 3c 	lwz     r9,60(r31)                             
ffc07730:	71 2a 00 02 	andi.   r10,r9,2                               
ffc07734:	41 82 00 40 	beq-    ffc07774 <rtems_termios_read+0xf4>     
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
ffc07738:	81 3f 00 a0 	lwz     r9,160(r31)                            
ffc0773c:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc07740:	7d 29 03 a6 	mtctr   r9                                     
ffc07744:	4e 80 04 21 	bctrl                                          
      if (n < 0) {                                                    
ffc07748:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0774c:	40 a0 00 10 	bge+    ffc0775c <rtems_termios_read+0xdc>     
        rtems_task_wake_after (1);                                    
ffc07750:	38 60 00 01 	li      r3,1                                   
ffc07754:	48 00 16 dd 	bl      ffc08e30 <rtems_task_wake_after>       
ffc07758:	4b ff ff e0 	b       ffc07738 <rtems_termios_read+0xb8>     
      } else {                                                        
        if  (siproc (n, tty))                                         
ffc0775c:	54 63 06 3e 	clrlwi  r3,r3,24                               
ffc07760:	7f e4 fb 78 	mr      r4,r31                                 
ffc07764:	4b ff fd e1 	bl      ffc07544 <siproc>                      
ffc07768:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0776c:	41 9e ff cc 	beq+    cr7,ffc07738 <rtems_termios_read+0xb8> 
ffc07770:	48 00 02 1c 	b       ffc0798c <rtems_termios_read+0x30c>    
      }                                                               
    }                                                                 
  } else {                                                            
    rtems_interval then, now;                                         
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
ffc07774:	48 00 0a 51 	bl      ffc081c4 <rtems_clock_get_ticks_since_boot>
ffc07778:	7c 7b 1b 78 	mr      r27,r3                                 
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
ffc0777c:	81 3f 00 a0 	lwz     r9,160(r31)                            
ffc07780:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc07784:	7d 29 03 a6 	mtctr   r9                                     
ffc07788:	4e 80 04 21 	bctrl                                          
      if (n < 0) {                                                    
ffc0778c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc07790:	40 80 00 54 	bge-    ffc077e4 <rtems_termios_read+0x164>    
        if (tty->termios.c_cc[VMIN]) {                                
ffc07794:	89 3f 00 47 	lbz     r9,71(r31)                             
ffc07798:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0779c:	89 3f 00 46 	lbz     r9,70(r31)                             
          if (tty->termios.c_cc[VTIME] && tty->ccount) {              
ffc077a0:	71 2a 00 ff 	andi.   r10,r9,255                             
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
      if (n < 0) {                                                    
        if (tty->termios.c_cc[VMIN]) {                                
ffc077a4:	41 9e 00 24 	beq-    cr7,ffc077c8 <rtems_termios_read+0x148>
          if (tty->termios.c_cc[VTIME] && tty->ccount) {              
ffc077a8:	40 82 00 10 	bne-    ffc077b8 <rtems_termios_read+0x138>    <== ALWAYS TAKEN
          now = rtems_clock_get_ticks_since_boot();                   
          if ((now - then) > tty->vtimeTicks) {                       
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
ffc077ac:	38 60 00 01 	li      r3,1                                   
ffc077b0:	48 00 16 81 	bl      ffc08e30 <rtems_task_wake_after>       
ffc077b4:	4b ff ff c8 	b       ffc0777c <rtems_termios_read+0xfc>     
    then = rtems_clock_get_ticks_since_boot();                        
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
      if (n < 0) {                                                    
        if (tty->termios.c_cc[VMIN]) {                                
          if (tty->termios.c_cc[VTIME] && tty->ccount) {              
ffc077b8:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc077bc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc077c0:	41 9e ff ec 	beq+    cr7,ffc077ac <rtems_termios_read+0x12c>
ffc077c4:	48 00 00 08 	b       ffc077cc <rtems_termios_read+0x14c>    
            if ((now - then) > tty->vtimeTicks) {                     
              break;                                                  
            }                                                         
          }                                                           
        } else {                                                      
          if (!tty->termios.c_cc[VTIME])                              
ffc077c8:	41 82 01 c4 	beq-    ffc0798c <rtems_termios_read+0x30c>    <== NEVER TAKEN
            break;                                                    
          now = rtems_clock_get_ticks_since_boot();                   
ffc077cc:	48 00 09 f9 	bl      ffc081c4 <rtems_clock_get_ticks_since_boot>
          if ((now - then) > tty->vtimeTicks) {                       
ffc077d0:	81 3f 00 54 	lwz     r9,84(r31)                             
ffc077d4:	7c 7b 18 50 	subf    r3,r27,r3                              
ffc077d8:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc077dc:	40 9d ff d0 	ble+    cr7,ffc077ac <rtems_termios_read+0x12c>
ffc077e0:	48 00 01 ac 	b       ffc0798c <rtems_termios_read+0x30c>    
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
      } else {                                                        
        siproc (n, tty);                                              
ffc077e4:	54 63 06 3e 	clrlwi  r3,r3,24                               
ffc077e8:	7f e4 fb 78 	mr      r4,r31                                 
ffc077ec:	4b ff fd 59 	bl      ffc07544 <siproc>                      
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
ffc077f0:	89 3f 00 47 	lbz     r9,71(r31)                             
ffc077f4:	81 5f 00 20 	lwz     r10,32(r31)                            
ffc077f8:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc077fc:	40 9c 01 90 	bge-    cr7,ffc0798c <rtems_termios_read+0x30c>
          break;                                                      
        if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])      
ffc07800:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07804:	41 be ff 78 	beq-    cr7,ffc0777c <rtems_termios_read+0xfc> <== NEVER TAKEN
ffc07808:	89 3f 00 46 	lbz     r9,70(r31)                             
ffc0780c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07810:	41 9e ff 6c 	beq+    cr7,ffc0777c <rtems_termios_read+0xfc> <== NEVER TAKEN
ffc07814:	4b ff ff 60 	b       ffc07774 <rtems_termios_read+0xf4>     
 * Fill the input buffer from the raw input queue                     
 */                                                                   
static rtems_status_code                                              
fillBufferQueue (struct rtems_termios_tty *tty)                       
{                                                                     
  rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;        
ffc07818:	83 5f 00 74 	lwz     r26,116(r31)                           
  rtems_status_code sc;                                               
  int               wait = 1;                                         
ffc0781c:	3b 60 00 01 	li      r27,1                                  
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
                       (tty->ccount < (CBUFSIZE-1))) {                
ffc07820:	3f 00 00 00 	lis     r24,0                                  
             ==                (FL_MDXON | FL_ISNTXOF))               
            && ((tty->rawOutBufState == rob_idle)                     
          || (tty->flow_ctrl & FL_OSTOP))) {                          
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
ffc07824:	3a ff 00 49 	addi    r23,r31,73                             
ffc07828:	48 00 01 14 	b       ffc0793c <rtems_termios_read+0x2bc>    
    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;        
ffc0782c:	81 1f 00 5c 	lwz     r8,92(r31)                             
ffc07830:	80 ff 00 64 	lwz     r7,100(r31)                            
ffc07834:	39 08 00 01 	addi    r8,r8,1                                
      c = tty->rawInBuf.theBuf[newHead];                              
ffc07838:	81 5f 00 58 	lwz     r10,88(r31)                            
    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;        
ffc0783c:	7d 28 3b 96 	divwu   r9,r8,r7                               
ffc07840:	7d 29 39 d6 	mullw   r9,r9,r7                               
ffc07844:	7d 29 40 50 	subf    r9,r9,r8                               
      c = tty->rawInBuf.theBuf[newHead];                              
ffc07848:	7f 4a 48 ae 	lbzx    r26,r10,r9                             
      tty->rawInBuf.Head = newHead;                                   
ffc0784c:	91 3f 00 5c 	stw     r9,92(r31)                             
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
ffc07850:	81 5f 00 60 	lwz     r10,96(r31)                            
ffc07854:	80 ff 00 64 	lwz     r7,100(r31)                            
          % tty->rawInBuf.Size)                                       
ffc07858:	81 1f 00 64 	lwz     r8,100(r31)                            
      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)             
ffc0785c:	7d 47 52 14 	add     r10,r7,r10                             
ffc07860:	7d 29 50 50 	subf    r9,r9,r10                              
          % tty->rawInBuf.Size)                                       
ffc07864:	7d 49 43 96 	divwu   r10,r9,r8                              
ffc07868:	7d 0a 41 d6 	mullw   r8,r10,r8                              
ffc0786c:	7d 08 48 50 	subf    r8,r8,r9                               
      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)             
ffc07870:	81 3f 00 bc 	lwz     r9,188(r31)                            
ffc07874:	7f 88 48 40 	cmplw   cr7,r8,r9                              
ffc07878:	40 9c 00 84 	bge-    cr7,ffc078fc <rtems_termios_read+0x27c><== NEVER TAKEN
          % tty->rawInBuf.Size)                                       
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
ffc0787c:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc07880:	55 29 00 3c 	rlwinm  r9,r9,0,0,30                           
ffc07884:	91 3f 00 b8 	stw     r9,184(r31)                            
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
ffc07888:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc0788c:	71 29 02 02 	andi.   r9,r9,514                              
ffc07890:	2f 89 02 02 	cmpwi   cr7,r9,514                             
ffc07894:	40 be 00 38 	bne+    cr7,ffc078cc <rtems_termios_read+0x24c><== ALWAYS TAKEN
             ==                (FL_MDXON | FL_ISNTXOF))               
            && ((tty->rawOutBufState == rob_idle)                     
ffc07898:	81 3f 00 94 	lwz     r9,148(r31)                            <== NOT EXECUTED
ffc0789c:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc078a0:	41 9e 00 10 	beq-    cr7,ffc078b0 <rtems_termios_read+0x230><== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
ffc078a4:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc078a8:	71 2a 00 20 	andi.   r10,r9,32                              <== NOT EXECUTED
ffc078ac:	41 82 00 20 	beq-    ffc078cc <rtems_termios_read+0x24c>    <== NOT EXECUTED
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
ffc078b0:	81 3f 00 a4 	lwz     r9,164(r31)                            <== NOT EXECUTED
ffc078b4:	7e e4 bb 78 	mr      r4,r23                                 <== NOT EXECUTED
ffc078b8:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc078bc:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc078c0:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc078c4:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc078c8:	48 00 00 34 	b       ffc078fc <rtems_termios_read+0x27c>    <== NOT EXECUTED
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
ffc078cc:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc078d0:	71 2a 01 00 	andi.   r10,r9,256                             
ffc078d4:	41 82 00 28 	beq-    ffc078fc <rtems_termios_read+0x27c>    <== ALWAYS TAKEN
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
ffc078d8:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc078dc:	55 29 07 b8 	rlwinm  r9,r9,0,30,28                          <== NOT EXECUTED
ffc078e0:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
ffc078e4:	81 3f 00 b0 	lwz     r9,176(r31)                            <== NOT EXECUTED
ffc078e8:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc078ec:	41 9e 00 10 	beq-    cr7,ffc078fc <rtems_termios_read+0x27c><== NOT EXECUTED
            tty->device.startRemoteTx(tty->minor);                    
ffc078f0:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc078f4:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc078f8:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
ffc078fc:	81 3f 00 3c 	lwz     r9,60(r31)                             
        if (siproc (c, tty))                                          
ffc07900:	7f 43 d3 78 	mr      r3,r26                                 
ffc07904:	7f e4 fb 78 	mr      r4,r31                                 
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
ffc07908:	71 2a 00 02 	andi.   r10,r9,2                               
ffc0790c:	41 82 00 18 	beq-    ffc07924 <rtems_termios_read+0x2a4>    <== NEVER TAKEN
        if (siproc (c, tty))                                          
ffc07910:	4b ff fc 35 	bl      ffc07544 <siproc>                      
ffc07914:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07918:	41 9e 00 20 	beq-    cr7,ffc07938 <rtems_termios_read+0x2b8>
          wait = 0;                                                   
ffc0791c:	3b 60 00 00 	li      r27,0                                  
ffc07920:	48 00 00 18 	b       ffc07938 <rtems_termios_read+0x2b8>    
      } else {                                                        
        siproc (c, tty);                                              
ffc07924:	4b ff fc 21 	bl      ffc07544 <siproc>                      <== NOT EXECUTED
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
ffc07928:	89 5f 00 47 	lbz     r10,71(r31)                            <== NOT EXECUTED
ffc0792c:	81 3f 00 20 	lwz     r9,32(r31)                             <== NOT EXECUTED
ffc07930:	7f 89 50 00 	cmpw    cr7,r9,r10                             <== NOT EXECUTED
ffc07934:	40 bc ff e8 	bge-    cr7,ffc0791c <rtems_termios_read+0x29c><== NOT EXECUTED
          wait = 0;                                                   
      }                                                               
      timeout = tty->rawInBufSemaphoreTimeout;                        
ffc07938:	83 5f 00 70 	lwz     r26,112(r31)                           
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
ffc0793c:	81 5f 00 5c 	lwz     r10,92(r31)                            
ffc07940:	81 3f 00 60 	lwz     r9,96(r31)                             
ffc07944:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc07948:	40 be 00 10 	bne+    cr7,ffc07958 <rtems_termios_read+0x2d8>
    }                                                                 
                                                                      
    /*                                                                
     * Wait for characters                                            
     */                                                               
    if ( wait ) {                                                     
ffc0794c:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc07950:	41 be 00 3c 	beq+    cr7,ffc0798c <rtems_termios_read+0x30c>
ffc07954:	48 00 00 20 	b       ffc07974 <rtems_termios_read+0x2f4>    
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
                       (tty->ccount < (CBUFSIZE-1))) {                
ffc07958:	39 38 21 5c 	addi    r9,r24,8540                            
ffc0795c:	81 49 00 08 	lwz     r10,8(r9)                              
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
ffc07960:	81 3f 00 20 	lwz     r9,32(r31)                             
                       (tty->ccount < (CBUFSIZE-1))) {                
ffc07964:	39 4a ff ff 	addi    r10,r10,-1                             
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
ffc07968:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc0796c:	41 9c fe c0 	blt+    cr7,ffc0782c <rtems_termios_read+0x1ac><== ALWAYS TAKEN
ffc07970:	4b ff ff dc 	b       ffc0794c <rtems_termios_read+0x2cc>    <== NOT EXECUTED
                                                                      
    /*                                                                
     * Wait for characters                                            
     */                                                               
    if ( wait ) {                                                     
      sc = rtems_semaphore_obtain(                                    
ffc07974:	80 7f 00 68 	lwz     r3,104(r31)                            
ffc07978:	7f 45 d3 78 	mr      r5,r26                                 
ffc0797c:	80 9f 00 6c 	lwz     r4,108(r31)                            
ffc07980:	48 00 0f 2d 	bl      ffc088ac <rtems_semaphore_obtain>      
        tty->rawInBuf.Semaphore, tty->rawInBufSemaphoreOptions, timeout);
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc07984:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07988:	41 9e ff b4 	beq+    cr7,ffc0793c <rtems_termios_read+0x2bc><== ALWAYS TAKEN
  }                                                                   
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
ffc0798c:	39 3c 00 01 	addi    r9,r28,1                               
ffc07990:	39 59 ff ff 	addi    r10,r25,-1                             
ffc07994:	7d 29 03 a6 	mtctr   r9                                     
ffc07998:	48 00 00 1c 	b       ffc079b4 <rtems_termios_read+0x334>    
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
ffc0799c:	81 1f 00 1c 	lwz     r8,28(r31)                             
    count--;                                                          
ffc079a0:	3b 9c ff ff 	addi    r28,r28,-1                             
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
ffc079a4:	7d 08 48 ae 	lbzx    r8,r8,r9                               
ffc079a8:	39 29 00 01 	addi    r9,r9,1                                
ffc079ac:	9d 0a 00 01 	stbu    r8,1(r10)                              
ffc079b0:	91 3f 00 24 	stw     r9,36(r31)                             
      sc = fillBufferQueue (tty);                                     
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
ffc079b4:	42 40 00 14 	bdz-    ffc079c8 <rtems_termios_read+0x348>    
ffc079b8:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc079bc:	81 1f 00 20 	lwz     r8,32(r31)                             
ffc079c0:	7f 89 40 00 	cmpw    cr7,r9,r8                              
ffc079c4:	41 9c ff d8 	blt+    cr7,ffc0799c <rtems_termios_read+0x31c>
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
ffc079c8:	81 3e 00 14 	lwz     r9,20(r30)                             
ffc079cc:	7f 9c 48 50 	subf    r28,r28,r9                             
ffc079d0:	93 9e 00 1c 	stw     r28,28(r30)                            
  tty->tty_rcvwakeup = 0;                                             
ffc079d4:	39 20 00 00 	li      r9,0                                   
  rtems_semaphore_release (tty->isem);                                
ffc079d8:	80 7f 00 14 	lwz     r3,20(r31)                             
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
  tty->tty_rcvwakeup = 0;                                             
ffc079dc:	91 3f 00 e4 	stw     r9,228(r31)                            
  rtems_semaphore_release (tty->isem);                                
ffc079e0:	48 00 0f f1 	bl      ffc089d0 <rtems_semaphore_release>     
  return sc;                                                          
}                                                                     
ffc079e4:	39 61 00 30 	addi    r11,r1,48                              
ffc079e8:	7f a3 eb 78 	mr      r3,r29                                 
ffc079ec:	4b ff 8b b8 	b       ffc005a4 <_restgpr_23_x>               
                                                                      

ffc060e0 <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) {
ffc060e0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc060e4:	7c 08 02 a6 	mflr    r0                                     
ffc060e8:	90 01 00 1c 	stw     r0,28(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))         
ffc060ec:	81 23 00 b8 	lwz     r9,184(r3)                             
 * 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)      
{                                                                     
ffc060f0:	bf a1 00 0c 	stmw    r29,12(r1)                             
ffc060f4:	7c 7f 1b 78 	mr      r31,r3                                 
  int nToSend;                                                        
  rtems_interrupt_level level;                                        
  int len;                                                            
                                                                      
  /* check for XOF/XON to send */                                     
  if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))         
ffc060f8:	71 29 04 03 	andi.   r9,r9,1027                             
ffc060fc:	2f 89 04 01 	cmpwi   cr7,r9,1025                            
ffc06100:	40 be 00 38 	bne+    cr7,ffc06138 <rtems_termios_refill_transmitter+0x58><== ALWAYS TAKEN
      == (FL_MDXOF | FL_IREQXOF)) {                                   
    /* XOFF should be sent now... */                                  
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1);
ffc06104:	81 23 00 a4 	lwz     r9,164(r3)                             <== NOT EXECUTED
ffc06108:	38 9f 00 4a 	addi    r4,r31,74                              <== NOT EXECUTED
ffc0610c:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc06110:	80 63 00 10 	lwz     r3,16(r3)                              <== NOT EXECUTED
ffc06114:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc06118:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
ffc0611c:	4b ff ff b1 	bl      ffc060cc <ppc_interrupt_disable>       <== NOT EXECUTED
    tty->t_dqlen--;                                                   
ffc06120:	81 3f 00 90 	lwz     r9,144(r31)                            <== NOT EXECUTED
ffc06124:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc06128:	91 3f 00 90 	stw     r9,144(r31)                            <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
ffc0612c:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc06130:	61 29 00 02 	ori     r9,r9,2                                <== NOT EXECUTED
ffc06134:	48 00 00 44 	b       ffc06178 <rtems_termios_refill_transmitter+0x98><== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
                                                                      
  } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) == FL_ISNTXOF) {
ffc06138:	81 23 00 b8 	lwz     r9,184(r3)                             
ffc0613c:	55 29 07 be 	clrlwi  r9,r9,30                               
ffc06140:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc06144:	40 be 00 44 	bne+    cr7,ffc06188 <rtems_termios_refill_transmitter+0xa8><== 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);
ffc06148:	81 23 00 a4 	lwz     r9,164(r3)                             <== NOT EXECUTED
ffc0614c:	38 9f 00 49 	addi    r4,r31,73                              <== NOT EXECUTED
ffc06150:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc06154:	80 63 00 10 	lwz     r3,16(r3)                              <== NOT EXECUTED
ffc06158:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc0615c:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
ffc06160:	4b ff ff 6d 	bl      ffc060cc <ppc_interrupt_disable>       <== NOT EXECUTED
    tty->t_dqlen--;                                                   
ffc06164:	81 3f 00 90 	lwz     r9,144(r31)                            <== NOT EXECUTED
ffc06168:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc0616c:	91 3f 00 90 	stw     r9,144(r31)                            <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
ffc06170:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc06174:	55 29 07 fa 	rlwinm  r9,r9,0,31,29                          <== NOT EXECUTED
ffc06178:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0617c:	7c 60 01 24 	mtmsr   r3                                     <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
ffc06180:	3b c0 00 01 	li      r30,1                                  <== NOT EXECUTED
ffc06184:	48 00 01 34 	b       ffc062b8 <rtems_termios_refill_transmitter+0x1d8><== NOT EXECUTED
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
ffc06188:	81 43 00 80 	lwz     r10,128(r3)                            
ffc0618c:	81 23 00 84 	lwz     r9,132(r3)                             
ffc06190:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc06194:	40 9e 00 20 	bne-    cr7,ffc061b4 <rtems_termios_refill_transmitter+0xd4>
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
ffc06198:	81 23 00 94 	lwz     r9,148(r3)                             
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
      }                                                               
      return 0;                                                       
ffc0619c:	3b c0 00 00 	li      r30,0                                  
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
ffc061a0:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc061a4:	40 be 01 14 	bne+    cr7,ffc062b8 <rtems_termios_refill_transmitter+0x1d8><== ALWAYS TAKEN
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
ffc061a8:	80 63 00 8c 	lwz     r3,140(r3)                             <== NOT EXECUTED
ffc061ac:	48 00 28 25 	bl      ffc089d0 <rtems_semaphore_release>     <== NOT EXECUTED
ffc061b0:	48 00 01 08 	b       ffc062b8 <rtems_termios_refill_transmitter+0x1d8><== NOT EXECUTED
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
ffc061b4:	4b ff ff 19 	bl      ffc060cc <ppc_interrupt_disable>       
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
ffc061b8:	39 20 00 00 	li      r9,0                                   
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
    len = tty->t_dqlen;                                               
ffc061bc:	83 bf 00 90 	lwz     r29,144(r31)                           
    tty->t_dqlen = 0;                                                 
ffc061c0:	91 3f 00 90 	stw     r9,144(r31)                            
ffc061c4:	7c 60 01 24 	mtmsr   r3                                     
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
ffc061c8:	81 3f 00 84 	lwz     r9,132(r31)                            
ffc061cc:	81 5f 00 88 	lwz     r10,136(r31)                           
ffc061d0:	7d 3d 4a 14 	add     r9,r29,r9                              
ffc061d4:	7f a9 53 96 	divwu   r29,r9,r10                             
ffc061d8:	7f bd 51 d6 	mullw   r29,r29,r10                            
ffc061dc:	7f bd 48 50 	subf    r29,r29,r9                             
    tty->rawOutBuf.Tail = newTail;                                    
    if (tty->rawOutBufState == rob_wait) {                            
ffc061e0:	81 3f 00 94 	lwz     r9,148(r31)                            
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
    tty->rawOutBuf.Tail = newTail;                                    
ffc061e4:	93 bf 00 84 	stw     r29,132(r31)                           
    if (tty->rawOutBufState == rob_wait) {                            
ffc061e8:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc061ec:	40 be 00 0c 	bne+    cr7,ffc061f8 <rtems_termios_refill_transmitter+0x118>
      /*                                                              
       * wake up any pending writer task                              
       */                                                             
      rtems_semaphore_release (tty->rawOutBuf.Semaphore);             
ffc061f0:	80 7f 00 8c 	lwz     r3,140(r31)                            
ffc061f4:	48 00 27 dd 	bl      ffc089d0 <rtems_semaphore_release>     
    }                                                                 
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
ffc061f8:	81 3f 00 80 	lwz     r9,128(r31)                            
ffc061fc:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc06200:	40 be 00 30 	bne+    cr7,ffc06230 <rtems_termios_refill_transmitter+0x150>
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
ffc06204:	39 20 00 00 	li      r9,0                                   
ffc06208:	91 3f 00 94 	stw     r9,148(r31)                            
      nToSend = 0;                                                    
ffc0620c:	3b c0 00 00 	li      r30,0                                  
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
ffc06210:	81 3f 00 d4 	lwz     r9,212(r31)                            
ffc06214:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06218:	41 9e 00 9c 	beq-    cr7,ffc062b4 <rtems_termios_refill_transmitter+0x1d4><== ALWAYS TAKEN
        (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);   
ffc0621c:	38 7f 00 30 	addi    r3,r31,48                              <== NOT EXECUTED
ffc06220:	80 9f 00 d8 	lwz     r4,216(r31)                            <== NOT EXECUTED
ffc06224:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc06228:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc0622c:	48 00 00 88 	b       ffc062b4 <rtems_termios_refill_transmitter+0x1d4><== NOT EXECUTED
      }                                                               
    }                                                                 
    /* check, whether output should stop due to received XOFF */      
    else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))               
ffc06230:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc06234:	71 29 02 10 	andi.   r9,r9,528                              
ffc06238:	2f 89 02 10 	cmpwi   cr7,r9,528                             
ffc0623c:	40 be 00 28 	bne+    cr7,ffc06264 <rtems_termios_refill_transmitter+0x184><== 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);                                 
ffc06240:	4b ff fe 8d 	bl      ffc060cc <ppc_interrupt_disable>       <== NOT EXECUTED
      tty->flow_ctrl |= FL_OSTOP;                                     
ffc06244:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc06248:	61 29 00 20 	ori     r9,r9,32                               <== NOT EXECUTED
ffc0624c:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
ffc06250:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc06254:	91 3f 00 94 	stw     r9,148(r31)                            <== NOT EXECUTED
ffc06258:	7c 60 01 24 	mtmsr   r3                                     <== NOT EXECUTED
      rtems_interrupt_enable(level);                                  
      nToSend = 0;                                                    
ffc0625c:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
ffc06260:	48 00 00 54 	b       ffc062b4 <rtems_termios_refill_transmitter+0x1d4><== NOT EXECUTED
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
ffc06264:	81 3f 00 80 	lwz     r9,128(r31)                            
ffc06268:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc0626c:	40 9d 00 0c 	ble-    cr7,ffc06278 <rtems_termios_refill_transmitter+0x198>
        nToSend = tty->rawOutBuf.Size - newTail;                      
ffc06270:	83 df 00 88 	lwz     r30,136(r31)                           
ffc06274:	48 00 00 08 	b       ffc0627c <rtems_termios_refill_transmitter+0x19c>
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
ffc06278:	83 df 00 80 	lwz     r30,128(r31)                           
      /* 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)) {                   
ffc0627c:	81 3f 00 b8 	lwz     r9,184(r31)                            
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
        nToSend = tty->rawOutBuf.Size - newTail;                      
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
ffc06280:	7f dd f0 50 	subf    r30,r29,r30                            
      /* 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)) {                   
ffc06284:	71 2a 06 00 	andi.   r10,r9,1536                            
ffc06288:	41 82 00 08 	beq-    ffc06290 <rtems_termios_refill_transmitter+0x1b0>
        nToSend = 1;                                                  
ffc0628c:	3b c0 00 01 	li      r30,1                                  
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
ffc06290:	39 20 00 01 	li      r9,1                                   
      (*tty->device.write)(                                           
ffc06294:	80 9f 00 7c 	lwz     r4,124(r31)                            
      /* 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*/                         
ffc06298:	91 3f 00 94 	stw     r9,148(r31)                            
      (*tty->device.write)(                                           
ffc0629c:	7f c5 f3 78 	mr      r5,r30                                 
ffc062a0:	7c 84 ea 14 	add     r4,r4,r29                              
ffc062a4:	81 3f 00 a4 	lwz     r9,164(r31)                            
ffc062a8:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc062ac:	7d 29 03 a6 	mtctr   r9                                     
ffc062b0:	4e 80 04 21 	bctrl                                          
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
ffc062b4:	93 bf 00 84 	stw     r29,132(r31)                           
  }                                                                   
  return nToSend;                                                     
}                                                                     
ffc062b8:	39 61 00 18 	addi    r11,r1,24                              
ffc062bc:	7f c3 f3 78 	mr      r3,r30                                 
ffc062c0:	4b ff a2 fc 	b       ffc005bc <_restgpr_29_x>               
                                                                      

ffc07cdc <rtems_termios_rxdaemon>: /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) {
ffc07cdc:	7c 2b 0b 78 	mr      r11,r1                                 
ffc07ce0:	7c 08 02 a6 	mflr    r0                                     
ffc07ce4:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc07ce8:	90 01 00 24 	stw     r0,36(r1)                              
ffc07cec:	48 01 23 5d 	bl      ffc1a048 <_savegpr_31>                 
ffc07cf0:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
ffc07cf4:	38 60 00 03 	li      r3,3                                   
ffc07cf8:	38 80 00 02 	li      r4,2                                   
ffc07cfc:	38 a0 00 00 	li      r5,0                                   
ffc07d00:	38 c1 00 08 	addi    r6,r1,8                                
ffc07d04:	48 00 05 51 	bl      ffc08254 <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) {              
ffc07d08:	81 21 00 08 	lwz     r9,8(r1)                               
ffc07d0c:	71 2a 00 01 	andi.   r10,r9,1                               
ffc07d10:	41 a2 00 14 	beq+    ffc07d24 <rtems_termios_rxdaemon+0x48> <== ALWAYS TAKEN
      tty->rxTaskId = 0;                                              
ffc07d14:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc07d18:	91 3f 00 c4 	stw     r9,196(r31)                            <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
ffc07d1c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc07d20:	48 00 0f 05 	bl      ffc08c24 <rtems_task_delete>           <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
ffc07d24:	81 3f 00 a0 	lwz     r9,160(r31)                            
ffc07d28:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc07d2c:	7d 29 03 a6 	mtctr   r9                                     
ffc07d30:	4e 80 04 21 	bctrl                                          
    if (c != EOF) {                                                   
ffc07d34:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc07d38:	41 9e ff bc 	beq+    cr7,ffc07cf4 <rtems_termios_rxdaemon+0x18>
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
ffc07d3c:	98 61 00 0c 	stb     r3,12(r1)                              
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
ffc07d40:	38 81 00 0c 	addi    r4,r1,12                               
ffc07d44:	7f e3 fb 78 	mr      r3,r31                                 
ffc07d48:	38 a0 00 01 	li      r5,1                                   
ffc07d4c:	4b ff fc b1 	bl      ffc079fc <rtems_termios_enqueue_raw_characters>
ffc07d50:	4b ff ff a4 	b       ffc07cf4 <rtems_termios_rxdaemon+0x18> 
                                                                      

ffc062c4 <rtems_termios_txdaemon>: /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) {
ffc062c4:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc062c8:	7c 08 02 a6 	mflr    r0                                     
ffc062cc:	bf c1 00 18 	stmw    r30,24(r1)                             
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
ffc062d0:	3f c0 00 00 	lis     r30,0                                  
                                                                      
/*                                                                    
 * this task actually processes any transmit events                   
 */                                                                   
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{                                                                     
ffc062d4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc062d8:	90 01 00 24 	stw     r0,36(r1)                              
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
ffc062dc:	3b de 28 bc 	addi    r30,r30,10428                          
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
ffc062e0:	38 60 00 03 	li      r3,3                                   
ffc062e4:	38 80 00 02 	li      r4,2                                   
ffc062e8:	38 a0 00 00 	li      r5,0                                   
ffc062ec:	38 c1 00 08 	addi    r6,r1,8                                
ffc062f0:	48 00 1f 65 	bl      ffc08254 <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) {              
ffc062f4:	81 21 00 08 	lwz     r9,8(r1)                               
ffc062f8:	71 2a 00 01 	andi.   r10,r9,1                               
ffc062fc:	41 a2 00 14 	beq+    ffc06310 <rtems_termios_txdaemon+0x4c> <== ALWAYS TAKEN
      tty->txTaskId = 0;                                              
ffc06300:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc06304:	91 3f 00 c8 	stw     r9,200(r31)                            <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
ffc06308:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc0630c:	48 00 29 19 	bl      ffc08c24 <rtems_task_delete>           <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
ffc06310:	81 3f 00 cc 	lwz     r9,204(r31)                            
ffc06314:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc06318:	7d 3e 4a 14 	add     r9,r30,r9                              
ffc0631c:	81 29 00 14 	lwz     r9,20(r9)                              
ffc06320:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06324:	41 9e 00 10 	beq-    cr7,ffc06334 <rtems_termios_txdaemon+0x70><== ALWAYS TAKEN
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
ffc06328:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0632c:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc06330:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * try to push further characters to device                       
     */                                                               
    rtems_termios_refill_transmitter(tty);                            
ffc06334:	7f e3 fb 78 	mr      r3,r31                                 
ffc06338:	4b ff fd a9 	bl      ffc060e0 <rtems_termios_refill_transmitter>
  }                                                                   
ffc0633c:	4b ff ff a4 	b       ffc062e0 <rtems_termios_txdaemon+0x1c> 
                                                                      

ffc075b0 <rtems_termios_write>: rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) {
ffc075b0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc075b4:	7c 08 02 a6 	mflr    r0                                     
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc075b8:	38 80 00 00 	li      r4,0                                   
  rtems_termios_puts (&c, 1, tty);                                    
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
ffc075bc:	90 01 00 24 	stw     r0,36(r1)                              
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc075c0:	38 a0 00 00 	li      r5,0                                   
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc075c4:	81 23 00 00 	lwz     r9,0(r3)                               
  rtems_termios_puts (&c, 1, tty);                                    
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
ffc075c8:	bf 41 00 08 	stmw    r26,8(r1)                              
ffc075cc:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc075d0:	83 e9 00 30 	lwz     r31,48(r9)                             
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc075d4:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc075d8:	48 00 12 d5 	bl      ffc088ac <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc075dc:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc075e0:	40 82 00 94 	bne-    ffc07674 <rtems_termios_write+0xc4>    
    return sc;                                                        
  if (rtems_termios_linesw[tty->t_line].l_write != NULL) {            
ffc075e4:	81 3f 00 cc 	lwz     r9,204(r31)                            
ffc075e8:	3d 40 00 00 	lis     r10,0                                  
ffc075ec:	39 4a 28 bc 	addi    r10,r10,10428                          
ffc075f0:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc075f4:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc075f8:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc075fc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07600:	41 9e 00 1c 	beq-    cr7,ffc0761c <rtems_termios_write+0x6c>
    sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);         
ffc07604:	7f e3 fb 78 	mr      r3,r31                                 
ffc07608:	7d 29 03 a6 	mtctr   r9                                     
ffc0760c:	7f c4 f3 78 	mr      r4,r30                                 
ffc07610:	4e 80 04 21 	bctrl                                          
ffc07614:	7c 7c 1b 78 	mr      r28,r3                                 
ffc07618:	48 00 00 54 	b       ffc0766c <rtems_termios_write+0xbc>    
    rtems_semaphore_release (tty->osem);                              
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
ffc0761c:	81 3f 00 34 	lwz     r9,52(r31)                             
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
ffc07620:	3b a0 00 00 	li      r29,0                                  
ffc07624:	83 7e 00 14 	lwz     r27,20(r30)                            
  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) {                                 
ffc07628:	71 2a 00 01 	andi.   r10,r9,1                               
ffc0762c:	83 5e 00 10 	lwz     r26,16(r30)                            
ffc07630:	40 a2 00 18 	bne+    ffc07648 <rtems_termios_write+0x98>    <== ALWAYS TAKEN
ffc07634:	48 00 00 20 	b       ffc07654 <rtems_termios_write+0xa4>    <== NOT EXECUTED
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
      oproc (*buffer++, tty);                                         
ffc07638:	7c 7a e8 ae 	lbzx    r3,r26,r29                             
ffc0763c:	7f e4 fb 78 	mr      r4,r31                                 
ffc07640:	3b bd 00 01 	addi    r29,r29,1                              
ffc07644:	4b ff f9 2d 	bl      ffc06f70 <oproc>                       
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
ffc07648:	7f 9d d8 00 	cmpw    cr7,r29,r27                            
ffc0764c:	40 9e ff ec 	bne+    cr7,ffc07638 <rtems_termios_write+0x88>
ffc07650:	48 00 00 14 	b       ffc07664 <rtems_termios_write+0xb4>    
      oproc (*buffer++, tty);                                         
    args->bytes_moved = args->count;                                  
  } else {                                                            
    rtems_termios_puts (args->buffer, args->count, tty);              
ffc07654:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc07658:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc0765c:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc07660:	4b ff f7 e5 	bl      ffc06e44 <rtems_termios_puts>          <== NOT EXECUTED
    args->bytes_moved = args->count;                                  
ffc07664:	81 3e 00 14 	lwz     r9,20(r30)                             
ffc07668:	91 3e 00 1c 	stw     r9,28(r30)                             
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
ffc0766c:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc07670:	48 00 13 61 	bl      ffc089d0 <rtems_semaphore_release>     
  return sc;                                                          
}                                                                     
ffc07674:	39 61 00 20 	addi    r11,r1,32                              
ffc07678:	7f 83 e3 78 	mr      r3,r28                                 
ffc0767c:	4b ff 8f 34 	b       ffc005b0 <_restgpr_26_x>               
                                                                      

ffc1955c <rtems_timer_cancel>: */ rtems_status_code rtems_timer_cancel( rtems_id id ) {
ffc1955c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc19560:	7c 08 02 a6 	mflr    r0                                     
ffc19564:	7c 64 1b 78 	mr      r4,r3                                  
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (                      
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
ffc19568:	3c 60 00 00 	lis     r3,0                                   
ffc1956c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc19570:	38 63 72 e0 	addi    r3,r3,29408                            
ffc19574:	38 a1 00 08 	addi    r5,r1,8                                
ffc19578:	48 00 31 bd 	bl      ffc1c734 <_Objects_Get>                
  Timer_Control   *the_timer;                                         
  Objects_Locations       location;                                   
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
ffc1957c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc19580:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc19584:	40 9e 00 24 	bne-    cr7,ffc195a8 <rtems_timer_cancel+0x4c> 
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )         
ffc19588:	81 23 00 38 	lwz     r9,56(r3)                              
ffc1958c:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc19590:	41 9e 00 0c 	beq-    cr7,ffc1959c <rtems_timer_cancel+0x40> <== NEVER TAKEN
        (void) _Watchdog_Remove( &the_timer->Ticker );                
ffc19594:	38 63 00 10 	addi    r3,r3,16                               
ffc19598:	48 00 50 cd 	bl      ffc1e664 <_Watchdog_Remove>            
      _Thread_Enable_dispatch();                                      
ffc1959c:	48 00 40 49 	bl      ffc1d5e4 <_Thread_Enable_dispatch>     
      return RTEMS_SUCCESSFUL;                                        
ffc195a0:	38 60 00 00 	li      r3,0                                   
ffc195a4:	48 00 00 08 	b       ffc195ac <rtems_timer_cancel+0x50>     
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc195a8:	38 60 00 04 	li      r3,4                                   
}                                                                     
ffc195ac:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc195b0:	38 21 00 18 	addi    r1,r1,24                               
ffc195b4:	7c 08 03 a6 	mtlr    r0                                     
ffc195b8:	4e 80 00 20 	blr                                            
                                                                      

ffc19b24 <rtems_timer_server_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
ffc19b24:	94 21 ff c8 	stwu    r1,-56(r1)                             
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
ffc19b28:	3d 20 00 00 	lis     r9,0                                   
  rtems_id                           id,                              
  rtems_time_of_day                  *wall_time,                      
  rtems_timer_service_routine_entry  routine,                         
  void                              *user_data                        
)                                                                     
{                                                                     
ffc19b2c:	7c 08 02 a6 	mflr    r0                                     
ffc19b30:	bf 01 00 18 	stmw    r24,24(r1)                             
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
ffc19b34:	83 c9 29 38 	lwz     r30,10552(r9)                          
  rtems_id                           id,                              
  rtems_time_of_day                  *wall_time,                      
  rtems_timer_service_routine_entry  routine,                         
  void                              *user_data                        
)                                                                     
{                                                                     
ffc19b38:	90 01 00 3c 	stw     r0,60(r1)                              
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
ffc19b3c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc19b40:	41 9e 01 04 	beq-    cr7,ffc19c44 <rtems_timer_server_fire_when+0x120>
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD.is_set )                                                 
ffc19b44:	3f a0 00 00 	lis     r29,0                                  
ffc19b48:	3b bd 70 00 	addi    r29,r29,28672                          
ffc19b4c:	89 5d 00 14 	lbz     r10,20(r29)                            
ffc19b50:	7c 7b 1b 78 	mr      r27,r3                                 
    return RTEMS_NOT_DEFINED;                                         
ffc19b54:	38 60 00 0b 	li      r3,11                                  
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD.is_set )                                                 
ffc19b58:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc19b5c:	41 be 00 f0 	beq+    cr7,ffc19c4c <rtems_timer_server_fire_when+0x128><== NEVER TAKEN
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
ffc19b60:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc19b64:	7c ba 2b 78 	mr      r26,r5                                 
    return RTEMS_INVALID_ADDRESS;                                     
ffc19b68:	38 60 00 09 	li      r3,9                                   
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD.is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
ffc19b6c:	41 9e 00 e0 	beq-    cr7,ffc19c4c <rtems_timer_server_fire_when+0x128>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
ffc19b70:	7c 83 23 78 	mr      r3,r4                                  
ffc19b74:	7c 9f 23 78 	mr      r31,r4                                 
ffc19b78:	7c d8 33 78 	mr      r24,r6                                 
ffc19b7c:	4b ff c9 01 	bl      ffc1647c <_TOD_Validate>               
ffc19b80:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc19b84:	40 9e 00 0c 	bne-    cr7,ffc19b90 <rtems_timer_server_fire_when+0x6c>
    return RTEMS_INVALID_CLOCK;                                       
ffc19b88:	38 60 00 14 	li      r3,20                                  
ffc19b8c:	48 00 00 c0 	b       ffc19c4c <rtems_timer_server_fire_when+0x128>
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
ffc19b90:	7f e3 fb 78 	mr      r3,r31                                 
ffc19b94:	4b ff c8 45 	bl      ffc163d8 <_TOD_To_seconds>             
ffc19b98:	80 9d 00 04 	lwz     r4,4(r29)                              
ffc19b9c:	7c 7c 1b 78 	mr      r28,r3                                 
ffc19ba0:	80 7d 00 00 	lwz     r3,0(r29)                              
ffc19ba4:	3c c0 3b 9a 	lis     r6,15258                               
ffc19ba8:	38 a0 00 00 	li      r5,0                                   
ffc19bac:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc19bb0:	48 01 39 c9 	bl      ffc2d578 <__divdi3>                    
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
ffc19bb4:	7f 9c 20 40 	cmplw   cr7,r28,r4                             
ffc19bb8:	40 9d ff d0 	ble+    cr7,ffc19b88 <rtems_timer_server_fire_when+0x64>
ffc19bbc:	3c 60 00 00 	lis     r3,0                                   
ffc19bc0:	38 63 72 e0 	addi    r3,r3,29408                            
ffc19bc4:	7f 64 db 78 	mr      r4,r27                                 
ffc19bc8:	38 a1 00 08 	addi    r5,r1,8                                
ffc19bcc:	48 00 2b 69 	bl      ffc1c734 <_Objects_Get>                
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
ffc19bd0:	83 21 00 08 	lwz     r25,8(r1)                              
ffc19bd4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc19bd8:	2f 99 00 00 	cmpwi   cr7,r25,0                              
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc19bdc:	38 60 00 04 	li      r3,4                                   
  seconds = _TOD_To_seconds( wall_time );                             
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
ffc19be0:	40 9e 00 6c 	bne-    cr7,ffc19c4c <rtems_timer_server_fire_when+0x128>
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
ffc19be4:	38 7f 00 10 	addi    r3,r31,16                              
ffc19be8:	48 00 4a 7d 	bl      ffc1e664 <_Watchdog_Remove>            
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
ffc19bec:	39 20 00 03 	li      r9,3                                   
ffc19bf0:	91 3f 00 38 	stw     r9,56(r31)                             
ffc19bf4:	3c c0 3b 9a 	lis     r6,15258                               
ffc19bf8:	38 a0 00 00 	li      r5,0                                   
ffc19bfc:	80 7d 00 00 	lwz     r3,0(r29)                              
ffc19c00:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc19c04:	80 9d 00 04 	lwz     r4,4(r29)                              
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc19c08:	93 3f 00 18 	stw     r25,24(r31)                            
  the_watchdog->routine   = routine;                                  
ffc19c0c:	93 5f 00 2c 	stw     r26,44(r31)                            
  the_watchdog->id        = id;                                       
ffc19c10:	93 7f 00 30 	stw     r27,48(r31)                            
  the_watchdog->user_data = user_data;                                
ffc19c14:	93 1f 00 34 	stw     r24,52(r31)                            
ffc19c18:	48 01 39 61 	bl      ffc2d578 <__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 ); 
ffc19c1c:	81 3e 00 04 	lwz     r9,4(r30)                              
                                                                      
    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();
ffc19c20:	7c 84 e0 50 	subf    r4,r4,r28                              
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
ffc19c24:	7f c3 f3 78 	mr      r3,r30                                 
                                                                      
    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();
ffc19c28:	90 9f 00 1c 	stw     r4,28(r31)                             
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
ffc19c2c:	7d 29 03 a6 	mtctr   r9                                     
ffc19c30:	7f e4 fb 78 	mr      r4,r31                                 
ffc19c34:	4e 80 04 21 	bctrl                                          
                                                                      
      _Thread_Enable_dispatch();                                      
ffc19c38:	48 00 39 ad 	bl      ffc1d5e4 <_Thread_Enable_dispatch>     
      return RTEMS_SUCCESSFUL;                                        
ffc19c3c:	38 60 00 00 	li      r3,0                                   
ffc19c40:	48 00 00 0c 	b       ffc19c4c <rtems_timer_server_fire_when+0x128>
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
    return RTEMS_INCORRECT_STATE;                                     
ffc19c44:	38 60 00 0e 	li      r3,14                                  
ffc19c48:	48 00 00 04 	b       ffc19c4c <rtems_timer_server_fire_when+0x128>
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc19c4c:	39 61 00 38 	addi    r11,r1,56                              
ffc19c50:	4b ff 47 50 	b       ffc0e3a0 <_restgpr_24_x>               
                                                                      

ffc0426c <rtems_verror>: { int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) {
ffc0426c:	74 69 20 00 	andis.  r9,r3,8192                             
static int rtems_verror(                                              
  rtems_error_code_t  error_flag,                                     
  const char         *printf_format,                                  
  va_list             arglist                                         
)                                                                     
{                                                                     
ffc04270:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc04274:	7c 08 02 a6 	mflr    r0                                     
ffc04278:	bf 61 00 0c 	stmw    r27,12(r1)                             
ffc0427c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc04280:	7c 9b 23 78 	mr      r27,r4                                 
ffc04284:	90 01 00 24 	stw     r0,36(r1)                              
ffc04288:	7c bc 2b 78 	mr      r28,r5                                 
  int               local_errno = 0;                                  
  int               chars_written = 0;                                
  rtems_status_code status;                                           
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
ffc0428c:	40 a2 00 28 	bne+    ffc042b4 <rtems_verror+0x48>           
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
ffc04290:	3f e0 00 00 	lis     r31,0                                  
ffc04294:	81 3f 27 a8 	lwz     r9,10152(r31)                          
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
ffc04298:	57 dd 01 00 	rlwinm  r29,r30,0,4,0                          
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
ffc0429c:	80 69 00 08 	lwz     r3,8(r9)                               
ffc042a0:	48 00 ba 61 	bl      ffc0fd00 <fflush>                      
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
ffc042a4:	77 c9 40 00 	andis.  r9,r30,16384                           
ffc042a8:	40 82 00 4c 	bne-    ffc042f4 <rtems_verror+0x88>           
  rtems_error_code_t  error_flag,                                     
  const char         *printf_format,                                  
  va_list             arglist                                         
)                                                                     
{                                                                     
  int               local_errno = 0;                                  
ffc042ac:	3b c0 00 00 	li      r30,0                                  
ffc042b0:	48 00 00 4c 	b       ffc042fc <rtems_verror+0x90>           
  int               chars_written = 0;                                
  rtems_status_code status;                                           
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
    if (rtems_panic_in_progress++)                                    
ffc042b4:	3d 40 00 00 	lis     r10,0                                  
ffc042b8:	81 2a 28 04 	lwz     r9,10244(r10)                          
ffc042bc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc042c0:	39 09 00 01 	addi    r8,r9,1                                
ffc042c4:	91 0a 28 04 	stw     r8,10244(r10)                          
ffc042c8:	41 be 00 14 	beq+    cr7,ffc042dc <rtems_verror+0x70>       <== 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;                  
ffc042cc:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
ffc042d0:	81 49 28 24 	lwz     r10,10276(r9)                          <== NOT EXECUTED
                                                                      
    ++level;                                                          
ffc042d4:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
    _Thread_Dispatch_disable_level = level;                           
ffc042d8:	91 49 28 24 	stw     r10,10276(r9)                          <== NOT EXECUTED
      _Thread_Disable_dispatch();       /* disable task switches */   
                                                                      
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
ffc042dc:	3d 20 00 00 	lis     r9,0                                   
ffc042e0:	81 29 28 04 	lwz     r9,10244(r9)                           
      return 0;                                                       
ffc042e4:	3b e0 00 00 	li      r31,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)                                  
ffc042e8:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc042ec:	40 9d ff a4 	ble+    cr7,ffc04290 <rtems_verror+0x24>       <== ALWAYS TAKEN
ffc042f0:	48 00 00 f4 	b       ffc043e4 <rtems_verror+0x178>          <== NOT EXECUTED
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
    local_errno = errno;                                              
ffc042f4:	48 00 b5 45 	bl      ffc0f838 <__errno>                     
ffc042f8:	83 c3 00 00 	lwz     r30,0(r3)                              
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if (_System_state_Is_multiprocessing)                             
      fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node);
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
ffc042fc:	81 3f 27 a8 	lwz     r9,10152(r31)                          
ffc04300:	7f 64 db 78 	mr      r4,r27                                 
ffc04304:	7f 85 e3 78 	mr      r5,r28                                 
ffc04308:	80 69 00 0c 	lwz     r3,12(r9)                              
ffc0430c:	48 01 11 c5 	bl      ffc154d0 <vfprintf>                    
                                                                      
  if (status)                                                         
ffc04310:	2f 9d 00 00 	cmpwi   cr7,r29,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);          
ffc04314:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  if (status)                                                         
ffc04318:	41 be 00 34 	beq+    cr7,ffc0434c <rtems_verror+0xe0>       
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
ffc0431c:	3d 20 00 00 	lis     r9,0                                   
ffc04320:	81 29 27 a8 	lwz     r9,10152(r9)                           
ffc04324:	7f a3 eb 78 	mr      r3,r29                                 
ffc04328:	83 89 00 0c 	lwz     r28,12(r9)                             
ffc0432c:	4b ff ff 31 	bl      ffc0425c <rtems_status_text>           
ffc04330:	3c 80 ff c2 	lis     r4,-62                                 
ffc04334:	7c 65 1b 78 	mr      r5,r3                                  
ffc04338:	38 84 bb 44 	addi    r4,r4,-17596                           
ffc0433c:	7f 83 e3 78 	mr      r3,r28                                 
ffc04340:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04344:	48 00 bf 05 	bl      ffc10248 <fprintf>                     
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
ffc04348:	7f ff 1a 14 	add     r31,r31,r3                             
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
                                                                      
  if (local_errno) {                                                  
ffc0434c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc04350:	41 9e 00 68 	beq-    cr7,ffc043b8 <rtems_verror+0x14c>      
    if ((local_errno > 0) && *strerror(local_errno))                  
ffc04354:	40 9d 00 40 	ble-    cr7,ffc04394 <rtems_verror+0x128>      
ffc04358:	7f c3 f3 78 	mr      r3,r30                                 
ffc0435c:	48 00 cd 89 	bl      ffc110e4 <strerror>                    
ffc04360:	89 23 00 00 	lbz     r9,0(r3)                               
ffc04364:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04368:	41 be 00 2c 	beq+    cr7,ffc04394 <rtems_verror+0x128>      <== NEVER TAKEN
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
ffc0436c:	3d 20 00 00 	lis     r9,0                                   
ffc04370:	81 29 27 a8 	lwz     r9,10152(r9)                           
ffc04374:	7f c3 f3 78 	mr      r3,r30                                 
ffc04378:	83 a9 00 0c 	lwz     r29,12(r9)                             
ffc0437c:	48 00 cd 69 	bl      ffc110e4 <strerror>                    
ffc04380:	3c 80 ff c2 	lis     r4,-62                                 
ffc04384:	7c 65 1b 78 	mr      r5,r3                                  
ffc04388:	38 84 bb 52 	addi    r4,r4,-17582                           
ffc0438c:	7f a3 eb 78 	mr      r3,r29                                 
ffc04390:	48 00 00 1c 	b       ffc043ac <rtems_verror+0x140>          
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
ffc04394:	3d 20 00 00 	lis     r9,0                                   
ffc04398:	81 29 27 a8 	lwz     r9,10152(r9)                           
ffc0439c:	3c 80 ff c2 	lis     r4,-62                                 
ffc043a0:	38 84 bb 5f 	addi    r4,r4,-17569                           
ffc043a4:	80 69 00 0c 	lwz     r3,12(r9)                              
ffc043a8:	7f c5 f3 78 	mr      r5,r30                                 
ffc043ac:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc043b0:	48 00 be 99 	bl      ffc10248 <fprintf>                     
ffc043b4:	7f ff 1a 14 	add     r31,r31,r3                             
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
ffc043b8:	3f c0 00 00 	lis     r30,0                                  
ffc043bc:	81 3e 27 a8 	lwz     r9,10152(r30)                          
ffc043c0:	3c 80 ff c2 	lis     r4,-62                                 
ffc043c4:	38 84 be 86 	addi    r4,r4,-16762                           
ffc043c8:	80 69 00 0c 	lwz     r3,12(r9)                              
ffc043cc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc043d0:	48 00 be 79 	bl      ffc10248 <fprintf>                     
                                                                      
  (void) fflush(stderr);                                              
ffc043d4:	81 3e 27 a8 	lwz     r9,10152(r30)                          
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
ffc043d8:	7f ff 1a 14 	add     r31,r31,r3                             
                                                                      
  (void) fflush(stderr);                                              
ffc043dc:	80 69 00 0c 	lwz     r3,12(r9)                              
ffc043e0:	48 00 b9 21 	bl      ffc0fd00 <fflush>                      
                                                                      
  return chars_written;                                               
}                                                                     
ffc043e4:	39 61 00 20 	addi    r11,r1,32                              
ffc043e8:	7f e3 fb 78 	mr      r3,r31                                 
ffc043ec:	4b ff c1 c8 	b       ffc005b4 <_restgpr_27_x>               
                                                                      

ffc248e4 <scanInt>: /** * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) {
ffc248e4:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc248e8:	7c 08 02 a6 	mflr    r0                                     
ffc248ec:	bf 01 00 08 	stmw    r24,8(r1)                              
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
ffc248f0:	3f 80 7f ff 	lis     r28,32767                              
/**                                                                   
 *  Extract an integer value from the database                        
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
ffc248f4:	7c 7e 1b 78 	mr      r30,r3                                 
ffc248f8:	90 01 00 2c 	stw     r0,44(r1)                              
ffc248fc:	7c 9b 23 78 	mr      r27,r4                                 
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
ffc24900:	3b a0 00 00 	li      r29,0                                  
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
ffc24904:	63 9c ff ff 	ori     r28,r28,65535                          
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
  int c;                                                              
  unsigned int i = 0;                                                 
ffc24908:	3b e0 00 00 	li      r31,0                                  
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
ffc2490c:	3f 40 00 00 	lis     r26,0                                  
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
ffc24910:	3f 20 00 00 	lis     r25,0                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
ffc24914:	3b 00 00 0a 	li      r24,10                                 
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
ffc24918:	81 3e 00 04 	lwz     r9,4(r30)                              
ffc2491c:	39 29 ff ff 	addi    r9,r9,-1                               
ffc24920:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc24924:	91 3e 00 04 	stw     r9,4(r30)                              
ffc24928:	40 bc 00 14 	bge+    cr7,ffc2493c <scanInt+0x58>            <== ALWAYS TAKEN
ffc2492c:	80 7a 33 f4 	lwz     r3,13300(r26)                          <== NOT EXECUTED
ffc24930:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc24934:	48 01 95 6d 	bl      ffc3dea0 <__srget_r>                   <== NOT EXECUTED
ffc24938:	48 00 00 14 	b       ffc2494c <scanInt+0x68>                <== NOT EXECUTED
ffc2493c:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc24940:	88 69 00 00 	lbz     r3,0(r9)                               
ffc24944:	39 29 00 01 	addi    r9,r9,1                                
ffc24948:	91 3e 00 00 	stw     r9,0(r30)                              
    if (c == ':')                                                     
ffc2494c:	2f 03 00 3a 	cmpwi   cr6,r3,58                              
ffc24950:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc24954:	41 9a 00 6c 	beq-    cr6,ffc249c0 <scanInt+0xdc>            
      break;                                                          
    if (sign == 0) {                                                  
ffc24958:	40 9e 00 1c 	bne-    cr7,ffc24974 <scanInt+0x90>            
      if (c == '-') {                                                 
ffc2495c:	2f 83 00 2d 	cmpwi   cr7,r3,45                              
        sign = -1;                                                    
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
ffc24960:	3b a0 00 01 	li      r29,1                                  
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
ffc24964:	40 be 00 10 	bne+    cr7,ffc24974 <scanInt+0x90>            
        sign = -1;                                                    
        limit++;                                                      
ffc24968:	3b 9c 00 01 	addi    r28,r28,1                              
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
        sign = -1;                                                    
ffc2496c:	3b a0 ff ff 	li      r29,-1                                 
        limit++;                                                      
        continue;                                                     
ffc24970:	4b ff ff a8 	b       ffc24918 <scanInt+0x34>                
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
ffc24974:	81 39 33 e4 	lwz     r9,13284(r25)                          
ffc24978:	7d 29 1a 14 	add     r9,r9,r3                               
ffc2497c:	89 29 00 01 	lbz     r9,1(r9)                               
ffc24980:	55 29 07 7a 	rlwinm  r9,r9,0,29,29                          
ffc24984:	71 2a 00 ff 	andi.   r10,r9,255                             
ffc24988:	41 82 00 4c 	beq-    ffc249d4 <scanInt+0xf0>                
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
ffc2498c:	7d 3c c3 96 	divwu   r9,r28,r24                             
ffc24990:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
ffc24994:	38 63 ff d0 	addi    r3,r3,-48                              
    if ((i > (limit / 10))                                            
ffc24998:	41 9d 00 3c 	bgt-    cr7,ffc249d4 <scanInt+0xf0>            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
ffc2499c:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc249a0:	40 be 00 14 	bne+    cr7,ffc249b4 <scanInt+0xd0>            
ffc249a4:	1d 3f 00 0a 	mulli   r9,r31,10                              
ffc249a8:	7d 29 e0 50 	subf    r9,r9,r28                              
ffc249ac:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc249b0:	41 9d 00 24 	bgt-    cr7,ffc249d4 <scanInt+0xf0>            <== ALWAYS TAKEN
      return 0;                                                       
    i = i * 10 + d;                                                   
ffc249b4:	1f ff 00 0a 	mulli   r31,r31,10                             
ffc249b8:	7f e3 fa 14 	add     r31,r3,r31                             
ffc249bc:	4b ff ff 5c 	b       ffc24918 <scanInt+0x34>                
  }                                                                   
  if (sign == 0)                                                      
ffc249c0:	41 9e 00 14 	beq-    cr7,ffc249d4 <scanInt+0xf0>            <== NEVER TAKEN
    return 0;                                                         
  *val = i * sign;                                                    
ffc249c4:	7f fd f9 d6 	mullw   r31,r29,r31                            
  return 1;                                                           
ffc249c8:	38 60 00 01 	li      r3,1                                   
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
ffc249cc:	93 fb 00 00 	stw     r31,0(r27)                             
  return 1;                                                           
ffc249d0:	48 00 00 08 	b       ffc249d8 <scanInt+0xf4>                
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
ffc249d4:	38 60 00 00 	li      r3,0                                   
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
  return 1;                                                           
}                                                                     
ffc249d8:	39 61 00 28 	addi    r11,r1,40                              
ffc249dc:	48 02 ee 04 	b       ffc537e0 <_restgpr_24_x>               
                                                                      

ffc24ae0 <scangr>: FILE *fp, struct group *grp, char *buffer, size_t bufsize ) {
ffc24ae0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc24ae4:	7c 08 02 a6 	mflr    r0                                     
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
ffc24ae8:	38 e0 00 00 	li      r7,0                                   
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc24aec:	90 a1 00 18 	stw     r5,24(r1)                              
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
ffc24af0:	38 a1 00 18 	addi    r5,r1,24                               
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc24af4:	90 c1 00 1c 	stw     r6,28(r1)                              
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
ffc24af8:	38 c1 00 1c 	addi    r6,r1,28                               
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc24afc:	bf c1 00 20 	stmw    r30,32(r1)                             
ffc24b00:	7c 7e 1b 78 	mr      r30,r3                                 
ffc24b04:	7c 9f 23 78 	mr      r31,r4                                 
ffc24b08:	90 01 00 2c 	stw     r0,44(r1)                              
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
ffc24b0c:	4b ff fe d5 	bl      ffc249e0 <scanString>                  
ffc24b10:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24b14:	40 9e 00 0c 	bne-    cr7,ffc24b20 <scangr+0x40>             
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &grgid)                                            
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
    return 0;                                                         
ffc24b18:	38 60 00 00 	li      r3,0                                   
ffc24b1c:	48 00 01 0c 	b       ffc24c28 <scangr+0x148>                
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
ffc24b20:	7f c3 f3 78 	mr      r3,r30                                 
ffc24b24:	38 9f 00 04 	addi    r4,r31,4                               
ffc24b28:	38 a1 00 18 	addi    r5,r1,24                               
ffc24b2c:	38 c1 00 1c 	addi    r6,r1,28                               
ffc24b30:	38 e0 00 00 	li      r7,0                                   
ffc24b34:	4b ff fe ad 	bl      ffc249e0 <scanString>                  
ffc24b38:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24b3c:	41 9e ff dc 	beq+    cr7,ffc24b18 <scangr+0x38>             <== NEVER TAKEN
   || !scanInt(fp, &grgid)                                            
ffc24b40:	7f c3 f3 78 	mr      r3,r30                                 
ffc24b44:	38 81 00 0c 	addi    r4,r1,12                               
ffc24b48:	4b ff fd 9d 	bl      ffc248e4 <scanInt>                     
ffc24b4c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24b50:	41 9e ff c8 	beq+    cr7,ffc24b18 <scangr+0x38>             <== NEVER TAKEN
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
ffc24b54:	7f c3 f3 78 	mr      r3,r30                                 
ffc24b58:	38 81 00 08 	addi    r4,r1,8                                
ffc24b5c:	38 a1 00 18 	addi    r5,r1,24                               
ffc24b60:	38 c1 00 1c 	addi    r6,r1,28                               
ffc24b64:	38 e0 00 01 	li      r7,1                                   
ffc24b68:	4b ff fe 79 	bl      ffc249e0 <scanString>                  
ffc24b6c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24b70:	41 be ff a8 	beq-    cr7,ffc24b18 <scangr+0x38>             <== NEVER TAKEN
    return 0;                                                         
  grp->gr_gid = grgid;                                                
ffc24b74:	81 21 00 0c 	lwz     r9,12(r1)                              
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc24b78:	81 41 00 08 	lwz     r10,8(r1)                              
  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;                                                
ffc24b7c:	b1 3f 00 08 	sth     r9,8(r31)                              
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc24b80:	39 20 00 01 	li      r9,1                                   
}                                                                     
                                                                      
/**                                                                   
 *  Extract a single group record from the database                   
 */                                                                   
static int scangr(                                                    
ffc24b84:	38 ea ff ff 	addi    r7,r10,-1                              
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc24b88:	48 00 00 14 	b       ffc24b9c <scangr+0xbc>                 
    if(*cp == ',')                                                    
      memcount++;                                                     
ffc24b8c:	69 06 00 2c 	xori    r6,r8,44                               
ffc24b90:	20 c6 00 00 	subfic  r6,r6,0                                
ffc24b94:	7c c9 01 94 	addze   r6,r9                                  
ffc24b98:	7c c9 33 78 	mr      r9,r6                                  
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc24b9c:	8d 07 00 01 	lbzu    r8,1(r7)                               
ffc24ba0:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc24ba4:	40 9e ff e8 	bne+    cr7,ffc24b8c <scangr+0xac>             
  }                                                                   
                                                                      
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
ffc24ba8:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc24bac:	81 01 00 1c 	lwz     r8,28(r1)                              
ffc24bb0:	39 29 00 13 	addi    r9,r9,19                               
ffc24bb4:	7f 88 48 40 	cmplw   cr7,r8,r9                              
ffc24bb8:	41 bc ff 60 	blt-    cr7,ffc24b18 <scangr+0x38>             <== NEVER TAKEN
    return 0;                                                         
  grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);            
ffc24bbc:	81 21 00 18 	lwz     r9,24(r1)                              
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
ffc24bc0:	38 c0 00 00 	li      r6,0                                   
  /*                                                                  
   * 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);            
ffc24bc4:	39 29 00 0f 	addi    r9,r9,15                               
ffc24bc8:	55 29 00 36 	rlwinm  r9,r9,0,0,27                           
ffc24bcc:	91 3f 00 0c 	stw     r9,12(r31)                             
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
ffc24bd0:	91 49 00 00 	stw     r10,0(r9)                              
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc24bd4:	39 20 00 01 	li      r9,1                                   
}                                                                     
                                                                      
/**                                                                   
 *  Extract a single group record from the database                   
 */                                                                   
static int scangr(                                                    
ffc24bd8:	81 41 00 08 	lwz     r10,8(r1)                              
ffc24bdc:	39 4a ff ff 	addi    r10,r10,-1                             
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc24be0:	48 00 00 28 	b       ffc24c08 <scangr+0x128>                
    if(*cp == ',') {                                                  
ffc24be4:	2f 88 00 2c 	cmpwi   cr7,r8,44                              
ffc24be8:	40 be 00 1c 	bne+    cr7,ffc24c04 <scangr+0x124>            
      *cp = '\0';                                                     
ffc24bec:	98 c7 00 00 	stb     r6,0(r7)                               
      grp->gr_mem[memcount++] = cp + 1;                               
ffc24bf0:	55 25 10 3a 	rlwinm  r5,r9,2,0,29                           
}                                                                     
                                                                      
/**                                                                   
 *  Extract a single group record from the database                   
 */                                                                   
static int scangr(                                                    
ffc24bf4:	39 4a 00 02 	addi    r10,r10,2                              
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
      grp->gr_mem[memcount++] = cp + 1;                               
ffc24bf8:	81 1f 00 0c 	lwz     r8,12(r31)                             
ffc24bfc:	39 29 00 01 	addi    r9,r9,1                                
ffc24c00:	7d 48 29 2e 	stwx    r10,r8,r5                              
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc24c04:	7c ea 3b 78 	mr      r10,r7                                 
ffc24c08:	89 0a 00 01 	lbz     r8,1(r10)                              
ffc24c0c:	38 ea 00 01 	addi    r7,r10,1                               
ffc24c10:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc24c14:	40 9e ff d0 	bne+    cr7,ffc24be4 <scangr+0x104>            
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
      grp->gr_mem[memcount++] = cp + 1;                               
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
ffc24c18:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc24c1c:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
  return 1;                                                           
ffc24c20:	38 60 00 01 	li      r3,1                                   
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
      grp->gr_mem[memcount++] = cp + 1;                               
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
ffc24c24:	7d 0a 49 2e 	stwx    r8,r10,r9                              
  return 1;                                                           
}                                                                     
ffc24c28:	39 61 00 28 	addi    r11,r1,40                              
ffc24c2c:	48 02 eb cc 	b       ffc537f8 <_restgpr_30_x>               
                                                                      

ffc24c30 <scanpw>: FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) {
ffc24c30:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc24c34:	7c 08 02 a6 	mflr    r0                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
ffc24c38:	38 e0 00 00 	li      r7,0                                   
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc24c3c:	90 a1 00 18 	stw     r5,24(r1)                              
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
ffc24c40:	38 a1 00 18 	addi    r5,r1,24                               
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc24c44:	90 c1 00 1c 	stw     r6,28(r1)                              
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
ffc24c48:	38 c1 00 1c 	addi    r6,r1,28                               
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc24c4c:	bf c1 00 20 	stmw    r30,32(r1)                             
ffc24c50:	7c 7e 1b 78 	mr      r30,r3                                 
ffc24c54:	7c 9f 23 78 	mr      r31,r4                                 
ffc24c58:	90 01 00 2c 	stw     r0,44(r1)                              
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
ffc24c5c:	4b ff fd 85 	bl      ffc249e0 <scanString>                  
ffc24c60:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24c64:	40 9e 00 0c 	bne-    cr7,ffc24c70 <scanpw+0x40>             
   || !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;                                                         
ffc24c68:	38 60 00 00 	li      r3,0                                   
ffc24c6c:	48 00 00 e0 	b       ffc24d4c <scanpw+0x11c>                
)                                                                     
{                                                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
   || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)          
ffc24c70:	7f c3 f3 78 	mr      r3,r30                                 
ffc24c74:	38 9f 00 04 	addi    r4,r31,4                               
ffc24c78:	38 a1 00 18 	addi    r5,r1,24                               
ffc24c7c:	38 c1 00 1c 	addi    r6,r1,28                               
ffc24c80:	38 e0 00 00 	li      r7,0                                   
ffc24c84:	4b ff fd 5d 	bl      ffc249e0 <scanString>                  
ffc24c88:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24c8c:	41 9e ff dc 	beq+    cr7,ffc24c68 <scanpw+0x38>             <== NEVER TAKEN
   || !scanInt(fp, &pwuid)                                            
ffc24c90:	7f c3 f3 78 	mr      r3,r30                                 
ffc24c94:	38 81 00 0c 	addi    r4,r1,12                               
ffc24c98:	4b ff fc 4d 	bl      ffc248e4 <scanInt>                     
ffc24c9c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24ca0:	41 9e ff c8 	beq+    cr7,ffc24c68 <scanpw+0x38>             
   || !scanInt(fp, &pwgid)                                            
ffc24ca4:	7f c3 f3 78 	mr      r3,r30                                 
ffc24ca8:	38 81 00 08 	addi    r4,r1,8                                
ffc24cac:	4b ff fc 39 	bl      ffc248e4 <scanInt>                     
ffc24cb0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24cb4:	41 9e ff b4 	beq+    cr7,ffc24c68 <scanpw+0x38>             
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
ffc24cb8:	7f c3 f3 78 	mr      r3,r30                                 
ffc24cbc:	38 9f 00 0c 	addi    r4,r31,12                              
ffc24cc0:	38 a1 00 18 	addi    r5,r1,24                               
ffc24cc4:	38 c1 00 1c 	addi    r6,r1,28                               
ffc24cc8:	38 e0 00 00 	li      r7,0                                   
ffc24ccc:	4b ff fd 15 	bl      ffc249e0 <scanString>                  
ffc24cd0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24cd4:	41 9e ff 94 	beq+    cr7,ffc24c68 <scanpw+0x38>             <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)           
ffc24cd8:	7f c3 f3 78 	mr      r3,r30                                 
ffc24cdc:	38 9f 00 10 	addi    r4,r31,16                              
ffc24ce0:	38 a1 00 18 	addi    r5,r1,24                               
ffc24ce4:	38 c1 00 1c 	addi    r6,r1,28                               
ffc24ce8:	38 e0 00 00 	li      r7,0                                   
ffc24cec:	4b ff fc f5 	bl      ffc249e0 <scanString>                  
ffc24cf0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24cf4:	41 9e ff 74 	beq+    cr7,ffc24c68 <scanpw+0x38>             <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)             
ffc24cf8:	7f c3 f3 78 	mr      r3,r30                                 
ffc24cfc:	38 9f 00 14 	addi    r4,r31,20                              
ffc24d00:	38 a1 00 18 	addi    r5,r1,24                               
ffc24d04:	38 c1 00 1c 	addi    r6,r1,28                               
ffc24d08:	38 e0 00 00 	li      r7,0                                   
ffc24d0c:	4b ff fc d5 	bl      ffc249e0 <scanString>                  
ffc24d10:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24d14:	41 9e ff 54 	beq+    cr7,ffc24c68 <scanpw+0x38>             <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))          
ffc24d18:	7f c3 f3 78 	mr      r3,r30                                 
ffc24d1c:	38 9f 00 18 	addi    r4,r31,24                              
ffc24d20:	38 a1 00 18 	addi    r5,r1,24                               
ffc24d24:	38 c1 00 1c 	addi    r6,r1,28                               
ffc24d28:	38 e0 00 01 	li      r7,1                                   
ffc24d2c:	4b ff fc b5 	bl      ffc249e0 <scanString>                  
ffc24d30:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24d34:	41 be ff 34 	beq-    cr7,ffc24c68 <scanpw+0x38>             
    return 0;                                                         
  pwd->pw_uid = pwuid;                                                
ffc24d38:	81 21 00 0c 	lwz     r9,12(r1)                              
  pwd->pw_gid = pwgid;                                                
  return 1;                                                           
ffc24d3c:	38 60 00 01 	li      r3,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;                                                
ffc24d40:	b1 3f 00 08 	sth     r9,8(r31)                              
  pwd->pw_gid = pwgid;                                                
ffc24d44:	81 21 00 08 	lwz     r9,8(r1)                               
ffc24d48:	b1 3f 00 0a 	sth     r9,10(r31)                             
  return 1;                                                           
}                                                                     
ffc24d4c:	39 61 00 28 	addi    r11,r1,40                              
ffc24d50:	48 02 ea a8 	b       ffc537f8 <_restgpr_30_x>               
                                                                      

ffc07544 <siproc>: /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) {
ffc07544:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc07548:	7c 08 02 a6 	mflr    r0                                     
ffc0754c:	90 01 00 14 	stw     r0,20(r1)                              
  int i;                                                              
                                                                      
  /*                                                                  
   * Obtain output semaphore if character will be echoed              
   */                                                                 
  if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
ffc07550:	81 24 00 3c 	lwz     r9,60(r4)                              
/*                                                                    
 * Process input character, with semaphore.                           
 */                                                                   
static int                                                            
siproc (unsigned char c, struct rtems_termios_tty *tty)               
{                                                                     
ffc07554:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc07558:	7c 9f 23 78 	mr      r31,r4                                 
  int i;                                                              
                                                                      
  /*                                                                  
   * Obtain output semaphore if character will be echoed              
   */                                                                 
  if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
ffc0755c:	71 2a 0e 78 	andi.   r10,r9,3704                            
ffc07560:	40 82 00 18 	bne-    ffc07578 <siproc+0x34>                 <== ALWAYS TAKEN
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
  }                                                                   
  return i;                                                           
}                                                                     
ffc07564:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc07568:	bb c1 00 08 	lmw     r30,8(r1)                              <== NOT EXECUTED
ffc0756c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc07570:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
    rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 
    i = iproc (c, tty);                                               
    rtems_semaphore_release (tty->osem);                              
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
ffc07574:	4b ff fd c4 	b       ffc07338 <iproc>                       <== NOT EXECUTED
ffc07578:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  /*                                                                  
   * Obtain output semaphore if character will be echoed              
   */                                                                 
  if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
    rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 
ffc0757c:	80 64 00 18 	lwz     r3,24(r4)                              
ffc07580:	38 a0 00 00 	li      r5,0                                   
ffc07584:	38 80 00 00 	li      r4,0                                   
ffc07588:	48 00 13 25 	bl      ffc088ac <rtems_semaphore_obtain>      
    i = iproc (c, tty);                                               
ffc0758c:	7f c3 f3 78 	mr      r3,r30                                 
ffc07590:	7f e4 fb 78 	mr      r4,r31                                 
ffc07594:	4b ff fd a5 	bl      ffc07338 <iproc>                       
ffc07598:	7c 7e 1b 78 	mr      r30,r3                                 
    rtems_semaphore_release (tty->osem);                              
ffc0759c:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc075a0:	48 00 14 31 	bl      ffc089d0 <rtems_semaphore_release>     
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
  }                                                                   
  return i;                                                           
}                                                                     
ffc075a4:	39 61 00 10 	addi    r11,r1,16                              
ffc075a8:	7f c3 f3 78 	mr      r3,r30                                 
ffc075ac:	4b ff 90 14 	b       ffc005c0 <_restgpr_30_x>               
                                                                      

ffc0f484 <sparse_disk_ioctl>: static int sparse_disk_ioctl( rtems_disk_device *dd, uint32_t req, void *argp ) { rtems_status_code sc; rtems_sparse_disk *sd = rtems_disk_get_driver_data( dd ); if ( RTEMS_BLKIO_REQUEST == req ) {
ffc0f484:	6c 8a c0 18 	xoris   r10,r4,49176                           
                                                                      
/*                                                                    
 * ioctl handler to be passed to the block device handler             
 */                                                                   
static int sparse_disk_ioctl( rtems_disk_device *dd, uint32_t req, void *argp )
{                                                                     
ffc0f488:	7d 80 00 26 	mfcr    r12                                    
  rtems_status_code  sc;                                              
  rtems_sparse_disk *sd = rtems_disk_get_driver_data( dd );           
                                                                      
  if ( RTEMS_BLKIO_REQUEST == req ) {                                 
ffc0f48c:	2f 8a 42 01 	cmpwi   cr7,r10,16897                          
                                                                      
/*                                                                    
 * ioctl handler to be passed to the block device handler             
 */                                                                   
static int sparse_disk_ioctl( rtems_disk_device *dd, uint32_t req, void *argp )
{                                                                     
ffc0f490:	94 21 ff b0 	stwu    r1,-80(r1)                             
ffc0f494:	7c 08 02 a6 	mflr    r0                                     
ffc0f498:	be 61 00 1c 	stmw    r19,28(r1)                             
ffc0f49c:	90 01 00 54 	stw     r0,84(r1)                              
ffc0f4a0:	91 81 00 18 	stw     r12,24(r1)                             
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0f4a4:	83 e3 00 3c 	lwz     r31,60(r3)                             
static int sparse_disk_ioctl( rtems_disk_device *dd, uint32_t req, void *argp )
{                                                                     
  rtems_status_code  sc;                                              
  rtems_sparse_disk *sd = rtems_disk_get_driver_data( dd );           
                                                                      
  if ( RTEMS_BLKIO_REQUEST == req ) {                                 
ffc0f4a8:	40 9e 01 c0 	bne-    cr7,ffc0f668 <sparse_disk_ioctl+0x1e4> 
    rtems_blkdev_request *r = argp;                                   
                                                                      
    switch ( r->req ) {                                               
ffc0f4ac:	83 05 00 00 	lwz     r24,0(r5)                              
ffc0f4b0:	7c bc 2b 78 	mr      r28,r5                                 
ffc0f4b4:	2b 98 00 01 	cmplwi  cr7,r24,1                              
ffc0f4b8:	41 9d 02 08 	bgt-    cr7,ffc0f6c0 <sparse_disk_ioctl+0x23c> <== 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 );
ffc0f4bc:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc0f4c0:	38 80 00 00 	li      r4,0                                   
ffc0f4c4:	38 a0 00 00 	li      r5,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(                                                      
ffc0f4c8:	3e c0 ff c1 	lis     r22,-63                                
  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 );
ffc0f4cc:	4b ff b0 8d 	bl      ffc0a558 <rtems_semaphore_obtain>      
static int sparse_disk_read_write(                                    
  rtems_sparse_disk    *sparse_disk,                                  
  rtems_blkdev_request *req,                                          
  const bool            read )                                        
{                                                                     
  int                     rv = 0;                                     
ffc0f4d0:	3b a0 00 00 	li      r29,0                                  
  size_t                  buff_size;                                  
  unsigned int            bytes_handled;                              
                                                                      
  rtems_semaphore_obtain( sparse_disk->mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
                                                                      
  for ( req_buffer = 0;                                               
ffc0f4d4:	3b 40 00 00 	li      r26,0                                  
        ( 0 <= rv ) && ( req_buffer < req->bufnum );                  
        ++req_buffer ) {                                              
    scatter_gather = &req->bufs[req_buffer];                          
                                                                      
    bytes_handled  = 0;                                               
ffc0f4d8:	3a 80 00 00 	li      r20,0                                  
    buff           = (uint8_t *) scatter_gather->buffer;              
    block          = scatter_gather->block;                           
    buff_size      = scatter_gather->length;                          
                                                                      
    while ( ( 0 <= rv ) && ( 0 < buff_size ) ) {                      
      if ( read )                                                     
ffc0f4dc:	2e 18 00 00 	cmpwi   cr4,r24,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(                                                      
ffc0f4e0:	3a d6 f4 54 	addi    r22,r22,-2988                          
ffc0f4e4:	48 00 01 48 	b       ffc0f62c <sparse_disk_ioctl+0x1a8>     
  rtems_semaphore_obtain( sparse_disk->mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
                                                                      
  for ( req_buffer = 0;                                               
        ( 0 <= rv ) && ( req_buffer < req->bufnum );                  
        ++req_buffer ) {                                              
    scatter_gather = &req->bufs[req_buffer];                          
ffc0f4e8:	39 5a 00 01 	addi    r10,r26,1                              
ffc0f4ec:	55 4a 20 36 	rlwinm  r10,r10,4,0,27                         
ffc0f4f0:	7d 5c 52 14 	add     r10,r28,r10                            
                                                                      
    bytes_handled  = 0;                                               
    buff           = (uint8_t *) scatter_gather->buffer;              
ffc0f4f4:	82 aa 00 10 	lwz     r21,16(r10)                            
  for ( req_buffer = 0;                                               
        ( 0 <= rv ) && ( req_buffer < req->bufnum );                  
        ++req_buffer ) {                                              
    scatter_gather = &req->bufs[req_buffer];                          
                                                                      
    bytes_handled  = 0;                                               
ffc0f4f8:	3a e0 00 00 	li      r23,0                                  
    buff           = (uint8_t *) scatter_gather->buffer;              
    block          = scatter_gather->block;                           
ffc0f4fc:	83 6a 00 08 	lwz     r27,8(r10)                             
    buff_size      = scatter_gather->length;                          
ffc0f500:	83 ca 00 0c 	lwz     r30,12(r10)                            
ffc0f504:	48 00 01 14 	b       ffc0f618 <sparse_disk_ioctl+0x194>     
ffc0f508:	7f 35 ba 14 	add     r25,r21,r23                            
  const rtems_blkdev_bnum  block,                                     
  uint8_t                 *buffer,                                    
  const size_t             buffer_size )                              
{                                                                     
  rtems_sparse_disk_key *key;                                         
  rtems_sparse_disk_key  block_key = {                                
ffc0f50c:	93 61 00 08 	stw     r27,8(r1)                              
    buff           = (uint8_t *) scatter_gather->buffer;              
    block          = scatter_gather->block;                           
    buff_size      = scatter_gather->length;                          
                                                                      
    while ( ( 0 <= rv ) && ( 0 < buff_size ) ) {                      
      if ( read )                                                     
ffc0f510:	40 92 00 58 	bne-    cr4,ffc0f568 <sparse_disk_ioctl+0xe4>  
  rtems_sparse_disk_key *key;                                         
  rtems_sparse_disk_key  block_key = {                                
    .block = block,                                                   
    .data  = NULL                                                     
  };                                                                  
  size_t                 bytes_to_copy = sparse_disk->media_block_size;
ffc0f514:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc0f518:	7f dd f3 78 	mr      r29,r30                                
  const rtems_blkdev_bnum  block,                                     
  uint8_t                 *buffer,                                    
  const size_t             buffer_size )                              
{                                                                     
  rtems_sparse_disk_key *key;                                         
  rtems_sparse_disk_key  block_key = {                                
ffc0f51c:	93 01 00 0c 	stw     r24,12(r1)                             
ffc0f520:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc0f524:	40 9d 00 08 	ble-    cr7,ffc0f52c <sparse_disk_ioctl+0xa8>  
ffc0f528:	7d 3d 4b 78 	mr      r29,r9                                 
  size_t                 bytes_to_copy = sparse_disk->media_block_size;
                                                                      
  if ( buffer_size < bytes_to_copy )                                  
    bytes_to_copy = buffer_size;                                      
                                                                      
  key = bsearch(                                                      
ffc0f52c:	80 9f 00 18 	lwz     r4,24(r31)                             
ffc0f530:	38 61 00 08 	addi    r3,r1,8                                
ffc0f534:	80 bf 00 08 	lwz     r5,8(r31)                              
ffc0f538:	38 c0 00 08 	li      r6,8                                   
ffc0f53c:	7e c7 b3 78 	mr      r7,r22                                 
ffc0f540:	48 00 bd 61 	bl      ffc1b2a0 <bsearch>                     
    sparse_disk->used_count,                                          
    sizeof( rtems_sparse_disk_key ),                                  
    sparse_disk_compare                                               
    );                                                                
                                                                      
  if ( NULL != key )                                                  
ffc0f544:	7c 69 1b 79 	mr.     r9,r3                                  
    memcpy( buffer, key->data, bytes_to_copy );                       
ffc0f548:	7f 23 cb 78 	mr      r3,r25                                 
    sparse_disk->used_count,                                          
    sizeof( rtems_sparse_disk_key ),                                  
    sparse_disk_compare                                               
    );                                                                
                                                                      
  if ( NULL != key )                                                  
ffc0f54c:	41 82 00 0c 	beq-    ffc0f558 <sparse_disk_ioctl+0xd4>      
    memcpy( buffer, key->data, bytes_to_copy );                       
ffc0f550:	80 89 00 04 	lwz     r4,4(r9)                               
ffc0f554:	48 00 00 a8 	b       ffc0f5fc <sparse_disk_ioctl+0x178>     
  else                                                                
    memset( buffer, sparse_disk->fill_pattern, buffer_size );         
ffc0f558:	88 9f 00 14 	lbz     r4,20(r31)                             
ffc0f55c:	7f c5 f3 78 	mr      r5,r30                                 
ffc0f560:	48 00 cb e9 	bl      ffc1c148 <memset>                      
ffc0f564:	48 00 00 a0 	b       ffc0f604 <sparse_disk_ioctl+0x180>     
  rtems_sparse_disk_key *key;                                         
  rtems_sparse_disk_key  block_key           = {                      
    .block = block,                                                   
    .data  = NULL                                                     
  };                                                                  
  size_t                 bytes_to_copy = sparse_disk->media_block_size;
ffc0f568:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc0f56c:	7f dd f3 78 	mr      r29,r30                                
  const size_t            buffer_size )                               
{                                                                     
  unsigned int           i;                                           
  bool                   block_needs_writing = false;                 
  rtems_sparse_disk_key *key;                                         
  rtems_sparse_disk_key  block_key           = {                      
ffc0f570:	92 81 00 0c 	stw     r20,12(r1)                             
ffc0f574:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc0f578:	40 9d 00 08 	ble-    cr7,ffc0f580 <sparse_disk_ioctl+0xfc>  
ffc0f57c:	7d 3d 4b 78 	mr      r29,r9                                 
                                                                      
  /* 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(                                                      
ffc0f580:	80 9f 00 18 	lwz     r4,24(r31)                             
ffc0f584:	38 61 00 08 	addi    r3,r1,8                                
ffc0f588:	80 bf 00 08 	lwz     r5,8(r31)                              
ffc0f58c:	38 c0 00 08 	li      r6,8                                   
ffc0f590:	7e c7 b3 78 	mr      r7,r22                                 
ffc0f594:	48 00 bd 0d 	bl      ffc1b2a0 <bsearch>                     
    sparse_disk->used_count,                                          
    sizeof( rtems_sparse_disk_key ),                                  
    sparse_disk_compare                                               
    );                                                                
                                                                      
  if ( NULL == key ) {                                                
ffc0f598:	7c 73 1b 79 	mr.     r19,r3                                 
ffc0f59c:	40 a2 00 58 	bne+    ffc0f5f4 <sparse_disk_ioctl+0x170>     
ffc0f5a0:	48 00 00 1c 	b       ffc0f5bc <sparse_disk_ioctl+0x138>     
    for ( i = 0; ( !block_needs_writing ) && ( i < bytes_to_copy ); ++i ) {
      if ( buffer[i] != sparse_disk->fill_pattern )                   
ffc0f5a4:	7d 59 48 ae 	lbzx    r10,r25,r9                             
    sizeof( rtems_sparse_disk_key ),                                  
    sparse_disk_compare                                               
    );                                                                
                                                                      
  if ( NULL == key ) {                                                
    for ( i = 0; ( !block_needs_writing ) && ( i < bytes_to_copy ); ++i ) {
ffc0f5a8:	39 29 00 01 	addi    r9,r9,1                                
ffc0f5ac:	89 1f 00 14 	lbz     r8,20(r31)                             
ffc0f5b0:	7f 88 50 00 	cmpw    cr7,r8,r10                             
ffc0f5b4:	41 be 00 14 	beq+    cr7,ffc0f5c8 <sparse_disk_ioctl+0x144> 
ffc0f5b8:	48 00 01 1c 	b       ffc0f6d4 <sparse_disk_ioctl+0x250>     
    sparse_disk->used_count,                                          
    sizeof( rtems_sparse_disk_key ),                                  
    sparse_disk_compare                                               
    );                                                                
                                                                      
  if ( NULL == key ) {                                                
ffc0f5bc:	39 5d 00 01 	addi    r10,r29,1                              
ffc0f5c0:	7d 49 03 a6 	mtctr   r10                                    
ffc0f5c4:	39 20 00 00 	li      r9,0                                   
    for ( i = 0; ( !block_needs_writing ) && ( i < bytes_to_copy ); ++i ) {
ffc0f5c8:	42 00 ff dc 	bdnz+   ffc0f5a4 <sparse_disk_ioctl+0x120>     
ffc0f5cc:	48 00 00 38 	b       ffc0f604 <sparse_disk_ioctl+0x180>     
  const rtems_blkdev_bnum block )                                     
{                                                                     
  rtems_sparse_disk_key *key;                                         
                                                                      
  if ( sparse_disk->used_count < sparse_disk->blocks_with_buffer ) {  
    key        = &sparse_disk->key_table[sparse_disk->used_count];    
ffc0f5d0:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc0f5d4:	54 89 18 38 	rlwinm  r9,r4,3,0,28                           
    key->block = block;                                               
    ++sparse_disk->used_count;                                        
ffc0f5d8:	38 84 00 01 	addi    r4,r4,1                                
{                                                                     
  rtems_sparse_disk_key *key;                                         
                                                                      
  if ( sparse_disk->used_count < sparse_disk->blocks_with_buffer ) {  
    key        = &sparse_disk->key_table[sparse_disk->used_count];    
    key->block = block;                                               
ffc0f5dc:	7f 63 49 2e 	stwx    r27,r3,r9                              
    ++sparse_disk->used_count;                                        
    qsort( sparse_disk->key_table, sparse_disk->used_count,           
ffc0f5e0:	38 a0 00 08 	li      r5,8                                   
ffc0f5e4:	7e c6 b3 78 	mr      r6,r22                                 
  rtems_sparse_disk_key *key;                                         
                                                                      
  if ( sparse_disk->used_count < sparse_disk->blocks_with_buffer ) {  
    key        = &sparse_disk->key_table[sparse_disk->used_count];    
    key->block = block;                                               
    ++sparse_disk->used_count;                                        
ffc0f5e8:	90 9f 00 08 	stw     r4,8(r31)                              
  const rtems_blkdev_bnum block )                                     
{                                                                     
  rtems_sparse_disk_key *key;                                         
                                                                      
  if ( sparse_disk->used_count < sparse_disk->blocks_with_buffer ) {  
    key        = &sparse_disk->key_table[sparse_disk->used_count];    
ffc0f5ec:	7e 63 4a 14 	add     r19,r3,r9                              
    key->block = block;                                               
    ++sparse_disk->used_count;                                        
    qsort( sparse_disk->key_table, sparse_disk->used_count,           
ffc0f5f0:	48 00 cc 71 	bl      ffc1c260 <qsort>                       
      key = sparse_disk_get_new_block( sparse_disk, block );          
    }                                                                 
  }                                                                   
                                                                      
  if ( NULL != key )                                                  
    memcpy( key->data, buffer, bytes_to_copy );                       
ffc0f5f4:	80 73 00 04 	lwz     r3,4(r19)                              
ffc0f5f8:	7f 24 cb 78 	mr      r4,r25                                 
ffc0f5fc:	7f a5 eb 78 	mr      r5,r29                                 
ffc0f600:	48 00 ca 55 	bl      ffc1c054 <memcpy>                      
    bytes_handled  = 0;                                               
    buff           = (uint8_t *) scatter_gather->buffer;              
    block          = scatter_gather->block;                           
    buff_size      = scatter_gather->length;                          
                                                                      
    while ( ( 0 <= rv ) && ( 0 < buff_size ) ) {                      
ffc0f604:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
        rv = sparse_disk_write_block( sparse_disk,                    
                                      block,                          
                                      &buff[bytes_handled],           
                                      buff_size );                    
                                                                      
      ++block;                                                        
ffc0f608:	3b 7b 00 01 	addi    r27,r27,1                              
      bytes_handled += rv;                                            
ffc0f60c:	7e f7 ea 14 	add     r23,r23,r29                            
      buff_size     -= rv;                                            
ffc0f610:	7f dd f0 50 	subf    r30,r29,r30                            
    bytes_handled  = 0;                                               
    buff           = (uint8_t *) scatter_gather->buffer;              
    block          = scatter_gather->block;                           
    buff_size      = scatter_gather->length;                          
                                                                      
    while ( ( 0 <= rv ) && ( 0 < buff_size ) ) {                      
ffc0f614:	41 9c 00 0c 	blt-    cr7,ffc0f620 <sparse_disk_ioctl+0x19c> <== NEVER TAKEN
ffc0f618:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0f61c:	40 9e fe ec 	bne+    cr7,ffc0f508 <sparse_disk_ioctl+0x84>  
  size_t                  buff_size;                                  
  unsigned int            bytes_handled;                              
                                                                      
  rtems_semaphore_obtain( sparse_disk->mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
                                                                      
  for ( req_buffer = 0;                                               
ffc0f620:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
        ( 0 <= rv ) && ( req_buffer < req->bufnum );                  
        ++req_buffer ) {                                              
ffc0f624:	3b 5a 00 01 	addi    r26,r26,1                              
  size_t                  buff_size;                                  
  unsigned int            bytes_handled;                              
                                                                      
  rtems_semaphore_obtain( sparse_disk->mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
                                                                      
  for ( req_buffer = 0;                                               
ffc0f628:	41 9c 00 10 	blt-    cr7,ffc0f638 <sparse_disk_ioctl+0x1b4> <== NEVER TAKEN
        ( 0 <= rv ) && ( req_buffer < req->bufnum );                  
ffc0f62c:	81 3c 00 10 	lwz     r9,16(r28)                             
ffc0f630:	7f 9a 48 40 	cmplw   cr7,r26,r9                             
ffc0f634:	41 9c fe b4 	blt+    cr7,ffc0f4e8 <sparse_disk_ioctl+0x64>  
      bytes_handled += rv;                                            
      buff_size     -= rv;                                            
    }                                                                 
  }                                                                   
                                                                      
  rtems_semaphore_release( sparse_disk->mutex );                      
ffc0f638:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc0f63c:	4b ff b0 41 	bl      ffc0a67c <rtems_semaphore_release>     
                                                                      
  if ( 0 > rv )                                                       
ffc0f640:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0f644:	81 3c 00 04 	lwz     r9,4(r28)                              
static inline void rtems_blkdev_request_done(                         
  rtems_blkdev_request *req,                                          
  rtems_status_code status                                            
)                                                                     
{                                                                     
  (*req->done)(req, status);                                          
ffc0f648:	7f 83 e3 78 	mr      r3,r28                                 
ffc0f64c:	38 80 00 1b 	li      r4,27                                  
ffc0f650:	7d 29 03 a6 	mtctr   r9                                     
ffc0f654:	41 9c 00 08 	blt-    cr7,ffc0f65c <sparse_disk_ioctl+0x1d8> <== NEVER TAKEN
ffc0f658:	38 80 00 00 	li      r4,0                                   
ffc0f65c:	4e 80 04 21 	bctrl                                          
    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 );
ffc0f660:	3b c0 00 00 	li      r30,0                                  
ffc0f664:	48 00 00 88 	b       ffc0f6ec <sparse_disk_ioctl+0x268>     
      default:                                                        
        break;                                                        
    }                                                                 
  } else if ( RTEMS_BLKIO_DELETED == req ) {                          
ffc0f668:	6c 8a 20 00 	xoris   r10,r4,8192                            
ffc0f66c:	2f 8a 42 07 	cmpwi   cr7,r10,16903                          
ffc0f670:	40 9e 00 44 	bne-    cr7,ffc0f6b4 <sparse_disk_ioctl+0x230> 
    sc = rtems_semaphore_delete( sd->mutex );                         
ffc0f674:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc0f678:	4b ff ae 25 	bl      ffc0a49c <rtems_semaphore_delete>      
                                                                      
    if ( RTEMS_SUCCESSFUL != sc )                                     
ffc0f67c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0f680:	41 a2 00 10 	beq+    ffc0f690 <sparse_disk_ioctl+0x20c>     <== ALWAYS TAKEN
      rtems_fatal_error_occurred( 0xdeadbeef );                       
ffc0f684:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc0f688:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc0f68c:	4b ff b6 59 	bl      ffc0ace4 <rtems_fatal_error_occurred>  <== NOT EXECUTED
                                                                      
    sd->mutex = RTEMS_ID_NONE;                                        
                                                                      
    if ( NULL != sd->delete_handler )                                 
ffc0f690:	81 3f 00 10 	lwz     r9,16(r31)                             
      ( *sd->delete_handler )( sd );                                  
                                                                      
    return 0;                                                         
ffc0f694:	3b c0 00 00 	li      r30,0                                  
    sc = rtems_semaphore_delete( sd->mutex );                         
                                                                      
    if ( RTEMS_SUCCESSFUL != sc )                                     
      rtems_fatal_error_occurred( 0xdeadbeef );                       
                                                                      
    sd->mutex = RTEMS_ID_NONE;                                        
ffc0f698:	90 7f 00 00 	stw     r3,0(r31)                              
                                                                      
    if ( NULL != sd->delete_handler )                                 
ffc0f69c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f6a0:	41 9e 00 4c 	beq-    cr7,ffc0f6ec <sparse_disk_ioctl+0x268> <== NEVER TAKEN
      ( *sd->delete_handler )( sd );                                  
ffc0f6a4:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f6a8:	7d 29 03 a6 	mtctr   r9                                     
ffc0f6ac:	4e 80 04 21 	bctrl                                          
ffc0f6b0:	48 00 00 3c 	b       ffc0f6ec <sparse_disk_ioctl+0x268>     
                                                                      
    return 0;                                                         
  } else {                                                            
    return rtems_blkdev_ioctl( dd, req, argp );                       
ffc0f6b4:	48 00 2e b9 	bl      ffc1256c <rtems_blkdev_ioctl>          
ffc0f6b8:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0f6bc:	48 00 00 30 	b       ffc0f6ec <sparse_disk_ioctl+0x268>     
  }                                                                   
                                                                      
  errno = EINVAL;                                                     
ffc0f6c0:	48 00 bc b5 	bl      ffc1b374 <__errno>                     <== NOT EXECUTED
ffc0f6c4:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc0f6c8:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
  return -1;                                                          
ffc0f6cc:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc0f6d0:	48 00 00 1c 	b       ffc0f6ec <sparse_disk_ioctl+0x268>     <== NOT EXECUTED
  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 ) {  
ffc0f6d4:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc0f6d8:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0f6dc:	7f 84 48 40 	cmplw   cr7,r4,r9                              
ffc0f6e0:	41 9c fe f0 	blt+    cr7,ffc0f5d0 <sparse_disk_ioctl+0x14c> <== ALWAYS TAKEN
  }                                                                   
                                                                      
  if ( NULL != key )                                                  
    memcpy( key->data, buffer, bytes_to_copy );                       
  else if ( block_needs_writing )                                     
    return -1;                                                        
ffc0f6e4:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
ffc0f6e8:	4b ff ff 1c 	b       ffc0f604 <sparse_disk_ioctl+0x180>     <== NOT EXECUTED
    return rtems_blkdev_ioctl( dd, req, argp );                       
  }                                                                   
                                                                      
  errno = EINVAL;                                                     
  return -1;                                                          
}                                                                     
ffc0f6ec:	81 81 00 18 	lwz     r12,24(r1)                             
ffc0f6f0:	39 61 00 50 	addi    r11,r1,80                              
ffc0f6f4:	7f c3 f3 78 	mr      r3,r30                                 
ffc0f6f8:	7d 80 81 20 	mtcrf   8,r12                                  
ffc0f6fc:	4b ff 1e d0 	b       ffc015cc <_restgpr_19_x>               
                                                                      

ffc140b4 <tcsetattr>: int fd, int opt, struct termios *tp ) { switch (opt) {
ffc140b4:	2c 04 00 00 	cmpwi   r4,0                                   
int tcsetattr(                                                        
  int             fd,                                                 
  int             opt,                                                
  struct termios *tp                                                  
)                                                                     
{                                                                     
ffc140b8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc140bc:	7c 08 02 a6 	mflr    r0                                     
ffc140c0:	bf c1 00 08 	stmw    r30,8(r1)                              
ffc140c4:	7c 7e 1b 78 	mr      r30,r3                                 
ffc140c8:	7c bf 2b 78 	mr      r31,r5                                 
ffc140cc:	90 01 00 14 	stw     r0,20(r1)                              
  switch (opt) {                                                      
ffc140d0:	41 82 00 34 	beq-    ffc14104 <tcsetattr+0x50>              
ffc140d4:	2f 84 00 01 	cmpwi   cr7,r4,1                               
ffc140d8:	41 9e 00 14 	beq-    cr7,ffc140ec <tcsetattr+0x38>          
  default:                                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
ffc140dc:	48 00 38 fd 	bl      ffc179d8 <__errno>                     
ffc140e0:	39 20 00 86 	li      r9,134                                 
ffc140e4:	91 23 00 00 	stw     r9,0(r3)                               
ffc140e8:	48 00 00 40 	b       ffc14128 <tcsetattr+0x74>              
                                                                      
  case TCSADRAIN:                                                     
    if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)                      
ffc140ec:	38 80 00 03 	li      r4,3                                   
ffc140f0:	38 a0 00 00 	li      r5,0                                   
ffc140f4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc140f8:	48 00 30 71 	bl      ffc17168 <ioctl>                       
ffc140fc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc14100:	41 9c 00 28 	blt-    cr7,ffc14128 <tcsetattr+0x74>          <== NEVER TAKEN
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
  }                                                                   
}                                                                     
ffc14104:	80 01 00 14 	lwz     r0,20(r1)                              
    	return -1;                                                       
    /*                                                                
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
ffc14108:	7f c3 f3 78 	mr      r3,r30                                 
ffc1410c:	7f e5 fb 78 	mr      r5,r31                                 
  }                                                                   
}                                                                     
ffc14110:	bb c1 00 08 	lmw     r30,8(r1)                              
ffc14114:	7c 08 03 a6 	mtlr    r0                                     
    	return -1;                                                       
    /*                                                                
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
ffc14118:	38 80 00 02 	li      r4,2                                   
  }                                                                   
}                                                                     
ffc1411c:	38 21 00 10 	addi    r1,r1,16                               
    	return -1;                                                       
    /*                                                                
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
ffc14120:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc14124:	48 00 30 44 	b       ffc17168 <ioctl>                       
  }                                                                   
}                                                                     
ffc14128:	39 61 00 10 	addi    r11,r1,16                              
ffc1412c:	38 60 ff ff 	li      r3,-1                                  
ffc14130:	4b fe c6 fc 	b       ffc0082c <_restgpr_30_x>               
                                                                      

ffc07d9c <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 ) {
ffc07d9c:	94 21 ff b0 	stwu    r1,-80(r1)                             
ffc07da0:	7c 08 02 a6 	mflr    r0                                     
ffc07da4:	7c 64 1b 78 	mr      r4,r3                                  
  int rv = 0;                                                         
  rtems_filesystem_eval_path_context_t ctx;                           
  int eval_flags = RTEMS_FS_FOLLOW_LINK;                              
  const rtems_filesystem_location_info_t *currentloc =                
ffc07da8:	38 a0 00 18 	li      r5,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 )                                       
{                                                                     
ffc07dac:	90 01 00 54 	stw     r0,84(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 =                
ffc07db0:	38 61 00 08 	addi    r3,r1,8                                
 *  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 )                                       
{                                                                     
ffc07db4:	bf c1 00 48 	stmw    r30,72(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 =                
ffc07db8:	4b ff da a1 	bl      ffc05858 <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;
ffc07dbc:	83 e3 00 14 	lwz     r31,20(r3)                             
  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)(                         
ffc07dc0:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc07dc4:	80 9f 00 24 	lwz     r4,36(r31)                             
ffc07dc8:	81 29 00 10 	lwz     r9,16(r9)                              
ffc07dcc:	7d 29 03 a6 	mtctr   r9                                     
ffc07dd0:	4e 80 04 21 	bctrl                                          
                                                                      
  if ( rtems_filesystem_location_is_instance_root( currentloc ) ) {   
ffc07dd4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07dd8:	41 9e 00 94 	beq-    cr7,ffc07e6c <unmount+0xd0>            
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;                                 
ffc07ddc:	3d 20 00 00 	lis     r9,0                                   
ffc07de0:	81 29 27 58 	lwz     r9,10072(r9)                           
  const rtems_filesystem_location_info_t *current =                   
    &rtems_filesystem_current->location;                              
ffc07de4:	81 49 00 00 	lwz     r10,0(r9)                              
                                                                      
  return mt_entry == root->mt_entry || mt_entry == current->mt_entry; 
ffc07de8:	81 29 00 04 	lwz     r9,4(r9)                               
ffc07dec:	81 29 00 14 	lwz     r9,20(r9)                              
ffc07df0:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc07df4:	41 9e 00 18 	beq-    cr7,ffc07e0c <unmount+0x70>            
ffc07df8:	81 2a 00 14 	lwz     r9,20(r10)                             
ffc07dfc:	7f e9 4a 78 	xor     r9,r31,r9                              
ffc07e00:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc07e04:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc07e08:	48 00 00 08 	b       ffc07e10 <unmount+0x74>                
ffc07e0c:	39 20 00 01 	li      r9,1                                   
  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 ) ) {          
ffc07e10:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07e14:	40 9e 00 4c 	bne-    cr7,ffc07e60 <unmount+0xc4>            
      const rtems_filesystem_operations_table *mt_point_ops =         
        mt_entry->mt_point_node->location.mt_entry->ops;              
ffc07e18:	81 3f 00 20 	lwz     r9,32(r31)                             
                                                                      
      rv = (*mt_point_ops->unmount_h)( mt_entry );                    
ffc07e1c:	7f e3 fb 78 	mr      r3,r31                                 
  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 ) ) {          
      const rtems_filesystem_operations_table *mt_point_ops =         
        mt_entry->mt_point_node->location.mt_entry->ops;              
ffc07e20:	81 29 00 14 	lwz     r9,20(r9)                              
                                                                      
      rv = (*mt_point_ops->unmount_h)( mt_entry );                    
ffc07e24:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc07e28:	81 29 00 38 	lwz     r9,56(r9)                              
ffc07e2c:	7d 29 03 a6 	mtctr   r9                                     
ffc07e30:	4e 80 04 21 	bctrl                                          
      if ( rv == 0 ) {                                                
ffc07e34:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc07e38:	40 a2 00 44 	bne+    ffc07e7c <unmount+0xe0>                
        rtems_id self_task_id = rtems_task_self();                    
ffc07e3c:	48 00 10 65 	bl      ffc08ea0 <rtems_task_self>             
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc07e40:	7d 20 00 a6 	mfmsr   r9                                     
ffc07e44:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc07e48:	7d 2a 50 78 	andc    r10,r9,r10                             
ffc07e4c:	7d 40 01 24 	mtmsr   r10                                    
        rtems_filesystem_mt_entry_declare_lock_context( lock_context );
                                                                      
        rtems_filesystem_mt_entry_lock( lock_context );               
        mt_entry->unmount_task = self_task_id;                        
ffc07e50:	90 7f 00 3c 	stw     r3,60(r31)                             
        mt_entry->mounted = false;                                    
ffc07e54:	9b df 00 28 	stb     r30,40(r31)                            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc07e58:	7d 20 01 24 	mtmsr   r9                                     
ffc07e5c:	48 00 00 20 	b       ffc07e7c <unmount+0xe0>                
        rtems_filesystem_mt_entry_unlock( lock_context );             
      }                                                               
    } else {                                                          
      errno = EBUSY;                                                  
ffc07e60:	48 00 79 d9 	bl      ffc0f838 <__errno>                     
ffc07e64:	39 20 00 10 	li      r9,16                                  
ffc07e68:	48 00 00 0c 	b       ffc07e74 <unmount+0xd8>                
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    errno = EACCES;                                                   
ffc07e6c:	48 00 79 cd 	bl      ffc0f838 <__errno>                     
ffc07e70:	39 20 00 0d 	li      r9,13                                  
ffc07e74:	91 23 00 00 	stw     r9,0(r3)                               
    rv = -1;                                                          
ffc07e78:	3b c0 ff ff 	li      r30,-1                                 
  }                                                                   
                                                                      
  rtems_filesystem_eval_path_cleanup( &ctx );                         
ffc07e7c:	38 61 00 08 	addi    r3,r1,8                                
ffc07e80:	4b ff db 01 	bl      ffc05980 <rtems_filesystem_eval_path_cleanup>
                                                                      
  if ( rv == 0 ) {                                                    
ffc07e84:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc07e88:	40 be 00 2c 	bne+    cr7,ffc07eb4 <unmount+0x118>           
  rtems_interval ticks                                                
)                                                                     
{                                                                     
  rtems_event_set event_out;                                          
                                                                      
  return rtems_event_system_receive(                                  
ffc07e8c:	3c 60 80 00 	lis     r3,-32768                              
ffc07e90:	38 80 00 00 	li      r4,0                                   
ffc07e94:	38 a0 00 00 	li      r5,0                                   
ffc07e98:	38 c1 00 40 	addi    r6,r1,64                               
ffc07e9c:	48 00 0c d1 	bl      ffc08b6c <rtems_event_system_receive>  
    rtems_status_code sc = rtems_event_transient_receive(             
      RTEMS_WAIT,                                                     
      RTEMS_NO_TIMEOUT                                                
    );                                                                
                                                                      
    if ( sc != RTEMS_SUCCESSFUL ) {                                   
ffc07ea0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07ea4:	41 be 00 10 	beq+    cr7,ffc07eb4 <unmount+0x118>           <== ALWAYS TAKEN
      rtems_fatal_error_occurred( 0xdeadbeef );                       
ffc07ea8:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc07eac:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc07eb0:	48 00 12 6d 	bl      ffc0911c <rtems_fatal_error_occurred>  <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc07eb4:	39 61 00 50 	addi    r11,r1,80                              
ffc07eb8:	7f c3 f3 78 	mr      r3,r30                                 
ffc07ebc:	48 00 c7 b8 	b       ffc14674 <_restgpr_30_x>               
                                                                      

ffc07e64 <vprintk>: */ void vprintk( const char *fmt, va_list ap ) {
ffc07e64:	94 21 ff b0 	stwu    r1,-80(r1)                             
ffc07e68:	7c 08 02 a6 	mflr    r0                                     
ffc07e6c:	be c1 00 28 	stmw    r22,40(r1)                             
ffc07e70:	7c 7e 1b 78 	mr      r30,r3                                 
ffc07e74:	7c 9f 23 78 	mr      r31,r4                                 
ffc07e78:	90 01 00 54 	stw     r0,84(r1)                              
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    rtems_putc(lead);                                                 
                                                                      
  for (n = 0; n < count; n++) {                                       
    rtems_putc("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);      
ffc07e7c:	3f 00 ff c2 	lis     r24,-62                                
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
ffc07e80:	3b 21 00 08 	addi    r25,r1,8                               
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
                                                                      
      if ( str == NULL ) {                                            
        str = "";                                                     
ffc07e84:	3e e0 ff c2 	lis     r23,-62                                
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
ffc07e88:	48 00 03 10 	b       ffc08198 <vprintk+0x334>               
    bool minus = false;                                               
    bool sign = false;                                                
    char lead = ' ';                                                  
    char c;                                                           
                                                                      
    if (*fmt != '%') {                                                
ffc07e8c:	2f 83 00 25 	cmpwi   cr7,r3,37                              
ffc07e90:	41 9e 00 08 	beq-    cr7,ffc07e98 <vprintk+0x34>            
ffc07e94:	48 00 01 f0 	b       ffc08084 <vprintk+0x220>               
      rtems_putc(*fmt);                                               
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
ffc07e98:	89 3e 00 01 	lbz     r9,1(r30)                              
ffc07e9c:	2f 89 00 30 	cmpwi   cr7,r9,48                              
ffc07ea0:	41 9e 00 10 	beq-    cr7,ffc07eb0 <vprintk+0x4c>            
                                                                      
    if (*fmt != '%') {                                                
      rtems_putc(*fmt);                                               
      continue;                                                       
    }                                                                 
    fmt++;                                                            
ffc07ea4:	3b de 00 01 	addi    r30,r30,1                              
    unsigned base = 0;                                                
    unsigned width = 0;                                               
    bool lflag = false;                                               
    bool minus = false;                                               
    bool sign = false;                                                
    char lead = ' ';                                                  
ffc07ea8:	3a c0 00 20 	li      r22,32                                 
ffc07eac:	48 00 00 0c 	b       ffc07eb8 <vprintk+0x54>                
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
      fmt++;                                                          
ffc07eb0:	3b de 00 02 	addi    r30,r30,2                              
      rtems_putc(*fmt);                                               
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
ffc07eb4:	3a c0 00 30 	li      r22,48                                 
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
ffc07eb8:	89 3e 00 00 	lbz     r9,0(r30)                              
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
    unsigned base = 0;                                                
    unsigned width = 0;                                               
    bool lflag = false;                                               
    bool minus = false;                                               
ffc07ebc:	3b 40 00 00 	li      r26,0                                  
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
ffc07ec0:	2f 89 00 2d 	cmpwi   cr7,r9,45                              
ffc07ec4:	40 be 00 0c 	bne+    cr7,ffc07ed0 <vprintk+0x6c>            
      minus = true;                                                   
      fmt++;                                                          
ffc07ec8:	3b de 00 01 	addi    r30,r30,1                              
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
ffc07ecc:	3b 40 00 01 	li      r26,1                                  
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
    unsigned base = 0;                                                
    unsigned width = 0;                                               
    bool lflag = false;                                               
    bool minus = false;                                               
ffc07ed0:	3b 80 00 00 	li      r28,0                                  
ffc07ed4:	48 00 00 14 	b       ffc07ee8 <vprintk+0x84>                
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
      width *= 10;                                                    
ffc07ed8:	1f 9c 00 0a 	mulli   r28,r28,10                             
      width += ((unsigned) *fmt - '0');                               
ffc07edc:	3b 9c ff d0 	addi    r28,r28,-48                            
ffc07ee0:	7f 9c 1a 14 	add     r28,r28,r3                             
      fmt++;                                                          
ffc07ee4:	3b de 00 01 	addi    r30,r30,1                              
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
ffc07ee8:	88 7e 00 00 	lbz     r3,0(r30)                              
ffc07eec:	39 43 ff d0 	addi    r10,r3,-48                             
ffc07ef0:	2b 8a 00 09 	cmplwi  cr7,r10,9                              
ffc07ef4:	40 9d ff e4 	ble+    cr7,ffc07ed8 <vprintk+0x74>            
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
      fmt++;                                                          
    }                                                                 
                                                                      
    if ((c = *fmt) == 'l') {                                          
ffc07ef8:	2f 83 00 6c 	cmpwi   cr7,r3,108                             
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
ffc07efc:	7f 9b e3 78 	mr      r27,r28                                
ffc07f00:	7f c8 f3 78 	mr      r8,r30                                 
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
      fmt++;                                                          
    }                                                                 
                                                                      
    if ((c = *fmt) == 'l') {                                          
ffc07f04:	40 be 00 0c 	bne+    cr7,ffc07f10 <vprintk+0xac>            
      lflag = true;                                                   
      c = *++fmt;                                                     
ffc07f08:	88 68 00 01 	lbz     r3,1(r8)                               
ffc07f0c:	3b de 00 01 	addi    r30,r30,1                              
    }                                                                 
    if ( c == 'c' ) {                                                 
ffc07f10:	2f 83 00 63 	cmpwi   cr7,r3,99                              
ffc07f14:	40 be 00 3c 	bne+    cr7,ffc07f50 <vprintk+0xec>            
      /* need a cast here since va_arg() only takes fully promoted types */
      char chr = (char) va_arg(ap, int);                              
ffc07f18:	89 5f 00 00 	lbz     r10,0(r31)                             
ffc07f1c:	2b 8a 00 08 	cmplwi  cr7,r10,8                              
ffc07f20:	40 9c 00 1c 	bge-    cr7,ffc07f3c <vprintk+0xd8>            <== NEVER TAKEN
ffc07f24:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc07f28:	55 48 10 3a 	rlwinm  r8,r10,2,0,29                          
ffc07f2c:	39 4a 00 01 	addi    r10,r10,1                              
ffc07f30:	7d 29 42 14 	add     r9,r9,r8                               
ffc07f34:	99 5f 00 00 	stb     r10,0(r31)                             
ffc07f38:	48 00 00 10 	b       ffc07f48 <vprintk+0xe4>                
ffc07f3c:	81 3f 00 04 	lwz     r9,4(r31)                              <== NOT EXECUTED
ffc07f40:	39 49 00 04 	addi    r10,r9,4                               <== NOT EXECUTED
ffc07f44:	91 5f 00 04 	stw     r10,4(r31)                             <== NOT EXECUTED
      rtems_putc(chr);                                                
ffc07f48:	88 69 00 03 	lbz     r3,3(r9)                               
ffc07f4c:	48 00 01 38 	b       ffc08084 <vprintk+0x220>               
      continue;                                                       
    }                                                                 
    if ( c == 's' ) {                                                 
ffc07f50:	2f 83 00 73 	cmpwi   cr7,r3,115                             
ffc07f54:	40 be 00 d8 	bne+    cr7,ffc0802c <vprintk+0x1c8>           
      unsigned i, len;                                                
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
ffc07f58:	89 5f 00 00 	lbz     r10,0(r31)                             
ffc07f5c:	2b 8a 00 08 	cmplwi  cr7,r10,8                              
ffc07f60:	40 9c 00 1c 	bge-    cr7,ffc07f7c <vprintk+0x118>           <== NEVER TAKEN
ffc07f64:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc07f68:	55 48 10 3a 	rlwinm  r8,r10,2,0,29                          
ffc07f6c:	39 4a 00 01 	addi    r10,r10,1                              
ffc07f70:	7d 29 42 14 	add     r9,r9,r8                               
ffc07f74:	99 5f 00 00 	stb     r10,0(r31)                             
ffc07f78:	48 00 00 10 	b       ffc07f88 <vprintk+0x124>               
ffc07f7c:	81 3f 00 04 	lwz     r9,4(r31)                              <== NOT EXECUTED
ffc07f80:	39 49 00 04 	addi    r10,r9,4                               <== NOT EXECUTED
ffc07f84:	91 5f 00 04 	stw     r10,4(r31)                             <== NOT EXECUTED
ffc07f88:	83 69 00 00 	lwz     r27,0(r9)                              
                                                                      
      if ( str == NULL ) {                                            
ffc07f8c:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc07f90:	40 be 00 08 	bne+    cr7,ffc07f98 <vprintk+0x134>           
        str = "";                                                     
ffc07f94:	3b 77 be c1 	addi    r27,r23,-16703                         
      }                                                               
                                                                      
      /* calculate length of string */                                
      for ( len=0, s=str ; *s ; len++, s++ )                          
ffc07f98:	3b a0 00 00 	li      r29,0                                  
ffc07f9c:	48 00 00 08 	b       ffc07fa4 <vprintk+0x140>               
ffc07fa0:	3b bd 00 01 	addi    r29,r29,1                              
ffc07fa4:	7d 3b e8 ae 	lbzx    r9,r27,r29                             
ffc07fa8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07fac:	40 9e ff f4 	bne+    cr7,ffc07fa0 <vprintk+0x13c>           
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
ffc07fb0:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc07fb4:	7f b6 eb 78 	mr      r22,r29                                
ffc07fb8:	41 9e 00 1c 	beq-    cr7,ffc07fd4 <vprintk+0x170>           
        for ( i=len ; i<width ; i++ )                                 
          rtems_putc(' ');                                            
                                                                      
      /* no width option */                                           
      if (width == 0) {                                               
ffc07fbc:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc07fc0:	41 9e 00 20 	beq-    cr7,ffc07fe0 <vprintk+0x17c>           
ffc07fc4:	48 00 00 34 	b       ffc07ff8 <vprintk+0x194>               
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
        for ( i=len ; i<width ; i++ )                                 
          rtems_putc(' ');                                            
ffc07fc8:	38 60 00 20 	li      r3,32                                  
ffc07fcc:	48 00 52 6d 	bl      ffc0d238 <rtems_putc>                  
      for ( len=0, s=str ; *s ; len++, s++ )                          
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
        for ( i=len ; i<width ; i++ )                                 
ffc07fd0:	3a d6 00 01 	addi    r22,r22,1                              
ffc07fd4:	7f 96 e0 40 	cmplw   cr7,r22,r28                            
ffc07fd8:	41 9c ff f0 	blt+    cr7,ffc07fc8 <vprintk+0x164>           
ffc07fdc:	4b ff ff e0 	b       ffc07fbc <vprintk+0x158>               
      if (width == 0) {                                               
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
ffc07fe0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc07fe4:	7f bc eb 78 	mr      r28,r29                                
ffc07fe8:	40 9e 00 10 	bne-    cr7,ffc07ff8 <vprintk+0x194>           
        rtems_putc(*str);                                             
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
ffc07fec:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc07ff0:	41 9e 01 a4 	beq-    cr7,ffc08194 <vprintk+0x330>           
ffc07ff4:	48 00 00 2c 	b       ffc08020 <vprintk+0x1bc>               
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
ffc07ff8:	3b 7b ff ff 	addi    r27,r27,-1                             
ffc07ffc:	48 00 00 08 	b       ffc08004 <vprintk+0x1a0>               
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
        rtems_putc(*str);                                             
ffc08000:	48 00 52 39 	bl      ffc0d238 <rtems_putc>                  
      if (width == 0) {                                               
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
ffc08004:	8c 7b 00 01 	lbzu    r3,1(r27)                              
ffc08008:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0800c:	40 9e ff f4 	bne+    cr7,ffc08000 <vprintk+0x19c>           
ffc08010:	4b ff ff dc 	b       ffc07fec <vprintk+0x188>               
        rtems_putc(*str);                                             
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
        for ( i=len ; i<width ; i++ )                                 
          rtems_putc(' ');                                            
ffc08014:	38 60 00 20 	li      r3,32                                  
ffc08018:	48 00 52 21 	bl      ffc0d238 <rtems_putc>                  
      for ( i=0 ; i<width && *str ; str++ )                           
        rtems_putc(*str);                                             
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
        for ( i=len ; i<width ; i++ )                                 
ffc0801c:	3b bd 00 01 	addi    r29,r29,1                              
ffc08020:	7f 9d e0 40 	cmplw   cr7,r29,r28                            
ffc08024:	41 9c ff f0 	blt+    cr7,ffc08014 <vprintk+0x1b0>           
ffc08028:	48 00 01 6c 	b       ffc08194 <vprintk+0x330>               
                                                                      
      continue;                                                       
    }                                                                 
                                                                      
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
ffc0802c:	2f 83 00 6f 	cmpwi   cr7,r3,111                             
ffc08030:	41 9e 00 5c 	beq-    cr7,ffc0808c <vprintk+0x228>           
ffc08034:	2f 83 00 4f 	cmpwi   cr7,r3,79                              
ffc08038:	41 9e 00 54 	beq-    cr7,ffc0808c <vprintk+0x228>           
      base = 8; sign = false;                                         
    } else if ( c == 'i' || c == 'I' ||                               
ffc0803c:	2f 83 00 69 	cmpwi   cr7,r3,105                             
ffc08040:	41 9e 00 58 	beq-    cr7,ffc08098 <vprintk+0x234>           
ffc08044:	2f 83 00 49 	cmpwi   cr7,r3,73                              
ffc08048:	41 9e 00 50 	beq-    cr7,ffc08098 <vprintk+0x234>           
ffc0804c:	2f 83 00 64 	cmpwi   cr7,r3,100                             
ffc08050:	41 9e 00 48 	beq-    cr7,ffc08098 <vprintk+0x234>           
                c == 'd' || c == 'D' ) {                              
ffc08054:	2f 83 00 44 	cmpwi   cr7,r3,68                              
ffc08058:	41 9e 00 40 	beq-    cr7,ffc08098 <vprintk+0x234>           
      base = 10; sign = true;                                         
    } else if ( c == 'u' || c == 'U' ) {                              
ffc0805c:	2f 83 00 75 	cmpwi   cr7,r3,117                             
ffc08060:	41 9e 00 40 	beq-    cr7,ffc080a0 <vprintk+0x23c>           
ffc08064:	2f 83 00 55 	cmpwi   cr7,r3,85                              
ffc08068:	41 9e 00 38 	beq-    cr7,ffc080a0 <vprintk+0x23c>           
      base = 10; sign = false;                                        
    } else if ( c == 'x' || c == 'X' ) {                              
ffc0806c:	2f 83 00 78 	cmpwi   cr7,r3,120                             
ffc08070:	41 9e 00 3c 	beq-    cr7,ffc080ac <vprintk+0x248>           
ffc08074:	2f 83 00 58 	cmpwi   cr7,r3,88                              
ffc08078:	41 9e 00 34 	beq-    cr7,ffc080ac <vprintk+0x248>           
      base = 16; sign = false;                                        
    } else if ( c == 'p' ) {                                          
ffc0807c:	2f 83 00 70 	cmpwi   cr7,r3,112                             
ffc08080:	41 9e 00 2c 	beq-    cr7,ffc080ac <vprintk+0x248>           
      base = 16; sign = false; lflag = true;                          
    } else {                                                          
      rtems_putc(c);                                                  
ffc08084:	48 00 51 b5 	bl      ffc0d238 <rtems_putc>                  
      continue;                                                       
ffc08088:	48 00 01 0c 	b       ffc08194 <vprintk+0x330>               
      continue;                                                       
    }                                                                 
                                                                      
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
      base = 8; sign = false;                                         
ffc0808c:	39 20 00 00 	li      r9,0                                   
ffc08090:	3b a0 00 08 	li      r29,8                                  
ffc08094:	48 00 00 20 	b       ffc080b4 <vprintk+0x250>               
    } else if ( c == 'i' || c == 'I' ||                               
                c == 'd' || c == 'D' ) {                              
      base = 10; sign = true;                                         
ffc08098:	39 20 00 01 	li      r9,1                                   
ffc0809c:	48 00 00 08 	b       ffc080a4 <vprintk+0x240>               
    } else if ( c == 'u' || c == 'U' ) {                              
      base = 10; sign = false;                                        
ffc080a0:	39 20 00 00 	li      r9,0                                   
ffc080a4:	3b a0 00 0a 	li      r29,10                                 
ffc080a8:	48 00 00 0c 	b       ffc080b4 <vprintk+0x250>               
    } else if ( c == 'x' || c == 'X' ) {                              
      base = 16; sign = false;                                        
    } else if ( c == 'p' ) {                                          
      base = 16; sign = false; lflag = true;                          
ffc080ac:	39 20 00 00 	li      r9,0                                   
ffc080b0:	3b a0 00 10 	li      r29,16                                 
      rtems_putc(c);                                                  
      continue;                                                       
    }                                                                 
                                                                      
    printNum(                                                         
      lflag ? va_arg(ap, long) : (long) va_arg(ap, int),              
ffc080b4:	89 1f 00 00 	lbz     r8,0(r31)                              
ffc080b8:	2b 88 00 08 	cmplwi  cr7,r8,8                               
ffc080bc:	40 9c 00 1c 	bge-    cr7,ffc080d8 <vprintk+0x274>           
ffc080c0:	81 5f 00 08 	lwz     r10,8(r31)                             
ffc080c4:	55 07 10 3a 	rlwinm  r7,r8,2,0,29                           
ffc080c8:	39 08 00 01 	addi    r8,r8,1                                
ffc080cc:	7d 4a 3a 14 	add     r10,r10,r7                             
ffc080d0:	99 1f 00 00 	stb     r8,0(r31)                              
    } else {                                                          
      rtems_putc(c);                                                  
      continue;                                                       
    }                                                                 
                                                                      
    printNum(                                                         
ffc080d4:	48 00 00 10 	b       ffc080e4 <vprintk+0x280>               
      lflag ? va_arg(ap, long) : (long) va_arg(ap, int),              
ffc080d8:	81 5f 00 04 	lwz     r10,4(r31)                             
ffc080dc:	39 0a 00 04 	addi    r8,r10,4                               
ffc080e0:	91 1f 00 04 	stw     r8,4(r31)                              
  unsigned long unsigned_num;                                         
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
ffc080e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    } else {                                                          
      rtems_putc(c);                                                  
      continue;                                                       
    }                                                                 
                                                                      
    printNum(                                                         
ffc080e8:	83 4a 00 00 	lwz     r26,0(r10)                             
  unsigned long unsigned_num;                                         
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
ffc080ec:	41 9e 00 28 	beq-    cr7,ffc08114 <vprintk+0x2b0>           
ffc080f0:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc080f4:	40 bc 00 20 	bge+    cr7,ffc08114 <vprintk+0x2b0>           
    rtems_putc('-');                                                  
ffc080f8:	38 60 00 2d 	li      r3,45                                  
ffc080fc:	48 00 51 3d 	bl      ffc0d238 <rtems_putc>                  
    unsigned_num = (unsigned long) -num;                              
    if (maxwidth) maxwidth--;                                         
ffc08100:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
    rtems_putc('-');                                                  
    unsigned_num = (unsigned long) -num;                              
ffc08104:	7d 3a 00 d0 	neg     r9,r26                                 
    if (maxwidth) maxwidth--;                                         
ffc08108:	41 9e 00 14 	beq-    cr7,ffc0811c <vprintk+0x2b8>           
ffc0810c:	3b 7c ff ff 	addi    r27,r28,-1                             
ffc08110:	48 00 00 0c 	b       ffc0811c <vprintk+0x2b8>               
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
ffc08114:	7f 49 d3 78 	mr      r9,r26                                 
ffc08118:	7f 9b e3 78 	mr      r27,r28                                
  }                                                                   
                                                                      
  count = 0;                                                          
ffc0811c:	3b 80 00 00 	li      r28,0                                  
ffc08120:	48 00 00 18 	b       ffc08138 <vprintk+0x2d4>               
  while ((n = unsigned_num / base) > 0) {                             
    toPrint[count++] = (char) (unsigned_num - (n * base));            
ffc08124:	7d 0a e9 d6 	mullw   r8,r10,r29                             
ffc08128:	7d 28 48 50 	subf    r9,r8,r9                               
ffc0812c:	7d 3c c9 ae 	stbx    r9,r28,r25                             
ffc08130:	3b 9c 00 01 	addi    r28,r28,1                              
ffc08134:	7d 49 53 78 	mr      r9,r10                                 
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
ffc08138:	7d 49 eb 96 	divwu   r10,r9,r29                             
ffc0813c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc08140:	40 9e ff e4 	bne+    cr7,ffc08124 <vprintk+0x2c0>           
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
ffc08144:	7d 41 e2 14 	add     r10,r1,r28                             
ffc08148:	99 2a 00 08 	stb     r9,8(r10)                              
ffc0814c:	3b 5c 00 01 	addi    r26,r28,1                              
ffc08150:	48 00 00 10 	b       ffc08160 <vprintk+0x2fc>               
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    rtems_putc(lead);                                                 
ffc08154:	7e c3 b3 78 	mr      r3,r22                                 
ffc08158:	48 00 50 e1 	bl      ffc0d238 <rtems_putc>                  
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
ffc0815c:	3b 7b ff ff 	addi    r27,r27,-1                             
ffc08160:	7f 9b d0 40 	cmplw   cr7,r27,r26                            
ffc08164:	41 9d ff f0 	bgt+    cr7,ffc08154 <vprintk+0x2f0>           
ffc08168:	3b a0 00 00 	li      r29,0                                  
ffc0816c:	48 00 00 20 	b       ffc0818c <vprintk+0x328>               
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
ffc08170:	7d 19 e2 14 	add     r8,r25,r28                             
ffc08174:	7d 3d 00 d0 	neg     r9,r29                                 
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    rtems_putc(lead);                                                 
                                                                      
  for (n = 0; n < count; n++) {                                       
    rtems_putc("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);      
ffc08178:	7d 28 48 ae 	lbzx    r9,r8,r9                               
ffc0817c:	39 58 bf 44 	addi    r10,r24,-16572                         
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    rtems_putc(lead);                                                 
                                                                      
  for (n = 0; n < count; n++) {                                       
ffc08180:	3b bd 00 01 	addi    r29,r29,1                              
    rtems_putc("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);      
ffc08184:	7c 6a 48 ae 	lbzx    r3,r10,r9                              
ffc08188:	48 00 50 b1 	bl      ffc0d238 <rtems_putc>                  
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    rtems_putc(lead);                                                 
                                                                      
  for (n = 0; n < count; n++) {                                       
ffc0818c:	7f 9d d0 40 	cmplw   cr7,r29,r26                            
ffc08190:	41 9c ff e0 	blt+    cr7,ffc08170 <vprintk+0x30c>           
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
ffc08194:	3b de 00 01 	addi    r30,r30,1                              
ffc08198:	88 7e 00 00 	lbz     r3,0(r30)                              
ffc0819c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc081a0:	40 9e fc ec 	bne+    cr7,ffc07e8c <vprintk+0x28>            
      sign,                                                           
      width,                                                          
      lead                                                            
    );                                                                
  }                                                                   
}                                                                     
ffc081a4:	39 61 00 50 	addi    r11,r1,80                              
ffc081a8:	4b ff 83 f8 	b       ffc005a0 <_restgpr_22_x>               
                                                                      

ffc1a77c <write>: size_t count ) { rtems_libio_t *iop; rtems_libio_check_fd( fd );
ffc1a77c:	3d 20 00 00 	lis     r9,0                                   
ssize_t write(                                                        
  int         fd,                                                     
  const void *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
ffc1a780:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc1a784:	7c 08 02 a6 	mflr    r0                                     
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc1a788:	81 29 27 58 	lwz     r9,10072(r9)                           
ssize_t write(                                                        
  int         fd,                                                     
  const void *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
ffc1a78c:	90 01 00 0c 	stw     r0,12(r1)                              
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc1a790:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc1a794:	41 bc 00 08 	blt+    cr7,ffc1a79c <write+0x20>              
ffc1a798:	48 00 00 48 	b       ffc1a7e0 <write+0x64>                  
  iop = rtems_libio_iop( fd );                                        
ffc1a79c:	3d 20 00 00 	lis     r9,0                                   
ffc1a7a0:	81 29 28 08 	lwz     r9,10248(r9)                           
ffc1a7a4:	1c 63 00 38 	mulli   r3,r3,56                               
ffc1a7a8:	7c 69 1a 14 	add     r3,r9,r3                               
  rtems_libio_check_is_open( iop );                                   
ffc1a7ac:	81 23 00 10 	lwz     r9,16(r3)                              
ffc1a7b0:	71 27 01 00 	andi.   r7,r9,256                              
ffc1a7b4:	40 a2 00 08 	bne+    ffc1a7bc <write+0x40>                  
ffc1a7b8:	48 00 00 28 	b       ffc1a7e0 <write+0x64>                  
  rtems_libio_check_buffer( buffer );                                 
ffc1a7bc:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc1a7c0:	40 be 00 10 	bne+    cr7,ffc1a7d0 <write+0x54>              <== ALWAYS TAKEN
ffc1a7c4:	4b ff 50 75 	bl      ffc0f838 <__errno>                     <== NOT EXECUTED
ffc1a7c8:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc1a7cc:	48 00 00 1c 	b       ffc1a7e8 <write+0x6c>                  <== NOT EXECUTED
  rtems_libio_check_count( count );                                   
ffc1a7d0:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc1a7d4:	41 9e 00 3c 	beq-    cr7,ffc1a810 <write+0x94>              
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
ffc1a7d8:	71 2a 00 04 	andi.   r10,r9,4                               
ffc1a7dc:	40 a2 00 18 	bne+    ffc1a7f4 <write+0x78>                  
ffc1a7e0:	4b ff 50 59 	bl      ffc0f838 <__errno>                     
ffc1a7e4:	39 20 00 09 	li      r9,9                                   
ffc1a7e8:	91 23 00 00 	stw     r9,0(r3)                               
ffc1a7ec:	38 60 ff ff 	li      r3,-1                                  
ffc1a7f0:	48 00 00 24 	b       ffc1a814 <write+0x98>                  
                                                                      
  /*                                                                  
   *  Now process the write() request.                                
   */                                                                 
  return (*iop->pathinfo.handlers->write_h)( iop, buffer, count );    
ffc1a7f4:	81 23 00 24 	lwz     r9,36(r3)                              
}                                                                     
ffc1a7f8:	80 01 00 0c 	lwz     r0,12(r1)                              
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
                                                                      
  /*                                                                  
   *  Now process the write() request.                                
   */                                                                 
  return (*iop->pathinfo.handlers->write_h)( iop, buffer, count );    
ffc1a7fc:	81 29 00 0c 	lwz     r9,12(r9)                              
}                                                                     
ffc1a800:	7c 08 03 a6 	mtlr    r0                                     
ffc1a804:	38 21 00 08 	addi    r1,r1,8                                
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
                                                                      
  /*                                                                  
   *  Now process the write() request.                                
   */                                                                 
  return (*iop->pathinfo.handlers->write_h)( iop, buffer, count );    
ffc1a808:	7d 29 03 a6 	mtctr   r9                                     
ffc1a80c:	4e 80 04 20 	bctr                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_buffer( buffer );                                 
  rtems_libio_check_count( count );                                   
ffc1a810:	38 60 00 00 	li      r3,0                                   
                                                                      
  /*                                                                  
   *  Now process the write() request.                                
   */                                                                 
  return (*iop->pathinfo.handlers->write_h)( iop, buffer, count );    
}                                                                     
ffc1a814:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc1a818:	38 21 00 08 	addi    r1,r1,8                                
ffc1a81c:	7c 08 03 a6 	mtlr    r0                                     
ffc1a820:	4e 80 00 20 	blr                                            
                                                                      

ffc08e44 <writev>: int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd );
ffc08e44:	3d 20 00 00 	lis     r9,0                                   
ssize_t writev(                                                       
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc08e48:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc08e4c:	7c 08 02 a6 	mflr    r0                                     
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc08e50:	81 29 27 18 	lwz     r9,10008(r9)                           
ssize_t writev(                                                       
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc08e54:	90 01 00 24 	stw     r0,36(r1)                              
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc08e58:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ssize_t writev(                                                       
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc08e5c:	bf 41 00 08 	stmw    r26,8(r1)                              
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc08e60:	41 bc 00 08 	blt+    cr7,ffc08e68 <writev+0x24>             
ffc08e64:	48 00 00 2c 	b       ffc08e90 <writev+0x4c>                 
  iop = rtems_libio_iop( fd );                                        
ffc08e68:	3d 20 00 00 	lis     r9,0                                   
ffc08e6c:	83 89 27 c4 	lwz     r28,10180(r9)                          
ffc08e70:	1c 63 00 38 	mulli   r3,r3,56                               
ffc08e74:	7f 9c 1a 14 	add     r28,r28,r3                             
  rtems_libio_check_is_open( iop );                                   
ffc08e78:	81 3c 00 10 	lwz     r9,16(r28)                             
ffc08e7c:	71 2a 01 00 	andi.   r10,r9,256                             
ffc08e80:	40 a2 00 08 	bne+    ffc08e88 <writev+0x44>                 
ffc08e84:	48 00 00 0c 	b       ffc08e90 <writev+0x4c>                 
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
ffc08e88:	71 2a 00 04 	andi.   r10,r9,4                               
ffc08e8c:	40 a2 00 10 	bne+    ffc08e9c <writev+0x58>                 <== ALWAYS TAKEN
ffc08e90:	48 00 73 5d 	bl      ffc101ec <__errno>                     
ffc08e94:	39 20 00 09 	li      r9,9                                   
ffc08e98:	48 00 00 8c 	b       ffc08f24 <writev+0xe0>                 
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
ffc08e9c:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc08ea0:	7c 9d 23 78 	mr      r29,r4                                 
ffc08ea4:	40 be 00 08 	bne+    cr7,ffc08eac <writev+0x68>             
ffc08ea8:	48 00 00 74 	b       ffc08f1c <writev+0xd8>                 
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
ffc08eac:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc08eb0:	41 bd 00 08 	bgt+    cr7,ffc08eb8 <writev+0x74>             
ffc08eb4:	48 00 00 68 	b       ffc08f1c <writev+0xd8>                 
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
ffc08eb8:	2f 85 04 00 	cmpwi   cr7,r5,1024                            
ffc08ebc:	40 bd 00 08 	ble+    cr7,ffc08ec4 <writev+0x80>             <== ALWAYS TAKEN
ffc08ec0:	48 00 00 5c 	b       ffc08f1c <writev+0xd8>                 <== NOT EXECUTED
#include <sys/uio.h>                                                  
                                                                      
#include <rtems/libio_.h>                                             
#include <rtems/seterr.h>                                             
                                                                      
ssize_t writev(                                                       
ffc08ec4:	54 bb 18 38 	rlwinm  r27,r5,3,0,28                          
ffc08ec8:	38 fb ff f8 	addi    r7,r27,-8                              
ffc08ecc:	54 e7 e8 fe 	rlwinm  r7,r7,29,3,31                          
ffc08ed0:	38 e7 00 01 	addi    r7,r7,1                                
ffc08ed4:	39 20 00 00 	li      r9,0                                   
ffc08ed8:	7c e9 03 a6 	mtctr   r7                                     
ffc08edc:	39 40 00 01 	li      r10,1                                  
ffc08ee0:	39 00 00 00 	li      r8,0                                   
ffc08ee4:	48 00 00 08 	b       ffc08eec <writev+0xa8>                 
   *  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++ ) {                    
ffc08ee8:	7c e8 3b 78 	mr      r8,r7                                  
                                                                      
    /*                                                                
     *  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 )                                       
ffc08eec:	7c fd 48 2e 	lwzx    r7,r29,r9                              
ffc08ef0:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc08ef4:	40 be 00 08 	bne+    cr7,ffc08efc <writev+0xb8>             
ffc08ef8:	48 00 00 24 	b       ffc08f1c <writev+0xd8>                 
#include <sys/uio.h>                                                  
                                                                      
#include <rtems/libio_.h>                                             
#include <rtems/seterr.h>                                             
                                                                      
ssize_t writev(                                                       
ffc08efc:	7c fd 4a 14 	add     r7,r29,r9                              
     *  So we only check for zero.                                    
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
ffc08f00:	80 e7 00 04 	lwz     r7,4(r7)                               
      all_zeros = false;                                              
ffc08f04:	30 c7 ff ff 	addic   r6,r7,-1                               
ffc08f08:	7c c6 31 10 	subfe   r6,r6,r6                               
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
ffc08f0c:	7c e7 42 14 	add     r7,r7,r8                               
    if ( total < old || total > SSIZE_MAX )                           
ffc08f10:	7f 87 40 00 	cmpw    cr7,r7,r8                              
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
ffc08f14:	7d 4a 30 38 	and     r10,r10,r6                             
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
ffc08f18:	40 bc 00 14 	bge+    cr7,ffc08f2c <writev+0xe8>             
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc08f1c:	48 00 72 d1 	bl      ffc101ec <__errno>                     
ffc08f20:	39 20 00 16 	li      r9,22                                  
ffc08f24:	91 23 00 00 	stw     r9,0(r3)                               
ffc08f28:	48 00 00 70 	b       ffc08f98 <writev+0x154>                
ffc08f2c:	39 29 00 08 	addi    r9,r9,8                                
   *  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++ ) {                    
ffc08f30:	42 00 ff b8 	bdnz+   ffc08ee8 <writev+0xa4>                 
  }                                                                   
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
ffc08f34:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
    return 0;                                                         
ffc08f38:	3b e0 00 00 	li      r31,0                                  
  }                                                                   
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
ffc08f3c:	40 9e 00 60 	bne-    cr7,ffc08f9c <writev+0x158>            
ffc08f40:	3b c0 00 00 	li      r30,0                                  
#include <sys/uio.h>                                                  
                                                                      
#include <rtems/libio_.h>                                             
#include <rtems/seterr.h>                                             
                                                                      
ssize_t writev(                                                       
ffc08f44:	7f 5d f2 14 	add     r26,r29,r30                            
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    /* all zero lengths has no effect */                              
    if ( iov[v].iov_len == 0 )                                        
ffc08f48:	80 ba 00 04 	lwz     r5,4(r26)                              
ffc08f4c:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc08f50:	41 be 00 38 	beq+    cr7,ffc08f88 <writev+0x144>            <== NEVER TAKEN
      continue;                                                       
                                                                      
    bytes = (*iop->pathinfo.handlers->write_h)(                       
ffc08f54:	81 3c 00 24 	lwz     r9,36(r28)                             
ffc08f58:	7f 83 e3 78 	mr      r3,r28                                 
ffc08f5c:	7c 9d f0 2e 	lwzx    r4,r29,r30                             
ffc08f60:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc08f64:	7d 29 03 a6 	mtctr   r9                                     
ffc08f68:	4e 80 04 21 	bctrl                                          
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
ffc08f6c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc08f70:	41 80 00 28 	blt-    ffc08f98 <writev+0x154>                <== NEVER TAKEN
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
ffc08f74:	41 82 00 08 	beq-    ffc08f7c <writev+0x138>                <== NEVER TAKEN
      total       += bytes;                                           
ffc08f78:	7f ff 1a 14 	add     r31,r31,r3                             
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
ffc08f7c:	81 5a 00 04 	lwz     r10,4(r26)                             
ffc08f80:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc08f84:	40 9e 00 18 	bne-    cr7,ffc08f9c <writev+0x158>            <== NEVER TAKEN
ffc08f88:	3b de 00 08 	addi    r30,r30,8                              
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
ffc08f8c:	7f 9e d8 00 	cmpw    cr7,r30,r27                            
ffc08f90:	40 9e ff b4 	bne+    cr7,ffc08f44 <writev+0x100>            
ffc08f94:	48 00 00 08 	b       ffc08f9c <writev+0x158>                
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
ffc08f98:	3b e0 ff ff 	li      r31,-1                                 
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
ffc08f9c:	39 61 00 20 	addi    r11,r1,32                              
ffc08fa0:	7f e3 fb 78 	mr      r3,r31                                 
ffc08fa4:	4b ff 7c 4c 	b       ffc00bf0 <_restgpr_26_x>